summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-03-05 14:20:52 +0000
committerSaul Wold <sgw@linux.intel.com>2011-03-06 08:51:38 -0800
commit283d452edefe61855ce5ee1f49e99c8ca2e3b01d (patch)
treed9b0e7882f6060b3e126241835f7bb6c97ef83a2 /meta
parent52ba9b76e08ccb1f617d82a87cc43a33c4495778 (diff)
downloadpoky-283d452edefe61855ce5ee1f49e99c8ca2e3b01d.tar.gz
toolchain-script.bbclass: Added --sysroot to LDFLAGS.
[YOCTO #808] Added --sysroot to LDFALGS in environment files. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/toolchain-scripts.bbclass2
-rw-r--r--meta/recipes-core/meta/meta-environment.bb2
-rw-r--r--meta/recipes-core/meta/meta-toolchain.bb2
3 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 2b9cfac6a1..998ff14b23 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -24,6 +24,7 @@ toolchain_create_sdk_env_script () {
24 fi 24 fi
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 POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script 28 echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
28 echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script 29 echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script
29 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 30 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
@@ -83,6 +84,7 @@ toolchain_create_sdk_env_script_for_installer () {
83 fi 84 fi
84 echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script 85 echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script
85 echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script 86 echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script
87 echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script
86 echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script 88 echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
87 echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script 89 echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script
88 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 90 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
diff --git a/meta/recipes-core/meta/meta-environment.bb b/meta/recipes-core/meta/meta-environment.bb
index 0b8826032b..d2dc5449df 100644
--- a/meta/recipes-core/meta/meta-environment.bb
+++ b/meta/recipes-core/meta/meta-environment.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Package of environment files for SDK"
2LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ 2LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
3 file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 3 file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4LICENSE = "MIT" 4LICENSE = "MIT"
5PR = "r2" 5PR = "r3"
6 6
7EXCLUDE_FROM_WORLD = "1" 7EXCLUDE_FROM_WORLD = "1"
8 8
diff --git a/meta/recipes-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb
index 2443b384a8..92936b6e76 100644
--- a/meta/recipes-core/meta/meta-toolchain.bb
+++ b/meta/recipes-core/meta/meta-toolchain.bb
@@ -1,7 +1,7 @@
1DESCRIPTION = "Meta package for building a installable toolchain" 1DESCRIPTION = "Meta package for building a installable toolchain"
2LICENSE = "MIT" 2LICENSE = "MIT"
3 3
4PR = "r2" 4PR = "r3"
5 5
6LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ 6LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
7 file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 7 file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"