source: rtems-libbsd/Makefile.todo @ 47169ea

5-freebsd-12
Last change on this file since 47169ea was 47169ea, checked in by Sichen Zhao <1473996754@…>, on Aug 1, 2017 at 7:21:31 AM

Port rtl8188eu driver to RTEMS.

Now USB dongle rtl8188eu can work as wlan client device.
It can scan wifi, connect unencrypted wifi.

  • Property mode set to 100644
File size: 6.1 KB
Line 
1LOCAL_INC = rtemsbsd/include/rtems/bsd/local
2
3LOCAL_SRC = rtemsbsd/local
4
5FREEBSD_SRC = freebsd-org
6
7TOOLS = freebsd-org/sys/tools
8
9GENERATED =
10GENERATED += $(LOCAL_INC)/usb_if.h
11GENERATED += $(LOCAL_SRC)/usb_if.c
12GENERATED += $(LOCAL_INC)/bus_if.h
13GENERATED += $(LOCAL_SRC)/bus_if.c
14GENERATED += $(LOCAL_INC)/device_if.h
15GENERATED += $(LOCAL_SRC)/device_if.c
16GENERATED += $(LOCAL_INC)/usbdevs_data.h
17GENERATED += $(LOCAL_INC)/usbdevs.h
18GENERATED += $(LOCAL_INC)/ifdi_if.h
19GENERATED += $(LOCAL_SRC)/ifdi_if.c
20GENERATED += $(LOCAL_INC)/miibus_if.h
21GENERATED += $(LOCAL_SRC)/miibus_if.c
22GENERATED += $(LOCAL_INC)/miidevs.h
23GENERATED += $(LOCAL_INC)/ofw_if.h
24GENERATED += $(LOCAL_SRC)/ofw_if.c
25GENERATED += $(LOCAL_INC)/ofw_bus_if.h
26GENERATED += $(LOCAL_SRC)/ofw_bus_if.c
27GENERATED += $(LOCAL_INC)/pci_if.h
28GENERATED += $(LOCAL_SRC)/pci_if.c
29GENERATED += $(LOCAL_INC)/pcib_if.h
30GENERATED += $(LOCAL_SRC)/pcib_if.c
31GENERATED += $(LOCAL_INC)/mmcbr_if.h
32GENERATED += $(LOCAL_SRC)/mmcbr_if.c
33GENERATED += $(LOCAL_INC)/mmcbus_if.h
34GENERATED += $(LOCAL_SRC)/mmcbus_if.c
35GENERATED += $(LOCAL_SRC)/rtwn-rtl8192cfwT.c
36GENERATED += $(LOCAL_SRC)/rtwn-rtl8188eufw.c
37GENERATED += $(LOCAL_SRC)/runfw.c
38GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
39GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
40
41all: $(GENERATED)
42
43$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
44        awk -f $(TOOLS)/usbdevs2h.awk $< -h
45        mv usbdevs.h $@
46
47$(LOCAL_INC)/usbdevs_data.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
48        awk -f $(TOOLS)/usbdevs2h.awk $< -d
49        mv usbdevs_data.h $@
50
51$(LOCAL_INC)/usb_if.h: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
52        awk -f $(TOOLS)/makeobjops.awk $< -h
53        mv usb_if.h $@
54
55$(LOCAL_SRC)/usb_if.c: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
56        awk -f $(TOOLS)/makeobjops.awk $< -c
57        mv usb_if.c $@
58
59$(LOCAL_INC)/bus_if.h: $(FREEBSD_SRC)/sys/kern/bus_if.m
60        awk -f $(TOOLS)/makeobjops.awk $< -h
61        mv bus_if.h $@
62
63$(LOCAL_SRC)/bus_if.c: $(FREEBSD_SRC)/sys/kern/bus_if.m
64        awk -f $(TOOLS)/makeobjops.awk $< -c
65        mv bus_if.c $@
66
67$(LOCAL_INC)/device_if.h: $(FREEBSD_SRC)/sys/kern/device_if.m
68        awk -f $(TOOLS)/makeobjops.awk $< -h
69        mv device_if.h $@
70
71$(LOCAL_SRC)/device_if.c: $(FREEBSD_SRC)/sys/kern/device_if.m
72        awk -f $(TOOLS)/makeobjops.awk $< -c
73        mv device_if.c $@
74
75$(LOCAL_INC)/ifdi_if.h: $(FREEBSD_SRC)/sys/net/ifdi_if.m
76        awk -f $(TOOLS)/makeobjops.awk $< -h
77        mv ifdi_if.h $@
78
79$(LOCAL_SRC)/ifdi_if.c: $(FREEBSD_SRC)/sys/net/ifdi_if.m
80        awk -f $(TOOLS)/makeobjops.awk $< -c
81        mv ifdi_if.c $@
82
83$(LOCAL_INC)/miidevs.h: $(FREEBSD_SRC)/sys/dev/mii/miidevs
84        awk -f $(TOOLS)/miidevs2h.awk $<
85        mv miidevs.h $@
86
87$(LOCAL_INC)/miibus_if.h: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
88        awk -f $(TOOLS)/makeobjops.awk $< -h
89        mv miibus_if.h $@
90
91$(LOCAL_SRC)/miibus_if.c: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
92        awk -f $(TOOLS)/makeobjops.awk $< -c
93        mv miibus_if.c $@
94
95$(LOCAL_INC)/pci_if.h: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
96        awk -f $(TOOLS)/makeobjops.awk $< -h
97        mv pci_if.h $@
98
99$(LOCAL_SRC)/pci_if.c: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
100        awk -f $(TOOLS)/makeobjops.awk $< -c
101        mv pci_if.c $@
102
103$(LOCAL_INC)/pcib_if.h: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
104        awk -f $(TOOLS)/makeobjops.awk $< -h
105        mv pcib_if.h $@
106
107$(LOCAL_SRC)/pcib_if.c: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
108        awk -f $(TOOLS)/makeobjops.awk $< -c
109        mv pcib_if.c $@
110
111$(LOCAL_INC)/mmcbus_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
112        awk -f $(TOOLS)/makeobjops.awk $< -h
113        mv mmcbus_if.h $@
114
115$(LOCAL_SRC)/mmcbus_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
116        awk -f $(TOOLS)/makeobjops.awk $< -c
117        mv mmcbus_if.c $@
118
119$(LOCAL_INC)/mmcbr_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
120        awk -f $(TOOLS)/makeobjops.awk $< -h
121        mv mmcbr_if.h $@
122
123$(LOCAL_SRC)/mmcbr_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
124        awk -f $(TOOLS)/makeobjops.awk $< -c
125        mv mmcbr_if.c $@
126
127$(LOCAL_INC)/ofw_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
128        awk -f $(TOOLS)/makeobjops.awk $< -h
129        mv ofw_if.h $@
130
131$(LOCAL_SRC)/ofw_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_if.m
132        awk -f $(TOOLS)/makeobjops.awk $< -c
133        mv ofw_if.c $@
134
135$(LOCAL_INC)/ofw_bus_if.h: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
136        awk -f $(TOOLS)/makeobjops.awk $< -h
137        mv ofw_bus_if.h $@
138
139$(LOCAL_SRC)/ofw_bus_if.c: $(FREEBSD_SRC)/sys/dev/ofw/ofw_bus_if.m
140        awk -f $(TOOLS)/makeobjops.awk $< -c
141        mv ofw_bus_if.c $@
142
143$(LOCAL_INC)/if_dwc_if.h: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
144        awk -f $(TOOLS)/makeobjops.awk $< -h
145        mv if_dwc_if.h $@
146
147$(LOCAL_SRC)/if_dwc_if.c: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
148        awk -f $(TOOLS)/makeobjops.awk $< -c
149        mv if_dwc_if.c $@
150
151$(LOCAL_INC)/gpio_if.h: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
152        awk -f $(TOOLS)/makeobjops.awk $< -h
153        mv gpio_if.h $@
154
155$(LOCAL_SRC)/gpio_if.c: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
156        awk -f $(TOOLS)/makeobjops.awk $< -c
157        mv gpio_if.c $@
158
159$(LOCAL_SRC)/rtwn-rtl8192cfwT.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8192cfwT.fw.uu
160        uudecode -o /dev/stdout $< | python firmware-gen.py \
161            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
162            rtwn-rtl8192cfwT - $@
163
164$(LOCAL_SRC)/rtwn-rtl8188eufw.c: $(FREEBSD_SRC)/sys/contrib/dev/rtwn/rtwn-rtl8188eufw.fw.uu
165        uudecode -o /dev/stdout $< | python firmware-gen.py \
166            -l "$(FREEBSD_SRC)/sys/contrib/dev/rtwn/LICENSE" \
167            rtwn-rtl8188eufw - $@
168
169$(LOCAL_SRC)/runfw.c: $(FREEBSD_SRC)/sys/contrib/dev/run/rt2870.fw.uu
170        uudecode -o /dev/stdout $< | python firmware-gen.py \
171            -l "$(FREEBSD_SRC)/sys/contrib/dev/run/LICENSE" \
172            runfw - $@
173
174freebsd/usr.bin/netstat/nl_symbols.c: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
175        awk '\
176            BEGIN { \
177                print "#include <sys/param.h>"; \
178                print "#include <nlist.h>"; \
179                print "const struct nlist nl[] = {"; \
180            } \
181            !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
182            END { print "\t{ .n_name = NULL },\n};" } \
183            ' < $< > $@ || rm -f $@
184
185freebsd/usr.bin/netstat/nl_defs.h: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
186        awk '\
187            BEGIN { \
188                print "#include <nlist.h>"; \
189                print "extern const struct nlist nl[];"; \
190                i = 0; \
191            } \
192            !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
193            < $< > $@ || rm -f $@
194
195rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/etc/regdomain.xml
196        rtems-bin2c -H $< $@
197
198rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/etc/regdomain.xml
199        rtems-bin2c -C $< $@
200
201clean:
202        rm $(GENERATED)
Note: See TracBrowser for help on using the repository browser.