diff options
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-rpi_git.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-rpi_git.bb b/recipes-bsp/u-boot/u-boot-rpi_git.bb new file mode 100644 index 0000000..db5ea84 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-rpi_git.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 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_DIR_NATIVE}/usr/lib/rpi-mkimage/imagetool-uncompressed.py u-boot.bin | ||
| 28 | mv kernel.img u-boot.img | ||
| 29 | } | ||
