From be3d7b7e69189055fbf8b7904336593a03a17ecd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 18 Mar 2023 15:20:03 +0000 Subject: haswell: re-add mrc.bin in separate board configs libre mrc on haswell is quite buggy for now, but works in a limited fashion this patch re-adds the old configs, but as _mrc for example t440p_12mb_mrc instead of t440p_12mb and t440p_12mb (without _mrc) still uses the libre mrc code --- resources/scripts/build/release/roms | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'resources/scripts/build/release/roms') diff --git a/resources/scripts/build/release/roms b/resources/scripts/build/release/roms index db5e79f9..38162a5d 100755 --- a/resources/scripts/build/release/roms +++ b/resources/scripts/build/release/roms @@ -60,10 +60,12 @@ for romdir in bin/*; do continue fi + CONFIG_HAVE_MRC="y" CONFIG_HAVE_ME_BIN="y" grep "CONFIG_HAVE_ME_BIN=y" "resources/coreboot/${target}/config/"* || CONFIG_HAVE_ME_BIN="n" + grep "CONFIG_HAVE_MRC=y" "resources/coreboot/${target}/config/"* || CONFIG_HAVE_MRC="n" - # remove ME from ROM images + # remove ME/MRC from ROM images if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then if [ ! -d coreboot/default ]; then ./download coreboot default || exit 1 @@ -94,6 +96,12 @@ for romdir in bin/*; do ${ifdtool} --nuke me "${romfile}" || exit 1 mv "${romfile}" "${romdir}_tmp"/ mv "${romfile}.new" "${romfile}" + + if [ "${CONFIG_HAVE_MRC}" = "y" ] + then + ${cbfstool} "${romfile}" remove -n mrc.bin || exit 1 + ${cbfstool} "${romfile}" print + fi done fi -- cgit v1.2.1