diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-07-23 16:02:25 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-07-28 23:26:59 -0300 |
commit | 6a868a671472d454b407a165fc31c5f7dfe783c6 (patch) | |
tree | 7bd2ab13a04d14215264cc992501970cacfb20ef /classes | |
parent | 62e212fe4812a6c726df4ac8e77d4a77e0e54247 (diff) | |
download | meta-freescale-6a868a671472d454b407a165fc31c5f7dfe783c6.tar.gz |
Move meta-fsl-ppc content to layer root
This commit is just a rename of all contents of meta-fsl-ppc
subdirectory to this layer's root, merging the contents of common
files, subsequent changes are based on top of that.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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 00000000..f145746b --- /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 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
6 | if promote_kernel == "1": | ||
7 | sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR') + 'mllib64-' + d.getVar('HOST_OS') | ||
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')) | ||
14 | |||
15 | error_qa = d.getVar('ERROR_QA', True) | ||
16 | if 'arch' in error_qa: | ||
17 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
18 | } | ||