Backport facility to specify a local coreboot version suffix from v3.
authorUwe Hermann <uwe@hermann-uwe.de>
Mon, 5 Oct 2009 13:55:28 +0000 (13:55 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Mon, 5 Oct 2009 13:55:28 +0000 (13:55 +0000)
Tested on QEMU.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4726 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile
src/Kconfig

index fada32b0f5fb32bcdd445c29a7da3e7327929993..b3e3e42cb980463e6772895217ad7c40d16f1930 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -93,6 +93,10 @@ BUILD-y := src/lib src/boot src/console src/devices src/southbridge src/northbri
 BUILD-y += util/cbfstool
 BUILD-$(CONFIG_ARCH_X86) += src/pc80
 
+ifneq ($(CONFIG_LOCALVERSION),"")
+COREBOOT_EXTRA_VERSION := -$(shell echo $(CONFIG_LOCALVERSION))
+endif
+
 # The primary target needs to be here before we include the
 # other files
 
@@ -241,7 +245,7 @@ STACKPROTECT += $(call cc-option, -fno-stack-protector,)
 
 CFLAGS = $(STACKPROTECT) $(INCLUDES) -Os -nostdinc
 CFLAGS += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS +=-Wwrite-strings -Wredundant-decls -Wno-trigraphs 
+CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs 
 CFLAGS += -Wstrict-aliasing -Wshadow 
 CFLAGS += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
 
index 5702d7abf15ec432688a32728b50845422452897..b2508bbc8a84808b7c8f782afc8ac915468ea7ba 100644 (file)
 
 mainmenu "Coreboot Configuration"
 
+menu "General setup"
+
+config LOCALVERSION
+       string "Local version - append to coreboot release"
+       help
+         Append an extra string to the end of the coreboot version.
+
+endmenu
+
 source src/mainboard/Kconfig
 source src/arch/i386/Kconfig
 source src/arch/ppc/Kconfig