summaryrefslogtreecommitdiff
path: root/classes/module-base.bbclass
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-02-10 21:05:37 -0500
committerTom Rini <trini@embeddedalley.com>2009-02-10 21:05:37 -0500
commit25b281668e62d90c027978b13b53075534b81d0c (patch)
tree6482e02bf06ec9061f420c2dc3135d70fabe5fd4 /classes/module-base.bbclass
parentc800819c4e7ccbaeaa97a956dac4582f86fef402 (diff)
module-base: Fix the test on KERNEL_OBJECT_SUFFIX
We were saying if we're newer than 2.6.0, use ".o" and otherwise use ".ko", which is backwards.
Diffstat (limited to 'classes/module-base.bbclass')
-rw-r--r--classes/module-base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass
index c98baceeab..185803ebba 100644
--- a/classes/module-base.bbclass
+++ b/classes/module-base.bbclass
@@ -7,7 +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_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_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"