[OE-core] [PATCH] lttng-modules: build as 64-bit kernel module on e6500
Chunrong Guo
B40290 at freescale.com
Fri Dec 13 07:06:34 UTC 2013
*e6500 is built with 32b rootfs/64b kernel, build lttng-modules as 64bit too.
*Fix the below build issue on e6500 core:
| DEBUG: Executing shell function do_make_scripts
| make: Entering directory `.../tmp/sysroots/t4240qds/usr/src/kernel'
| CC scripts/mod/empty.o | scripts/mod/empty.c:1:0: error: -mcmodel not supported in this configuration
| make[2]: *** [scripts/mod/empty.o] Error 1
| make[1]: *** [scripts/mod] Error 2
| make: *** [scripts] Error 2
Signed-off-by: Chunrong Guo <B40290 at freescale.com>
---
meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb b/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb
index dd06546..2a48c1a 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb
@@ -22,6 +22,18 @@ export KERNEL_SRC="${STAGING_KERNEL_DIR}"
S = "${WORKDIR}/git"
+# Build as 64-bit kernel module on e6500
+python () {
+
+ promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
+
+ if promote_kernel == "1":
+ d.setVar('KERNEL_CC_append', ' -m64')
+ d.setVar('KERNEL_LD_append', ' -melf64ppc')
+
+}
+
+
do_install_append() {
# Delete empty directories to avoid QA failures if no modules were built
find ${D}/lib -depth -type d -empty -exec rmdir {} \;
--
1.7.5.4
More information about the Openembedded-core
mailing list