[U-Boot] kbuild: force to define __UBOOT__ in all the C sources
Tom Rini
trini at ti.com
Wed Sep 17 02:44:20 CEST 2014
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 at jp.panasonic.com>
> Acked-by: Marek Vasut <marex at denx.de>
> Acked-by: Heiko Schocher <hs at 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>
More information about the U-Boot
mailing list