]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
tools/env: use host build flags
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Aug 2010 04:03:22 +0000 (00:03 -0400)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Sep 2010 17:29:49 +0000 (19:29 +0200)
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>
tools/env/Makefile

index 2df631e98a79fa96c1d6872f47b37cbf14f6024b..f8930401a4b134d602669c282729fc9f1fa3b533 100644 (file)
@@ -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