source: rtems-libbsd/Makefile.todo @ d686d7b

5-freebsd-12
Last change on this file since d686d7b was d686d7b, checked in by Christian Mauderer <Christian.Mauderer@…>, on Nov 30, 2016 at 3:41:12 PM

wlan/run: Add firmware.

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