diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2013-09-18 00:34:18 -0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-18 14:18:08 +0100 |
| commit | 63cd03b80c3eb5b4b88774e44a4ed2cf0905f094 (patch) | |
| tree | 3380eea50f96a827e0d4a68d3da9630971500936 | |
| parent | f1ff3c2fdceda7829ee2393fa60856ab49ef7713 (diff) | |
| download | poky-63cd03b80c3eb5b4b88774e44a4ed2cf0905f094.tar.gz | |
u-boot-fw-utils: Skip package if UBOOT_MACHINE is unset
The UBOOT_MACHINE variable needs to be set so the firmware utils can
know about some configuration settings which are board dependent. This
patch ensures the package is skipped in case UBOOT_MACHINE is unset
thus avoid its build in 'bitbake world' builds for incompatible
machines.
Fixes [YOCTO: #5223]
(From OE-Core rev: d9abcc0a2a691ca60cc1cb2f48f1748b0de73ac8)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb index f97df71a7f..e711951405 100644 --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb | |||
| @@ -17,6 +17,15 @@ S = "${WORKDIR}/git" | |||
| 17 | 17 | ||
| 18 | EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTSTRIP="true"' | 18 | EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTSTRIP="true"' |
| 19 | 19 | ||
| 20 | python () { | ||
| 21 | if not d.getVar("UBOOT_MACHINE", True): | ||
| 22 | PN = d.getVar("PN", True) | ||
| 23 | FILE = os.path.basename(d.getVar("FILE", True)) | ||
| 24 | bb.debug(1, "To build %s, see %s for instructions on \ | ||
| 25 | setting up your machine config" % (PN, FILE)) | ||
| 26 | raise bb.parse.SkipPackage("UBOOT_MACHINE is not set in the %s machine configuration." % d.getVar("MACHINE", True)) | ||
| 27 | } | ||
| 28 | |||
| 20 | do_compile () { | 29 | do_compile () { |
| 21 | oe_runmake ${UBOOT_MACHINE} | 30 | oe_runmake ${UBOOT_MACHINE} |
| 22 | oe_runmake env | 31 | oe_runmake env |
