source: rtems-libbsd/Makefile.todo @ c40e45b

5-freebsd-12
Last change on this file since c40e45b was c40e45b, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 7, 2016 at 1:10:20 PM

Update to FreeBSD head 2016-08-23

Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.

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