summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2020-11-25 15:28:37 +0000
committerAndrei Gherzan <andrei@gherzan.com>2021-03-16 22:25:08 +0000
commitb1977582252f64e764a5ad91872493ba7ce868bf (patch)
tree32204c6f2ed7e90ea67df04201359ba1d4b6f02c
parentccb72fc99544c218ff573a466af4910866dcfa66 (diff)
downloadmeta-raspberrypi-b1977582252f64e764a5ad91872493ba7ce868bf.tar.gz
bootfiles: Use BOOTFILES_DIR_NAME variable
This variable is set in rpi-base.inc and referenced by other recipes which need to know the location of the bootfiles. If this is overridden for any reason we need to ensure that the bootfiles recipe deploys to the correct path. Signed-off-by: Paul Barker <pbarker@konsulko.com> (cherry picked from commit b8440b3d26fc0b59acd48ed6f3e39e00cd867f6c) Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
-rw-r--r--recipes-bsp/bootfiles/bootfiles.bb12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes-bsp/bootfiles/bootfiles.bb b/recipes-bsp/bootfiles/bootfiles.bb
index d081806..f1248ee 100644
--- a/recipes-bsp/bootfiles/bootfiles.bb
+++ b/recipes-bsp/bootfiles/bootfiles.bb
@@ -18,26 +18,26 @@ S = "${RPIFW_S}/boot"
18PR = "r3" 18PR = "r3"
19 19
20do_deploy() { 20do_deploy() {
21 install -d ${DEPLOYDIR}/${PN} 21 install -d ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
22 22
23 for i in ${S}/*.elf ; do 23 for i in ${S}/*.elf ; do
24 cp $i ${DEPLOYDIR}/${PN} 24 cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
25 done 25 done
26 for i in ${S}/*.dat ; do 26 for i in ${S}/*.dat ; do
27 cp $i ${DEPLOYDIR}/${PN} 27 cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
28 done 28 done
29 for i in ${S}/*.bin ; do 29 for i in ${S}/*.bin ; do
30 cp $i ${DEPLOYDIR}/${PN} 30 cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
31 done 31 done
32 32
33 # Add stamp in deploy directory 33 # Add stamp in deploy directory
34 touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp 34 touch ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/${PN}-${PV}.stamp
35} 35}
36 36
37do_deploy[depends] += "rpi-config:do_deploy rpi-cmdline:do_deploy" 37do_deploy[depends] += "rpi-config:do_deploy rpi-cmdline:do_deploy"
38 38
39addtask deploy before do_build after do_install 39addtask deploy before do_build after do_install
40do_deploy[dirs] += "${DEPLOYDIR}/${PN}" 40do_deploy[dirs] += "${DEPLOYDIR}/${BOOTFILES_DIR_NAME}"
41 41
42PACKAGE_ARCH = "${MACHINE_ARCH}" 42PACKAGE_ARCH = "${MACHINE_ARCH}"
43 43