abuild: allow building with no payload
Change-Id: I167f0bb57bb40f0426182c0abe868bdad58eb120 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/1563 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
1b97bdc42a
commit
c31e3ac258
|
@ -160,6 +160,8 @@ function create_config
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
printf "Using payload $PAYLOAD\n"
|
printf "Using payload $PAYLOAD\n"
|
||||||
|
elif [ "$payloads" = "none" ]; then
|
||||||
|
PAYLOAD=none
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ${build_dir}
|
mkdir -p ${build_dir}
|
||||||
|
@ -179,7 +181,9 @@ function create_config
|
||||||
grep "select[\t ]*ARCH" src/mainboard/$VENDOR/$MAINBOARD/Kconfig | \
|
grep "select[\t ]*ARCH" src/mainboard/$VENDOR/$MAINBOARD/Kconfig | \
|
||||||
sed "s,^.*\(ARCH_.*\)[^A-Z0-9_]*,CONFIG_\1=y," >> ${build_dir}/config.build
|
sed "s,^.*\(ARCH_.*\)[^A-Z0-9_]*,CONFIG_\1=y," >> ${build_dir}/config.build
|
||||||
echo "CONFIG_MAINBOARD_DIR=\"$VENDOR/$MAINBOARD\"" >> ${build_dir}/config.build
|
echo "CONFIG_MAINBOARD_DIR=\"$VENDOR/$MAINBOARD\"" >> ${build_dir}/config.build
|
||||||
if [ "$PAYLOAD" != "/dev/null" ]; then
|
if [ "$PAYLOAD" = "none" ]; then
|
||||||
|
echo "CONFIG_PAYLOAD_NONE=y" >> ${build_dir}/config.build
|
||||||
|
elif [ "$PAYLOAD" != "/dev/null" ]; then
|
||||||
echo "# CONFIG_PAYLOAD_NONE is not set" >> ${build_dir}/config.build
|
echo "# CONFIG_PAYLOAD_NONE is not set" >> ${build_dir}/config.build
|
||||||
echo "# CONFIG_PAYLOAD_SEABIOS is not set" >> ${build_dir}/config.build
|
echo "# CONFIG_PAYLOAD_SEABIOS is not set" >> ${build_dir}/config.build
|
||||||
echo "CONFIG_PAYLOAD_ELF=y" >> ${build_dir}/config.build
|
echo "CONFIG_PAYLOAD_ELF=y" >> ${build_dir}/config.build
|
||||||
|
|
Loading…
Reference in New Issue