feat: 添加收集烧录文件功能

This commit is contained in:
Alvin Young 2025-03-18 08:12:36 +00:00
parent 7dbadc447d
commit dec20b0c7a
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ build/
*.d
*.log
/components
/flash_files

18
collect_files.sh Normal file
View File

@ -0,0 +1,18 @@
#! /bin/bash
# this file to collect the build files into a dir
OUT_DIR=./flash_files
NOTE_FILE=./flash_files/note.txt
mkdir -p $OUT_DIR
cp ./build/ESP32_Bare_Board.bin $OUT_DIR
cp ./build/partition_table/partition-table.bin $OUT_DIR
cp ./build/bootloader/bootloader.bin $OUT_DIR
echo "partation" > $NOTE_FILE
echo "0x1000 bootloader.bin" >> $NOTE_FILE
echo "0x8000 partition-table.bin" >> $NOTE_FILE
echo "0x10000 ESP32_Bare_Board.bin " >> $NOTE_FILE