ath9k: merge a fix for hardware full sleep
[openwrt.git] / package / uboot-envtools / patches / 002-makefile.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -21,37 +21,16 @@
4 # MA 02111-1307 USA
5 #
6
7 -include $(TOPDIR)/config.mk
8 -
9 -HOSTSRCS := $(obj)crc32.c fw_env.c fw_env_main.c
10 +SRCS := crc32.c fw_env.c fw_env_main.c
11 HEADERS := fw_env.h
12
13 -# Compile for a hosted environment on the target
14 -HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \
15 - -idirafter $(OBJTREE)/include2 \
16 - -idirafter $(OBJTREE)/include \
17 - -DUSE_HOSTCC
18 -
19 -ifeq ($(MTD_VERSION),old)
20 -HOSTCPPFLAGS += -DMTD_OLD
21 -endif
22 +CPPFLAGS := -Wall $(CFLAGS)
23
24 all: $(obj)fw_printenv
25
26 # Some files complain if compiled with -pedantic, use HOSTCFLAGS_NOPED
27 -$(obj)fw_printenv: $(HOSTSRCS) $(HEADERS)
28 - $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS)
29 +$(obj)fw_printenv: $(SRCS) $(HEADERS)
30 + $(CC) $(CPPFLAGS) $(SRCS) -o $(obj)fw_printenv
31
32 clean:
33 - rm -f $(obj)fw_printenv $(obj)crc32.c
34 -
35 -$(obj)crc32.c:
36 - ln -s $(src)../../lib/crc32.c $(obj)crc32.c
37 -
38 -#########################################################################
39 -
40 -include $(TOPDIR)/rules.mk
41 -
42 -sinclude $(obj).depend
43 -
44 -#########################################################################
45 + rm -f $(obj)fw_printenv
This page took 0.057322 seconds and 5 git commands to generate.