roms: rename picosrc variable to rp2040src

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-18 01:44:25 +01:00
parent 1a4f97ffd1
commit ea9bdfce4b
1 changed files with 5 additions and 5 deletions

View File

@ -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