source: rtems-libbsd/Makefile.todo @ b43517b

5-freebsd-12
Last change on this file since b43517b was de8a76d, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 4, 2017 at 7:36:57 AM

Update to FreeBSD head 2017-04-04

Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.

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