Skip to contentSkip to conversation

Bootwrapper: Enable debug info on boot wrapper

PATCH In review Grant Likely 3 participants 4 messages Oct 4, 2007 – Oct 11, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bootwrapper: Enable debug info on boot wrapper

From: Grant Likely <[email protected]>

Add '-g' to BOOTCFLAGS if CONFIG_DEBUG_INFO is set.

---

 arch/powerpc/boot/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/boot/Makefile +4 -0
index cf80db3..9dfe79b 100644
@@ -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
#1 lore raw

Any comments on this one? Scott? David?

Cheers,
g.

Quoted 31 lines · Grant Likely

From: Grant Likely <[email protected]>

Add '-g' to BOOTCFLAGS if CONFIG_DEBUG_INFO is set.

---

 arch/powerpc/boot/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/boot/Makefile +4 -0
index cf80db3..9dfe79b 100644
@@ -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

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Signature · 4 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#2 lore raw
Quoted 1 line · Grant Likely

Any comments on this one? Scott? David?

It's fine with me.

-Scott

#3 lore raw
In reply to Grant Likely
Quoted 1 line · Grant Likely

Any comments on this one? Scott? David?

Seems reasonable AFAICT.

Quoted 34 lines · Grant Likely
Quoted 31 lines

From: Grant Likely <[email protected]>

Add '-g' to BOOTCFLAGS if CONFIG_DEBUG_INFO is set.

---

 arch/powerpc/boot/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/boot/Makefile +4 -0
index cf80db3..9dfe79b 100644
@@ -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

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson