[Arm64-baikalm] [PATCH] tools: build-boot-img: support building firmware only

Alexey Sheplyakov asheplyakov на basealt.ru
Вт Июл 19 16:26:54 MSK 2022


./tools/build-boot-img.sh $board -F

Compiles ARM-TF, UEFI, and prepares an image suitable for flashing
into the board.

---
 tools/build-boot-img.sh | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/tools/build-boot-img.sh b/tools/build-boot-img.sh
index b3b60d59a..f00215f2f 100755
--- a/tools/build-boot-img.sh
+++ b/tools/build-boot-img.sh
@@ -55,6 +55,8 @@ Options:
                              --initrd --vdec --uefi --tfa --bootrom
   -ad, --all-debug         like --clean --defconfig --dtb --kernel --modules
                              --initrd --vdec --uefi-debug --tfa-debug --bootrom
+  -F,  --firmware          build firmware image suitable for flashing into the board
+  -Fd, --firmware-debug    like --firmware, but with more debugging messages enabled
   -c,  --clean             clean previous builds (kernel, UEFI, TF-A)
   -d,  --defconfig         make kernel .config from ${DEFCONFIG}
   -f,  --dtb               build flattened device tree (FDT) blobs (DTB)
@@ -256,6 +258,24 @@ do
     'x-e'|'x--empties')
       BUILD_EMPTIES=1
       ;;
+    'x-F'|'x--firmware')
+      MAKE_CLEAN=1
+      KERNEL_DEFCONFIG=1
+      BUILD_DTB=1
+      BUILD_UEFI=1
+      BUILD_UEFI_RELEASE=1
+      BUILD_TFA=1
+      BUILD_TFA_RELEASE=1
+      BUILD_BOOTROM=1
+      ;;
+    'x-Fd'|'x--firmware-debug')
+      MAKE_CLEAN=1
+      KERNEL_DEFCONFIG=1
+      BUILD_DTB=1
+      BUILD_UEFI=1
+      BUILD_TFA=1
+      BUILD_BOOTROM=1
+      ;;
     'x-a'|'x--all')
       MAKE_CLEAN=1
       KERNEL_DEFCONFIG=1
@@ -316,6 +336,8 @@ do
   esac
 done
 
+echo "BUILD_UEFI=${BUILD_UEFI}"
+
 #-------------------------------------------------------------------------------
 # Start build
 #-------------------------------------------------------------------------------
-- 
2.32.0



Подробная информация о списке рассылки Arm64-baikalm