summaryrefslogtreecommitdiff
path: root/classes/module-base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/module-base.bbclass')
-rw-r--r--classes/module-base.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass
index d9580ed5dc..41192807be 100644
--- a/classes/module-base.bbclass
+++ b/classes/module-base.bbclass
@@ -7,6 +7,7 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
export KERNEL_VERSION = ${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}
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}"