diff options
Diffstat (limited to 'recipes-kernel/qoriq-debug')
-rw-r--r-- | recipes-kernel/qoriq-debug/qoriq-debug_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-kernel/qoriq-debug/qoriq-debug_git.bb b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb new file mode 100644 index 0000000..5b0256f --- /dev/null +++ b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "QorIQ Debug File System Module" | ||
2 | SECTION = "qoriq-debug" | ||
3 | LICENSE = "GPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e29234dd5d40dc352cc60cc0c93437ba" | ||
5 | |||
6 | inherit module autotools | ||
7 | |||
8 | SRCBRANCH = "sdk-v1.4.x" | ||
9 | SRC_URI = "git://git.freescale.com/ppc/sdk/qoriq-debug.git;branch=${SRCBRANCH}" | ||
10 | SRCREV = "08de2902af9a79ba9e436a284b8d7754b351f608" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}" | ||
15 | EXTRA_OEMAKE += 'SYSROOT="${D}"' | ||
16 | |||
17 | python () { | ||
18 | ma = d.getVar("DISTRO_FEATURES", True) | ||
19 | arch = d.getVar("OVERRIDES", True) | ||
20 | |||
21 | # the : after the arch is to skip the message on 64b | ||
22 | if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): | ||
23 | raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") | ||
24 | |||
25 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL') | ||
26 | |||
27 | if promote_kernel == "1": | ||
28 | d.setVar('KERNEL_CC_append', ' -m64') | ||
29 | d.setVar('KERNEL_LD_append', ' -melf64ppc') | ||
30 | |||
31 | error_qa = d.getVar('ERROR_QA', True) | ||
32 | if 'arch' in error_qa: | ||
33 | d.setVar('ERROR_QA', error_qa.replace(' arch', '')) | ||
34 | } | ||
35 | |||