33 lines
1.1 KiB
BlitzBasic
33 lines
1.1 KiB
BlitzBasic
require u-boot-nm.inc
|
|
|
|
# Force machine configuration for this recipe
|
|
UBOOT_MACHINE = "am335x_nmhw21_defconfig"
|
|
|
|
# Be aware github/netmodule git
|
|
SRC_URI = "git://git.netmodule.intranet/nmrouter/u-boot;protocol=ssh;user=gitea;branch=2016.05-am335x-netmodule"
|
|
|
|
# Should be updated when a new U-Boot Version is available
|
|
SRCREV ?= "${AUTOREV}"
|
|
PV = "v2016.05+git${SRCPV}"
|
|
|
|
SPL_BINARY = "MLO"
|
|
UBOOT_SUFFIX = "img"
|
|
|
|
do_deploy_append() {
|
|
rm -f ${DEPLOYDIR}/*${PN}.xmodem.bin
|
|
rm -f ${DEPLOYDIR}/*${PN}.${UBOOT_SUFFIX}
|
|
cp ${S}/spl/u-boot-spl.bin ${DEPLOYDIR}/spl-${PN}.xmodem.bin
|
|
cp ${S}/u-boot.bin ${DEPLOYDIR}/${PN}.xmodem.bin
|
|
cp ${S}/u-boot.img ${DEPLOYDIR}/${PN}.${UBOOT_SUFFIX}
|
|
cp ${S}/MLO ${DEPLOYDIR}/spl-${PN}.${UBOOT_SUFFIX}
|
|
}
|
|
|
|
# nmhw21 and hw26 using same u-boot sources so let's create symlinks for hw26 when building nmhw21
|
|
PN_E = "u-boot-${MACHINE}"
|
|
do_deploy_append_am335x-hw26() {
|
|
cp ${S}/spl/u-boot-spl.bin ${DEPLOYDIR}/spl-${PN_E}.xmodem.bin
|
|
cp ${S}/u-boot.bin ${DEPLOYDIR}/${PN_E}.xmodem.bin
|
|
cp ${S}/u-boot.img ${DEPLOYDIR}/${PN_E}.${UBOOT_SUFFIX}
|
|
cp ${S}/MLO ${DEPLOYDIR}/spl-${PN_E}.${UBOOT_SUFFIX}
|
|
}
|