aboutsummaryrefslogtreecommitdiffstats
path: root/classes/qoriq_build_64bit_kernel.bbclass
blob: 5dd8931fa4c72bd010fc6293e25524e346d2d8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
inherit distro_features_check
REQUIRED_DISTRO_FEATURES_e6500 += "multiarch"

python () {
    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', ''))
}