summaryrefslogtreecommitdiffstats
path: root/tools/env
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/env
parent2b3c9d3ddd4e0b5a55d17e164e817b42cb555639 (diff)
downloadtalos-obmc-uboot-fea1ca8e3418bac4b55f4cc8b66a6ae0d41e91e4.tar.gz
talos-obmc-uboot-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/env')
-rw-r--r--tools/env/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile
index c30381565d..d47fe16c07 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -6,9 +6,7 @@
#
# Compile for a hosted environment on the target
-HOST_EXTRACFLAGS = -idirafter $(SRCTREE)/include \
- -idirafter $(SRCTREE)/arch/$(ARCH)/include \
- -idirafter $(OBJTREE)/include \
+HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
-idirafter $(SRCTREE)/tools/env \
-DUSE_HOSTCC \
-DTEXT_BASE=$(TEXT_BASE)
OpenPOWER on IntegriCloud