-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildall
executable file
·82 lines (71 loc) · 1.85 KB
/
buildall
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
# Get the build type - in case different build types are needed for Pico and Pico 2 in the future
build_type()
{
if [[ $1 == "rp2040" ]]
then
echo "Release"
else
echo "Release"
fi
}
#build a board type
build_uf2()
{
board=$1"board .."
uf2="picozx81_"$1"_"$2".uf2"
type=$(build_type $2)
cmake -DHDMI_SOUND=OFF -DPICOZX_LCD=OFF -DCMAKE_BUILD_TYPE=${type} -DTIME_SPARE=OFF -DFLASH_LED=OFF -DPICO_BOARD=${board} -DPICO_MCU=$2
make -j4
cp ./${uf2} ../uf2/${uf2}
}
build_uf2_hdmi()
{
board=$1"board .."
uf2="picozx81_"$1"_hdmi_sound_"$2".uf2"
type=$(build_type $2)
cmake -DHDMI_SOUND=ON -DPICOZX_LCD=OFF -DCMAKE_BUILD_TYPE=${type} -DTIME_SPARE=OFF -DFLASH_LED=OFF -DPICO_BOARD=${board} -DPICO_MCU=$2
make -j4
cp ./${uf2} ../uf2/${uf2}
}
build_uf2_lcd()
{
board=$1"board .."
uf2="picozx81_"$1"_lcd_"$2".uf2"
type=$(build_type $2)
cmake -DHDMI_SOUND=OFF -DPICOZX_LCD=ON -DCMAKE_BUILD_TYPE=${type} -DTIME_SPARE=OFF -DFLASH_LED=OFF -DPICO_BOARD=${board} -DPICO_MCU=$2
make -j4
cp ./${uf2} ../uf2/${uf2}
}
# Create the directories from scratch
rm -rf build_2040
rm -rf build_2350
mkdir build_2040
mkdir build_2350
mkdir -p uf2
# Build all PicoZX81 variants for rp2040
cd build_2040
build_uf2 vga rp2040
build_uf2 dvi rp2040
build_uf2 picomitevga rp2040
build_uf2 olimexpc rp2040
build_uf2 vga332 rp2040
build_uf2 vgamaker222c rp2040
build_uf2 lcdws28 rp2040
build_uf2 lcdmaker rp2040
build_uf2 picozx rp2040
build_uf2 picozxreal rp2040
build_uf2_hdmi dvi rp2040
build_uf2_hdmi olimexpc rp2040
build_uf2_hdmi wspizero rp2040
build_uf2_lcd picozx rp2040
# Build all PicoZX81 variants that can take a rp2350
cd ../build_2350
build_uf2 vga rp2350
build_uf2 dvi rp2350
build_uf2 picomitevga rp2350
build_uf2 olimexpc rp2350
build_uf2 vga332 rp2350
build_uf2 lcdws28 rp2350
build_uf2_hdmi dvi rp2350
build_uf2_hdmi olimexpc rp2350