From 6e7e1b7172813fc4ecb60597f903dd21a4616159 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 19 Dec 2017 11:16:28 +0100 Subject: update yocto-advanced: sync to devel/manut/yocto The devel/manut/yocto heavily diverted from master. Sync with latest version 8cd4956a9b48a316eab6dc6d1b1f6cd51362fecf. Signed-off-by: John Ogness --- .../recipes-bsp/u-boot/u-boot_%.bbappend | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/u-boot/u-boot_%.bbappend (limited to 'distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/u-boot/u-boot_%.bbappend') diff --git a/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/u-boot/u-boot_%.bbappend b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/u-boot/u-boot_%.bbappend new file mode 100644 index 0000000..64bd6c5 --- /dev/null +++ b/distribution/yocto-advanced/meta-schulung-extended/recipes-bsp/u-boot/u-boot_%.bbappend @@ -0,0 +1,34 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://defconfig" + +# only alter the default bootcmd if we build for the vexpress machine +SRC_URI_append_vexpress = " file://0001-setup-bootcmd-for-tftp.patch" +# take care +# SRC_URI_vexpress += "file://0001-setup-bootcmd-for-tftp.patch" +# is NOT the same. The result is that the old content of SRC_URI is lost!! + +do_configure_prepend () { + cp ${WORKDIR}/defconfig ${S}/.config + cd ${S}; oe_runmake oldconfig +} + +do_compile () { + export HOST_EXTRACFLAGS="${BUILD_CFLAGS}" + export HOST_EXTRACXXFLAGS="${BUILD_CXXFLAGS}" + export HOSTLDFLAGS="${BUILD_LDFLAGS}" + cd ${S}; oe_runmake u-boot-nodtb.bin + # instead of hardcoding the dtb it would be nicer to use the varialbe + # specified in vexpress.conf: UBOOT_MACHINE = "u-boot-nodtb" + # cd ${S}; oe_runmake ${UBOOT_MACHINE}.bin +} + +do_install () { + cd ${S}; install -D -m 0644 u-boot.cfg ${D}${datadir}/u-boot/u-boot.cfg +} + +FILES_${PN}-dev_append = " ${datadir}/u-boot/u-boot.cfg" + +do_deploy () { + cd ${S}; install -D -m 0644 u-boot-nodtb.bin ${DEPLOYDIR}/u-boot-nodtb.bin +} -- cgit v1.2.3