xbmk: sort global variables alphabetically

also separate some of the special ones.

this makes the variables easier to read/find.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-10-16 15:46:44 +01:00
parent d84a556bf0
commit e1b6ccf69e
7 changed files with 136 additions and 131 deletions
+43 -41
View File
@@ -36,64 +36,65 @@ checkvarsxbmk="CONFIG_ME_BIN_PATH CONFIG_SMSC_SCH5545_EC_FW_FILE \
CONFIG_FSP_FD_PATH CONFIG_IFD_BIN_PATH CONFIG_MRC_FILE CONFIG_FSP_M_CBFS"
# lbmk-specific extensions; general variables
_dest=""
has_hashes=""
vcfg=""
mecleaner=""
kbc1126_ec_dump=""
_dl=""
rom=""
nuke=""
_7ztest=""
cbfstoolref=""
_me=""
_metmp=""
mfs=""
cbdir=""
cbfstoolref=""
has_hashes=""
hashfile=""
_dl_bin=""
_pre_dest=""
kbc1126_ec_dump=""
mecleaner=""
mfs=""
nuke=""
rom=""
vcfg=""
xromsize=""
_7ztest=""
_dest=""
_dl=""
_dl_bin=""
_me=""
_metmp=""
_pre_dest=""
# lbmk-specific extensions; declared in pkg.cfg files in config/vendor/
EC_hash=""
DL_hash=""
DL_url=""
DL_url_bkup=""
MRC_refcode_gbe=""
E6400_VGA_bin_hash=""
E6400_VGA_DL_hash=""
E6400_VGA_DL_url=""
E6400_VGA_DL_url_bkup=""
E6400_VGA_offset=""
E6400_VGA_romname=""
SCH5545EC_DL_url_bkup=""
SCH5545EC_DL_hash=""
MRC_refcode_cbtree=""
SCH5545EC_DL_url=""
EC_url=""
DL_url=""
FSPFD_hash=""
ME11bootguard=""
ME11delta=""
ME11version=""
ME11sku=""
ME11pch=""
TBFW_url_bkup=""
TBFW_url=""
TBFW_hash=""
TBFW_size=""
EC_url_bkup=""
FSPM_bin_hash=""
FSPS_bin_hash=""
EC_FW1_hash=""
EC_FW2_hash=""
EC_hash=""
EC_url=""
EC_url_bkup=""
FSPFD_hash=""
FSPM_bin_hash=""
FSPS_bin_hash=""
ME11bootguard=""
ME11delta=""
ME11pch=""
ME11sku=""
ME11version=""
ME_bin_hash=""
MEclean=""
MRC_bin_hash=""
MRC_refcode_cbtree=""
MRC_refcode_gbe=""
REF_bin_hash=""
SCH5545EC_bin_hash=""
SCH5545EC_DL_hash=""
SCH5545EC_DL_url=""
SCH5545EC_DL_url_bkup=""
TBFW_bin_hash=""
E6400_VGA_bin_hash=""
TBFW_hash=""
TBFW_size=""
TBFW_url=""
TBFW_url_bkup=""
XBMKmecleaner=""
MEclean=""
download()
{
@@ -316,10 +317,11 @@ find_me()
fi
_7ztest="${_7ztest}a"
_r="-r" # re-locate modules
_trunc="-t" # -t: truncate the ME size
_keep="" # -k: keep fptr modules even if they can be removed
_pass="" # -p: skip fptr check
_r="-r" # re-locate modules
_trunc="-t" # -t: truncate the ME size
if [ -n "$mfs" ] || [ "$MEclean" = "n" ]; then
_r=""
@@ -327,8 +329,8 @@ find_me()
if [ "$MEclean" = "n" ]; then
_keep="-k"
_trunc=""
_pass="-p"
_trunc=""
fi
if "$mecleaner" $mfs $_r $_keep $_pass $_trunc -O "$xbtmp/a" \