summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-18 01:44:25 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-18 01:44:25 +0100
commitea9bdfce4b5cf1ffdd60963b0f6cd4c9f02b5def (patch)
treed003f6635fd8602343f74274cce91be9782778ce /script
parent1a4f97ffd1b1c5fd5e98d108faf27b50d44549d7 (diff)
roms: rename picosrc variable to rp2040src
Signed-off-by: Leah Rowe <leah@libreboot.org>
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