source: rtems-libbsd/Makefile.todo

5-freebsd-12
Last change on this file was e0b4edbd, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 6, 2018 at 2:42:44 PM

Update to FreeBSD head 2018-11-15

Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a.

Update #3472.

  • Property mode set to 100644
File size: 10.7 KB
Line 
1BASE = $(PWD)
2
3BUILD_BSP = $(BASE)/build/arm-rtems5-xilinx_zynq_a9_qemu-everything
4
5LOCAL_INC = rtemsbsd/include/rtems/bsd/local
6
7LOCAL_SRC = rtemsbsd/local
8
9FREEBSD_SRC = freebsd-org
10
11TOOLS = freebsd-org/sys/tools
12
13GENERATED =
14GENERATED += $(LOCAL_INC)/cryptodev_if.h
15GENERATED += $(LOCAL_SRC)/cryptodev_if.c
16GENERATED += $(LOCAL_INC)/usb_if.h
17GENERATED += $(LOCAL_SRC)/usb_if.c
18GENERATED += $(LOCAL_INC)/bus_if.h
19GENERATED += $(LOCAL_SRC)/bus_if.c
20GENERATED += $(LOCAL_INC)/device_if.h
21GENERATED += $(LOCAL_SRC)/device_if.c
22GENERATED += $(LOCAL_INC)/usbdevs_data.h
23GENERATED += $(LOCAL_INC)/usbdevs.h
24GENERATED += $(LOCAL_INC)/ifdi_if.h
25GENERATED += $(LOCAL_SRC)/ifdi_if.c
26GENERATED += $(LOCAL_INC)/miibus_if.h
27GENERATED += $(LOCAL_SRC)/miibus_if.c
28GENERATED += $(LOCAL_INC)/miidevs.h
29GENERATED += $(LOCAL_INC)/ofw_if.h
30GENERATED += $(LOCAL_SRC)/ofw_if.c
31GENERATED += $(LOCAL_INC)/ofw_bus_if.h
32GENERATED += $(LOCAL_SRC)/ofw_bus_if.c
33GENERATED += $(LOCAL_INC)/pci_if.h
34GENERATED += $(LOCAL_SRC)/pci_if.c
35GENERATED += $(LOCAL_INC)/pcib_if.h
36GENERATED += $(LOCAL_SRC)/pcib_if.c
37GENERATED += $(LOCAL_INC)/mmcbr_if.h
38GENERATED += $(LOCAL_SRC)/mmcbr_if.c
39GENERATED += $(LOCAL_INC)/mmcbus_if.h
40GENERATED += $(LOCAL_SRC)/mmcbus_if.c
41GENERATED += $(LOCAL_SRC)/rtwn-rtl8192cfwT.c
42GENERATED += $(LOCAL_SRC)/rtwn-rtl8188eufw.c
43GENERATED += $(LOCAL_SRC)/runfw.c
44GENERATED += $(LOCAL_INC)/sdhci_if.h
45GENERATED += $(LOCAL_SRC)/sdhci_if.c
46GENERATED += $(LOCAL_INC)/gpiobus_if.h
47GENERATED += $(LOCAL_SRC)/gpiobus_if.c
48GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
49GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
50GENERATED += freebsd/contrib/libpcap/pcap_version.h
51
52YACC_GENERATED =
53LEX_GENERATED =
54
55YACC_GENERATED += freebsd/lib/libc/net/nsparser.h
56YACC_GENERATED += freebsd/lib/libc/net/nsparser.c
57LEX_GENERATED += freebsd/lib/libc/net/nslexer.c
58
59YACC_GENERATED += freebsd/sbin/pfctl/parse.h
60YACC_GENERATED += freebsd/sbin/pfctl/parse.c
61
62YACC_GENERATED += freebsd/contrib/libpcap/grammar.h
63YACC_GENERATED += freebsd/contrib/libpcap/grammar.c
64LEX_GENERATED += freebsd/contrib/libpcap/scanner.h
65LEX_GENERATED += freebsd/contrib/libpcap/scanner.c
66
67all: yacc lex $(GENERATED)
68
69yacc: $(YACC_GENERATED)
70
71lex: $(LEX_GENERATED)
72
73program-header:
74        cd freebsd/bin/stty && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/bin/stty/*.o -p stty
75        cd freebsd/contrib/tcpdump && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/contrib/tcpdump/*.o -p tcpdump
76        cd freebsd/sbin/ifconfig && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/ifconfig/*.o -p ifconfig
77        cd freebsd/sbin/pfctl && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/pfctl/*.o -p pfctl
78        cd freebsd/sbin/ping6 && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/ping6/*.o -p ping6
79        cd freebsd/sbin/ping && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/ping/*.o -p ping
80        cd freebsd/sbin/route && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/route/*.o -p route
81        cd freebsd/sbin/sysctl && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/sbin/sysctl/*.o -p sysctl
82        cd freebsd/tools/tools/net80211/wlanstats && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/tools/tools/net80211/wlanstats/*.o -p wlanstats
83        cd freebsd/usr.bin/netstat && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/usr.bin/netstat/*.o -p netstat
84        cd freebsd/usr.sbin/arp && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/freebsd/usr.sbin/arp/*.o -p arp
85        cd ipsec-tools/src/racoon && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/ipsec-tools/src/racoon/*.o -p racoon
86        cd ipsec-tools/src/setkey && $(BASE)/userspace-header-gen.py $(BUILD_BSP)/ipsec-tools/src/setkey/*.o -p setkey
87
88$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
89        awk -f $(TOOLS)/usbdevs2h.awk $< -h
90        mv usbdevs.h $@
91
92$(LOCAL_INC)/usbdevs_data.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
93        awk -f $(TOOLS)/usbdevs2h.awk $< -d
94        mv usbdevs_data.h $@
95
96$(LOCAL_INC)/cryptodev_if.h: $(FREEBSD_SRC)/sys/opencrypto/cryptodev_if.m
97        awk -f $(TOOLS)/makeobjops.awk $< -h
98        mv cryptodev_if.h $@
99
100$(LOCAL_SRC)/cryptodev_if.c: $(FREEBSD_SRC)/sys/opencrypto/cryptodev_if.m
101        awk -f $(TOOLS)/makeobjops.awk $< -c
102        mv cryptodev_if.c $@
103
104$(LOCAL_INC)/usb_if.h: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
105        awk -f $(TOOLS)/makeobjops.awk $< -h
106        mv usb_if.h $@
107
108$(LOCAL_SRC)/usb_if.c: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
109        awk -f $(TOOLS)/makeobjops.awk $< -c
110        mv usb_if.c $@
111
112$(LOCAL_INC)/bus_if.h: $(FREEBSD_SRC)/sys/kern/bus_if.m
113        awk -f $(TOOLS)/makeobjops.awk $< -h
114        mv bus_if.h $@
115
116$(LOCAL_SRC)/bus_if.c: $(FREEBSD_SRC)/sys/kern/bus_if.m
117        awk -f $(TOOLS)/makeobjops.awk $< -c
118        mv bus_if.c $@
119
120$(LOCAL_INC)/device_if.h: $(FREEBSD_SRC)/sys/kern/device_if.m
121        awk -f $(TOOLS)/makeobjops.awk $< -h
122        mv device_if.h $@
123
124$(LOCAL_SRC)/device_if.c: $(FREEBSD_SRC)/sys/kern/device_if.m
125        awk -f $(TOOLS)/makeobjops.awk $< -c
126        mv device_if.c $@
127
128$(LOCAL_INC)/ifdi_if.h: $(FREEBSD_SRC)/sys/net/ifdi_if.m
129        awk -f $(TOOLS)/makeobjops.awk $< -h
130        mv ifdi_if.h $@
131
132$(LOCAL_SRC)/ifdi_if.c: $(FREEBSD_SRC)/sys/net/ifdi_if.m
133        awk -f $(TOOLS)/makeobjops.awk $< -c
134        mv ifdi_if.c $@
135
136$(LOCAL_INC)/miidevs.h: $(FREEBSD_SRC)/sys/dev/mii/miidevs
137        awk -f $(TOOLS)/miidevs2h.awk $<
138        mv miidevs.h $@
139
140$(LOCAL_INC)/miibus_if.h: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
141        awk -f $(TOOLS)/makeobjops.awk $< -h
142        mv miibus_if.h $@
143
144$(LOCAL_SRC)/miibus_if.c: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
145        awk -f $(TOOLS)/makeobjops.awk $< -c
146        mv miibus_if.c $@
147
148$(LOCAL_INC)/pci_if.h: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
149        awk -f $(TOOLS)/makeobjops.awk $< -h
150        mv pci_if.h $@
151
152$(LOCAL_SRC)/pci_if.c: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
153        awk -f $(TOOLS)/makeobjops.awk $< -c
154        mv pci_if.c $@
155
156$(LOCAL_INC)/pcib_if.h: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
157        awk -f $(TOOLS)/makeobjops.awk $< -h
158        mv pcib_if.h $@
159
160$(LOCAL_SRC)/pcib_if.c: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
161        awk -f $(TOOLS)/makeobjops.awk $< -c
162        mv pcib_if.c $@
163
164$(LOCAL_INC)/mmcbus_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
165        awk -f $(TOOLS)/makeobjops.awk $< -h
166        mv mmcbus_if.h $@
167
168$(LOCAL_SRC)/mmcbus_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
169        awk -f $(TOOLS)/makeobjops.awk $< -c
170        mv mmcbus_if.c $@
171
172$(LOCAL_INC)/mmcbr_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
173        awk -f $(TOOLS)/makeobjops.awk $< -h
174        mv mmcbr_if.h $@
175
176$(LOCAL_SRC)/mmcbr_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
177        awk -f $(TOOLS)/makeobjops.awk $< -c
178        mv mmcbr_if.c $@
179
180$(LOCAL_INC)/ofw_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
181        awk -f $(TOOLS)/makeobjops.awk $< -h
182        mv ofw_if.h $@
183
184$(LOCAL_SRC)/ofw_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
185        awk -f $(TOOLS)/makeobjops.awk $< -c
186        mv ofw_if.c $@
187
188$(LOCAL_INC)/ofw_bus_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
189        awk -f $(TOOLS)/makeobjops.awk $< -h
190        mv ofw_bus_if.h $@
191
192$(LOCAL_SRC)/ofw_bus_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
193        awk -f $(TOOLS)/makeobjops.awk $< -c
194        mv ofw_bus_if.c $@
195
196$(LOCAL_INC)/if_dwc_if.h: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
197        awk -f $(TOOLS)/makeobjops.awk $< -h
198        mv if_dwc_if.h $@
199
200$(LOCAL_SRC)/if_dwc_if.c: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
201        awk -f $(TOOLS)/makeobjops.awk $< -c
202        mv if_dwc_if.c $@
203
204$(LOCAL_INC)/gpio_if.h: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
205        awk -f $(TOOLS)/makeobjops.awk $< -h
206        mv gpio_if.h $@
207
208$(LOCAL_INC)/gpiobus_if.h: $(FREEBSD_SRC)/sys/dev/gpio/gpiobus_if.m
209        awk -f $(TOOLS)/makeobjops.awk $< -h
210        mv gpiobus_if.h $@
211
212$(LOCAL_SRC)/gpiobus_if.c: $(FREEBSD_SRC)/sys/dev/gpio/gpiobus_if.m
213        awk -f $(TOOLS)/makeobjops.awk $< -c
214        sed -i gpiobus_if.c \
215            -e '1 i\#include <machine/rtems-bsd-kernel-space.h>\n' \
216            -e 's|#include "gpiobus_if.h"|#include <rtems/bsd/local/gpiobus_if.h>|'
217        mv gpiobus_if.c $@
218
219$(LOCAL_INC)/sdhci_if.h: $(FREEBSD_SRC)/sys/dev/sdhci/sdhci_if.m
220        awk -f $(TOOLS)/makeobjops.awk $< -h
221        mv sdhci_if.h $@
222
223$(LOCAL_SRC)/sdhci_if.c: $(FREEBSD_SRC)/sys/dev/sdhci/sdhci_if.m
224        awk -f $(TOOLS)/makeobjops.awk $< -c
225        sed -i sdhci_if.c \
226            -e '1 i\#include <machine/rtems-bsd-kernel-space.h>\n' \
227            -e 's|#include "sdhci_if.h"|#include <rtems/bsd/local/sdhci_if.h>|'
228        mv sdhci_if.c $@
229
230$(LOCAL_SRC)/gpio_if.c: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
231        awk -f $(TOOLS)/makeobjops.awk $< -c
232        mv gpio_if.c $@
233
234$(LOCAL_SRC)/rtwn-rtl8192cfwT.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8192cfwT.fw.uu
235        uudecode -o /dev/stdout $< | python firmware-gen.py \
236            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
237            rtwn-rtl8192cfwT - $@
238
239$(LOCAL_SRC)/rtwn-rtl8188eufw.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8188eufw.fw.uu
240        uudecode -o /dev/stdout $< | python firmware-gen.py \
241            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
242            rtwn-rtl8188eufw - $@
243
244$(LOCAL_SRC)/runfw.c: $(FREEBSD_SRC)/sys/contrib/dev/run/rt2870.fw.uu
245        uudecode -o /dev/stdout $< | python firmware-gen.py \
246            -l "$(FREEBSD_SRC)/sys/contrib/dev/run/LICENSE" \
247            runfw - $@
248
249freebsd/usr.bin/netstat/nl_symbols.c: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
250        awk '\
251            BEGIN { \
252                print "#include <sys/param.h>"; \
253                print "#include <nlist.h>"; \
254                print "const struct nlist nl[] = {"; \
255            } \
256            !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
257            END { print "\t{ .n_name = NULL },\n};" } \
258            ' < $< > $@ || rm -f $@
259
260freebsd/usr.bin/netstat/nl_defs.h: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
261        awk '\
262            BEGIN { \
263                print "#include <nlist.h>"; \
264                print "extern const struct nlist nl[];"; \
265                i = 0; \
266            } \
267            !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
268            < $< > $@ || rm -f $@
269
270rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/lib/lib80211/regdomain.xml
271        rtems-bin2c -H $< $@
272
273rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/lib/lib80211/regdomain.xml
274        rtems-bin2c -C $< $@
275
276freebsd/contrib/libpcap/pcap_version.h: freebsd-org/contrib/libpcap/VERSION
277        freebsd-org/contrib/libpcap/gen_version_header.sh $< freebsd-org/contrib/libpcap/pcap_version.h.in $@
278
279freebsd/lib/libc/net/nsparser.h: freebsd/lib/libc/net/nsparser.c
280
281freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
282        cd freebsd/lib/libc/net && yacc -p _nsyy -o nsparser.c -d nsparser.y
283
284freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l
285        cd freebsd/lib/libc/net && lex -P _nsyy -DYY_BUF_SIZE=1024 -o nslexer.c nslexer.l
286
287freebsd/sbin/pfctl/parse.h: freebsd/sbin/pfctl/parse.c
288
289freebsd/sbin/pfctl/parse.c: freebsd/sbin/pfctl/parse.y
290        cd freebsd/sbin/pfctl && yacc -p pfctly -o parse.c -d parse.y
291
292freebsd/contrib/libpcap/grammar.h: freebsd/contrib/libpcap/grammar.c
293
294freebsd/contrib/libpcap/grammar.c: freebsd/contrib/libpcap/grammar.y
295        cd freebsd/contrib/libpcap && yacc -p pcap_ -o grammar.c -d grammar.y
296
297freebsd/contrib/libpcap/scanner.h: freebsd/contrib/libpcap/scanner.c
298
299freebsd/contrib/libpcap/scanner.c: freebsd/contrib/libpcap/scanner.l
300        cd freebsd/contrib/libpcap && lex -P pcap_ --header-file=scanner.h --nounput -o scanner.c scanner.l
301
302clean-yacc:
303        rm $(YACC_GENERATED)
304
305clean-lex:
306        rm $(LEX_GENERATED)
307
308clean: clean-yacc clean-lex
309        rm $(GENERATED)
Note: See TracBrowser for help on using the repository browser.