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 /baserock-bootstrap | |
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 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index 0e2b3a9e..72d9e018 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -16,8 +16,10 @@ export LC_ALL=C if (uname -m | grep arm) >/dev/null; then export LFS_TGT=$(uname -m)-lfs-linux-gnueabi + export TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" else export LFS_TGT=$(uname -m)-lfs-linux-gnu + export TARGET_CFLAGS= fi HOST_CAT=`which cat` @@ -84,7 +86,8 @@ pass1_build_with_morph() --dump-memory-profile=none \ --keep-path \ --prefix="$tools" \ - --toolchain-target="$LFS_TGT" + --toolchain-target="$LFS_TGT" \ + --target-cflags="$TARGET_CFLAGS" } pass2_get_morph() @@ -216,7 +219,8 @@ python ./morph --verbose build \ --log=/baserock/morph.log \ --dump-memory-profile=none \ --keep-path \ - --bundle-server="$GIT_BUNDLES" + --bundle-server="$GIT_BUNDLES" \ + --target-cflags="$TARGET_CFLAGS" EOF $HOST_CHMOD +x "$LFS/baserock/build.sh" local do_chroot="$BASEDIR/do-chroot.bash" @@ -346,7 +350,8 @@ python ./morph --verbose build \ --log=/baserock/morph.log \ --dump-memory-profile=none \ --keep-path \ - --bundle-server="$GIT_BUNDLES" + --bundle-server="$GIT_BUNDLES" \ + --target-cflags="$TARGET_CFLAGS" EOF $HOST_CHMOD +x "$LFS/baserock/build_pass3.sh" local do_chroot="$BASEDIR/do-chroot.bash" |