systemc: Make the script work when run from different dirs.

The script ran scons from the CWD, and that would fail if
there wasn't a SConstruct in that directory, ie if it wasn't from the
source of the checkout.

This change makes use scons' --directory option to run from
where the SConstruct is, or at least the SConstruct which was checked
out alongside that copy of That location can be overridden
using the new -C or --scons-dir options.

Change-Id: I9f033d6dd30e0c2992b7f3102c573b34ea9c49e0
Reviewed-by: Andreas Sandberg <>
Maintainer: Gabe Black <>
1 file changed