summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-01-08 14:40:51 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-01-08 14:40:51 +0000
commit5b9ecbad73a8673ea2600305306b208d408a8f1f (patch)
tree1a117cdbe69ddbe27891154305d8785595c0677d /meta/classes
parent3a4cd6a02ff473b954691084161b78c9a13bc91e (diff)
downloadpoky-5b9ecbad73a8673ea2600305306b208d408a8f1f.tar.gz
module*.bbclass: set AR to KERNEL_AR during building of kernel modules
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3422 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/module-base.bbclass4
-rw-r--r--meta/classes/module.bbclass1
2 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass
index da5bd01dae..c98baceeab 100644
--- a/meta/classes/module-base.bbclass
+++ b/meta/classes/module-base.bbclass
@@ -10,6 +10,7 @@ export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')
10KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" 10KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}"
11KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" 11KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
12KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" 12KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
13KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
13 14
14# Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture 15# Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
15# specific options necessary for building the kernel and modules. 16# specific options necessary for building the kernel and modules.
@@ -17,9 +18,12 @@ TARGET_CC_KERNEL_ARCH ?= ""
17HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" 18HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
18TARGET_LD_KERNEL_ARCH ?= "" 19TARGET_LD_KERNEL_ARCH ?= ""
19HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" 20HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
21TARGET_AR_KERNEL_ARCH ?= ""
22HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
20 23
21KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" 24KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
22KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" 25KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
26KERNEL_AR = "${AR}${KERNEL_ARSUFFIX} ${HOST_AR_KERNEL_ARCH}"
23 27
24# kernel modules are generally machine specific 28# kernel modules are generally machine specific
25PACKAGE_ARCH = "${MACHINE_ARCH}" 29PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index 7083076b5f..108b63bb07 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -9,6 +9,7 @@ module_do_compile() {
9 KERNEL_SRC=${STAGING_KERNEL_DIR} \ 9 KERNEL_SRC=${STAGING_KERNEL_DIR} \
10 KERNEL_VERSION=${KERNEL_VERSION} \ 10 KERNEL_VERSION=${KERNEL_VERSION} \
11 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ 11 CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
12 AR="${KERNEL_AR}" \
12 ${MAKE_TARGETS} 13 ${MAKE_TARGETS}
13} 14}
14 15