From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] kbuild: force to define __UBOOT__ in all the C sources
Date: Tue, 16 Sep 2014 20:44:20 -0400 [thread overview]
Message-ID: <20140917004420.GL25506@bill-the-cat> (raw)
In-Reply-To: <1409465813-3979-1-git-send-email-yamada.m@jp.panasonic.com>
On Sun, Aug 31, 2014 at 03:16:53PM +0900, Masahiro Yamada wrote:
> U-Boot has imported various source files from other projects,
> mostly Linux.
>
> Something like
>
> #ifdef __UBOOT__
> [ modification for U-Boot ]
> #else
> [ original code ]
> #endif
>
> is an often used strategy for clarification of adjusted parts,
> that is, easier re-sync in future.
>
> Instead of defining __UBOOT__ in each source file,
> passing it from the top Makefile would be easier.
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Acked-by: Marek Vasut <marex@denx.de>
> Acked-by: Heiko Schocher <hs@denx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140916/1c8d2d71/attachment.pgp>
prev parent reply other threads:[~2014-09-17 0:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-31 6:16 [U-Boot] [PATCH] kbuild: force to define __UBOOT__ in all the C sources Masahiro Yamada
2014-08-31 8:48 ` Marek Vasut
2014-09-01 8:51 ` Heiko Schocher
2014-09-17 0:44 ` Tom Rini [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=20140917004420.GL25506@bill-the-cat \
--to=trini@ti.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox