]> err.no Git - linux-2.6/blobdiff - arch/powerpc/boot/Makefile
[POWERPC] Enable debug info on boot wrapper
[linux-2.6] / arch / powerpc / boot / Makefile
index f3f7ce3d79a5e98e48ff1dfbd56d4854b0abb14c..18e32719d0ed4544202bae47cc9c1361e6116649 100644 (file)
@@ -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