[oe-commits] Nitin A Kamble : kernel, module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables

git version control git at git.openembedded.org
Fri Aug 5 17:55:15 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 3df1853e1e662e377af332841c3790d7052f5aa3
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=3df1853e1e662e377af332841c3790d7052f5aa3

Author: Nitin A Kamble <nitin.a.kamble at intel.com>
Date:   Tue Aug  2 13:44:44 2011 -0700

kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables

KERNEL_LD was using ${LD} in it's definition, which is not correct for
different ABIs such as x32 or i386 on x86_64 machine. This brings it
into sync with the corresponding gcc settings, likewise the same with
the KERNEL_AR variable.

[RP: Updated commit message]
Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 7c9bb10..edf455d 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -52,7 +52,7 @@ TARGET_LD_KERNEL_ARCH ?= ""
 HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 
 KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
-KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
+KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
 
 # Where built kernel lies in the kernel tree
 KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"





More information about the Openembedded-commits mailing list