build/release roms: scrub kbc1126 ec firmware
parent
826d3685a1
commit
0c0d8fe89d
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# helper script: generate release archive (ROM images)
|
# helper script: generate release archive (ROM images)
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020,2021,2022 Leah Rowe <info@minifree.org>
|
# Copyright (C) 2020,2021,2022,2023 Leah Rowe <info@minifree.org>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# 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_MRC="y"
|
||||||
CONFIG_HAVE_ME_BIN="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_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"
|
grep "CONFIG_HAVE_MRC=y" "resources/coreboot/${target}/config/"* || CONFIG_HAVE_MRC="n"
|
||||||
|
grep "CONFIG_KBC1126_FIRMWARE=y" "resources/coreboot/${target}/config"/* || CONFIG_KBC1126_FIRMWARE="n"
|
||||||
# remove ME/MRC from ROM images
|
# remove ME/MRC/EC firmware from ROM images
|
||||||
if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then
|
if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then
|
||||||
if [ ! -d coreboot/default ]; then
|
if [ ! -d coreboot/default ]; then
|
||||||
./download coreboot default || exit 1
|
./download coreboot default || exit 1
|
||||||
|
@ -112,7 +113,11 @@ for romdir in bin/*; do
|
||||||
${cbfstool} "${romfile}" remove -n mrc.bin || exit 1
|
${cbfstool} "${romfile}" remove -n mrc.bin || exit 1
|
||||||
${cbfstool} "${romfile}" print
|
${cbfstool} "${romfile}" print
|
||||||
fi
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue