From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] debug_print macros support
Date: Mon, 6 Apr 2009 04:05:17 -0400 [thread overview]
Message-ID: <200904060405.18322.vapier@gentoo.org> (raw)
In-Reply-To: <20090406075639.A98E8832E416@gemini.denx.de>
On Monday 06 April 2009 03:56:39 Wolfgang Denk wrote:
> In message Prafulla Wadaskar wrote:
> > > This seems to be a lot of effort, from code to command line pollution
> > > - for what exactly?
> > >
> > > Which is the problem you are trying to solve?
> >
> > If I understood current u-boot debugging properly, the debug statements
> > are enabled by editing src file by adding "#define DEBUG"
> > Doing this the release contents will be tampered,
>
> This is just one way to solve this, which is most convenient when you
> want to enable debugging on a per-file level. Of course you can
> acchieve the same effect by just passing "-DDEBUG" as a compile
> option. The Makefile allows to do this globally - there are currently
> no fine-grained selections available by default.
i havent tested it, but i think this should get fine-grained flags in a
flexible manner ? (the out of tree isnt exact, but you see what i'm after)
-mike
diff --git a/config.mk b/config.mk
index b1254e9..8791caa 100644
--- a/config.mk
+++ b/config.mk
@@ -209,20 +209,20 @@ export TEXT_BASE PLATFORM_CPPFLAGS PLATFORM_RELFLAGS
CPPFLAGS CFLAGS AFLAGS
ifndef REMOTE_BUILD
%.s: %.S
- $(CPP) $(AFLAGS) -o $@ $<
+ $(CPP) $(AFLAGS) $(AFLAGS_$@) -o $@ $<
%.o: %.S
- $(CC) $(AFLAGS) -c -o $@ $<
+ $(CC) $(AFLAGS) $(AFLAGS_$@) -c -o $@ $<
%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(CFLAGS_$@) -c -o $@ $<
else
$(obj)%.s: %.S
- $(CPP) $(AFLAGS) -o $@ $<
+ $(CPP) $(AFLAGS) $(AFLAGS_$@) -o $@ $<
$(obj)%.o: %.S
- $(CC) $(AFLAGS) -c -o $@ $<
+ $(CC) $(AFLAGS) $(AFLAGS_$@) -c -o $@ $<
$(obj)%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(CFLAGS_$@) -c -o $@ $<
endif
#########################################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090406/3b97a2d1/attachment.pgp
prev parent reply other threads:[~2009-04-06 8:05 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 11:49 [U-Boot] [PATCH] debug_print macros support Prafulla Wadaskar
2009-04-03 11:49 ` [U-Boot] [PATCH] bin_dep.sh Support Prafulla Wadaskar
2009-04-03 11:49 ` [U-Boot] [PATCH] Macronix MX25xx MTD SPI flash driver Prafulla Wadaskar
2009-04-03 14:14 ` Mike Frysinger
2009-04-06 7:23 ` Prafulla Wadaskar
2009-04-06 7:39 ` Mike Frysinger
2009-04-06 8:27 ` Prafulla Wadaskar
2009-04-06 8:49 ` Mike Frysinger
2009-04-03 17:54 ` [U-Boot] [PATCH] bin_dep.sh Support Wolfgang Denk
2009-04-06 7:34 ` Prafulla Wadaskar
2009-04-06 8:05 ` Wolfgang Denk
2009-04-06 8:13 ` Ronen Shitrit
2009-04-06 8:24 ` Wolfgang Denk
2009-04-06 8:36 ` Ronen Shitrit
2009-04-06 9:11 ` Wolfgang Denk
2009-04-06 9:03 ` Mike Frysinger
2009-04-06 9:16 ` Wolfgang Denk
2009-04-06 9:33 ` Mike Frysinger
2009-04-06 10:28 ` Wolfgang Denk
2009-04-06 10:49 ` Mike Frysinger
2009-04-06 9:38 ` Prafulla Wadaskar
2009-04-06 10:16 ` Mike Frysinger
2009-04-06 11:00 ` Wolfgang Denk
2009-05-26 9:08 ` Stefan Roese
2009-04-06 19:30 ` Scott Wood
2009-04-06 19:49 ` Wolfgang Denk
2009-04-06 23:01 ` Mike Frysinger
2009-04-06 9:39 ` Detlev Zundel
2009-04-06 9:43 ` Prafulla Wadaskar
2009-04-03 17:53 ` [U-Boot] [PATCH] debug_print macros support Wolfgang Denk
2009-04-06 5:32 ` Prafulla Wadaskar
2009-04-06 6:31 ` Mike Frysinger
2009-04-06 6:43 ` Prafulla Wadaskar
2009-04-06 7:56 ` Wolfgang Denk
2009-04-06 8:05 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200904060405.18322.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.