fix build.sh bug
authorBigfootACA <bigfoot@classfun.cn>
星期天, 11 Oct 2020 01:14:43 +0000 (09:14 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期五, 2 Jul 2021 08:29:18 +0000 (16:29 +0800)
build.sh

index f04f403047e31fc7254c097e3c313cb68cfd500e..9af4472486518c86151b6af94ee8d30fe475059e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -70,7 +70,7 @@ rm -f "boot_${DEVICE}.img" uefi_img
 # not actually GCC5, it's GCC7 on Ubuntu 18.04.
 GCC5_AARCH64_PREFIX=aarch64-linux-gnu- build -s -n 0 -a AARCH64 -t GCC5 -p "sdm845Pkg/${DEVICE}.dsc"
 gzip -c < workspace/Build/sdm845Pkg/DEBUG_GCC5/FV/SDM845PKG_UEFI.fd > "uefi-${DEVICE}.img"
-cat "uefi-${DEVICE}.img" "device_specific/${DEVICE}.dtb" >> "uefi-${DEVICE}.img-dtb"
+cat "uefi-${DEVICE}.img" "device_specific/${DEVICE}.dtb" > "uefi-${DEVICE}.img-dtb"
 echo > ramdisk
 abootimg --create "boot-${DEVICE}.img" -k "uefi-${DEVICE}.img-dtb" -r ramdisk
 echo "Build done: boot-${DEVICE}.img"