mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 13:16:47 +02:00
build/roms: Don't build Memtest86+ when not specified by cmdline
When overriding which payloads will be built with the -p command line argument, the roms_helper script builds the Memtest86+ payload before checking if it should be disabled. Move the build command after the command line override. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
@@ -146,12 +146,6 @@ if [ "${payload_uboot}" = "y" ] && \
|
|||||||
uboot_config="default"
|
uboot_config="default"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${payload_memtest}" = "y" ]; then
|
|
||||||
if [ ! -f "memtest86plus/memtest" ]; then
|
|
||||||
./build module memtest86plus
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Override all payload directives with cmdline args
|
# Override all payload directives with cmdline args
|
||||||
if [ ! -z ${payloads} ]; then
|
if [ ! -z ${payloads} ]; then
|
||||||
echo "setting payloads $payloads"
|
echo "setting payloads $payloads"
|
||||||
@@ -219,6 +213,12 @@ if [ ! -f "${seavgabiosrom}" ] \
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${payload_memtest}" = "y" ]; then
|
||||||
|
if [ ! -f "memtest86plus/memtest" ]; then
|
||||||
|
./build module memtest86plus
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
[ -d "${romdir}/" ] || mkdir -p "${romdir}/"
|
[ -d "${romdir}/" ] || mkdir -p "${romdir}/"
|
||||||
rm -f "${romdir}"/*
|
rm -f "${romdir}"/*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user