source: rtems-libbsd/Makefile.todo @ 9bc41d0

5-freebsd-12
Last change on this file since 9bc41d0 was 9bc41d0, checked in by Christian Mauderer <Christian.Mauderer@…>, on Dec 12, 2016 at 9:51:42 AM

lib80211/regdomain: Port to RTEMS.

  • Property mode set to 100644
File size: 4.7 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)/miibus_if.h
19GENERATED += $(LOCAL_SRC)/miibus_if.c
20GENERATED += $(LOCAL_INC)/miidevs.h
21GENERATED += $(LOCAL_INC)/pci_if.h
22GENERATED += $(LOCAL_SRC)/pci_if.c
23GENERATED += $(LOCAL_INC)/pcib_if.h
24GENERATED += $(LOCAL_SRC)/pcib_if.c
25GENERATED += $(LOCAL_INC)/mmcbr_if.h
26GENERATED += $(LOCAL_SRC)/mmcbr_if.c
27GENERATED += $(LOCAL_INC)/mmcbus_if.h
28GENERATED += $(LOCAL_SRC)/mmcbus_if.c
29GENERATED += $(LOCAL_SRC)/urtwn-rtl8192cfwT.fw.c
30GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
31GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
32
33all: $(GENERATED)
34
35$(LOCAL_INC)/usbdevs.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
36        awk -f $(TOOLS)/usbdevs2h.awk $< -h
37        mv usbdevs.h $@
38
39$(LOCAL_INC)/usbdevs_data.h: $(FREEBSD_SRC)/sys/dev/usb/usbdevs
40        awk -f $(TOOLS)/usbdevs2h.awk $< -d
41        mv usbdevs_data.h $@
42
43$(LOCAL_INC)/usb_if.h: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
44        awk -f $(TOOLS)/makeobjops.awk $< -h
45        mv usb_if.h $@
46
47$(LOCAL_SRC)/usb_if.c: $(FREEBSD_SRC)/sys/dev/usb/usb_if.m
48        awk -f $(TOOLS)/makeobjops.awk $< -c
49        mv usb_if.c $@
50
51$(LOCAL_INC)/bus_if.h: $(FREEBSD_SRC)/sys/kern/bus_if.m
52        awk -f $(TOOLS)/makeobjops.awk $< -h
53        mv bus_if.h $@
54
55$(LOCAL_SRC)/bus_if.c: $(FREEBSD_SRC)/sys/kern/bus_if.m
56        awk -f $(TOOLS)/makeobjops.awk $< -c
57        mv bus_if.c $@
58
59$(LOCAL_INC)/device_if.h: $(FREEBSD_SRC)/sys/kern/device_if.m
60        awk -f $(TOOLS)/makeobjops.awk $< -h
61        mv device_if.h $@
62
63$(LOCAL_SRC)/device_if.c: $(FREEBSD_SRC)/sys/kern/device_if.m
64        awk -f $(TOOLS)/makeobjops.awk $< -c
65        mv device_if.c $@
66
67$(LOCAL_INC)/miidevs.h: $(FREEBSD_SRC)/sys/dev/mii/miidevs
68        awk -f $(TOOLS)/miidevs2h.awk $<
69        mv miidevs.h $@
70
71$(LOCAL_INC)/miibus_if.h: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
72        awk -f $(TOOLS)/makeobjops.awk $< -h
73        mv miibus_if.h $@
74
75$(LOCAL_SRC)/miibus_if.c: $(FREEBSD_SRC)/sys/dev/mii/miibus_if.m
76        awk -f $(TOOLS)/makeobjops.awk $< -c
77        mv miibus_if.c $@
78
79$(LOCAL_INC)/pci_if.h: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
80        awk -f $(TOOLS)/makeobjops.awk $< -h
81        mv pci_if.h $@
82
83$(LOCAL_SRC)/pci_if.c: $(FREEBSD_SRC)/sys/dev/pci/pci_if.m
84        awk -f $(TOOLS)/makeobjops.awk $< -c
85        mv pci_if.c $@
86
87$(LOCAL_INC)/pcib_if.h: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
88        awk -f $(TOOLS)/makeobjops.awk $< -h
89        mv pcib_if.h $@
90
91$(LOCAL_SRC)/pcib_if.c: $(FREEBSD_SRC)/sys/dev/pci/pcib_if.m
92        awk -f $(TOOLS)/makeobjops.awk $< -c
93        mv pcib_if.c $@
94
95$(LOCAL_INC)/mmcbus_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
96        awk -f $(TOOLS)/makeobjops.awk $< -h
97        mv mmcbus_if.h $@
98
99$(LOCAL_SRC)/mmcbus_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbus_if.m
100        awk -f $(TOOLS)/makeobjops.awk $< -c
101        mv mmcbus_if.c $@
102
103$(LOCAL_INC)/mmcbr_if.h: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
104        awk -f $(TOOLS)/makeobjops.awk $< -h
105        mv mmcbr_if.h $@
106
107$(LOCAL_SRC)/mmcbr_if.c: $(FREEBSD_SRC)/sys/dev/mmc/mmcbr_if.m
108        awk -f $(TOOLS)/makeobjops.awk $< -c
109        mv mmcbr_if.c $@
110
111$(LOCAL_INC)/if_dwc_if.h: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
112        awk -f $(TOOLS)/makeobjops.awk $< -h
113        mv if_dwc_if.h $@
114
115$(LOCAL_SRC)/if_dwc_if.c: $(FREEBSD_SRC)/sys/dev/dwc/if_dwc_if.m
116        awk -f $(TOOLS)/makeobjops.awk $< -c
117        mv if_dwc_if.c $@
118
119$(LOCAL_INC)/gpio_if.h: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
120        awk -f $(TOOLS)/makeobjops.awk $< -h
121        mv gpio_if.h $@
122
123$(LOCAL_SRC)/gpio_if.c: $(FREEBSD_SRC)/sys/dev/gpio/gpio_if.m
124        awk -f $(TOOLS)/makeobjops.awk $< -c
125        mv gpio_if.c $@
126
127$(LOCAL_SRC)/urtwn-rtl8192cfwT.c: $(FREEBSD_SRC)/sys/contrib/dev/urtwn/urtwn-rtl8192cfwT.fw.uu
128        uudecode -o /dev/stdout $< | python firmware-gen.py \
129            -l "$(FREEBSD_SRC)/sys/contrib/dev/urtwn/LICENSE" \
130            urtwn-rtl8192cfwT - $@
131
132freebsd/usr.bin/netstat/nl_symbols.c: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
133        awk '\
134            BEGIN { \
135                print "#include <sys/param.h>"; \
136                print "#include <nlist.h>"; \
137                print "const struct nlist nl[] = {"; \
138            } \
139            !/^\#/ { printf("\t{ .n_name = \"%s\" },\n", $$2); } \
140            END { print "\t{ .n_name = NULL },\n};" } \
141            ' < $< > $@ || rm -f $@
142
143freebsd/usr.bin/netstat/nl_defs.h: $(FREEBSD_SRC)/usr.bin/netstat/nlist_symbols
144        awk '\
145            BEGIN { \
146                print "#include <nlist.h>"; \
147                print "extern const struct nlist nl[];"; \
148                i = 0; \
149            } \
150            !/^\#/ { printf("\#define\tN%s\t%s\n", toupper($$2), i++); }' \
151            < $< > $@ || rm -f $@
152
153rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/etc/regdomain.xml
154        rtems-bin2c -H $< $@
155
156rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/etc/regdomain.xml
157        rtems-bin2c -C $< $@
158
159clean:
160        rm $(GENERATED)
Note: See TracBrowser for help on using the repository browser.