diff options
-rw-r--r-- | meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass index 5dd8931f..f145746b 100644 --- a/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass +++ b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass | |||
@@ -4,11 +4,15 @@ REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" | |||
4 | python () { | 4 | python () { |
5 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | 5 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') |
6 | if promote_kernel == "1": | 6 | if promote_kernel == "1": |
7 | d.setVar('KERNEL_CC_append', ' -m64') | 7 | sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR') + 'mllib64-' + d.getVar('HOST_OS') |
8 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | 8 | tc_options = d.getVar('TOOLCHAIN_OPTIONS') + '/../lib64-' + d.getVar("MACHINE") |
9 | d.setVar('DEPENDS_append', ' lib64-gcc-cross-powerpc64 lib64-libgcc') | ||
10 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib) | ||
11 | d.setVar('KERNEL_CC', d.getVar('CCACHE') + sys_multilib + '-' + 'gcc' + d.getVar('HOST_CC_KERNEL_ARCH') + tc_options) | ||
12 | d.setVar('KERNEL_LD', d.getVar('CCACHE') + sys_multilib + '-' + 'ld.bfd' + d.getVar('HOST_LD_KERNEL_ARCH') + tc_options) | ||
13 | d.setVar('KERNEL_AR', d.getVar('CCACHE') + sys_multilib + '-' + 'ar' + d.getVar('HOST_AR_KERNEL_ARCH')) | ||
9 | 14 | ||
10 | error_qa = d.getVar('ERROR_QA', True) | 15 | error_qa = d.getVar('ERROR_QA', True) |
11 | if 'arch' in error_qa: | 16 | if 'arch' in error_qa: |
12 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | 17 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) |
13 | } | 18 | } |
14 | |||