]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot: state the MACHINE when skipping u-boot
authorRoss Burton <ross.burton@intel.com>
Thu, 1 Aug 2013 10:07:36 +0000 (11:07 +0100)
committerSaul Wold <sgw@linux.intel.com>
Fri, 2 Aug 2013 15:01:40 +0000 (08:01 -0700)
If the user accidently tries building u-boot on a machine doesn't use u-boot
(such as qemuarm) the error message doesn't make it clear why u-boot was
skipped.  To help, state the machine that was being built for again.

[ YOCTO #4945 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-bsp/u-boot/u-boot.inc

index 6bbe457dfa4bdf4c396e53c45b9c91264a260c85..6ec63df0e31991d87c4e9165fedf1ca55630bcd9 100644 (file)
@@ -13,7 +13,7 @@ python () {
                FILE = os.path.basename(d.getVar("FILE", True))
                bb.debug(1, "To build %s, see %s for instructions on \
                             setting up your machine config" % (PN, FILE))
-               raise bb.parse.SkipPackage("because UBOOT_MACHINE is not set")
+               raise bb.parse.SkipPackage("UBOOT_MACHINE is not set in the %s machine configuration." % d.getVar("MACHINE", True))
 }
 
 # Allow setting an additional version string that will be picked up by the