summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-04 21:19:27 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-04 21:19:27 +0100
commitc0c7f3ae15182e0b262ae8e88123d9e470e7e910 (patch)
treece1daabc63ccc3a196a84a92d9ca34953e9c67a3
parenta56cad71c08ab87195823ba44fd2167aeab0802c (diff)
build/release/roms: simplify defcongic handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/build/release/roms20
1 files changed, 6 insertions, 14 deletions
diff --git a/script/build/release/roms b/script/build/release/roms
index ad2c3a98..f9b7d2f2 100755
--- a/script/build/release/roms
+++ b/script/build/release/roms
@@ -96,20 +96,12 @@ make_archive()
[ "${microcode_required}" = "y" ] || \
[ "${microcode_required}" = "n" ] || microcode_required="y"
- CONFIG_HAVE_MRC="y"
- CONFIG_HAVE_ME_BIN="y"
- CONFIG_KBC1126_FIRMWARE="y"
- CONFIG_INCLUDE_SMSC_SCH5545_EC_FW="y"
- grep "CONFIG_HAVE_ME_BIN=y" "config/coreboot/${target}/config/"* || \
- CONFIG_HAVE_ME_BIN="n"
- grep "CONFIG_HAVE_MRC=y" "config/coreboot/${target}/config/"* || \
- CONFIG_HAVE_MRC="n"
- grep "CONFIG_KBC1126_FIRMWARE=y" \
- "config/coreboot/${target}/config"/* || \
- CONFIG_KBC1126_FIRMWARE="n"
- grep "CONFIG_INCLUDE_SMSC_SCH5545_EC_FW=y" \
- "config/coreboot/${target}/config"/* || \
- CONFIG_INCLUDE_SMSC_SCH5545_EC_FW="n"
+ for x in CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN CONFIG_KBC1126_FIRMWARE \
+ CONFIG_INCLUDE_SMSC_SCH5545_EC_FW; do
+ eval "${x}=\"y\""
+ grep "${x}=y" "config/coreboot/${target}/config/"* || \
+ eval "${x}=\"n\""
+ done
# remove ME/MRC/EC firmware from ROM images
if [ "${CONFIG_HAVE_ME_BIN}" = "y" ] || \