From: Chunrong Guo Date: Mon, 16 Dec 2013 09:16:05 +0000 (+0800) Subject: lttng-modules: build as 64-bit kernel module on e6500 X-Git-Tag: 2.1~534^2~215 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e8dd8e8d69289405c83e58274c079b0f28f61815;p=meta-freescale.git lttng-modules: build as 64-bit kernel module on e6500 *e6500 is built with 32b rootfs/64b kernel, build asf 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 --- diff --git a/meta-fsl-ppc/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend b/meta-fsl-ppc/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file mode 100644 index 00000000..5415f16e --- /dev/null +++ b/meta-fsl-ppc/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend @@ -0,0 +1,18 @@ +inherit distro_features_check + +REQUIRED_DISTRO_FEATURES_append_e6500 ?= "multiarch" + +python () { + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.appendVar('KERNEL_CC', ' -m64') + d.appendVar('KERNEL_LD', ' -melf64ppc') + + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) + +}