summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms10
1 files changed, 5 insertions, 5 deletions
diff --git a/script/roms b/script/roms
index df828382..61f87bb1 100755
--- a/script/roms
+++ b/script/roms
@@ -12,7 +12,7 @@ set -u -e
seavgabiosrom="elf/seabios/default/libgfxinit/vgabios.bin"
cfgsdir="config/coreboot"
-picosrc="src/pico-serprog"
+rp2040src="src/pico-serprog"
picosdk="src/pico-sdk"
stm32src="src/stm32-vserprog"
tmpcfg="$tmpdir/tmpcfg"
@@ -55,7 +55,7 @@ mkserprog()
[ "$1" != "rp2040" ] && [ "$1" != "stm32" ] && $err "bad command"
if [ "$1" = "rp2040" ]; then
serprog_boards_dir="$picosdk/src/boards/include/boards"
- [ -d "$picosrc" ] || x_ ./update trees -f "pico-serprog"
+ [ -d "$rp2040src" ] || x_ ./update trees -f "pico-serprog"
elif [ "$1" = "stm32" ]; then
serprog_boards_dir="$stm32src/boards"
[ -d "$stm32src" ] || x_ ./update trees -f "stm32-vserprog"
@@ -79,9 +79,9 @@ mkserprogfw()
{
if [ "$1" = "rp2040" ]; then
x_ cmake -DPICO_BOARD="$2" -DPICO_SDK_PATH="$picosdk" \
- -B "$picosrc/build" "$picosrc"
- x_ cmake --build "$picosrc/build"
- x_ mv "$picosrc/build/pico_serprog.uf2" \
+ -B "$rp2040src/build" "$rp2040src"
+ x_ cmake --build "$rp2040src/build"
+ x_ mv "$rp2040src/build/pico_serprog.uf2" \
"bin/serprog_rp2040/serprog_$2.uf2"
else
x_ make -C "$stm32src" libopencm3-just-make BOARD=$2