diff options
Diffstat (limited to 'classes/qoriq_build_64bit_kernel.bbclass')
-rw-r--r-- | classes/qoriq_build_64bit_kernel.bbclass | 14 |
1 files changed, 14 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..5dd8931 --- /dev/null +++ b/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 | |||