Skip to content
Snippets Groups Projects
Commit abd315a1 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 0358df42
No related branches found
No related tags found
No related merge requests found
...@@ -26,16 +26,16 @@ include $(TOPDIR)/config.mk ...@@ -26,16 +26,16 @@ include $(TOPDIR)/config.mk
SRCS := $(obj)crc32.c fw_env.c fw_env_main.c SRCS := $(obj)crc32.c fw_env.c fw_env_main.c
HEADERS := fw_env.h HEADERS := fw_env.h
CPPFLAGS := -Wall -DUSE_HOSTCC -I$(SRCTREE)/include HOSTCFLAGS += -Wall -DUSE_HOSTCC -I$(SRCTREE)/include
ifeq ($(MTD_VERSION),old) ifeq ($(MTD_VERSION),old)
CPPFLAGS += -DMTD_OLD HOSTCFLAGS += -DMTD_OLD
endif endif
all: $(obj)fw_printenv all: $(obj)fw_printenv
$(obj)fw_printenv: $(SRCS) $(HEADERS) $(obj)fw_printenv: $(SRCS) $(HEADERS)
$(CROSS_COMPILE)gcc $(CPPFLAGS) $(SRCS) -o $(obj)fw_printenv $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(SRCS)
clean: clean:
rm -f $(obj)fw_printenv $(obj)crc32.c rm -f $(obj)fw_printenv $(obj)crc32.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment