[U-Boot] [PATCH] powerpc:Enable compiler debug option for powerpc platforms

Roy Zang tie-fei.zang at freescale.com
Tue Mar 15 04:53:42 CET 2011


This patch enables compiler debug option for powerpc platforms
by default.  Patch is tested on 85xx/QorIQ platforms in u-boot
with CodeWarrior.

Signed-off-by: Roy Zang <tie-fei.zang at freescale.com>
Cc: Wood Scott-B07421 <B07421 at freescale.com>
Cc: Kumar Gala <galak at kernel.crashing.org>
---
Consider the comments 
http://lists.denx.de/pipermail/u-boot/2010-October/080689.html
http://lists.denx.de/pipermail/u-boot/2011-January/086485.html

 arch/powerpc/config.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index 64191c7..8bd57e3 100644
--- a/arch/powerpc/config.mk
+++ b/arch/powerpc/config.mk
@@ -53,3 +53,5 @@ endif
 ifeq ($(CROSS_COMPILE),powerpc-openbsd-)
 PLATFORM_CPPFLAGS+= -D__PPC__
 endif
+# default enable debug option for powerpc platform
+PLATFORM_CPPFLAGS+= -ggdb -Wa,-gdwarf2
-- 
1.7.3.5




More information about the U-Boot mailing list