summaryrefslogtreecommitdiff
path: root/openembedded/classes/module-base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
committerRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
commit31116d6c7e368c42bcfdf2dba2000b2203f08e85 (patch)
tree9737ea7c974da46ca2a9ee4acad8aabb9cbb2bac /openembedded/classes/module-base.bbclass
parent9df0203e2b27ef3ae28b60447df6b91be7be81dc (diff)
downloadopenembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.gz
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.bz2
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.xz
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.zip
Update bbclasses from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@266 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/module-base.bbclass')
-rw-r--r--openembedded/classes/module-base.bbclass12
1 files changed, 10 insertions, 2 deletions
diff --git a/openembedded/classes/module-base.bbclass b/openembedded/classes/module-base.bbclass
index df0941d56..da5bd01da 100644
--- a/openembedded/classes/module-base.bbclass
+++ b/openembedded/classes/module-base.bbclass
@@ -10,8 +10,16 @@ export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')
KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}"
KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}"
-KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}"
+
+# Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
+# specific options necessary for building the kernel and modules.
+TARGET_CC_KERNEL_ARCH ?= ""
+HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
+TARGET_LD_KERNEL_ARCH ?= ""
+HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
+
+KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
# kernel modules are generally machine specific
PACKAGE_ARCH = "${MACHINE_ARCH}"