vendor.sh: handle me_cleaner -p separately

this is a special mode that skips FPTR checks, which is
needed on the topton x2e_n150

we currently set this, when MEclean="n", but we may want to
skip cleaning while still checking FPTR on some boards (in
a future lbmk revision)

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-02-22 17:12:32 +00:00
parent 177f45355f
commit a938309d35
2 changed files with 10 additions and 3 deletions
+2
View File
@@ -17,6 +17,8 @@ XBMKmecleaner="y"
# me_cleaner currently has to way to validate # me_cleaner currently has to way to validate
# the result when neutering. simply setting # the result when neutering. simply setting
# the HAP bit has the same result for users # the HAP bit has the same result for users
MEcheck="n" # FPTR checks fail on this board, so skip them
MEclean="n" # - however: MEclean="n" # - however:
# we still use me_cleaner, merely to extract, in # we still use me_cleaner, merely to extract, in
+8 -3
View File
@@ -79,9 +79,10 @@ ME11delta=""
ME11pch="" ME11pch=""
ME11sku="" ME11sku=""
ME11version="" ME11version=""
MEshrink=""
ME_bin_hash="" ME_bin_hash=""
MEcheck=""
MEclean="" MEclean=""
MEshrink=""
MRC_bin_hash="" MRC_bin_hash=""
MRC_refcode_cbtree="" MRC_refcode_cbtree=""
MRC_refcode_gbe="" MRC_refcode_gbe=""
@@ -337,16 +338,20 @@ find_me()
MEshrink="n" MEshrink="n"
_keep="-k" # keep ME modules, don't delete anything _keep="-k" # keep ME modules, don't delete anything
_pass="-p" # skip fptr check
mfs="" # no MFS whitelist needed, due to -r: mfs="" # no MFS whitelist needed, due to -r:
fi fi
if [ "$MEclean" = "n" ] || [ "$MEshrink" != "y" ]; then if [ "$MEclean" = "n" ] || [ "$MEshrink" != "y" ]; then
# MEclean can still be y, this just means don't shrink, # MEclean can still be y, this just means don't shrink,
# so deleted modules would become padded space # so deleted modules would become padded space. this
# could also be used alongside --whitelist, if
# MEclean is otherwise enabled.
_r="" # don't re-locate ME modules _r="" # don't re-locate ME modules
_trunc="" # don't shrink the me.bin file size _trunc="" # don't shrink the me.bin file size
fi fi
if [ "$MEcheck" = "n" ]; then
_pass="-p" # skip fptr check
fi
if [ -n "$mfs" ]; then if [ -n "$mfs" ]; then
_r="" # cannot re-locate modules if using --whitelist MFS _r="" # cannot re-locate modules if using --whitelist MFS
fi fi