[coreboot] [buildrom] r279 - buildrom-devel

repository service svn at coreboot.org
Thu Apr 22 20:16:04 CEST 2010


Author: myles
Date: Thu Apr 22 20:16:02 2010
New Revision: 279
URL: http://tracker.coreboot.org/trac/buildrom/changeset/279

Log:
Make a payload only option for buildrom.

Signed-off-by: Myles Watson <mylesgw at gmail.com>
Acked-by: Myles Watson <mylesgw at gmail.com>

Modified:
   buildrom-devel/Config.in
   buildrom-devel/Makefile

Modified: buildrom-devel/Config.in
==============================================================================
--- buildrom-devel/Config.in	Sun Apr 18 10:31:32 2010	(r278)
+++ buildrom-devel/Config.in	Thu Apr 22 20:16:02 2010	(r279)
@@ -67,7 +67,13 @@
 
 choice
 	prompt "coreboot version"
-	default COREBOOT_V2
+	default PAYLOAD_ONLY
+
+config PAYLOAD_ONLY
+	bool "payload only"
+	help
+		Coreboot is a lot easier to build for v4.  Copy the payload from
+		deploy/ to coreboot/svn/payload.elf and build it.
 
 config COREBOOT_V2
 	bool "coreboot v2"

Modified: buildrom-devel/Makefile
==============================================================================
--- buildrom-devel/Makefile	Sun Apr 18 10:31:32 2010	(r278)
+++ buildrom-devel/Makefile	Thu Apr 22 20:16:02 2010	(r279)
@@ -107,7 +107,19 @@
 
 ifeq ($(CONFIG_COREBOOT_V2),y)
 rom: payload $(COREBOOT-y)
-else
+endif
+
+ifeq ($(CONFIG_PAYLOAD_ONLY),y)
+rom: payload
+	@ echo ""
+	@ echo "CONFIG_PAYLOAD_ONLY was set"
+	@ echo ""
+	@ echo "1. cp deploy/your_payload.elf coreboot/svn/payload.elf"
+	@ echo "2. configure the payload to be payload.elf and build it."
+	@ echo ""
+endif
+
+ifeq ($(CONFIG_COREBOOT_V3),y)
 
 # If compressing the payload in v3, parse the elf and tell lar to compress it.
 # Parsing the elf without compression bloats the ROM with bss zeroes.
@@ -154,7 +166,9 @@
 
 ifeq ($(CONFIG_COREBOOT_V2),y)
 INCMK += $(PACKAGE_DIR)/coreboot-v2/coreboot-v2.mk
-else
+endif
+
+ifeq ($(CONFIG_COREBOOT_V3),y)
 INCMK += $(PACKAGE_DIR)/coreboot-v3/coreboot-v3.mk
 endif
 




More information about the coreboot mailing list