summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYashpal Dutta <yashpal.dutta@freescale.com>2012-11-29 20:09:03 +0000
committerMatthew McClintock <msm@freescale.com>2013-01-30 16:57:46 -0600
commit684c64d01aa8b97d827cfa048fa7c9d0b4412b96 (patch)
tree4219d1eeea536c9e984fdbc99bc82afbee91a78e
parente8ebd74aff666087694bef96cbb68afcb2bace59 (diff)
downloadmeta-fsl-ppc-684c64d01aa8b97d827cfa048fa7c9d0b4412b96.tar.gz
cryptodev: skip arch QA since kernel might not match for 64-bit kernels on 32-bit rfs
Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com>
-rw-r--r--recipes-kernel/cryptodev/cryptodev_1.5.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb
index 0696e2a..636bb54 100644
--- a/recipes-kernel/cryptodev/cryptodev_1.5.bb
+++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb
@@ -15,3 +15,21 @@ SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \
15EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' 15EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
16 16
17S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
18python () {
19 ma = d.getVar("DISTRO_FEATURES", True)
20 arch = d.getVar("OVERRIDES", True)
21
22 # the : after the arch is to skip the message on 64b
23 if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
24 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
25
26 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
27
28 if promote_kernel == "1":
29 d.setVar('KERNEL_CC_append', ' -m64')
30 d.setVar('KERNEL_LD_append', ' -melf64ppc')
31
32 error_qa = d.getVar('ERROR_QA', True)
33 if 'arch' in error_qa:
34 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
35}