From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 01 Sep 2014 10:51:17 +0200 Subject: [U-Boot] [PATCH] kbuild: force to define __UBOOT__ in all the C sources In-Reply-To: <201408311048.07463.marex@denx.de> References: <1409465813-3979-1-git-send-email-yamada.m@jp.panasonic.com> <201408311048.07463.marex@denx.de> Message-ID: <54043385.701@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Masahiro, Am 31.08.2014 10:48, schrieb Marek Vasut: > On Sunday, August 31, 2014 at 08:16:53 AM, 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 >> --- > > Nice idea, > > Acked-by: Marek Vasut Acked-by: Heiko Schocher Maybe we should add an entry in README too? bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany