mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +02:00
haswell boards: use libre mrc.bin replacement
courtesy of Angel Pons from the coreboot project
this uses the following patch set from gerrit, as yet
unmerged (in coreboot master) on this date:
https://review.coreboot.org/c/coreboot/+/64198/5
logic for downloading mrc blobs has been deleted from
lbmk, as this is now completely obsolete (for haswell
boards)
if other platforms are added later that need mrc.bin,
then logic will be re-added again for that
This commit is contained in:
@@ -60,12 +60,10 @@ 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/MRC from ROM images
|
||||
# remove ME from ROM images
|
||||
if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then
|
||||
if [ ! -d coreboot/default ]; then
|
||||
./download coreboot default || exit 1
|
||||
@@ -96,12 +94,6 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user