From 3b211a642a759a39fdc78051e35e50c771042c07 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 22 Sep 2026 19:52:17 +0100 Subject: rom.sh: run make-oldconfig even without UEFI the last change made me realise that i don't universally run make-oldconfig on projects. this is good because we shouldn't do that on every project. coreboot is the one that changes the most, and also the one where this option is mostly stable. this patch restores the old behaviour. we always want make-oldconfig to prevent build errors, because coreboot won't do it automatically during build. Signed-off-by: Leah Rowe --- include/fw/rom.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/fw/rom.sh b/include/fw/rom.sh index d4a77ff6..5bd1c70c 100644 --- a/include/fw/rom.sh +++ b/include/fw/rom.sh @@ -74,10 +74,17 @@ corebootpremake() cook_coreboot_config() { - [ -z "$payload_edk2" ] && return 0 [ -n "$mode" ] && return 0 [ -f "$srcdir/$cfgname" ] || return 0 + [ -n "$payload_edk2" ] && \ + cook_coreboot_smmstore + + x_ make -C "$srcdir" oldconfig +} + +cook_coreboot_smmstore() +{ # Enable SMMSTORE-related options for EDK2 variable storage. # Because edk2 is source-only (release=n) in lbmk, we don't # enable this in the configs themselves. Instead, we add it @@ -98,8 +105,6 @@ cook_coreboot_config() for ecfgval in $ecfg; do printf "%s\n" "$ecfgval" >> "$srcdir/$cfgname" done - - x_ make -C "$srcdir" oldconfig } check_coreboot_util() -- cgit v1.2.1