From 7a2624d5ba0e9d7f8a4b5f120e1e13759373f652 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Thu, 6 Aug 2020 11:53:27 +0100 Subject: Revert "Generalize the naming of the bootfiles deploy directory" This reverts commit a907c3261ef583f898803706cd596d372c6644cb. --- recipes-bsp/bootfiles/bcm2835-bootfiles.bb | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 recipes-bsp/bootfiles/bcm2835-bootfiles.bb (limited to 'recipes-bsp/bootfiles/bcm2835-bootfiles.bb') diff --git a/recipes-bsp/bootfiles/bcm2835-bootfiles.bb b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb new file mode 100644 index 0000000..d20312c --- /dev/null +++ b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "Closed source binary files to help boot the ARM on the BCM2835." +LICENSE = "Broadcom-RPi" + +LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=c403841ff2837657b2ed8e5bb474ac8d" + +inherit deploy nopackages + +include recipes-bsp/common/raspberrypi-firmware.inc + +INHIBIT_DEFAULT_DEPS = "1" + +DEPENDS = "rpi-config" + +COMPATIBLE_MACHINE = "^rpi$" + +S = "${RPIFW_S}/boot" + +PR = "r3" + +do_deploy() { + install -d ${DEPLOYDIR}/${PN} + + for i in ${S}/*.elf ; do + cp $i ${DEPLOYDIR}/${PN} + done + for i in ${S}/*.dat ; do + cp $i ${DEPLOYDIR}/${PN} + done + for i in ${S}/*.bin ; do + cp $i ${DEPLOYDIR}/${PN} + done + + # Add stamp in deploy directory + touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp +} + +do_deploy[depends] += "rpi-config:do_deploy" + +addtask deploy before do_build after do_install +do_deploy[dirs] += "${DEPLOYDIR}/${PN}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + -- cgit v1.2.3-54-g00ecf