summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 17:24:20 +0900
committerTom Rini <trini@ti.com>2014-02-19 11:07:50 -0500
commitfea1ca8e3418bac4b55f4cc8b66a6ae0d41e91e4 (patch)
tree8e501c701078793df021836689175de2c2c98d20 /tools/Makefile
parent2b3c9d3ddd4e0b5a55d17e164e817b42cb555639 (diff)
downloadu-boot-fea1ca8e3418bac4b55f4cc8b66a6ae0d41e91e4.tar.gz
u-boot-fea1ca8e3418bac4b55f4cc8b66a6ae0d41e91e4.tar.bz2
u-boot-fea1ca8e3418bac4b55f4cc8b66a6ae0d41e91e4.zip
Makefile: refactor include path settings
This commit merges commonly-used header include paths to UBOOTINCLUDE and NOSTDINC_FLAGS variables, which are placed at the top Makefile. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/Makefile b/tools/Makefile
index c3cdaf0bdc..21341b7aff 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -175,11 +175,9 @@ HOSTSRCS += $(addprefix $(SRCTREE)/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
# Define _GNU_SOURCE to obtain the getline prototype from stdio.h
#
HOST_EXTRACFLAGS += -include $(SRCTREE)/include/libfdt_env.h \
- -idirafter $(SRCTREE)/include \
- -idirafter $(SRCTREE)/arch/$(ARCH)/include \
- -idirafter $(OBJTREE)/include \
- -I $(SRCTREE)/lib/libfdt \
- -I $(SRCTREE)/tools \
+ $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
+ -I$(SRCTREE)/lib/libfdt \
+ -I$(SRCTREE)/tools \
-DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \
-DUSE_HOSTCC \
-D__KERNEL_STRICT_NAMES \