[coreboot] New patch to review for coreboot: 6e7892a abuild: allow building with no payload

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sun Oct 7 15:09:31 CEST 2012


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1563

-gerrit

commit 6e7892abf007fd9981449b9ec2f0f5980eab1850
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Oct 7 15:05:42 2012 +0200

    abuild: allow building with no payload
    
    Change-Id: I167f0bb57bb40f0426182c0abe868bdad58eb120
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/abuild/abuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index 04b8e05..e625ee5 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -160,6 +160,8 @@ function create_config
 			exit 1
 		fi
 		printf "Using payload $PAYLOAD\n"
+	elif [ "$payloads" = "none" ]; then
+		PAYLOAD=none
 	fi
 
 	mkdir -p ${build_dir}
@@ -179,7 +181,9 @@ function create_config
 		grep "select[\t ]*ARCH" src/mainboard/$VENDOR/$MAINBOARD/Kconfig | \
 			sed "s,^.*\(ARCH_.*\)[^A-Z0-9_]*,CONFIG_\1=y," >> ${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_SEABIOS is not set" >> ${build_dir}/config.build
 			echo "CONFIG_PAYLOAD_ELF=y" >> ${build_dir}/config.build




More information about the coreboot mailing list