Skip to content

Commit a06c289

Browse files
committed
firmware-qcom-boot-common: prepare to installing images to a subdir
Add QCOM_BOOT_IMG_SUBDIR variable, which when set to a non-empty value makes firmare-qcom-boot-common install bootloaders into a specified subdiretory. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 90d0aef commit a06c289

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

recipes-bsp/firmware-boot/firmware-qcom-boot-common.inc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
S = "${WORKDIR}/sources"
44
UNPACKDIR = "${S}"
55

6+
QCOM_BOOT_IMG_SUBDIR ?= ""
7+
68
INHIBIT_DEFAULT_DEPS = "1"
79

810
do_configure[noexec] = "1"
@@ -11,14 +13,15 @@ do_compile[noexec] = "1"
1113
inherit deploy
1214

1315
do_deploy() {
16+
install -d ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
1417
find "${UNPACKDIR}/${BOOTBINARIES}" -name 'gpt_*.bin' -delete
15-
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.bin' -exec install -m 0644 {} ${DEPLOYDIR} \;
16-
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.elf' -exec install -m 0644 {} ${DEPLOYDIR} \;
17-
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.fv' -exec install -m 0644 {} ${DEPLOYDIR} \;
18-
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.mbn' -exec install -m 0644 {} ${DEPLOYDIR} \;
19-
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.melf' -exec install -m 0644 {} ${DEPLOYDIR} \;
18+
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.bin' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
19+
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.elf' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
20+
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.fv' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
21+
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.mbn' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
22+
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.melf' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
2023

21-
find "${UNPACKDIR}" -name 'cdt*bin' -exec install -m 0644 {} ${DEPLOYDIR} \;
24+
find "${UNPACKDIR}" -name 'cdt*bin' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;
2225
}
2326
addtask deploy before do_build after do_install
2427

0 commit comments

Comments
 (0)