diff options
author | Chris Johns <chrisj@rtems.org> | 2013-01-01 12:17:55 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-01-01 12:17:55 +1100 |
commit | bade51b70fa86b067f8f6a1cb4df5ff62e6d4b67 (patch) | |
tree | a49f462d2e9272103d4130fa324ee6490abe1a6f | |
parent | 5c3b9b76e1a7142815910a602a388b4cd81dd970 (diff) |
Check the BSP and include if bspport.rap is present.
-rw-r--r-- | wscript | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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', |