-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-target-apps.sh
More file actions
executable file
·44 lines (38 loc) · 1.85 KB
/
Copy pathbuild-target-apps.sh
File metadata and controls
executable file
·44 lines (38 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
set -e
set -u
rm -rf *.appfs
if [ ! -d target-app ]; then
git clone git@github.com:Nicolai-Electronics/appfs-test-target-application.git target-app
fi
cd target-app
make buildall
cd ..
if [ -d components/appfs/tools ]; then
APPFS_TOOLS_DIR=components/appfs/tools
elif [ -d managed_components/badgeteam__appfs/tools ]; then
APPFS_TOOLS_DIR=managed_components/badgeteam__appfs/tools
else
echo "Could not find appfs tools in components/appfs or managed_components/badgeteam__appfs" >&2
exit 1
fi
"$APPFS_TOOLS_DIR/appfs_generate.py" 2097152 esp32.appfs
cp esp32.appfs esp32c2.appfs
cp esp32.appfs esp32c3.appfs
cp esp32.appfs esp32c5.appfs
cp esp32.appfs esp32c6.appfs
cp esp32.appfs esp32c61.appfs
cp esp32.appfs esp32h2.appfs
cp esp32.appfs esp32s3.appfs
cp esp32.appfs esp32s31.appfs
cp esp32.appfs esp32p4.appfs
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32.appfs target-app/build/esp32/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32c2.appfs target-app/build/esp32c2/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32c3.appfs target-app/build/esp32c3/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32c5.appfs target-app/build/esp32c5/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32c6.appfs target-app/build/esp32c6/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32c61.appfs target-app/build/esp32c61/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32h2.appfs target-app/build/esp32h2/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32s3.appfs target-app/build/esp32s3/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32s31.appfs target-app/build/esp32s31/application.bin test test 0
"$APPFS_TOOLS_DIR/appfs_add_file.py" esp32p4.appfs target-app/build/esp32p4/application.bin test test 0