nrhw20: u-boot: add recipe for u-boot build

This commit is contained in:
Stefan Eichenberger 2018-01-09 16:12:36 +01:00
parent b50a93dd05
commit c4391adffb
2 changed files with 29 additions and 0 deletions

View File

@ -3,8 +3,10 @@ UBOOT_MACHINE = "am335x_nbhw16_defconfig"
require u-boot-nm.inc require u-boot-nm.inc
# Be aware github/netmodule git
SRC_URI = "git://github.com/netmodule/u-boot.git;protocol=https;branch=nbhw16-2016.04" SRC_URI = "git://github.com/netmodule/u-boot.git;protocol=https;branch=nbhw16-2016.04"
# Should be updated when a new U-Boot Version is available
SRCREV ?= "a6f157c6dbd048b452c7e2640215c55be658780c" SRCREV ?= "a6f157c6dbd048b452c7e2640215c55be658780c"
PV = "v2016.04+git${SRCPV}" PV = "v2016.04+git${SRCPV}"

View File

@ -0,0 +1,27 @@
require u-boot-nm.inc
# Force machine configuration for this recipe
UBOOT_MACHINE = "am335x_nrhw20_defconfig"
# Be aware github/netmodule git
SRC_URI = "git://github.com/netmodule/u-boot.git;protocol=https;branch=nrhw20-2016.04"
# Should be updated when a new U-Boot Version is available
SRCREV ?= "297c60c69942e7d377925181b29a1f8e9515284d"
PV = "v2016.04+git${SRCPV}"
SPL_BINARY = "MLO"
UBOOT_SUFFIX = "img"
do_deploy_append() {
rm -f ${DEPLOYDIR}/${PN}-spl.bin
rm -f ${DEPLOYDIR}/${PN}.bin
rm -f ${DEPLOYDIR}/${PN}.img
rm -f ${DEPLOYDIR}/MLO-${PN}
cp ${S}/spl/u-boot-spl.bin ${DEPLOYDIR}/${PN}-spl.bin
cp ${S}/u-boot.bin ${DEPLOYDIR}/${PN}.bin
cp ${S}/u-boot.img ${DEPLOYDIR}/${PN}.img
cp ${S}/MLO ${DEPLOYDIR}/MLO-${PN}
}