From: Tom Rini Date: Tue, 16 Sep 2014 20:44:20 -0400 Subject: [U-Boot] kbuild: force to define __UBOOT__ in all the C sources In-Reply-To: <1409465813-3979-1-git-send-email-yamada.m@jp.panasonic.com> References: <1409465813-3979-1-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140917004420.GL25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Acked-by: Marek Vasut > Acked-by: Heiko Schocher 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: