summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-01-20 20:13:01 +0000
committerStefan Reinauer <stepan@openbios.org>2009-01-20 20:13:01 +0000
commitef6cb094b83b2717fba379a2c6670c19b12c676d (patch)
tree8ddb41461d3217f2c689dcee1e09f8a5d36a9667 /src/config
parent94f17773efc8f1878167dd156d414abb5afa10bb (diff)
This patch makes the recently added assembler debug optional, as it may
cause problems with certain toolchains. This patch will also safe some hard disk space for those of us working on laptops or netbooks with always too small disks. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3876 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/config')
-rw-r--r--src/config/Config.lb4
-rw-r--r--src/config/Options.lb6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/config/Config.lb b/src/config/Config.lb
index 3c703c6203..2043ef02c4 100644
--- a/src/config/Config.lb
+++ b/src/config/Config.lb
@@ -10,6 +10,10 @@ makedefine GCC_INC_DIR := $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne "s
makedefine CPPFLAGS := -I$(TOP)/src/include -I$(TOP)/src/arch/$(ARCH)/include -I$(GCC_INC_DIR) $(CPUFLAGS)
makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -nostdinc -nostdlib -fno-builtin -Wall
+if ASSEMBLER_DEBUG
+makedefine DEBUG_CFLAGS := -g -dA -fverbose-asm
+end
+
makedefine HOSTCFLAGS:= -Os -Wall
makerule ldscript.ld
diff --git a/src/config/Options.lb b/src/config/Options.lb
index 4fbc2fc77d..ce6985b637 100644
--- a/src/config/Options.lb
+++ b/src/config/Options.lb
@@ -501,8 +501,12 @@ define CONFIG_USE_PRINTK_IN_CAR
export always
comment "use printk instead of print in CAR stage code"
end
+define ASSEMBLER_DEBUG
+ default none
+ export used
+ comment "Create disassembly files for debugging"
+end
-
###############################################
# Mainboard options
###############################################