summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-01-01 12:17:55 +1100
committerChris Johns <chrisj@rtems.org>2013-01-01 12:17:55 +1100
commitbade51b70fa86b067f8f6a1cb4df5ff62e6d4b67 (patch)
treea49f462d2e9272103d4130fa324ee6490abe1a6f /wscript
parent5c3b9b76e1a7142815910a602a388b4cd81dd970 (diff)
Check the BSP and include if bspport.rap is present.
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 8 insertions, 4 deletions
diff --git a/wscript b/wscript
index 69e86cf..c0ed980 100644
--- a/wscript
+++ b/wscript
@@ -138,7 +138,6 @@ def build(bld):
# finally the second link occurs with the global symbol table to create the
# executable to install.
#
- #
# Create the root file system for the prelink.
#
bld(target = 'fs-root.tar',
@@ -179,16 +178,21 @@ def build(bld):
source = ['xa.c',
'x-long-name-to-create-gnu-extension-in-archive.c'])
+ if re.match('pc[3456]86', bsp) is not None:
+ raps = ['bsdport.rap']
+ else:
+ raps = []
+
bld(target = 'fs-root.tar',
- source = ['shell-init', 'libx.a', 'x.rap'],
+ name = 'fs',
+ source = ['shell-init', 'libx.a', 'x.rap'] + raps,
rule = 'tar cf - ${SRC} > ${TGT}')
bld.objects(name = 'rootfs',
target = 'fs-root-tarfile.o',
source = 'fs-root.tar',
+ depends_on = 'fs',
rule = '${OBJCOPY} -I binary -B ${RTEMS_ARCH} ${OBJCOPY_FLAGS} ${SRC} ${TGT}')
- bld.add_group ()
-
bld(features = 'c cprogram',
target = 'rtld',
source = ['init.c',