From 64ce81d2b63dae9cfe15f6213a4aaf9e5c460ab4 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 18 Jun 2024 01:44:25 +0100 Subject: [PATCH] roms: rename picosrc variable to rp2040src Signed-off-by: Leah Rowe --- script/roms | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/roms b/script/roms index d43e412..2a3076d 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