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>fsdg20230625
parent
4e3097b5e7
commit
9fb4ecec62
|
@ -146,12 +146,6 @@ if [ "${payload_uboot}" = "y" ] && \
|
|||
uboot_config="default"
|
||||
fi
|
||||
|
||||
if [ "${payload_memtest}" = "y" ]; then
|
||||
if [ ! -f "memtest86plus/memtest" ]; then
|
||||
./build module memtest86plus
|
||||
fi
|
||||
fi
|
||||
|
||||
# Override all payload directives with cmdline args
|
||||
if [ ! -z ${payloads} ]; then
|
||||
echo "setting payloads $payloads"
|
||||
|
@ -219,6 +213,12 @@ if [ ! -f "${seavgabiosrom}" ] \
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ "${payload_memtest}" = "y" ]; then
|
||||
if [ ! -f "memtest86plus/memtest" ]; then
|
||||
./build module memtest86plus
|
||||
fi
|
||||
fi
|
||||
|
||||
[ -d "${romdir}/" ] || mkdir -p "${romdir}/"
|
||||
rm -f "${romdir}"/*
|
||||
|
||||
|
|
Loading…
Reference in New Issue