build/build/roms: simplify mkCoreboot() arguments

This commit is contained in:
Leah Rowe
2023-05-13 03:06:55 +01:00
parent d8a8a1c622
commit c8dfc3ccaa
+2 -3
View File
@@ -404,7 +404,7 @@ mkRoms()
fi fi
# make coreboot ROM without a payload in it # make coreboot ROM without a payload in it
mkCoreboot "${cbdir}" "${_cbcfg}" mkCoreboot "${_cbcfg}"
# now add payloads, per user config: # now add payloads, per user config:
@@ -465,8 +465,7 @@ mkRoms()
# expected: configs must not specify a payload # expected: configs must not specify a payload
mkCoreboot() mkCoreboot()
{ {
cbdir="${1}" # eg. coreboot/default _cbcfg="${1}" # eg. resources/coreboot/e6400nvidia_4mb/config/normal
_cbcfg="${2}" # eg. resources/coreboot/e6400nvidia_4mb/config/normal
if [ ! -f "${_cbcfg}" ]; then if [ ! -f "${_cbcfg}" ]; then
printf "\nmkCoreboot: coreboot config '%s' does not exist. " \ printf "\nmkCoreboot: coreboot config '%s' does not exist. " \