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:
Ferass 'Vitali64' EL HAFIDI
2022-12-16 19:45:54 +01:00
committed by Leah Rowe
parent d45b2e70dc
commit f787044642
41 changed files with 97 additions and 81 deletions
+3 -3
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# helper script: builds flashrom source code
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# helper script: builds GRUB2 source code
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# helper script: build ich9utils
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# helper script: builds memtest86+ source code
#