source: rtems-libbsd/Makefile.todo @ 3360232

5-freebsd-12
Last change on this file since 3360232 was c1205ee, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 2, 2017 at 3:29:11 PM

FDT(4): Port to RTEMS

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