summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-30 02:27:47 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-30 02:35:34 +0100
commit2009c26f0aa1e11c0f9c52e4c971afe2e10609b9 (patch)
tree73213763cfab254821b86bf58b0738ad2c9f52e4 /include/rom.sh
parenta08b8d94fc58fa195adb0261539509d8ddaf4799 (diff)
serprog: Remove pico2 support for the time being
Many users report bugs, so I'm reverting lbmk back to only supporting the rp2040 dongles for the time being. The documentation will be updated to reflect this. Pico2 support will be re-added at a later date, once more testing has been done, and fixes made if necessary.
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh25
1 files changed, 1 insertions, 24 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 68c61936..f74912af 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -9,25 +9,13 @@ grubdata="config/data/grub"
mkserprog()
{
- [ $# -lt 1 ] && $err "mkserprog: no arguments provided"
[ "$_f" = "-d" ] && return 0 # dry run
-
- [ "$1" = "pico" ] && mkpicotool
-
basename -as .h "$serdir/"*.h > "$xbmktmp/ser" || \
$err "!mk $1 $xbmktmp"
while read -r sertarget; do
- [ "$1" = "pico" ] &&
- x_ rm -rf "$sersrc/build" \
- && (pt=$(x_ grep "pico_cmake_set" \
- "$picosdk/src/boards/include/boards/$sertarget.h" \
- | grep "PICO_PLATFORM" | cut -d= -f2 | tr -d [:blank:])
- mkdir -p "$sersrc/build_$pt"
- ln -srf "$sersrc/build_$pt/" "$sersrc/build") \
- && x_ cmake -DPICO_BOARD="$sertarget" \
+ [ "$1" = "pico" ] && x_ cmake -DPICO_BOARD="$sertarget" \
-DPICO_SDK_PATH="$picosdk" -B "$sersrc/build" "$sersrc" \
- -Dpicotool_DIR="$picotool/picotool" \
&& x_ cmake --build "$sersrc/build"
[ "$1" = "stm32" ] && x_ make -C "$sersrc" \
libopencm3-just-make BOARD=$sertarget && x_ make -C \
@@ -39,17 +27,6 @@ mkserprog()
[ "$XBMK_RELEASE" = "y" ] && mkrom_tarball "bin/serprog_$1"; :
}
-mkpicotool()
-{
- rm -Rf "$picotool" || $err "Can't remove picotool builddir"
- (
- x_ cd src/picotool
- x_ cmake -DCMAKE_INSTALL_PREFIX=xbmkbin -DPICOTOOL_FLAT_INSTALL=1 \
- -DPICO_SDK_PATH=../pico-sdk
- x_ make install
- ) || $err "Can't build picotool"; :
-}
-
copyps1bios()
{
x_ rm -Rf bin/playstation