summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-07-31 15:17:21 +1000
committerChris Johns <chrisj@rtems.org>2012-07-31 15:17:21 +1000
commit99bdd39271de093920b34d217a5a4b7f0a6f2e80 (patch)
treef73c646e5eb6173b63dacc4097794d5c8d1af274 /wscript
parent328fbd26ed0213af7e328de105921f4eb7927e55 (diff)
Add ARM support. Cleaned up the waf support.
Adding ARM support has changed the architecture relocation interface. All architectures updated. Cleaned up the RTEMS waf support to only look for tools when the arch is being processed. Add filter support to allow a user to make sure a BSP is present or to remove BSPs that will not build. Added the Init support because ARM BSPs do not contain the support.
Diffstat (limited to 'wscript')
-rw-r--r--wscript27
1 files changed, 25 insertions, 2 deletions
diff --git a/wscript b/wscript
index 7584fa5..74e8a64 100644
--- a/wscript
+++ b/wscript
@@ -5,8 +5,22 @@ import rtems
version = "1.0.0"
+#
+# Filter out BSPs in the ARM architecture which it cannot fit in or have other
+# issues.
+#
+filters = {
+ 'bsps': {
+ 'out': ['arm/rtl22xx',
+ 'arm/lpc32xx_mzx_stage_1',
+ 'arm/lpc23xx_tli800',
+ 'arm/lpc2362',
+ 'arm/nds']
+ }
+ }
+
def init(ctx):
- rtems.init(ctx)
+ rtems.init(ctx, filters)
def options(opt):
rtems.options(opt)
@@ -36,6 +50,7 @@ def build(bld):
bld.defines += ['RTL_GSYM_EMBEDDED=1']
rtl_source(bld, arch)
+ rtl_bspinit(bld, arch)
rtl_liba(bld, arch)
rtl_root_fs(bld)
rtl_gsyms(bld)
@@ -48,7 +63,7 @@ def build(bld):
includes = bld.includes,
defines = bld.defines,
cflags = '-g',
- use = ['rtl', 'rootfs', 'rtld-gsyms'],
+ use = ['rtl', 'bspinit', 'rootfs', 'rtld-gsyms'],
depends_on = 'gsyms')
if bld.env.ASCIIDOC:
@@ -84,6 +99,14 @@ def rtl_source(bld, arch):
'rtl-unresolved.c',
'rtl-mdreloc-' + arch + '.c'])
+def rtl_bspinit(bld, arch):
+ if arch == 'arm':
+ bld(target = 'bspinit',
+ features = 'c',
+ includes = bld.includes,
+ defines = bld.defines,
+ source = ['bspinit.c'])
+
def rtl_liba(bld, arch):
bld(target = 'x',
features = 'c cstlib',