1 | # Copyright (c) 2005 Martin Decky
|
---|
2 | # Copyright (c) 2019 Jiří Zárevúcky
|
---|
3 | # All rights reserved.
|
---|
4 | #
|
---|
5 | # Redistribution and use in source and binary forms, with or without
|
---|
6 | # modification, are permitted provided that the following conditions
|
---|
7 | # are met:
|
---|
8 | #
|
---|
9 | # - Redistributions of source code must retain the above copyright
|
---|
10 | # notice, this list of conditions and the following disclaimer.
|
---|
11 | # - Redistributions in binary form must reproduce the above copyright
|
---|
12 | # notice, this list of conditions and the following disclaimer in the
|
---|
13 | # documentation and/or other materials provided with the distribution.
|
---|
14 | # - The name of the author may not be used to endorse or promote products
|
---|
15 | # derived from this software without specific prior written permission.
|
---|
16 | #
|
---|
17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
18 | # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
19 | # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
20 | # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
21 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
22 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
27 | #
|
---|
28 |
|
---|
29 | ## Accepted configuration directives
|
---|
30 | #
|
---|
31 |
|
---|
32 | _src = []
|
---|
33 | _check = []
|
---|
34 |
|
---|
35 | if CONFIG_ACPI
|
---|
36 | _src += [ 'acpi/acpi.c', 'acpi/madt.c' ]
|
---|
37 | endif
|
---|
38 |
|
---|
39 | if CONFIG_PAGE_PT
|
---|
40 | _src += [ 'mm/page_pt.c', 'mm/as_pt.c' ]
|
---|
41 | endif
|
---|
42 |
|
---|
43 | if CONFIG_PAGE_HT
|
---|
44 | _src += [ 'mm/page_ht.c', 'mm/as_ht.c' ]
|
---|
45 | endif
|
---|
46 |
|
---|
47 | if CONFIG_ASID
|
---|
48 | _src += [ 'mm/asid.c' ]
|
---|
49 | endif
|
---|
50 |
|
---|
51 | if CONFIG_ASID_FIFO
|
---|
52 | _src += [ 'mm/asid_fifo.c' ]
|
---|
53 | endif
|
---|
54 |
|
---|
55 | if CONFIG_SOFTINT
|
---|
56 | _src += [ 'softint/division.c', 'softint/multiplication.c' ]
|
---|
57 | endif
|
---|
58 |
|
---|
59 | if CONFIG_FB
|
---|
60 | _src += [ 'fb/font-8x16.c', 'fb/fb.c', 'fb/bfb.c' ]
|
---|
61 | endif
|
---|
62 |
|
---|
63 | if CONFIG_DSRLNIN
|
---|
64 | _src += [ 'drivers/dsrln/dsrlnin.c' ]
|
---|
65 | endif
|
---|
66 |
|
---|
67 | if CONFIG_DSRLNOUT
|
---|
68 | _src += [ 'drivers/dsrln/dsrlnout.c' ]
|
---|
69 | endif
|
---|
70 |
|
---|
71 | if CONFIG_I8042
|
---|
72 | _src += [ 'drivers/i8042/i8042.c' ]
|
---|
73 | endif
|
---|
74 |
|
---|
75 | if CONFIG_I8259
|
---|
76 | _src += [ 'drivers/i8259/i8259.c' ]
|
---|
77 | endif
|
---|
78 |
|
---|
79 | if CONFIG_NS16550
|
---|
80 | _src += [ 'drivers/ns16550/ns16550.c' ]
|
---|
81 | endif
|
---|
82 |
|
---|
83 | if CONFIG_PL011_UART
|
---|
84 | _src += [ 'drivers/pl011/pl011.c' ]
|
---|
85 | endif
|
---|
86 |
|
---|
87 | if CONFIG_PL050
|
---|
88 | _src += [ 'drivers/pl050/pl050.c' ]
|
---|
89 | endif
|
---|
90 |
|
---|
91 | if CONFIG_S3C24XX_IRQC
|
---|
92 | _src += [ 'drivers/s3c24xx/irqc.c' ]
|
---|
93 | endif
|
---|
94 |
|
---|
95 | if CONFIG_S3C24XX_UART
|
---|
96 | _src += [ 'drivers/s3c24xx/uart.c' ]
|
---|
97 | endif
|
---|
98 |
|
---|
99 | if CONFIG_OMAP_UART
|
---|
100 | _src += [ 'drivers/omap/uart.c' ]
|
---|
101 | endif
|
---|
102 |
|
---|
103 | if CONFIG_AM335X_TIMERS
|
---|
104 | _src += [ 'drivers/am335x/timer.c' ]
|
---|
105 | endif
|
---|
106 |
|
---|
107 | if CONFIG_BCM2835_MAILBOX
|
---|
108 | _src += [ 'drivers/bcm2835/irc.c', 'drivers/bcm2835/mbox.c', 'drivers/bcm2835/timer.c' ]
|
---|
109 | endif
|
---|
110 |
|
---|
111 | if CONFIG_GICV2
|
---|
112 | _src += [ 'drivers/gicv2/gicv2.c' ]
|
---|
113 | endif
|
---|
114 |
|
---|
115 | if CONFIG_VIA_CUDA
|
---|
116 | _src += [ 'drivers/via-cuda/cuda.c' ]
|
---|
117 | endif
|
---|
118 |
|
---|
119 | if CONFIG_PC_KBD
|
---|
120 | _src += [ 'kbrd/kbrd.c', 'kbrd/scanc_pc.c' ]
|
---|
121 | endif
|
---|
122 |
|
---|
123 | if CONFIG_AT_KBD
|
---|
124 | _src += [ 'kbrd/kbrd_at.c', 'kbrd/scanc_at.c' ]
|
---|
125 | endif
|
---|
126 |
|
---|
127 | if CONFIG_SUN_KBD
|
---|
128 | _src += [ 'kbrd/kbrd.c', 'kbrd/scanc_sun.c' ]
|
---|
129 | endif
|
---|
130 |
|
---|
131 | if CONFIG_MAC_KBD
|
---|
132 | _src += [ 'kbrd/kbrd.c', 'kbrd/scanc_mac.c' ]
|
---|
133 | endif
|
---|
134 |
|
---|
135 | if CONFIG_SRLN
|
---|
136 | _src += [ 'srln/srln.c' ]
|
---|
137 | endif
|
---|
138 |
|
---|
139 | if CONFIG_OFW_TREE
|
---|
140 | _src += [ 'ofw/ofw_tree.c' ]
|
---|
141 | endif
|
---|
142 |
|
---|
143 | if CONFIG_OFW_PCI
|
---|
144 | _src += [ 'ofw/ebus.c', 'ofw/pci.c', 'ofw/sbus.c', 'ofw/upa.c' ]
|
---|
145 | endif
|
---|
146 |
|
---|
147 | if CONFIG_MULTIBOOT
|
---|
148 | _src += [ 'multiboot/common.c', 'multiboot/multiboot.c', 'multiboot/multiboot2.c' ]
|
---|
149 | _check += [ 'multiboot/multiboot_memmap_struct.h', 'multiboot/multiboot_info_struct.h' ]
|
---|
150 | endif
|
---|
151 |
|
---|
152 | if CONFIG_EGA
|
---|
153 | _src += [ 'drivers/ega/ega.c' ]
|
---|
154 | endif
|
---|
155 |
|
---|
156 | if CONFIG_IOMAP_BITMAP
|
---|
157 | _src += [ 'ddi/ddi-bitmap.c' ]
|
---|
158 | endif
|
---|
159 |
|
---|
160 | if CONFIG_IOMAP_DUMMY
|
---|
161 | _src += [ 'ddi/ddi-dummy.c' ]
|
---|
162 | endif
|
---|
163 |
|
---|
164 |
|
---|
165 | genarch_src = []
|
---|
166 |
|
---|
167 | foreach f : _src
|
---|
168 | genarch_src += files('src' / f)
|
---|
169 | endforeach
|
---|
170 |
|
---|
171 | foreach f : _check
|
---|
172 | genarch_src += [ autocheck.process('include' / 'genarch' / f) ]
|
---|
173 | endforeach
|
---|