lttng-modules: build as 64-bit kernel module on e6500
PATCH 1/1 lttng-modules: build as 64-bit kernel module on e6500
From: Chunrong Guo <[email protected]>
*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
--- recipes-kernel/lttng/lttng-modules_2.3.3.bbappend | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 recipes-kernel/lttng/lttng-modules_2.3.3.bbappend
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +21 -0
@@ -0,0 +1,21 @@ +PRINC := "${@int(PRINC) + 1}" + +python () { + ma = d.getVar("DISTRO_FEATURES", True) + arch = d.getVar("OVERRIDES", True) + + # the : after the arch is to skip the message on 64b + if not "multiarch" in ma and "e6500:" in arch: + raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc') + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) +} +
Signature · 1 line
1.7.5.4
[email protected]
AppliedApplied, thanks.
Best Regards,
Zhenhua
Quoted 58 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, December 13, 2013 3:48 PM
To: [email protected]
Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
Subject: [meta-fsl-ppc][PATCH] lttng-modules: build as 64-bit kernel module on e6500From: Chunrong Guo <[email protected]>
*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 2Signed-off-by Chunrong Guo <[email protected]>--- recipes-kernel/lttng/lttng-modules_2.3.3.bbappend | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644recipes-kernel/lttng/lttng-modules_2.3.3.bbappend
recipes- renamed from recipes-kernel/lttng/lttng-modules_2.3.3.bbappend +0
-0
kernel/lttng/lttng-modules_2.3.3.bbappend
new file mode 100644
index 0000000..0452d7crecipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +21
-1@@ -0,0 +1,21 @@ +PRINC := "${@int(PRINC) + 1}" + +python () { + ma = d.getVar("DISTRO_FEATURES", True) + arch = d.getVar("OVERRIDES", True) + + # the : after the arch is to skip the message on 64b + if not "multiarch" in ma and "e6500:" in arch: + raise bb.parse.SkipPackage("Building the kernel for this arch + requires multiarch to be in DISTRO_FEATURES") + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc') + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) } + --1.7.5.4
The commit is reverted due to there is comments for the patch.
Chunrong, please submit a new version according to the comment from Otavio.
Best Regards,
Zhenhua
Quoted 82 lines
-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of [email protected]
Sent: Saturday, December 14, 2013 1:38 PM
To: Guo Chunrong-B40290
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] lttng-modules: build as 64-bit kernel module on e6500Applied, thanks.
Best Regards,
Zhenhua
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, December 13, 2013 3:48 PM
To: [email protected]
Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
Subject: [meta-fsl-ppc][PATCH] lttng-modules: build as 64-bit kernel module on e6500Quoted 6 lines
From: Chunrong Guo <[email protected]>
*e6500 is built with 32b rootfs/64b kernel, build asf as 64bit too. *Fix the below build issue on e6500 core:
| DEBUG: Executing shell functiondo_make_scripts
| make: Entering directory`.../tmp/sysroots/t4240qds/usr/src/kernel'
Quoted 42 lines
| 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 2Signed-off-by Chunrong Guo <[email protected]>--- recipes-kernel/lttng/lttng-modules_2.3.3.bbappend | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644recipes-kernel/lttng/lttng-modules_2.3.3.bbappend
(quoted diff) +0
-0b/recipes-
kernel/lttng/lttng-modules_2.3.3.bbappendnew file mode 100644
index 0000000..0452d7crecipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +21
-1@@ -0,0 +1,21 @@ +PRINC := "${@int(PRINC) + 1}" + +python () { + ma = d.getVar("DISTRO_FEATURES", True) + arch = d.getVar("OVERRIDES", True) + + # the : after the arch is to skip the message on 64b + if not "multiarch" in ma and "e6500:" in arch: + raise bb.parse.SkipPackage("Building the kernel for this arch + requires multiarch to be in DISTRO_FEATURES") + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc') + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) } + --Quoted 2 lines
1.7.5.4
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Quoted 23 lines · On Fri, Dec 13, 2013 at 5:47 AM, <[email protected]> wrote:
From: Chunrong Guo <[email protected]>
*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 2Signed-off-by Chunrong Guo <[email protected]>--- recipes-kernel/lttng/lttng-modules_2.3.3.bbappend | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 recipes-kernel/lttng/lttng-modules_2.3.3.bbappendrecipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +0
-0
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend line 1
Quoted 1 line
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +1
-0@@ -0,0 +1,21 @@ +PRINC := "${@int(PRINC) + 1}"
No PRINC.
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend line 9
Quoted 7 lines
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +7
-0+python () { + ma = d.getVar("DISTRO_FEATURES", True) + arch = d.getVar("OVERRIDES", True) + + # the : after the arch is to skip the message on 64b + if not "multiarch" in ma and "e6500:" in arch: + raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
You can use distro-features-check here.
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend line 15
Quoted 5 lines
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +5
-0+ promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc')
d.appendVar here
Quoted 13 lines
recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file +5
-1+ error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) +} + --1.7.5.4
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750