diff options
Diffstat (limited to 'openembedded/classes/module-base.bbclass')
| -rw-r--r-- | openembedded/classes/module-base.bbclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openembedded/classes/module-base.bbclass b/openembedded/classes/module-base.bbclass index df0941d561..da5bd01dae 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') | |||
| 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_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" | 13 | |
| 14 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" | 14 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture |
| 15 | # specific options necessary for building the kernel and modules. | ||
| 16 | TARGET_CC_KERNEL_ARCH ?= "" | ||
| 17 | HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" | ||
| 18 | TARGET_LD_KERNEL_ARCH ?= "" | ||
| 19 | HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" | ||
| 20 | |||
| 21 | KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}" | ||
| 22 | KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}" | ||
| 15 | 23 | ||
| 16 | # kernel modules are generally machine specific | 24 | # kernel modules are generally machine specific |
| 17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 25 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
