diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-03-18 17:23:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-18 11:36:54 +0000 |
commit | 97d3ddedcc9b27f0e3e6c3da71029bee2c326684 (patch) | |
tree | 549cdd419566f2d098af288b35a99624e069790f /meta/classes | |
parent | 34869c6d61a9729e977ced19897b713213fd620b (diff) | |
download | poky-97d3ddedcc9b27f0e3e6c3da71029bee2c326684.tar.gz |
toolchain-scripts.bbclass: Added --sysroot to CPPFLAGS.
[YOCTO #908] Added CPPFLAGS into the environment file and added
--sysroot to it.
(From OE-Core rev: 360daf019101d9b4d08ab1e3d279b08c02e9749e)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 998ff14b23..ef21784b98 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -25,6 +25,7 @@ toolchain_create_sdk_env_script () { | |||
25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
27 | echo 'export LDFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script | 27 | echo 'export LDFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script |
28 | echo 'export CPPFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script | ||
28 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 29 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
29 | echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script | 30 | echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script |
30 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 31 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |
@@ -85,6 +86,7 @@ toolchain_create_sdk_env_script_for_installer () { | |||
85 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 86 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
86 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 87 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
87 | echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script | 88 | echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script |
89 | echo 'export CPPFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script | ||
88 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 90 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
89 | echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script | 91 | echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script |
90 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 92 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |