mirror of
git://git.yoctoproject.org/meta-raspberrypi
synced 2026-08-14 06:49:44 +00:00
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>
This commit is contained in:
parent
ccb72fc995
commit
b197758225
@ -18,26 +18,26 @@ S = "${RPIFW_S}/boot"
|
||||
PR = "r3"
|
||||
|
||||
do_deploy() {
|
||||
install -d ${DEPLOYDIR}/${PN}
|
||||
install -d ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
|
||||
|
||||
for i in ${S}/*.elf ; do
|
||||
cp $i ${DEPLOYDIR}/${PN}
|
||||
cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
|
||||
done
|
||||
for i in ${S}/*.dat ; do
|
||||
cp $i ${DEPLOYDIR}/${PN}
|
||||
cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
|
||||
done
|
||||
for i in ${S}/*.bin ; do
|
||||
cp $i ${DEPLOYDIR}/${PN}
|
||||
cp $i ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
|
||||
done
|
||||
|
||||
# Add stamp in deploy directory
|
||||
touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp
|
||||
touch ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/${PN}-${PV}.stamp
|
||||
}
|
||||
|
||||
do_deploy[depends] += "rpi-config:do_deploy rpi-cmdline:do_deploy"
|
||||
|
||||
addtask deploy before do_build after do_install
|
||||
do_deploy[dirs] += "${DEPLOYDIR}/${PN}"
|
||||
do_deploy[dirs] += "${DEPLOYDIR}/${BOOTFILES_DIR_NAME}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user