[U-Boot-Users] [PATCH 1/6] AVR32: Use -g instead of -gstabs in AFLAGS_DEBUG

Haavard Skinnemoen hskinnemoen at atmel.com
Wed Sep 6 16:22:39 CEST 2006


In config.mk, -Wa,-gstabs is unconditionally appended to AFLAGS no
matter what the target's preferred debugging format is. The AVR32
toolchain doesn't support the stabs debugging format at all, so this
will obviously not work.

This patch replaces -gstabs with -g when compiling for AVR32, so that
the default debugging format is used. Ulf Samuelsson reported
problems on ARM when changing this unconditionally, so this patch
has been updated to only change AVR32.

Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
---
CHANGELOG:
	Use -g instead of -gstabs in AFLAGS_DEBUG for AVR32

 config.mk |    4 ++++
 1 file changed, 4 insertions(+)

Index: u-boot-1.1.4-git/config.mk
===================================================================
--- u-boot-1.1.4-git.orig/config.mk	2006-09-06 15:26:33.000000000 +0200
+++ u-boot-1.1.4-git/config.mk	2006-09-06 15:28:01.000000000 +0200
@@ -164,7 +164,11 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigrap
 endif
 endif
 
+ifeq ($(ARCH),avr32)
+AFLAGS_DEBUG := -Wa,-g
+else
 AFLAGS_DEBUG := -Wa,-gstabs
+endif
 
 # turn jbsr into jsr for m68k
 ifeq ($(ARCH),m68k)




More information about the U-Boot mailing list