1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
--- src/p80211/Makefile.orig 2004-09-13 16:53:46.000000000 +0200
+++ src/p80211/Makefile 2004-10-18 18:20:37.130194928 +0200
@@ -44,6 +44,13 @@
include $(WLAN_SRC)../../config.mk
+passvars = \
+ KERNEL_PATH='$(KERNEL_PATH)' \
+ KERNEL_SRC='$(KERNEL_SRC)' \
+ KERNEL_VERSION='$(KERNEL_VERSION)' \
+ CC='$(KERNEL_CC)' \
+ LD='$(KERNEL_LD)'
+
ifeq ($(WLAN_DEBUG), y)
WLAN_INCLUDE_DEBUG=-DWLAN_INCLUDE_DEBUG
endif
@@ -89,11 +96,11 @@
fi
$(MAKE) -C $(LINUX_SRC) SUBDIRS=$(PWD) WLAN_SRC=$(PWD)/ \
- MODVERDIR=$(PWD)/../.tmp_versions modules
+ MODVERDIR=$(PWD)/../.tmp_versions $(passvars) modules
else # kbuild 2.4
$(MAKE) -C $(LINUX_SRC) SUBDIRS=$(PWD) WLAN_SRC=$(PWD)/ \
- modules
+ $(passvars) modules
endif # kbuild switch
endif # KERNELRELEASE
--- src/prism2/driver/Makefile.orig 2004-08-04 19:27:56.000000000 +0200
+++ src/prism2/driver/Makefile 2004-10-18 18:20:06.614833968 +0200
@@ -44,6 +44,13 @@
include $(WLAN_SRC)../../../config.mk
+passvars = \
+ KERNEL_PATH='$(KERNEL_PATH)' \
+ KERNEL_SRC='$(KERNEL_SRC)' \
+ KERNEL_VERSION='$(KERNEL_VERSION)' \
+ CC='$(KERNEL_CC)' \
+ LD='$(KERNEL_LD)'
+
ifeq ($(WLAN_DEBUG), y)
WLAN_INCLUDE_DEBUG=-DWLAN_INCLUDE_DEBUG
endif
@@ -85,11 +92,11 @@
default:
ifeq ($(KERN_25), y)
$(MAKE) -C $(LINUX_SRC) SUBDIRS=$(PWD) WLAN_SRC=$(PWD)/ \
- MODVERDIR=$(PWD)/../.tmp_versions modules
+ MODVERDIR=$(PWD)/../.tmp_versions $(passvars) modules
else # kbuild 2.4
$(MAKE) -C $(LINUX_SRC) SUBDIRS=$(PWD) WLAN_SRC=$(PWD)/ \
- modules
+ $(passvars) modules
endif # kbuild switch
--- src/prism2/Makefile.orig 2004-02-13 19:47:37.000000000 +0100
+++ src/prism2/Makefile 2004-10-18 18:19:13.511906840 +0200
@@ -44,6 +44,13 @@
include ../../config.mk
+passvars = \
+ KERNEL_PATH='$(KERNEL_PATH)' \
+ KERNEL_SRC='$(KERNEL_SRC)' \
+ KERNEL_VERSION='$(KERNEL_VERSION)' \
+ KERNEL_CC='$(KERNEL_CC)' \
+ KERNEL_LD='$(KERNEL_LD)'
+
DIRS=driver ridlist download
ifneq ($(wildcard *.addon),)
@@ -51,10 +58,10 @@
endif
all:
- set -e; for d in $(DIRS); do $(MAKE) -C $$d ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars); done
clean:
- set -e; for d in $(DIRS); do $(MAKE) -C $$d clean ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars) clean ; done
rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags
for i in *_obj; do if [ -d $$i ]; then rm -fr $$i; fi; done
@@ -68,7 +75,7 @@
cp $$x $(TARGET_ROOT_ON_HOST)$(FIRMWARE_DIR)/prism2_`echo $$x | cut -c1-2`.hex ; \
fi; \
done
- set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars) install ; done
ctags:
ctags -R
--- Makefile.orig 2004-02-13 19:47:36.000000000 +0100
+++ Makefile 2004-10-18 18:16:58.126488552 +0200
@@ -42,6 +42,12 @@
#
# --------------------------------------------------------------------
+passvars = \
+ KERNEL_PATH='$(KERNEL_PATH)' \
+ KERNEL_SRC='$(KERNEL_SRC)' \
+ KERNEL_VERSION='$(KERNEL_VERSION)' \
+ KERNEL_CC='$(KERNEL_CC)' \
+ KERNEL_LD='$(KERNEL_LD)'
DIRS = src doc man etc
@@ -60,7 +66,7 @@
@echo " "
all: config.mk
- set -e; for d in $(DIRS); do $(MAKE) -C $$d ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars); done
mrproper: clean
rm -f config.out
@@ -68,7 +74,7 @@
clean:
touch config.mk config.new
- set -e; for d in $(DIRS); do $(MAKE) -C $$d clean ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars) clean ; done
rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags
for i in *_obj; do if [ -d $$i ]; then rm -fr $$i; fi; done
rm -f config.mk config.new
@@ -76,7 +82,7 @@
install:
find . -name .depend -exec rm {} \;
- set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d $(passvars) install ; done
auto_config config.mk:
@touch config.mk config.new
|