aboutsummaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-01 15:08:25 +0200
committerTom Rini <trini@konsulko.com>2019-05-03 07:30:31 -0400
commit72c69ea8d603fd2448dd1d7c399c4f77b77773b7 (patch)
tree5463693ab526f81d0cce779c136704da9ac9d8ef /tools/Makefile
parentd66f4fe982719c883e65035a3beb8dc89ea045c8 (diff)
downloadu-boot-72c69ea8d603fd2448dd1d7c399c4f77b77773b7.zip
u-boot-72c69ea8d603fd2448dd1d7c399c4f77b77773b7.tar.gz
u-boot-72c69ea8d603fd2448dd1d7c399c4f77b77773b7.tar.bz2
tools/Makefile: fix HOSTCFLAGS with CROSS_BUILD_TOOLS
When CROSS_BUILD_TOOLS is set, set HOSTCFLAGS to CFLAGS otherwise CC will be used with HOSTCFLAGS which seems wrong Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 12a3027..eadeba4 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -272,6 +272,7 @@ subdir- += env
ifneq ($(CROSS_BUILD_TOOLS),)
override HOSTCC = $(CC)
+override HOSTCFLAGS = $(CFLAGS)
quiet_cmd_crosstools_strip = STRIP $^
cmd_crosstools_strip = $(STRIP) $^; touch $@