diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2013-09-19 17:48:38 -0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-22 12:19:42 +0100 |
| commit | 14c6a82c847b242bdb66201e171bd7780ef88da0 (patch) | |
| tree | 89426da67b80593906d04abf77c10e12267f3683 | |
| parent | 19174b07962b6ed8d266badbfa2774abdd9d61d6 (diff) | |
| download | poky-14c6a82c847b242bdb66201e171bd7780ef88da0.tar.gz | |
u-boot, u-boot-fw-utils, u-boot-fw-utils-cross: Use uboot-config class
The U-Boot configuration has been consolidates into a single class to
avoid code duplication. This is now done by uboot-config class, so we
now use it.
(From OE-Core rev: d0bc7a53b1e61283fb155b4dcb67bc2ab3b1d7f0)
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-cross_2013.07.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-bsp/u-boot/u-boot-fw-utils_2013.07.bb | 9 | ||||
| -rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 11 |
3 files changed, 3 insertions, 19 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2013.07.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2013.07.bb index 7f649caac3..4b7fd24056 100644 --- a/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2013.07.bb +++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2013.07.bb | |||
| @@ -15,7 +15,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" | |||
| 15 | 15 | ||
| 16 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 17 | 17 | ||
| 18 | inherit cross | 18 | inherit uboot-config cross |
| 19 | 19 | ||
| 20 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' | 20 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' |
| 21 | 21 | ||
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 e711951405..be543431b3 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,14 +17,7 @@ S = "${WORKDIR}/git" | |||
| 17 | 17 | ||
| 18 | EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTSTRIP="true"' | 18 | EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTSTRIP="true"' |
| 19 | 19 | ||
| 20 | python () { | 20 | inherit uboot-config |
| 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 | 21 | ||
| 29 | do_compile () { | 22 | do_compile () { |
| 30 | oe_runmake ${UBOOT_MACHINE} | 23 | oe_runmake ${UBOOT_MACHINE} |
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 6ec63df0e3..10a3cf82b4 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
| @@ -3,19 +3,10 @@ HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome" | |||
| 3 | SECTION = "bootloaders" | 3 | SECTION = "bootloaders" |
| 4 | PROVIDES = "virtual/bootloader" | 4 | PROVIDES = "virtual/bootloader" |
| 5 | 5 | ||
| 6 | inherit deploy | 6 | inherit uboot-config deploy |
| 7 | 7 | ||
| 8 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' | 8 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' |
| 9 | 9 | ||
| 10 | python () { | ||
| 11 | if not d.getVar("UBOOT_MACHINE", True): | ||
| 12 | PN = d.getVar("PN", True) | ||
| 13 | FILE = os.path.basename(d.getVar("FILE", True)) | ||
| 14 | bb.debug(1, "To build %s, see %s for instructions on \ | ||
| 15 | setting up your machine config" % (PN, FILE)) | ||
| 16 | raise bb.parse.SkipPackage("UBOOT_MACHINE is not set in the %s machine configuration." % d.getVar("MACHINE", True)) | ||
| 17 | } | ||
| 18 | |||
| 19 | # Allow setting an additional version string that will be picked up by the | 10 | # Allow setting an additional version string that will be picked up by the |
| 20 | # u-boot build system and appended to the u-boot version. If the .scmversion | 11 | # u-boot build system and appended to the u-boot version. If the .scmversion |
| 21 | # file already exists it will not be overwritten. | 12 | # file already exists it will not be overwritten. |
