From 3214c7e4c7e62d72c441d94c5b1d2a787000e1af Mon Sep 17 00:00:00 2001 From: Matthew McClintock Date: Tue, 25 Sep 2012 14:23:16 -0500 Subject: [PATCH] u-boot_git.bb: don't try to built 32-bit u-boot on 64-bit machine Signed-off-by: Matthew McClintock --- meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb b/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb index d6a5885f..aa46bb1e 100644 --- a/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb +++ b/meta-fsl-ppc/recipes-kernel/u-boot/u-boot_git.bb @@ -5,7 +5,7 @@ PROVIDES = "virtual/bootloader" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" -PR = "r24" +PR = "r25" INHIBIT_DEFAULT_DEPS = "1" DEPENDS = "boot-format-native virtual/${TARGET_PREFIX}gcc libgcc" @@ -14,6 +14,13 @@ inherit deploy SRCREV = "6d1aef1c02ba9472215234696faa8ce8745a40a9" SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git \ " +python () { + ml = d.getVar("MULTILIB_VARIANTS", True) + arch = d.getVar("OVERRIDES", True) + + if ("e5500-64b:" in arch or "e6500-64b:" in arch) and not "lib32" in ml: + raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") +} DEPENDS_append_e5500-64b = " lib32-gcc-cross lib32-libgcc" PATH_append_e5500-64b = ":${STAGING_BINDIR_NATIVE}/${DEFAULTTUNE_virtclass-multilib-lib32}${TARGET_VENDOR_virtclass-multilib-lib32}-${HOST_OS}/" -- 2.40.1