diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2006-01-30 03:05:50 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-30 03:05:50 +0000 |
commit | 9f00cacbccf02db56cb4e134a8dcecb6d13205d9 (patch) | |
tree | 1a7ea5199565885e67fbd4a5cbc211847bdcd0f8 /classes/module-base.bbclass | |
parent | f0c27346be9b14f69a4fd1424db329d58a505ce7 (diff) |
linux: fix missing HOST_CC_ARCH in module compilation in kernel/module all
- define TARGET_KERNEL_CC_ARCH to define arch specific compiler options
in machine.conf. The default for the kernel is "" (empty), although
it should probably be TARGET_CC_ARCH in the future. The default for
modules is TARGET_CC_ARCH
Diffstat (limited to 'classes/module-base.bbclass')
-rw-r--r-- | classes/module-base.bbclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass index 3aa7072370..d308e205b1 100644 --- a/classes/module-base.bbclass +++ b/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} ${HOST_CC_ARCH}" -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 ?= "${TARGET_CC_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}" |