24 lines
580 B
Bash
24 lines
580 B
Bash
#! /bin/bash
|
|
|
|
# this file to collect the build files into a dir
|
|
|
|
OUT_DIR=./flash_files
|
|
NOTE_FILE=./flash_files/note.txt
|
|
TARGET_TAR=flash_files.tar
|
|
mkdir -p $OUT_DIR
|
|
|
|
rm $OUT_DIR/$TARGET_TAR
|
|
|
|
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
|
|
|
|
tar -cvf $TARGET_TAR $OUT_DIR
|
|
rm -rf $OUT_DIR/*
|
|
mv $TARGET_TAR $OUT_DIR
|