Hi Ciro,

You can specify any directory as the parameter to scons. I believe the
convention is to have a directory named "build" as the second to last
component of the path, but I don't think it's *required*. For instance you
could do the following:


</home/jlp/gem5>$ scons /scratch/jlp/build/my_gem5/gem5.opt --default=X86

Scons looks for 2 things in the path:
1) which binary to build (e.g., "opt" above, but you also have the options
of prof, perf, fast, and debug).
2) What the "default" scons parameters are. For this, it looks at the last
path component (e.g., "my_gem5" above) and compares this name to the files
is gem5/build_opts. If there is a match, it uses the default values in that
file (e.g., X86 or ARM). If there is not a match, you must specify which
file to use for the defaults (e.g., above, I used the gem5/build_opts/X86
file as the defaults). As a side note, you can override any of the default
variables on the scons command line (e.g., to build a specific Ruby
protocol you would likely want to override PROTOCOL).

Jason

On Sun, Apr 29, 2018 at 2:37 PM Ciro Santilli <ciro.santi...@gmail.com>
wrote:

> Is it possible to put all of gem5 compilation output, including
> intermediate files, into a specified directory?
>
> By default it all goes under build/, is it possible to change that?
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to