mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
vendor.sh: tidied up mecleaner argument handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -333,21 +333,22 @@ find_me()
|
||||
_r="-r" # re-locate modules
|
||||
_trunc="-t" # -t: truncate the ME size
|
||||
|
||||
if [ -n "$mfs" ] || [ "$MEclean" = "n" ]; then
|
||||
_r=""
|
||||
fi
|
||||
|
||||
if [ "$MEshrink" != "y" ]; then
|
||||
_r=""
|
||||
_trunc=""
|
||||
mfs=""
|
||||
fi
|
||||
|
||||
if [ "$MEclean" = "n" ]; then
|
||||
_keep="-k"
|
||||
_pass="-p"
|
||||
_trunc=""
|
||||
# TODO: should we also blank mfs and _r here?
|
||||
MEshrink="n"
|
||||
|
||||
_keep="-k" # keep ME modules, don't delete anything
|
||||
_pass="-p" # skip fptr check
|
||||
mfs="" # no MFS whitelist needed, due to -r:
|
||||
fi
|
||||
if [ "$MEclean" = "n" ] || [ "$MEshrink" != "y" ]; then
|
||||
# MEclean can still be y, this just means don't shrink,
|
||||
# so deleted modules would become padded space
|
||||
|
||||
_r="" # don't re-locate ME modules
|
||||
_trunc="" # don't shrink the me.bin file size
|
||||
fi
|
||||
if [ -n "$mfs" ]; then
|
||||
_r="" # cannot re-locate modules if using --whitelist MFS
|
||||
fi
|
||||
|
||||
if "$mecleaner" $mfs $_r $_keep $_pass $_trunc -O "$xbtmp/a" \
|
||||
|
||||
Reference in New Issue
Block a user