diff options
| author | Ting Liu <b28495@freescale.com> | 2014-07-10 04:23:50 -0500 |
|---|---|---|
| committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2014-07-11 13:35:10 +0800 |
| commit | b145a013cbbcdc11832d0d9c6a3a71a52d91a5c3 (patch) | |
| tree | 6cedd5529dcbcb9ee52e0d8074a6a43ed2566008 /classes | |
| parent | 6153043bfeefce698a08231a2ed1a52e442574fc (diff) | |
| download | meta-fsl-ppc-b145a013cbbcdc11832d0d9c6a3a71a52d91a5c3.tar.gz | |
qoriq_build_64bit_kernel.bbclass: add for ppce6500
ppce6500 is a specific core which only support 64bit kernel,
introduce qoriq_build_64bit_kernel.bbclass to do this
Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/qoriq_build_64bit_kernel.bbclass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/qoriq_build_64bit_kernel.bbclass b/classes/qoriq_build_64bit_kernel.bbclass new file mode 100644 index 0000000..562afd1 --- /dev/null +++ b/classes/qoriq_build_64bit_kernel.bbclass | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | inherit distro_features_check | ||
| 2 | REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" | ||
| 3 | |||
| 4 | python () { | ||
| 5 | pkgarch = d.getVar("TUNE_PKGARCH", True) | ||
| 6 | if not "ppce6500" == pkgarch: | ||
| 7 | return | ||
| 8 | |||
| 9 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
| 10 | if promote_kernel == "1": | ||
| 11 | d.setVar('KERNEL_CC_append', ' -m64') | ||
| 12 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
| 13 | |||
| 14 | error_qa = d.getVar('ERROR_QA', True) | ||
| 15 | if 'arch' in error_qa: | ||
| 16 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
| 17 | } | ||
| 18 | |||
