From b1463c26a397e014eee75b4aa54ab47235b91edd Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sun, 29 Apr 2018 13:38:23 +0100 Subject: [PATCH] readme: gem5 failed python script without rebuild attempt --- README.adoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index ec7c3c5..bed70be 100644 --- a/README.adoc +++ b/README.adoc @@ -4493,7 +4493,7 @@ Guest: .... touch /tmp/execfile -chmoe +x /tmp/execfile +chmod +x /tmp/execfile m5 execfile .... @@ -4530,6 +4530,21 @@ Unfortunately-we didn't manage to find an ARM analogue: link:kernel_module/pmccn * https://stackoverflow.com/questions/31620375/arm-cortex-a7-returning-pmccntr-0-in-kernel-mode-and-illegal-instruction-in-u/31649809#31649809 * https://blog.regehr.org/archives/794 +=== gem5 Python scripts without rebuild + +TODO + +Currently, when you modify the python scripts under `gem5/gem5`, you still have to run `./build` to copy the updated scripts to the `out//buildroot` directory, which kind of defeats the purpose of having an interpreted language as Python. + +We would like to solve that, but are blocked on either of the following: + +* build in-tree and skip the Buildroot sync step. If sync is not skipped, it would copy all builds to all archs, which is huge. ++ +But then we have to deal specially with the `m5` tool, which has to be cross compiled +* gem5 out of tree build. Is there support? Looks like SCons does not have anything generic as usual and leaves the burden on project developers: +** https://stackoverflow.com/questions/3720142/how-to-force-scons-output-exe-obj-lib-dll-to-specific-build-directory +** https://stackoverflow.com/questions/1762044/how-to-do-an-out-of-source-build-with-scons + == Insane action === Run on host