diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-08-15 00:03:22 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-09-19 19:29:49 +0200 |
commit | abd315a1357ab05e82f0d61ebad666bc0d5378c3 (patch) | |
tree | c3390383ed072c5f249f63c8ece9495e7ff59926 /tools | |
parent | 0358df427ff701b042b87ccce0e97cc7930d1cb4 (diff) |
tools/env: use host build flags
Convert the tools/env/Makefile to use the same host tool syntax as the
other tool subdirs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/env/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile index 2df631e98a7..f8930401a4b 100644 --- a/tools/env/Makefile +++ b/tools/env/Makefile @@ -26,16 +26,16 @@ include $(TOPDIR)/config.mk SRCS := $(obj)crc32.c fw_env.c fw_env_main.c HEADERS := fw_env.h -CPPFLAGS := -Wall -DUSE_HOSTCC -I$(SRCTREE)/include +HOSTCFLAGS += -Wall -DUSE_HOSTCC -I$(SRCTREE)/include ifeq ($(MTD_VERSION),old) -CPPFLAGS += -DMTD_OLD +HOSTCFLAGS += -DMTD_OLD endif all: $(obj)fw_printenv $(obj)fw_printenv: $(SRCS) $(HEADERS) - $(CROSS_COMPILE)gcc $(CPPFLAGS) $(SRCS) -o $(obj)fw_printenv + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(SRCS) clean: rm -f $(obj)fw_printenv $(obj)crc32.c |