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 }