diff options
Diffstat (limited to 'classes/module-base.bbclass')
-rw-r--r-- | classes/module-base.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass index e69de29bb2..d8afead0f6 100644 --- a/classes/module-base.bbclass +++ b/classes/module-base.bbclass @@ -0,0 +1,16 @@ +inherit module_strip + +inherit kernel-arch + +export OS = "${TARGET_OS}" +export CROSS_COMPILE = "${TARGET_PREFIX}" + +export KERNEL_VERSION = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-abiversion')} +export KERNEL_SOURCE = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-source')} +KERNEL_CCSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-ccsuffix')} +KERNEL_LDSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-ldsuffix')} +KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" +KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" + +# kernel modules are generally machine specific +PACKAGE_ARCH = "${MACHINE_ARCH}" |