diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-01-08 14:43:32 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-01-08 14:43:32 +0000 |
commit | 7c628949589d6084ca091a39688dfa14e759e4db (patch) | |
tree | b3c6a090d386741b7ae5ab1b03f8e57451abbc1f | |
parent | d40c8607627bb683a3a49005749934e7d241ca6b (diff) | |
download | poky-7c628949589d6084ca091a39688dfa14e759e4db.tar.gz |
module*.bbclass: set AR to KERNEL_AR during building of kernel modules (from Poky trunk r3422)
git-svn-id: https://svn.o-hand.com/repos/poky/branches/blinky@3423 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/classes/module-base.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/module.bbclass | 1 |
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') | |||
10 | KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" | 10 | KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" |
11 | KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" | 11 | KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" |
12 | KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" | 12 | KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" |
13 | KERNEL_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 ?= "" | |||
17 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" | 18 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" |
18 | TARGET_LD_KERNEL_ARCH ?= "" | 19 | TARGET_LD_KERNEL_ARCH ?= "" |
19 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" | 20 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" |
21 | TARGET_AR_KERNEL_ARCH ?= "" | ||
22 | HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}" | ||
20 | 23 | ||
21 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" | 24 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" |
22 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" | 25 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" |
26 | KERNEL_AR = "${AR}${KERNEL_ARSUFFIX} ${HOST_AR_KERNEL_ARCH}" | ||
23 | 27 | ||
24 | # kernel modules are generally machine specific | 28 | # kernel modules are generally machine specific |
25 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 29 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass index f55b89c4da..d3783a4bba 100644 --- a/meta/classes/module.bbclass +++ b/meta/classes/module.bbclass | |||
@@ -26,6 +26,7 @@ module_do_compile() { | |||
26 | KERNEL_SRC=${STAGING_KERNEL_DIR} \ | 26 | KERNEL_SRC=${STAGING_KERNEL_DIR} \ |
27 | KERNEL_VERSION=${KERNEL_VERSION} \ | 27 | KERNEL_VERSION=${KERNEL_VERSION} \ |
28 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ | 28 | CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |
29 | AR="${KERNEL_AR}" \ | ||
29 | ${MAKE_TARGETS} | 30 | ${MAKE_TARGETS} |
30 | } | 31 | } |
31 | 32 | ||