mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
Do not rely on bashisms and behaviour undefined by the POSIX specification.
By making lbmk fully POSIX-compliant, it will be easier to port lbmk to other systems implementing POSIX such as Alpine Linux and FreeBSD. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
This commit is contained in:
committed by
Leah Rowe
parent
d45b2e70dc
commit
f787044642
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# helper script: build various coreboot utilities
|
||||
#
|
||||
@@ -34,7 +34,7 @@ buildutils() {
|
||||
printf "build/cbutils: coreboot/%s not found. Exiting\n" "${cbtree}"
|
||||
return 1
|
||||
fi
|
||||
for util in {cbfs,ifd}tool; do
|
||||
for util in cbfstool ifdtool; do
|
||||
(
|
||||
cd "coreboot/${cbtree}/util/${util}/"
|
||||
make -j$(nproc) || return 1
|
||||
@@ -52,7 +52,7 @@ buildfromboardconfig() {
|
||||
continue
|
||||
fi
|
||||
cbtree="undefined"
|
||||
source "resources/coreboot/${board}/board.cfg"
|
||||
. "resources/coreboot/${board}/board.cfg" # source
|
||||
if [ "${cbtree}" = "undefined" ]; then
|
||||
printf "build/cbutils: improper cbtree definition for '%s'" "${board}"
|
||||
return 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# helper script: builds flashrom source code
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# helper script: builds GRUB2 source code
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# helper script: build ich9utils
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# helper script: builds memtest86+ source code
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user