diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-30 14:01:49 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-02 14:55:54 +0100 |
| commit | d8f87522b6d93c49c87ac90323918353bd75499e (patch) | |
| tree | f387868f2676a116254e3969d0e37c80e50a91e0 | |
| parent | 10075c6fa6ecfc186dd62edfd78eafc2dab32b00 (diff) | |
| download | poky-d8f87522b6d93c49c87ac90323918353bd75499e.tar.gz | |
u-boot: package up u-boot.bin for field upgrades
(From OE-Core rev: 4089a58253f69eff5eb7d97a67f1b61ee08057f4)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-bsp/uboot/u-boot.inc | 11 | ||||
| -rw-r--r-- | meta/recipes-bsp/uboot/u-boot_2011.03.bb | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc index 83dfb6fa86..2be9fc9ebe 100644 --- a/meta/recipes-bsp/uboot/u-boot.inc +++ b/meta/recipes-bsp/uboot/u-boot.inc | |||
| @@ -21,6 +21,7 @@ python () { | |||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | 23 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" |
| 24 | UBOOT_BINARY ?= "u-boot.bin" | ||
| 24 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" | 25 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" |
| 25 | UBOOT_MAKE_TARGET ?= "all" | 26 | UBOOT_MAKE_TARGET ?= "all" |
| 26 | 27 | ||
| @@ -32,6 +33,16 @@ do_compile () { | |||
| 32 | oe_runmake ${UBOOT_MAKE_TARGET} | 33 | oe_runmake ${UBOOT_MAKE_TARGET} |
| 33 | } | 34 | } |
| 34 | 35 | ||
| 36 | do_install () { | ||
| 37 | install -d ${D}/boot | ||
| 38 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 39 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 40 | } | ||
| 41 | |||
| 42 | FILES_${PN} = "/boot" | ||
| 43 | # no gnu_hash in uboot.bin, by design, so skip QA | ||
| 44 | INSANE_SKIP_${PN} = True | ||
| 45 | |||
| 35 | do_deploy () { | 46 | do_deploy () { |
| 36 | install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE} | 47 | install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE} |
| 37 | 48 | ||
diff --git a/meta/recipes-bsp/uboot/u-boot_2011.03.bb b/meta/recipes-bsp/uboot/u-boot_2011.03.bb index 0fbb9ba188..07f0609194 100644 --- a/meta/recipes-bsp/uboot/u-boot_2011.03.bb +++ b/meta/recipes-bsp/uboot/u-boot_2011.03.bb | |||
| @@ -14,7 +14,7 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE | |||
| 14 | 14 | ||
| 15 | SRCREV = "v2011.03" | 15 | SRCREV = "v2011.03" |
| 16 | PV = "v2011.03+git${SRCPV}" | 16 | PV = "v2011.03+git${SRCPV}" |
| 17 | PR="r3" | 17 | PR="r4" |
| 18 | 18 | ||
| 19 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" | 19 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" |
| 20 | 20 | ||
