scons: interpret paths relative to launch directory
authorSteve Reinhardt <steve.reinhardt@amd.com>
Mon, 2 May 2011 19:40:32 +0000 (12:40 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Mon, 2 May 2011 19:40:32 +0000 (12:40 -0700)
commit8ce85d3db6681084c5fe50bded0a312e550581ab
tree69c1198e08f04bb26970ab1ced937fc0fa0c0fb5
parentf713af951a6bfd0953fba801b72513b82469fdeb
scons: interpret paths relative to launch directory

Make sure all command-line targets and EXTRAS directories
are interpreted relative to the launch directory.  This
turns out to be very useful when building code from an
EXTRAS directory using SCons's -C option.

We were trying to do this with targets but it didn't actually
work since we didn't update BUILD_TARGETS (so SCons got
confused internally).  We weren't even trying with EXTRAS.

To simplify the code, the default target is also interpreted
relative to the launch dir even though it was explicitly
handled as relative to the m5 dir before... I doubt anyone
really uses this anyway so it didn't seem worth the complexity.
(Maybe we should get rid of it?)
SConstruct