summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-26 16:24:07 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-26 16:24:07 +0000
commit90f3f2f708c5a2407f94d01344aa8c8b4644060d (patch)
treecc4b3d9960da004f57ff9fe37cb35a33794bfa80 /morph
parent712ac2bcd856c864e34c337fc23fe86216a88049 (diff)
downloadmorph-90f3f2f708c5a2407f94d01344aa8c8b4644060d.tar.gz
Add --target-cflags option; set arch/fp in baserock-bootstrap on ARM.
The --target-cflags option is really just a temporary solution. At some point we will want to have a proper target architecture/device description that morph uses to define compiler flags etc. For now, I hope this will do.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph6
1 files changed, 6 insertions, 0 deletions
diff --git a/morph b/morph
index 92fe5d76..b8dc093e 100755
--- a/morph
+++ b/morph
@@ -63,6 +63,11 @@ class Morph(cliapp.Application):
'to build tools for',
metavar='TOOLCHAIN_TARGET',
default=defaults['toolchain-target'])
+ self.settings.string(['target-cflags'],
+ 'inject additional CFLAGS into the environment '
+ 'that is used to build chunks',
+ metavar='CFLAGS',
+ default='')
self.settings.string(['tempdir'],
'temporary directory to use for builds '
'(this is separate from just setting $TMPDIR '
@@ -477,6 +482,7 @@ class Morph(cliapp.Application):
env['PATH'] = '/sbin:/usr/sbin:/bin:/usr/bin'
env['TOOLCHAIN_TARGET'] = self.settings['toolchain-target']
+ env['CFLAGS'] = self.settings['target-cflags']
env['PREFIX'] = self.settings['prefix']
env['BOOTSTRAP'] = 'true' if self.settings['bootstrap'] else 'false'
if tools is not None: