diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-26 16:24:07 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-26 16:24:07 +0000 |
commit | 90f3f2f708c5a2407f94d01344aa8c8b4644060d (patch) | |
tree | cc4b3d9960da004f57ff9fe37cb35a33794bfa80 /morph | |
parent | 712ac2bcd856c864e34c337fc23fe86216a88049 (diff) | |
download | morph-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-x | morph | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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: |