diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2022-09-30 13:30:12 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2022-09-30 13:30:12 +0200 |
commit | b4ac031161428d74dca496b5e61c08d9bf169063 (patch) | |
tree | 33c42e456924ab15abcb4bfd12a8e7b1cb1b13e3 /lt-qcom-debian-images/builders-fai.sh | |
parent | 2cd767e5b9c06d737c87a54b4e8bd4de1a436720 (diff) |
lt-qcom-debian-images/builders-fai: improvement management of DTB files
The generic FAI image exports by default all DTB files in out/dtbs. At
the end of the job, the content of 'out' is published. We should
removed the dtbs folder before publishing, and since we want to keep a
copy of the DTB files used, we put them in 'out' folder.
Change-Id: Ieda55c286dfadb8cdcdcb0f2ddfe5610da4e801e
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images/builders-fai.sh')
-rw-r--r-- | lt-qcom-debian-images/builders-fai.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lt-qcom-debian-images/builders-fai.sh b/lt-qcom-debian-images/builders-fai.sh index 0a95311a9d..9bfe9f018d 100644 --- a/lt-qcom-debian-images/builders-fai.sh +++ b/lt-qcom-debian-images/builders-fai.sh @@ -204,7 +204,8 @@ for dtb in ${DTBS}; do BOOTIMG=boot-${VENDOR}-${OS_FLAVOUR}-${PLATFORM_NAME}-${dtb_name}-${BUILD_NUMBER}.img - cat out/vmlinuz-* out/dtbs/${dtb} > Image.gz+dtb + cp out/dtbs/${dtb} out/${dtb_name} + cat out/vmlinuz-* out/${dtb_name} > Image.gz+dtb mkbootimg \ --kernel Image.gz+dtb \ --ramdisk out/initrd.img-* \ @@ -218,3 +219,6 @@ for dtb in ${DTBS}; do pigz -9 out/${BOOTIMG} done + +# delete all unused DTB files +sudo rm -rf out/dtbs/ |