diff options
Diffstat (limited to 'meta-fsl-ppc/classes')
| -rw-r--r-- | meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass new file mode 100644 index 000000000..5dd8931fa --- /dev/null +++ b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | inherit distro_features_check | ||
| 2 | REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" | ||
| 3 | |||
| 4 | python () { | ||
| 5 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
| 6 | if promote_kernel == "1": | ||
| 7 | d.setVar('KERNEL_CC_append', ' -m64') | ||
| 8 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
| 9 | |||
| 10 | error_qa = d.getVar('ERROR_QA', True) | ||
| 11 | if 'arch' in error_qa: | ||
| 12 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
| 13 | } | ||
| 14 | |||
