From: Grant Likely Date: Thu, 4 Oct 2007 04:05:01 +0000 (+1000) Subject: [POWERPC] Enable debug info on boot wrapper X-Git-Tag: v2.6.24-rc1~1450^2~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=105c13dd7a29fe2d18643b851d7f1c1cbc4315ed;p=linux-2.6-omap-h63xx.git [POWERPC] Enable debug info on boot wrapper Add '-g' to BOOTCFLAGS if CONFIG_DEBUG_INFO is set. Signed-off-by: Grant Likely Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index f3f7ce3d79a..18e32719d0e 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -25,6 +25,10 @@ BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -isystem $(shell $(CROSS32CC) -print-file-name=include) BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc +ifdef CONFIG_DEBUG_INFO +BOOTCFLAGS += -g +endif + ifeq ($(call cc-option-yn, -fstack-protector),y) BOOTCFLAGS += -fno-stack-protector endif