mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
rom.sh: use if_dry_build macro
instead of checking if_not_dry_build. use it here the same way. yes. shell script macros. it's how i roll. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -25,9 +25,8 @@ buildser()
|
|||||||
|
|
||||||
copyps1bios()
|
copyps1bios()
|
||||||
{
|
{
|
||||||
if [ "$if_not_dry_build" = ":" ]; then
|
$if_dry_build \
|
||||||
return 0
|
return 0
|
||||||
fi
|
|
||||||
|
|
||||||
remkdir "bin/playstation"
|
remkdir "bin/playstation"
|
||||||
x_ cp src/pcsx-redux/src/mips/openbios/openbios.bin bin/playstation
|
x_ cp src/pcsx-redux/src/mips/openbios/openbios.bin bin/playstation
|
||||||
@@ -45,9 +44,8 @@ mkpayload_grub()
|
|||||||
grub_modules=""
|
grub_modules=""
|
||||||
grub_install_modules=""
|
grub_install_modules=""
|
||||||
|
|
||||||
if [ "$if_not_dry_build" = ":" ]; then
|
$if_dry_build \
|
||||||
return 0
|
return 0
|
||||||
fi
|
|
||||||
|
|
||||||
. "$grubdata/module/$tree" || \
|
. "$grubdata/module/$tree" || \
|
||||||
err "Can't read '$grubdata/module/$tree'" "mkpayload_grub" "$@"
|
err "Can't read '$grubdata/module/$tree'" "mkpayload_grub" "$@"
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ cmakedir=""
|
|||||||
defconfig=""
|
defconfig=""
|
||||||
postmake=""
|
postmake=""
|
||||||
mkhelpercfg=""
|
mkhelpercfg=""
|
||||||
|
if_dry_build=":"
|
||||||
if_not_dry_build=""
|
if_not_dry_build=""
|
||||||
dest_dir=""
|
dest_dir=""
|
||||||
mdir=""
|
mdir=""
|
||||||
@@ -73,6 +74,7 @@ trees()
|
|||||||
# and $if_not_dry_build is prefixed to skipped commands
|
# and $if_not_dry_build is prefixed to skipped commands
|
||||||
|
|
||||||
if_not_dry_build=":"
|
if_not_dry_build=":"
|
||||||
|
if_dry_build=""
|
||||||
;;
|
;;
|
||||||
-b) : ;;
|
-b) : ;;
|
||||||
-u) mode="oldconfig" ;;
|
-u) mode="oldconfig" ;;
|
||||||
@@ -82,10 +84,12 @@ trees()
|
|||||||
-f) # download source code for a project
|
-f) # download source code for a project
|
||||||
do_make="n" # lets us know not to build anything
|
do_make="n" # lets us know not to build anything
|
||||||
if_not_dry_build=":"
|
if_not_dry_build=":"
|
||||||
|
if_dry_build=""
|
||||||
;;
|
;;
|
||||||
-F) # same as -F, but don't skip git fetch/pull on cache
|
-F) # same as -F, but don't skip git fetch/pull on cache
|
||||||
do_make="n" # lets us know not to build anything
|
do_make="n" # lets us know not to build anything
|
||||||
if_not_dry_build=":"
|
if_not_dry_build=":"
|
||||||
|
if_dry_build=""
|
||||||
forcepull="y"
|
forcepull="y"
|
||||||
;;
|
;;
|
||||||
-s) mode="savedefconfig" ;;
|
-s) mode="savedefconfig" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user