summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-15 22:42:02 +1100
committerChris Johns <chrisj@rtems.org>2012-12-15 22:42:02 +1100
commit2f7baea50b3817650d1ae0de6ef1421cc5c3368f (patch)
tree11b59e95147c67805f993d7c7255d1fb8f0e7c41
parentf5ccaa7088eab8c9df5e529bf8cd17784cad023a (diff)
Install the grub configuration file with the PC BSP.
-rw-r--r--wscript13
1 files changed, 11 insertions, 2 deletions
diff --git a/wscript b/wscript
index 3842db3..e8f8e6e 100644
--- a/wscript
+++ b/wscript
@@ -1,6 +1,7 @@
#
# Waf build script for the Run Time Link editor development project.
#
+import re
import rtems
version = "1.0.0"
@@ -40,6 +41,7 @@ def build(bld):
arch_bsp = bld.get_env()['RTEMS_ARCH_BSP']
arch = bld.get_env()['RTEMS_ARCH']
+ bsp = bld.get_env()['RTEMS_BSP']
#
# The include paths and defines.
@@ -50,7 +52,7 @@ def build(bld):
bld.defines = ['PACKAGE_VERSION="' + version + '"',
'RTEMS_RTL_ELF_LOADER=1',
'RTEMS_RTL_RAP_LOADER=1']
- bld.cflags = ['-g']
+ bld.cflags = ['-g', '-O']
#
# The ARM as special BSP initialise code.
@@ -169,7 +171,7 @@ def build(bld):
bld(target = 'x.rap',
features = 'c rap',
xxxx = 'hello',
- rtems_linkflags = ['--base', 'rtld.prelink',
+ rtems_linkflags = ['-v', '--base', 'rtld.prelink',
'--entry', 'my_main'],
source = ['xa.c',
'x-long-name-to-create-gnu-extension-in-archive.c'])
@@ -182,6 +184,8 @@ def build(bld):
source = 'fs-root.tar',
rule = '${OBJCOPY} -I binary -B ${RTEMS_ARCH} ${OBJCOPY_FLAGS} ${SRC} ${TGT}')
+ bld.add_group ()
+
bld(features = 'c cprogram',
target = 'rtld',
source = ['init.c',
@@ -197,6 +201,11 @@ def build(bld):
if bld.env.ASCIIDOC:
bld(target = 'rtems-rtl.html', source = 'rtems-rtl.txt')
+ if re.match('pc[3456]86', bsp) is not None:
+ bld(features = 'subst',
+ source = 'rtems-grub-h0-1.cfg',
+ target = 'rtems-grub.cfg')
+
def rebuild(ctx):
import waflib.Options
waflib.Options.commands.extend(['clean', 'build'])