diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2020-10-14 19:50:31 -0500 |
---|---|---|
committer | Aníbal Limón <anibal.limon@linaro.org> | 2020-10-14 19:50:31 -0500 |
commit | 67f8215676b1995c4fb504dc1c42a52695e9eea5 (patch) | |
tree | 69ddee53476dccea42be6756362c08d68abb66d1 /lt-qcom-linux-test | |
parent | 964f8700662fad28503d3e0f6ddc89ecdb357d6d (diff) |
lt-qcom-linux-test/builders.sh: Extract all firmware at once using dpkg-deb
Some firmware files has symlinks between and need to be copied/resolved
as hard files due to current limitation on e2ln.
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Change-Id: I681fd0ef61614ee02692997d4b6741dfdd7790c2
Diffstat (limited to 'lt-qcom-linux-test')
-rwxr-xr-x | lt-qcom-linux-test/builders.sh | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/lt-qcom-linux-test/builders.sh b/lt-qcom-linux-test/builders.sh index 0ea4bdf7e6..2115a41049 100755 --- a/lt-qcom-linux-test/builders.sh +++ b/lt-qcom-linux-test/builders.sh @@ -345,13 +345,24 @@ if [[ ! -z "$modules_file" ]]; then copy_archive_to_rootfs "$modules_file" "$modules_file_type" "$rootfs_desktop_file" "$rootfs_desktop_file_type" fi if [[ ! -z "${firmware_file}" ]]; then + firmware_tmp_dir="firmware_tmp" + firmware_tmp_file="firmware_tmp.tar.gz" + + mkdir -p $firmware_tmp_dir for firmware in ${firmware_file}; do - ffile_type=$(file $firmware) - copy_archive_to_rootfs "$firmware" "$ffile_type" "$ramdisk_file" "$ramdisk_file_type" - remove_unused_firmware "$ramdisk_file" "$ramdisk_file_type" - copy_archive_to_rootfs "$firmware" "$ffile_type" "$rootfs_file" "$rootfs_file_type" - copy_archive_to_rootfs "$firmware" "$ffile_type" "$rootfs_desktop_file" "$rootfs_desktop_file_type" + dpkg-deb -x $firmware $firmware_tmp_dir done + cd $firmware_tmp_dir + tar -czpf ../$firmware_tmp_file * + cd ../ + + ffile_type=$(file $firmware_tmp_file) + copy_archive_to_rootfs "$firmware_tmp_file" "$ffile_type" "$ramdisk_file" "$ramdisk_file_type" + remove_unused_firmware "$ramdisk_file" "$ramdisk_file_type" + copy_archive_to_rootfs "$firmware_tmp_file" "$ffile_type" "$rootfs_file" "$rootfs_file_type" + copy_archive_to_rootfs "$firmware_tmp_file" "$ffile_type" "$rootfs_desktop_file" "$rootfs_desktop_file_type" + + rm -rf $firmware_tmp_dir $firmware_tmp_file fi # If rootfs was Android sparse image trasform from ext4 |