summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-qoriq-sdk.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq-sdk.inc')
-rw-r--r--recipes-kernel/linux/linux-qoriq-sdk.inc36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.inc b/recipes-kernel/linux/linux-qoriq-sdk.inc
new file mode 100644
index 0000000..1c66f9b
--- /dev/null
+++ b/recipes-kernel/linux/linux-qoriq-sdk.inc
@@ -0,0 +1,36 @@
1LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
2
3PV = "3.8"
4INC_PR = "r11"
5
6SRCREV = "4b66366af2d77de68f4bd6548d07421e13d3df05"
7SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git \
8 "
9
10KSRC ?= ""
11S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
12# make everything compatible for the time being
13COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
14
15python () {
16 ma = d.getVar("DISTRO_FEATURES", True)
17 arch = d.getVar("OVERRIDES", True)
18
19 # the : after the arch is to skip the message on 64b
20 if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
21 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
22
23 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
24
25 if promote_kernel == "1":
26 d.setVar('KERNEL_CC_append', ' -m64')
27 d.setVar('KERNEL_LD_append', ' -melf64ppc')
28
29 error_qa = d.getVar('ERROR_QA', True)
30 if 'arch' in error_qa:
31 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
32
33 all_qa = d.getVar('ALL_QA', True)
34 if 'arch' in all_qa:
35 d.setVar('ALL_QA', all_qa.replace(' arch', ''))
36}