diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-08-31 15:16:53 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-16 12:23:56 -0400 |
commit | 3b6129702489ef4e327adeeef79ad73da8f6b59d (patch) | |
tree | 4a43e75d8d2151e3b3f8eef277f0e18adee1a380 /lib | |
parent | 5d9f423ddb2d4739eeee14990f5369508dee5e9d (diff) | |
download | u-boot-imx-3b6129702489ef4e327adeeef79ad73da8f6b59d.zip u-boot-imx-3b6129702489ef4e327adeeef79ad73da8f6b59d.tar.gz u-boot-imx-3b6129702489ef4e327adeeef79ad73da8f6b59d.tar.bz2 |
kbuild: force to define __UBOOT__ in all the C sources
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/list_sort.c | 1 | ||||
-rw-r--r-- | lib/rbtree.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/list_sort.c b/lib/list_sort.c index 81de0a1..e841da5 100644 --- a/lib/list_sort.c +++ b/lib/list_sort.c @@ -1,4 +1,3 @@ -#define __UBOOT__ #ifndef __UBOOT__ #include <linux/kernel.h> #include <linux/module.h> diff --git a/lib/rbtree.c b/lib/rbtree.c index 9e52f70..5de3bf4 100644 --- a/lib/rbtree.c +++ b/lib/rbtree.c @@ -9,7 +9,6 @@ linux/lib/rbtree.c */ -#define __UBOOT__ #include <linux/rbtree_augmented.h> #ifndef __UBOOT__ #include <linux/export.h> |