diff options
author | Paul Barker <pbarker@konsulko.com> | 2020-11-25 15:28:37 +0000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-11-27 14:29:55 +0000 |
commit | b8440b3d26fc0b59acd48ed6f3e39e00cd867f6c (patch) | |
tree | bec354920622e16bba2203c8edd2d86032a045fe | |
parent | 8827040d9c218f68ae3ee6a5814929888ed61581 (diff) | |
download | meta-raspberrypi-b8440b3d26fc0b59acd48ed6f3e39e00cd867f6c.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>
-rw-r--r-- | recipes-bsp/bootfiles/bootfiles.bb | 12 |
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" | |||
18 | PR = "r3" | 18 | PR = "r3" |
19 | 19 | ||
20 | do_deploy() { | 20 | do_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 | ||
37 | do_deploy[depends] += "rpi-config:do_deploy rpi-cmdline:do_deploy" | 37 | do_deploy[depends] += "rpi-config:do_deploy rpi-cmdline:do_deploy" |
38 | 38 | ||
39 | addtask deploy before do_build after do_install | 39 | addtask deploy before do_build after do_install |
40 | do_deploy[dirs] += "${DEPLOYDIR}/${PN}" | 40 | do_deploy[dirs] += "${DEPLOYDIR}/${BOOTFILES_DIR_NAME}" |
41 | 41 | ||
42 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
43 | 43 | ||