From 9ff9e027cb9639eb5b5bc5723c60f2dd28b27539 Mon Sep 17 00:00:00 2001 From: Matthew McClintock Date: Tue, 25 Sep 2012 14:23:16 -0500 Subject: u-boot_git.bb: don't try to built 32-bit u-boot on 64-bit machine Signed-off-by: Matthew McClintock --- recipes-kernel/u-boot/u-boot_git.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/u-boot/u-boot_git.bb b/recipes-kernel/u-boot/u-boot_git.bb index d6a5885..aa46bb1 100644 --- a/recipes-kernel/u-boot/u-boot_git.bb +++ b/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}/" -- cgit v1.2.3-54-g00ecf