aboutsummaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorMike Frysinger2009-07-19 15:17:03 -0400
committerWolfgang Denk2009-07-23 21:26:14 +0200
commit9aef73888509d10193615ee5cd9cf439ca44e937 (patch)
tree7a54a47f6456799f8d7531538b1f1e965d7b4907 /tools/Makefile
parent2e9393f500065f940e5e4ac7fe375e4c0b77b936 (diff)
unify HOST_CFLAGS and HOSTCFLAGS
The top build system sets up HOSTCFLAGS a bit and exports it, but other places use HOST_CFLAGS instead. Unify the two as HOSTCFLAGS so that the values stay in sync. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 5c764bba9f2..b5a1e39b022 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -36,18 +36,18 @@ TOOLSUBDIRS =
# -multiply_defined suppress option to turn off this error.
#
-HOST_CFLAGS = -Wall
+HOSTCFLAGS = -Wall
HOST_LDFLAGS =
ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc)
-HOST_CFLAGS += -traditional-cpp
+HOSTCFLAGS += -traditional-cpp
HOST_LDFLAGS += -multiply_defined suppress
else
-HOST_CFLAGS += -pedantic
+HOSTCFLAGS += -pedantic
endif
ifeq ($(HOSTOS),cygwin)
-HOST_CFLAGS += -ansi
+HOSTCFLAGS += -ansi
endif
#
@@ -148,7 +148,7 @@ CPPFLAGS = -idirafter $(SRCTREE)/include \
-I $(SRCTREE)/tools \
-DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC \
-D__KERNEL_STRICT_NAMES
-CFLAGS = $(HOST_CFLAGS) $(CPPFLAGS) -O
+CFLAGS = $(HOSTCFLAGS) $(CPPFLAGS) -O
# No -pedantic switch to avoid libfdt compilation warnings
FIT_CFLAGS = -Wall $(CPPFLAGS) -O
@@ -227,7 +227,7 @@ else
$(MAKE) \
HOSTOS=$(HOSTOS) \
HOSTARCH=$(HOSTARCH) \
- HOST_CFLAGS="$(HOST_CFLAGS)" \
+ HOSTCFLAGS="$(HOSTCFLAGS)" \
HOST_LDFLAGS="$(HOST_LDFLAGS)" \
-C $$dir || exit 1 ; \
done