summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-30 10:16:35 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-30 10:16:35 +0000
commit14762f71b9f839432ede0406b9443ce20b918378 (patch)
treee29ad5db79361d5f712e82c5bebbf47355c823f7 /meta
parent59ad91a880695808c5b4efe88fa46286662e4cfc (diff)
downloadpoky-14762f71b9f839432ede0406b9443ce20b918378.tar.gz
kernel.bbclass: Ensure TOOLCHAIN_OPTIONS is passed to KERNEL_CC and KERNEL_LD
This fixes various incorrect sysroot usages observed by people with sstate. Thanks to Kevin Tian for figuring out where the problem was and Gary Thomas for confirming the fix. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 26273bd1e8..86a1923df3 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -40,8 +40,8 @@ HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
40TARGET_LD_KERNEL_ARCH ?= "" 40TARGET_LD_KERNEL_ARCH ?= ""
41HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" 41HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
42 42
43KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" 43KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
44KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" 44KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
45 45
46# Where built kernel lies in the kernel tree 46# Where built kernel lies in the kernel tree
47KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}" 47KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"