From b8440b3d26fc0b59acd48ed6f3e39e00cd867f6c Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Wed, 25 Nov 2020 15:28:37 +0000 Subject: [PATCH] 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 --- recipes-bsp/bootfiles/bootfiles.bb | 12 ++++++------ 1 file 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" 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}"