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>
|
||
|---|---|---|
| .. | ||
| bbm.h | ||
| concat.h | ||
| doc2000.h | ||
| docg4.h | ||
| flashchip.h | ||
| fsl_upm.h | ||
| fsmc_nand.h | ||
| mtd.h | ||
| nand.h | ||
| nand_bch.h | ||
| nand_ecc.h | ||
| ndfc.h | ||
| omap_elm.h | ||
| omap_gpmc.h | ||
| onenand.h | ||
| onenand_regs.h | ||
| partitions.h | ||
| samsung_onenand.h | ||
| st_smi.h | ||
| ubi.h | ||