]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq-sdk.inc: make sure we enabled biarch for our kernel builds
authorMatthew McClintock <msm@freescale.com>
Mon, 17 Sep 2012 20:01:11 +0000 (15:01 -0500)
committerMatthew McClintock <msm@freescale.com>
Mon, 17 Sep 2012 20:01:11 +0000 (15:01 -0500)
Signed-off-by: Matthew McClintock <msm@freescale.com>
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc

index 35ee5e32e52b36fd1552fd1e18d76ee571189c5c..d75ea4d671760f95f9348e46f94cd0bd10170087 100644 (file)
@@ -16,6 +16,12 @@ S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
 COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
 
 python () {
+       ma = d.getVar("DISTRO_FEATURES", True)
+       arch = d.getVar("OVERRIDES", True)
+
+       if not "multiarch" in ma and ("e5500" in arch or "e6500" in arch):
+               raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
+
        promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
 
        if promote_kernel != 0: