diff options
| author | Paul Barker <paul@paulbarker.me.uk> | 2016-06-18 12:07:04 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-07-08 12:17:41 +0100 |
| commit | d49bd07c5b54defc7cec5829d287a2bd82ae9afe (patch) | |
| tree | ef75c6e8dd649ddf6bbbf75b4af379e6427d0bf8 /recipes-bsp/u-boot | |
| parent | b34b4fe8fcbd1a1ff74c01af5abc8ca4d3c841d9 (diff) | |
| download | meta-raspberrypi-d49bd07c5b54defc7cec5829d287a2bd82ae9afe.tar.gz | |
u-boot: Use mainline u-boot recipe from oe-core
The repository used by u-boot-rpi has not been updated since 2012. In the
meantime, mailine u-boot has gained Raspberry Pi support. All we need to do is
set UBOOT_MACHINE to an appropriate value in the machine config files.
Currently configs are only provided for raspberrypi and raspberrypi2. The master
branch of u-boot now also appears to have a config file for raspberrypi3 so
support for this can be added in the future when u-boot is upgraded in oe-core.
The mainline u-boot recipe creates the file "u-boot.bin" instead of
"u-boot.img".
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Diffstat (limited to 'recipes-bsp/u-boot')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-rpi_git.bb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/recipes-bsp/u-boot/u-boot-rpi_git.bb b/recipes-bsp/u-boot/u-boot-rpi_git.bb deleted file mode 100644 index 3e8d377..0000000 --- a/recipes-bsp/u-boot/u-boot-rpi_git.bb +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | DESCRIPTION = "U-Boot port for RaspberryPi" | ||
| 2 | |||
| 3 | require recipes-bsp/u-boot/u-boot.inc | ||
| 4 | |||
| 5 | DEPENDS += "rpi-mkimage-native" | ||
| 6 | |||
| 7 | PROVIDES += "u-boot" | ||
| 8 | |||
| 9 | LICENSE = "GPLv2+" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" | ||
| 11 | |||
| 12 | SRCREV = "6709570cdc947c2a546f96d571551acf4474778c" | ||
| 13 | SRC_URI = "git://github.com/gonzoua/u-boot-pi.git;branch=rpi" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | |||
| 17 | UBOOT_MACHINE = "rpi_b" | ||
| 18 | UBOOT_MAKE_TARGET = "u-boot.bin" | ||
| 19 | UBOOT_SUFFIX = "img" | ||
| 20 | |||
| 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 22 | |||
| 23 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 24 | |||
| 25 | do_compile_append() { | ||
| 26 | # Create kernel.img from uboot.bin and name it u-boot.img | ||
| 27 | ${STAGING_BINDIR_NATIVE}/imagetool-uncompressed.py u-boot.bin | ||
| 28 | mv kernel.img u-boot.img | ||
| 29 | } | ||
