scons: arch: Generalize the switching header code.
authorGabe Black <gabeblack@google.com>
Tue, 2 May 2017 04:58:41 +0000 (21:58 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 10 May 2017 16:52:24 +0000 (16:52 +0000)
commit8ee95f3d1164b3320fee3595f7ec9d8c9687dcad
treef917a83b092ca8ed557838dd7ad2e56ec54c39f2
parent942e2957994fc6779a5540c3b94a8756258e3149
scons: arch: Generalize the switching header code.

Factor out the ISA ness of the switching header generating function. Also
turn it into a SCons builder which builds a single header, and a wrapping
method which uses the builder on a group of header files which all target
the same subdirectory.

Change-Id: I87705f97b6ebd9baebd4ebcfea19cc1218a64ad0
Reviewed-on: https://gem5-review.googlesource.com/2983
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
SConstruct
src/arch/SConscript