From 0c0d8fe89da36ac4d2e50afb93b1d398a4c2192b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 23 Apr 2023 06:11:09 +0100 Subject: build/release roms: scrub kbc1126 ec firmware --- resources/scripts/build/release/roms | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'resources/scripts/build') diff --git a/resources/scripts/build/release/roms b/resources/scripts/build/release/roms index 5802b4db..29d651b5 100755 --- a/resources/scripts/build/release/roms +++ b/resources/scripts/build/release/roms @@ -3,7 +3,7 @@ # # helper script: generate release archive (ROM images) # -# Copyright (C) 2020,2021,2022 Leah Rowe +# Copyright (C) 2020,2021,2022,2023 Leah Rowe # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -62,10 +62,11 @@ for romdir in bin/*; do CONFIG_HAVE_MRC="y" CONFIG_HAVE_ME_BIN="y" + CONFIG_KBC1126_FIRMWARE="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/MRC from ROM images + grep "CONFIG_KBC1126_FIRMWARE=y" "resources/coreboot/${target}/config"/* || CONFIG_KBC1126_FIRMWARE="n" + # remove ME/MRC/EC firmware from ROM images if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then if [ ! -d coreboot/default ]; then ./download coreboot default || exit 1 @@ -112,7 +113,11 @@ for romdir in bin/*; do ${cbfstool} "${romfile}" remove -n mrc.bin || exit 1 ${cbfstool} "${romfile}" print fi - + + if [ "${CONFIG_KBC1126_FIRMWARE}" = "y" ]; then + ${cbfstool} "${romfile}" remove -n ecfw1.bin || exit 1 + ${cbfstool} "${romfile}" remove -n ecfw2.bin || exit 1 + fi done fi -- cgit v1.2.1