mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
allow using coreboot's build system to add payload
lbmk must still define payloads, but specific configs may use coreboot's build system instead. you might use this to add your own config with, say, tianocore payload, using coreboot.git to build it, rather than using lbmk's choice of payloads. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+7
-4
@@ -92,10 +92,13 @@ mkcorebootbin()
|
||||
|
||||
[ "$payload_memtest" = "y" ] || payload_memtest="n"
|
||||
[ "$(uname -m)" = "x86_64" ] || payload_memtest="n"
|
||||
|
||||
[ "$payload_seabios" = "y" ] && pname="seabios" && $dry add_seabios
|
||||
[ "$payload_uboot" = "y" ] && pname="uboot" && $dry add_uboot
|
||||
|
||||
if grep "CONFIG_PAYLOAD_NONE=y" "$defconfig"; then
|
||||
[ "$payload_seabios" = "y" ] && pname="seabios" && \
|
||||
$dry add_seabios
|
||||
[ "$payload_uboot" = "y" ] && pname="uboot" && $dry add_uboot
|
||||
else
|
||||
pname="custom" # coreboot's build system added payloads
|
||||
fi
|
||||
newrom="bin/$target/${pname}_${target}_$initmode$displaymode.rom"
|
||||
$dry x_ mkdir -p "${newrom%/*}"; $dry x_ mv "$tmprom" "$newrom"
|
||||
|
||||
|
||||
+2
-1
@@ -248,7 +248,8 @@ detect_board()
|
||||
path="$1"
|
||||
filename="$(basename "$path")"
|
||||
case "$filename" in
|
||||
grub_*|seagrub_*) board="$(echo "$filename" | cut -d '_' -f2-3)" ;;
|
||||
grub_*|seagrub_*|custom_*)
|
||||
board="$(echo "$filename" | cut -d '_' -f2-3)" ;;
|
||||
seabios_withgrub_*)
|
||||
board="$(echo "$filename" | cut -d '_' -f3-4)" ;;
|
||||
*.tar.xz)
|
||||
|
||||
Reference in New Issue
Block a user