]>
Commit | Line | Data |
---|---|---|
8c411768 BC |
1 | AutoGen definitions Makefile.tpl; |
2 | ||
3 | kernel = { | |
4 | name = kernel; | |
5 | ||
c1c6e4c0 BC |
6 | nostrip = emu; |
7 | ||
911bd640 BC |
8 | emu_ldflags = '-Wl,-r,-d'; |
9 | x86_efi_ldflags = '-Wl,-r,-d'; | |
10 | x86_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment'; | |
2d465fb0 BC |
11 | |
12 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
13 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
14 | ||
15 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
16 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
17 | ||
8c411768 | 18 | i386_coreboot_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
062cdbc1 | 19 | i386_multiboot_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
8c411768 BC |
20 | i386_ieee1275_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
21 | mips_yeeloong_ldflags = '-Wl,-Ttext,$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
22 | powerpc_ieee1275_ldflags = '-Wl,-Ttext,$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
23 | ||
24 | mips_yeeloong_cppflags = '-DUSE_ASCII_FAILBACK'; | |
25 | i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; | |
26 | i386_qemu_ccasflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
16321bf9 BC |
27 | emu_cflags = '$(CFLAGS_GNULIB)'; |
28 | emu_cppflags = '$(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
29 | |
30 | mips_ldadd = '-lgcc'; | |
31 | powerpc_ldadd = '-lgcc'; | |
32 | sparc64_ldadd = '-lgcc'; | |
33 | ||
34 | nonemu_nodist = symlist.c; | |
35 | ||
36 | shared = kern/command.c; | |
37 | shared = kern/corecmd.c; | |
38 | shared = kern/device.c; | |
39 | shared = kern/disk.c; | |
40 | shared = kern/dl.c; | |
41 | shared = kern/env.c; | |
42 | shared = kern/err.c; | |
43 | shared = kern/file.c; | |
44 | shared = kern/fs.c; | |
8c411768 BC |
45 | shared = kern/list.c; |
46 | shared = kern/main.c; | |
47 | shared = kern/misc.c; | |
48 | shared = kern/parser.c; | |
49 | shared = kern/partition.c; | |
50 | shared = kern/rescue_parser.c; | |
51 | shared = kern/rescue_reader.c; | |
52 | shared = kern/term.c; | |
53 | ||
54 | i386_pc = kern/i386/pc/startup.S; | |
55 | i386_pc = kern/i386/misc.S; | |
56 | i386_pc = kern/mm.c; | |
57 | i386_pc = kern/time.c; | |
58 | i386_pc = kern/i386/dl.c; | |
59 | i386_pc = kern/i386/pc/init.c; | |
60 | i386_pc = kern/i386/pc/mmap.c; | |
61 | i386_pc = kern/i386/tsc.c; | |
62 | i386_pc = kern/i386/pit.c; | |
63 | i386_pc = kern/generic/rtc_get_time_ms.c; | |
64 | i386_pc = kern/generic/millisleep.c; | |
65 | i386_pc = term/i386/pc/console.c; | |
66 | i386_pc = term/i386/vga_common.c; | |
67 | ||
68 | i386_efi = kern/i386/efi/startup.S; | |
69 | i386_efi = kern/mm.c; | |
70 | i386_efi = kern/i386/dl.c; | |
71 | i386_efi = kern/i386/efi/init.c; | |
72 | i386_efi = kern/efi/efi.c; | |
73 | i386_efi = kern/efi/init.c; | |
74 | i386_efi = kern/efi/mm.c; | |
75 | i386_efi = kern/time.c; | |
76 | i386_efi = kern/i386/tsc.c; | |
77 | i386_efi = kern/i386/pit.c; | |
78 | i386_efi = kern/generic/rtc_get_time_ms.c; | |
79 | i386_efi = kern/generic/millisleep.c; | |
80 | i386_efi = term/efi/console.c; | |
81 | i386_efi = disk/efi/efidisk.c; | |
82 | ||
83 | i386_coreboot = kern/i386/coreboot/startup.S; | |
84 | i386_coreboot = kern/i386/misc.S; | |
85 | i386_coreboot = kern/i386/coreboot/init.c; | |
86 | i386_coreboot = kern/i386/coreboot/mmap.c; | |
87 | i386_coreboot = kern/i386/halt.c; | |
88 | i386_coreboot = kern/mm.c; | |
89 | i386_coreboot = kern/time.c; | |
90 | i386_coreboot = kern/i386/dl.c; | |
91 | i386_coreboot = kern/i386/tsc.c; | |
92 | i386_coreboot = kern/i386/pit.c; | |
93 | i386_coreboot = kern/generic/rtc_get_time_ms.c; | |
94 | i386_coreboot = kern/generic/millisleep.c; | |
95 | i386_coreboot = term/i386/pc/vga_text.c; | |
96 | i386_coreboot = term/i386/vga_common.c; | |
97 | ||
062cdbc1 BC |
98 | i386_multiboot = kern/i386/coreboot/startup.S; |
99 | i386_multiboot = kern/i386/misc.S; | |
100 | i386_multiboot = kern/i386/coreboot/init.c; | |
101 | i386_multiboot = kern/i386/multiboot_mmap.c; | |
102 | i386_multiboot = kern/i386/halt.c; | |
103 | i386_multiboot = kern/mm.c; | |
104 | i386_multiboot = kern/time.c; | |
105 | i386_multiboot = kern/i386/dl.c; | |
106 | i386_multiboot = kern/i386/tsc.c; | |
107 | i386_multiboot = kern/i386/pit.c; | |
108 | i386_multiboot = kern/generic/rtc_get_time_ms.c; | |
109 | i386_multiboot = kern/generic/millisleep.c; | |
110 | i386_multiboot = term/i386/pc/vga_text.c; | |
111 | i386_multiboot = term/i386/vga_common.c; | |
112 | ||
8c411768 BC |
113 | i386_qemu = kern/i386/qemu/startup.S; |
114 | i386_qemu = kern/i386/misc.S; | |
297f0c2b | 115 | i386_qemu = kern/i386/qemu/init.c; |
8c411768 BC |
116 | i386_qemu = kern/i386/coreboot/init.c; |
117 | i386_qemu = kern/i386/qemu/mmap.c; | |
118 | i386_qemu = kern/i386/halt.c; | |
119 | i386_qemu = kern/mm.c; | |
120 | i386_qemu = kern/time.c; | |
121 | i386_qemu = kern/i386/dl.c; | |
122 | i386_qemu = kern/i386/tsc.c; | |
123 | i386_qemu = kern/i386/pit.c; | |
124 | i386_qemu = kern/generic/rtc_get_time_ms.c; | |
125 | i386_qemu = kern/generic/millisleep.c; | |
126 | i386_qemu = term/i386/pc/vga_text.c; | |
127 | i386_qemu = term/i386/vga_common.c; | |
297f0c2b | 128 | i386_qemu = bus/pci.c; |
8c411768 BC |
129 | |
130 | i386_ieee1275 = kern/i386/ieee1275/startup.S; | |
131 | i386_ieee1275 = kern/i386/misc.S; | |
132 | i386_ieee1275 = kern/i386/ieee1275/init.c; | |
133 | i386_ieee1275 = kern/ieee1275/init.c; | |
134 | i386_ieee1275 = kern/ieee1275/mmap.c; | |
135 | i386_ieee1275 = kern/ieee1275/cmain.c; | |
136 | i386_ieee1275 = kern/ieee1275/openfw.c; | |
137 | i386_ieee1275 = kern/mm.c; | |
138 | i386_ieee1275 = kern/i386/dl.c; | |
139 | i386_ieee1275 = kern/time.c; | |
140 | i386_ieee1275 = kern/generic/millisleep.c; | |
141 | i386_ieee1275 = kern/ieee1275/ieee1275.c; | |
142 | i386_ieee1275 = term/ieee1275/ofconsole.c; | |
143 | i386_ieee1275 = disk/ieee1275/ofdisk.c; | |
d9b78bce BC |
144 | i386_ieee1275 = term/terminfo.c; |
145 | i386_ieee1275 = term/tparm.c; | |
8c411768 BC |
146 | |
147 | x86_64_efi = kern/x86_64/efi/startup.S; | |
148 | x86_64_efi = kern/x86_64/efi/callwrap.S; | |
149 | x86_64_efi = kern/mm.c; | |
150 | x86_64_efi = kern/x86_64/dl.c; | |
151 | x86_64_efi = kern/i386/efi/init.c; | |
152 | x86_64_efi = kern/efi/efi.c; | |
153 | x86_64_efi = kern/efi/init.c; | |
154 | x86_64_efi = kern/efi/mm.c; | |
155 | x86_64_efi = kern/time.c; | |
156 | x86_64_efi = kern/i386/tsc.c; | |
157 | x86_64_efi = kern/i386/pit.c; | |
158 | x86_64_efi = kern/generic/millisleep.c; | |
159 | x86_64_efi = kern/generic/rtc_get_time_ms.c; | |
160 | x86_64_efi = term/efi/console.c; | |
161 | x86_64_efi = disk/efi/efidisk.c; | |
162 | ||
163 | mips_yeeloong = kern/mips/startup.S; | |
164 | mips_yeeloong = kern/mips/init.c; | |
165 | mips_yeeloong = kern/mips/yeeloong/init.c; | |
166 | mips_yeeloong = kern/mm.c; | |
167 | mips_yeeloong = kern/mips/dl.c; | |
168 | mips_yeeloong = kern/generic/millisleep.c; | |
169 | mips_yeeloong = kern/generic/rtc_get_time_ms.c; | |
170 | mips_yeeloong = kern/time.c; | |
171 | mips_yeeloong = kern/mips/cache.S; | |
172 | mips_yeeloong = io/bufio.c; | |
173 | mips_yeeloong = lib/arg.c; | |
174 | mips_yeeloong = commands/extcmd.c; | |
175 | mips_yeeloong = bus/pci.c; | |
176 | mips_yeeloong = bus/bonito.c; | |
177 | mips_yeeloong = font/font_cmd.c; | |
178 | mips_yeeloong = font/font.c; | |
179 | mips_yeeloong = term/at_keyboard.c; | |
180 | mips_yeeloong = term/gfxterm.c; | |
181 | mips_yeeloong = video/video.c; | |
182 | mips_yeeloong = video/fb/video_fb.c; | |
183 | mips_yeeloong = video/fb/fbblit.c; | |
184 | mips_yeeloong = video/fb/fbfill.c; | |
185 | mips_yeeloong = video/fb/fbutil.c; | |
186 | mips_yeeloong = video/bitmap.c; | |
187 | mips_yeeloong = video/bitmap_scale.c; | |
188 | mips_yeeloong = video/sm712.c; | |
baea1766 | 189 | mips_yeeloong = bus/cs5536.c; |
297f0c2b BC |
190 | mips_yeeloong = term/serial.c; |
191 | mips_yeeloong = term/terminfo.c; | |
192 | mips_yeeloong = term/tparm.c; | |
8c411768 BC |
193 | |
194 | powerpc_ieee1275 = kern/powerpc/ieee1275/startup.S; | |
195 | powerpc_ieee1275 = kern/ieee1275/cmain.c; | |
196 | powerpc_ieee1275 = kern/ieee1275/ieee1275.c; | |
197 | powerpc_ieee1275 = kern/mm.c; | |
198 | powerpc_ieee1275 = kern/ieee1275/init.c; | |
199 | powerpc_ieee1275 = kern/ieee1275/mmap.c; | |
200 | powerpc_ieee1275 = kern/ieee1275/openfw.c; | |
201 | powerpc_ieee1275 = kern/powerpc/dl.c; | |
202 | powerpc_ieee1275 = kern/generic/millisleep.c; | |
203 | powerpc_ieee1275 = kern/time.c; | |
204 | powerpc_ieee1275 = kern/powerpc/cache.S; | |
205 | powerpc_ieee1275 = term/ieee1275/ofconsole.c; | |
206 | powerpc_ieee1275 = disk/ieee1275/ofdisk.c; | |
297f0c2b BC |
207 | powerpc_ieee1275 = term/terminfo.c; |
208 | powerpc_ieee1275 = term/tparm.c; | |
8c411768 BC |
209 | |
210 | sparc64_ieee1275 = kern/sparc64/ieee1275/crt0.S; | |
211 | sparc64_ieee1275 = kern/ieee1275/cmain.c; | |
212 | sparc64_ieee1275 = kern/ieee1275/ieee1275.c; | |
213 | sparc64_ieee1275 = kern/mm.c; | |
214 | sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c; | |
215 | sparc64_ieee1275 = kern/sparc64/ieee1275/init.c; | |
216 | sparc64_ieee1275 = kern/ieee1275/mmap.c; | |
217 | sparc64_ieee1275 = kern/ieee1275/openfw.c; | |
218 | sparc64_ieee1275 = kern/sparc64/dl.c; | |
219 | sparc64_ieee1275 = kern/generic/millisleep.c; | |
220 | sparc64_ieee1275 = kern/time.c; | |
221 | sparc64_ieee1275 = kern/sparc64/cache.S; | |
222 | sparc64_ieee1275 = disk/ieee1275/ofdisk.c; | |
223 | sparc64_ieee1275 = term/ieee1275/ofconsole.c; | |
297f0c2b BC |
224 | sparc64_ieee1275 = term/terminfo.c; |
225 | sparc64_ieee1275 = term/tparm.c; | |
8c411768 | 226 | |
16321bf9 BC |
227 | emu = kern/emu/mm.c; |
228 | emu = kern/emu/main.c; | |
8c411768 BC |
229 | emu = kern/emu/misc.c; |
230 | emu = kern/emu/getroot.c; | |
231 | emu = kern/emu/time.c; | |
232 | emu = kern/emu/hostdisk.c; | |
233 | emu = kern/emu/hostfs.c; | |
234 | emu = kern/emu/console.c; | |
235 | emu = disk/host.c; | |
16321bf9 | 236 | emu = gnulib/progname.c; |
610c1efd BC |
237 | |
238 | extra_dist = kern/i386/loader.S; | |
239 | extra_dist = kern/i386/realmode.S; | |
240 | extra_dist = kern/i386/pc/lzma_decode.S; | |
8c411768 BC |
241 | }; |
242 | ||
243 | program = { | |
244 | name = grub-emu; | |
245 | mansection = 1; | |
246 | ||
16321bf9 | 247 | source = kern/emu/full.c; |
8c411768 BC |
248 | nodist = grub_emu_init.c; |
249 | ||
e235a228 | 250 | ldadd = 'kernel.img$(EXEEXT)'; |
8c411768 | 251 | ldadd = '$(MODULE_FILES)'; |
62f7d208 | 252 | ldadd = '$(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER)'; |
8c411768 | 253 | |
911bd640 | 254 | enable = emu; |
8c411768 BC |
255 | }; |
256 | ||
257 | program = { | |
258 | name = grub-emu-lite; | |
259 | ||
8c411768 | 260 | source = kern/emu/lite.c; |
8c411768 | 261 | source = kern/emu/cache.S; |
8c411768 BC |
262 | nodist = symlist.c; |
263 | ||
e235a228 | 264 | ldadd = 'kernel.img$(EXEEXT)'; |
62f7d208 | 265 | ldadd = '$(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER)'; |
8c411768 | 266 | |
911bd640 | 267 | enable = emu; |
8c411768 BC |
268 | }; |
269 | ||
8c411768 BC |
270 | image = { |
271 | name = boot; | |
272 | i386_pc = boot/i386/pc/boot.S; | |
8c411768 | 273 | i386_qemu = boot/i386/qemu/boot.S; |
2d465fb0 BC |
274 | |
275 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
276 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
277 | ||
278 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
279 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)'; | |
8c411768 BC |
280 | i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; |
281 | ||
282 | sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S; | |
911bd640 | 283 | sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big'; |
8c411768 | 284 | sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000'; |
911bd640 BC |
285 | |
286 | objcopyflags = '-O binary'; | |
287 | enable = i386_pc; | |
288 | enable = i386_qemu; | |
289 | enable = sparc64_ieee1275; | |
8c411768 BC |
290 | }; |
291 | ||
292 | image = { | |
293 | name = cdboot; | |
2d465fb0 BC |
294 | i386_pc = boot/i386/pc/cdboot.S; |
295 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
296 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
911bd640 BC |
297 | objcopyflags = '-O binary'; |
298 | enable = i386_pc; | |
8c411768 BC |
299 | }; |
300 | ||
301 | image = { | |
302 | name = pxeboot; | |
2d465fb0 | 303 | i386_pc = boot/i386/pc/pxeboot.S; |
8c411768 | 304 | |
2d465fb0 BC |
305 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
306 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
911bd640 BC |
307 | |
308 | objcopyflags = '-O binary'; | |
309 | enable = i386_pc; | |
8c411768 BC |
310 | }; |
311 | ||
312 | image = { | |
313 | name = diskboot; | |
314 | i386_pc = boot/i386/pc/diskboot.S; | |
2d465fb0 BC |
315 | |
316 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
317 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000'; | |
8c411768 BC |
318 | |
319 | sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S; | |
320 | sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200'; | |
911bd640 BC |
321 | |
322 | objcopyflags = '-O binary'; | |
323 | ||
324 | enable = i386_pc; | |
325 | enable = sparc64_ieee1275; | |
8c411768 BC |
326 | }; |
327 | ||
328 | image = { | |
329 | name = lnxboot; | |
2d465fb0 | 330 | i386_pc = boot/i386/pc/lnxboot.S; |
8c411768 | 331 | |
2d465fb0 BC |
332 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
333 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000'; | |
911bd640 BC |
334 | |
335 | objcopyflags = '-O binary'; | |
336 | enable = i386_pc; | |
8c411768 BC |
337 | }; |
338 | ||
297f0c2b BC |
339 | image = { |
340 | name = fwstart; | |
341 | mips_yeeloong = boot/mips/yeeloong/fwstart.S; | |
911bd640 BC |
342 | objcopyflags = '-O binary'; |
343 | enable = mips_yeeloong; | |
297f0c2b BC |
344 | }; |
345 | ||
e235a228 BC |
346 | module = { |
347 | name = trig; | |
348 | nodist = trigtables.c; | |
349 | extra_dist = gentrigtables.c; | |
e235a228 BC |
350 | }; |
351 | ||
baea1766 BC |
352 | module = { |
353 | name = cs5536; | |
354 | source = bus/cs5536.c; | |
911bd640 | 355 | enable = i386; |
baea1766 BC |
356 | }; |
357 | ||
8c411768 BC |
358 | module = { |
359 | name = libusb; | |
360 | source = bus/usb/emu/usb.c; | |
911bd640 BC |
361 | enable = emu; |
362 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
363 | }; |
364 | ||
297f0c2b BC |
365 | module = { |
366 | name = lsspd; | |
367 | mips_yeeloong = commands/mips/yeeloong/lsspd.c; | |
911bd640 | 368 | enable = mips_yeeloong; |
297f0c2b BC |
369 | }; |
370 | ||
8c411768 BC |
371 | module = { |
372 | name = usb; | |
373 | source = bus/usb/usb.c; | |
374 | source = bus/usb/usbtrans.c; | |
375 | source = bus/usb/usbhub.c; | |
911bd640 BC |
376 | enable = i386; |
377 | enable = mips_yeeloong; | |
8c411768 BC |
378 | }; |
379 | ||
380 | module = { | |
381 | name = usb; | |
382 | source = bus/usb/usb.c; | |
911bd640 BC |
383 | enable = emu; |
384 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
385 | }; |
386 | ||
387 | module = { | |
388 | name = uhci; | |
389 | source = bus/usb/uhci.c; | |
d9b78bce | 390 | enable = i386_pc; |
8c411768 BC |
391 | }; |
392 | ||
393 | module = { | |
394 | name = ohci; | |
395 | source = bus/usb/ohci.c; | |
d9b78bce | 396 | enable = i386_pc; |
911bd640 | 397 | enable = mips_yeeloong; |
8c411768 BC |
398 | }; |
399 | ||
400 | module = { | |
401 | name = pci; | |
402 | source = bus/pci.c; | |
d9b78bce BC |
403 | emu = bus/emu/pci.c; |
404 | emu = commands/lspci.c; | |
405 | ||
406 | enable = emu; | |
911bd640 | 407 | enable = i386_pc; |
d9b78bce | 408 | enable = x86_efi; |
911bd640 BC |
409 | enable = i386_ieee1275; |
410 | enable = i386_coreboot; | |
d9b78bce BC |
411 | |
412 | emu_condition = COND_GRUB_EMU_PCI; | |
8c411768 BC |
413 | }; |
414 | ||
415 | library = { | |
416 | name = libgnulib.a; | |
417 | source = gnulib/regex.c; | |
a60f6ee1 | 418 | |
a60f6ee1 BC |
419 | extra_dist = gnulib/regcomp.c; |
420 | extra_dist = gnulib/regexec.c; | |
421 | extra_dist = gnulib/fnmatch_loop.c; | |
422 | extra_dist = gnulib/regex_internal.c; | |
423 | ||
8c411768 BC |
424 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
425 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
426 | }; |
427 | ||
428 | module = { | |
429 | name = iorw; | |
430 | source = commands/iorw.c; | |
911bd640 | 431 | enable = i386; |
8c411768 BC |
432 | }; |
433 | ||
434 | module = { | |
435 | name = regexp; | |
436 | source = commands/regexp.c; | |
437 | ldadd = libgnulib.a; | |
438 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; | |
439 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
440 | }; |
441 | ||
442 | module = { | |
443 | name = acpi; | |
444 | ||
445 | x86_efi = commands/acpi.c; | |
446 | x86_efi = commands/efi/acpi.c; | |
447 | ||
448 | i386_pc = commands/acpi.c; | |
449 | i386_pc = commands/i386/pc/acpi.c; | |
911bd640 BC |
450 | |
451 | enable = x86_efi; | |
452 | enable = i386_pc; | |
8c411768 BC |
453 | }; |
454 | ||
455 | module = { | |
8c411768 BC |
456 | name = blocklist; |
457 | source = commands/blocklist.c; | |
458 | }; | |
459 | ||
460 | module = { | |
8c411768 BC |
461 | name = boot; |
462 | source = commands/boot.c; | |
463 | ||
464 | i386_pc = commands/boot.c; | |
465 | i386_pc = lib/i386/pc/biosnum.c; | |
466 | }; | |
467 | ||
468 | module = { | |
8c411768 BC |
469 | name = cat; |
470 | source = commands/cat.c; | |
471 | }; | |
472 | ||
473 | module = { | |
8c411768 BC |
474 | name = cmp; |
475 | source = commands/cmp.c; | |
476 | }; | |
477 | ||
478 | module = { | |
8c411768 BC |
479 | name = configfile; |
480 | source = commands/configfile.c; | |
481 | }; | |
482 | ||
483 | module = { | |
484 | name = cpuid; | |
485 | source = commands/i386/cpuid.c; | |
486 | ||
911bd640 | 487 | enable = x86; |
8c411768 BC |
488 | }; |
489 | ||
490 | module = { | |
8c411768 BC |
491 | name = crc; |
492 | source = commands/crc.c; | |
493 | source = lib/crc.c; | |
494 | }; | |
495 | ||
496 | module = { | |
8c411768 BC |
497 | name = date; |
498 | source = commands/date.c; | |
8c411768 BC |
499 | }; |
500 | ||
501 | module = { | |
502 | name = drivemap; | |
503 | ||
504 | i386_pc = commands/i386/pc/drivemap.c; | |
505 | i386_pc = commands/i386/pc/drivemap_int13h.S; | |
911bd640 | 506 | enable = i386_pc; |
8c411768 BC |
507 | }; |
508 | ||
509 | module = { | |
8c411768 BC |
510 | name = echo; |
511 | source = commands/echo.c; | |
512 | }; | |
513 | ||
514 | module = { | |
8c411768 BC |
515 | name = extcmd; |
516 | source = commands/extcmd.c; | |
517 | source = lib/arg.c; | |
518 | }; | |
519 | ||
520 | module = { | |
521 | name = fixvideo; | |
522 | x86_efi = commands/efi/fixvideo.c; | |
911bd640 | 523 | enable = x86_efi; |
8c411768 BC |
524 | }; |
525 | ||
526 | module = { | |
8c411768 BC |
527 | name = gptsync; |
528 | source = commands/gptsync.c; | |
529 | }; | |
530 | ||
531 | module = { | |
532 | name = halt; | |
533 | source = commands/halt.c; | |
534 | ||
535 | i386_pc = commands/i386/pc/halt.c; | |
8c411768 BC |
536 | }; |
537 | ||
538 | module = { | |
8c411768 BC |
539 | name = hashsum; |
540 | source = commands/hashsum.c; | |
541 | }; | |
542 | ||
543 | module = { | |
544 | name = hdparm; | |
545 | source = commands/hdparm.c; | |
546 | source = lib/hexdump.c; | |
547 | ||
911bd640 | 548 | enable = i386_pc; |
8c411768 BC |
549 | }; |
550 | ||
551 | module = { | |
8c411768 BC |
552 | name = help; |
553 | source = commands/help.c; | |
554 | }; | |
555 | ||
556 | module = { | |
8c411768 BC |
557 | name = hexdump; |
558 | source = commands/hexdump.c; | |
559 | source = lib/hexdump.c; | |
560 | }; | |
561 | ||
562 | module = { | |
8c411768 BC |
563 | name = keystatus; |
564 | source = commands/keystatus.c; | |
565 | }; | |
566 | ||
567 | module = { | |
568 | name = loadbios; | |
569 | x86_efi = commands/efi/loadbios.c; | |
911bd640 | 570 | enable = x86_efi; |
8c411768 BC |
571 | }; |
572 | ||
573 | module = { | |
8c411768 BC |
574 | name = loadenv; |
575 | source = commands/loadenv.c; | |
576 | source = lib/envblk.c; | |
577 | }; | |
578 | ||
579 | module = { | |
8c411768 BC |
580 | name = ls; |
581 | source = commands/ls.c; | |
582 | }; | |
583 | ||
584 | module = { | |
8c411768 BC |
585 | name = lsmmap; |
586 | source = commands/lsmmap.c; | |
8c411768 BC |
587 | }; |
588 | ||
589 | module = { | |
590 | name = lspci; | |
591 | source = commands/lspci.c; | |
592 | ||
911bd640 BC |
593 | enable = x86; |
594 | enable = mips; | |
8c411768 BC |
595 | }; |
596 | ||
597 | module = { | |
8c411768 BC |
598 | name = memrw; |
599 | source = commands/memrw.c; | |
600 | }; | |
601 | ||
602 | module = { | |
8c411768 BC |
603 | name = minicmd; |
604 | source = commands/minicmd.c; | |
605 | }; | |
606 | ||
607 | module = { | |
8c411768 BC |
608 | name = parttool; |
609 | source = commands/parttool.c; | |
610 | }; | |
611 | ||
612 | module = { | |
8c411768 BC |
613 | name = password; |
614 | source = commands/password.c; | |
615 | }; | |
616 | ||
617 | module = { | |
8c411768 BC |
618 | name = password_pbkdf2; |
619 | source = commands/password_pbkdf2.c; | |
620 | }; | |
621 | ||
622 | module = { | |
623 | name = play; | |
624 | source = commands/i386/pc/play.c; | |
911bd640 | 625 | enable = i386; |
8c411768 BC |
626 | }; |
627 | ||
628 | module = { | |
8c411768 BC |
629 | name = probe; |
630 | source = commands/probe.c; | |
631 | }; | |
632 | ||
633 | module = { | |
634 | name = pxecmd; | |
635 | i386_pc = commands/i386/pc/pxecmd.c; | |
911bd640 | 636 | enable = i386_pc; |
8c411768 BC |
637 | }; |
638 | ||
639 | module = { | |
8c411768 BC |
640 | name = read; |
641 | source = commands/read.c; | |
642 | }; | |
643 | ||
644 | module = { | |
8c411768 BC |
645 | name = reboot; |
646 | source = commands/reboot.c; | |
8c411768 BC |
647 | }; |
648 | ||
649 | module = { | |
8c411768 BC |
650 | name = search; |
651 | source = commands/search_wrap.c; | |
610c1efd | 652 | extra_dist = commands/search.c; |
8c411768 BC |
653 | }; |
654 | ||
655 | module = { | |
8c411768 BC |
656 | name = search_fs_file; |
657 | source = commands/search_file.c; | |
658 | }; | |
659 | ||
660 | module = { | |
8c411768 BC |
661 | name = search_fs_uuid; |
662 | source = commands/search_uuid.c; | |
663 | }; | |
664 | ||
665 | module = { | |
8c411768 BC |
666 | name = search_label; |
667 | source = commands/search_label.c; | |
668 | }; | |
669 | ||
670 | module = { | |
671 | name = setpci; | |
672 | source = commands/setpci.c; | |
673 | ||
911bd640 | 674 | enable = x86; |
8c411768 BC |
675 | }; |
676 | ||
677 | module = { | |
8c411768 BC |
678 | name = sleep; |
679 | source = commands/sleep.c; | |
680 | }; | |
681 | ||
682 | module = { | |
683 | name = suspend; | |
684 | source = commands/ieee1275/suspend.c; | |
911bd640 BC |
685 | enable = i386_ieee1275; |
686 | enable = powerpc_ieee1275; | |
8c411768 BC |
687 | }; |
688 | ||
689 | module = { | |
8c411768 BC |
690 | name = terminal; |
691 | source = commands/terminal.c; | |
692 | }; | |
693 | ||
694 | module = { | |
8c411768 BC |
695 | name = test; |
696 | source = commands/test.c; | |
697 | }; | |
698 | ||
699 | module = { | |
8c411768 BC |
700 | name = true; |
701 | source = commands/true.c; | |
702 | }; | |
703 | ||
704 | module = { | |
705 | name = usbtest; | |
706 | source = commands/usbtest.c; | |
911bd640 BC |
707 | enable = i386_pc; |
708 | enable = mips_yeeloong; | |
8c411768 BC |
709 | }; |
710 | ||
711 | module = { | |
712 | name = usbtest; | |
713 | source = commands/usbtest.c; | |
911bd640 BC |
714 | enable = emu; |
715 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
716 | }; |
717 | ||
718 | module = { | |
719 | name = vbeinfo; | |
720 | i386_pc = commands/i386/pc/vbeinfo.c; | |
911bd640 | 721 | enable = i386_pc; |
8c411768 BC |
722 | }; |
723 | ||
724 | module = { | |
725 | name = vbetest; | |
726 | i386_pc = commands/i386/pc/vbetest.c; | |
911bd640 | 727 | enable = i386_pc; |
8c411768 BC |
728 | }; |
729 | ||
730 | module = { | |
8c411768 BC |
731 | name = videotest; |
732 | source = commands/videotest.c; | |
733 | }; | |
734 | ||
735 | module = { | |
8c411768 BC |
736 | name = xnu_uuid; |
737 | source = commands/xnu_uuid.c; | |
738 | }; | |
739 | ||
740 | module = { | |
8c411768 BC |
741 | name = dm_nv; |
742 | source = disk/dmraid_nvidia.c; | |
743 | }; | |
744 | ||
745 | module = { | |
8c411768 BC |
746 | name = loopback; |
747 | source = disk/loopback.c; | |
748 | }; | |
749 | ||
750 | module = { | |
8c411768 BC |
751 | name = lvm; |
752 | source = disk/lvm.c; | |
753 | }; | |
754 | ||
755 | module = { | |
8c411768 BC |
756 | name = mdraid; |
757 | source = disk/mdraid_linux.c; | |
758 | }; | |
759 | ||
760 | module = { | |
8c411768 BC |
761 | name = raid; |
762 | source = disk/raid.c; | |
763 | }; | |
764 | ||
765 | module = { | |
8c411768 BC |
766 | name = raid5rec; |
767 | source = disk/raid5_recover.c; | |
768 | }; | |
769 | ||
770 | module = { | |
8c411768 BC |
771 | name = raid6rec; |
772 | source = disk/raid6_recover.c; | |
773 | }; | |
774 | ||
775 | module = { | |
8c411768 BC |
776 | name = scsi; |
777 | source = disk/scsi.c; | |
778 | }; | |
779 | ||
780 | module = { | |
8c411768 BC |
781 | name = memdisk; |
782 | source = disk/memdisk.c; | |
783 | }; | |
784 | ||
785 | module = { | |
786 | name = ata; | |
787 | source = disk/ata.c; | |
788 | ||
911bd640 BC |
789 | enable = x86; |
790 | enable = mips; | |
8c411768 BC |
791 | }; |
792 | ||
793 | module = { | |
794 | name = ata_pthru; | |
795 | source = disk/ata_pthru.c; | |
796 | ||
911bd640 BC |
797 | enable = x86; |
798 | enable = mips_yeeloong; | |
8c411768 BC |
799 | }; |
800 | ||
801 | module = { | |
802 | name = biosdisk; | |
803 | i386_pc = disk/i386/pc/biosdisk.c; | |
911bd640 | 804 | enable = i386_pc; |
8c411768 BC |
805 | }; |
806 | ||
807 | module = { | |
808 | name = usbms; | |
809 | source = disk/usbms.c; | |
911bd640 BC |
810 | enable = i386_pc; |
811 | enable = mips_yeeloong; | |
8c411768 BC |
812 | }; |
813 | ||
814 | module = { | |
815 | name = usbms; | |
816 | source = disk/usbms.c; | |
911bd640 BC |
817 | enable = emu; |
818 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
819 | }; |
820 | ||
821 | module = { | |
822 | name = nand; | |
823 | source = disk/ieee1275/nand.c; | |
824 | ||
911bd640 | 825 | enable = i386_ieee1275; |
8c411768 BC |
826 | }; |
827 | ||
828 | module = { | |
829 | name = efiemu; | |
830 | i386_pc = efiemu/main.c; | |
831 | i386_pc = efiemu/i386/loadcore32.c; | |
832 | i386_pc = efiemu/i386/loadcore64.c; | |
833 | i386_pc = efiemu/i386/pc/cfgtables.c; | |
834 | i386_pc = efiemu/mm.c; | |
835 | i386_pc = efiemu/loadcore_common.c; | |
836 | i386_pc = efiemu/symbols.c; | |
837 | i386_pc = efiemu/loadcore32.c; | |
838 | i386_pc = efiemu/loadcore64.c; | |
839 | i386_pc = efiemu/prepare32.c; | |
840 | i386_pc = efiemu/prepare64.c; | |
841 | i386_pc = efiemu/pnvram.c; | |
842 | i386_pc = efiemu/i386/coredetect.c; | |
a60f6ee1 BC |
843 | |
844 | extra_dist = efiemu/prepare.c; | |
845 | extra_dist = efiemu/loadcore.c; | |
846 | extra_dist = efiemu/runtime/efiemu.S; | |
847 | extra_dist = efiemu/runtime/efiemu.c; | |
911bd640 BC |
848 | |
849 | enable = i386_pc; | |
8c411768 BC |
850 | }; |
851 | ||
852 | module = { | |
853 | name = font; | |
854 | source = font/font.c; | |
855 | source = font/font_cmd.c; | |
911bd640 BC |
856 | enable = emu; |
857 | enable = x86; | |
858 | enable = sparc64; | |
859 | enable = powerpc; | |
8c411768 BC |
860 | }; |
861 | ||
862 | module = { | |
8c411768 BC |
863 | name = affs; |
864 | source = fs/affs.c; | |
865 | }; | |
866 | ||
867 | module = { | |
8c411768 BC |
868 | name = afs; |
869 | source = fs/afs.c; | |
870 | }; | |
871 | ||
872 | module = { | |
8c411768 BC |
873 | name = afs_be; |
874 | source = fs/afs_be.c; | |
875 | }; | |
876 | ||
877 | module = { | |
8c411768 BC |
878 | name = befs; |
879 | source = fs/befs.c; | |
880 | }; | |
881 | ||
882 | module = { | |
8c411768 BC |
883 | name = befs_be; |
884 | source = fs/befs_be.c; | |
885 | }; | |
886 | ||
887 | module = { | |
8c411768 BC |
888 | name = cpio; |
889 | source = fs/cpio.c; | |
890 | }; | |
891 | ||
892 | module = { | |
8c411768 BC |
893 | name = ext2; |
894 | source = fs/ext2.c; | |
895 | }; | |
896 | ||
897 | module = { | |
8c411768 BC |
898 | name = fat; |
899 | source = fs/fat.c; | |
900 | }; | |
901 | ||
902 | module = { | |
8c411768 BC |
903 | name = fshelp; |
904 | source = fs/fshelp.c; | |
905 | }; | |
906 | ||
907 | module = { | |
8c411768 BC |
908 | name = hfs; |
909 | source = fs/hfs.c; | |
910 | }; | |
911 | ||
912 | module = { | |
8c411768 BC |
913 | name = hfsplus; |
914 | source = fs/hfsplus.c; | |
915 | }; | |
916 | ||
917 | module = { | |
8c411768 BC |
918 | name = iso9660; |
919 | source = fs/iso9660.c; | |
920 | }; | |
921 | ||
922 | module = { | |
8c411768 BC |
923 | name = jfs; |
924 | source = fs/jfs.c; | |
925 | }; | |
926 | ||
927 | module = { | |
8c411768 BC |
928 | name = minix; |
929 | source = fs/minix.c; | |
930 | }; | |
931 | ||
932 | module = { | |
8c411768 BC |
933 | name = nilfs2; |
934 | source = fs/nilfs2.c; | |
935 | }; | |
936 | ||
937 | module = { | |
8c411768 BC |
938 | name = ntfs; |
939 | source = fs/ntfs.c; | |
940 | }; | |
941 | ||
942 | module = { | |
8c411768 BC |
943 | name = ntfscomp; |
944 | source = fs/ntfscomp.c; | |
945 | }; | |
946 | ||
947 | module = { | |
8c411768 BC |
948 | name = reiserfs; |
949 | source = fs/reiserfs.c; | |
950 | }; | |
951 | ||
952 | module = { | |
8c411768 BC |
953 | name = sfs; |
954 | source = fs/sfs.c; | |
955 | }; | |
956 | ||
957 | module = { | |
8c411768 BC |
958 | name = tar; |
959 | source = fs/tar.c; | |
960 | }; | |
961 | ||
962 | module = { | |
8c411768 BC |
963 | name = udf; |
964 | source = fs/udf.c; | |
965 | }; | |
966 | ||
967 | module = { | |
8c411768 BC |
968 | name = ufs1; |
969 | source = fs/ufs.c; | |
970 | }; | |
971 | ||
972 | module = { | |
8c411768 BC |
973 | name = ufs2; |
974 | source = fs/ufs2.c; | |
975 | }; | |
976 | ||
977 | module = { | |
8c411768 BC |
978 | name = xfs; |
979 | source = fs/xfs.c; | |
980 | }; | |
981 | ||
982 | module = { | |
983 | name = pxe; | |
984 | i386_pc = fs/i386/pc/pxe.c; | |
911bd640 | 985 | enable = i386_pc; |
8c411768 BC |
986 | }; |
987 | ||
988 | module = { | |
989 | name = gettext; | |
990 | source = gettext/gettext.c; | |
8c411768 BC |
991 | }; |
992 | ||
993 | module = { | |
8c411768 BC |
994 | name = gfxmenu; |
995 | source = gfxmenu/gfxmenu.c; | |
996 | source = gfxmenu/model.c; | |
997 | source = gfxmenu/view.c; | |
297f0c2b | 998 | source = gfxmenu/font.c; |
8c411768 BC |
999 | source = gfxmenu/icon_manager.c; |
1000 | source = gfxmenu/theme_loader.c; | |
1001 | source = gfxmenu/widget-box.c; | |
1002 | source = gfxmenu/gui_canvas.c; | |
1003 | source = gfxmenu/gui_circular_progress.c; | |
1004 | source = gfxmenu/gui_box.c; | |
1005 | source = gfxmenu/gui_label.c; | |
1006 | source = gfxmenu/gui_list.c; | |
1007 | source = gfxmenu/gui_image.c; | |
1008 | source = gfxmenu/gui_progress_bar.c; | |
1009 | source = gfxmenu/gui_util.c; | |
1010 | source = gfxmenu/gui_string_util.c; | |
1011 | source = gfxmenu/named_colors.c; | |
1012 | }; | |
1013 | ||
1014 | module = { | |
8c411768 BC |
1015 | name = hello; |
1016 | source = hello/hello.c; | |
1017 | }; | |
1018 | ||
1019 | module = { | |
8c411768 BC |
1020 | name = gzio; |
1021 | source = io/gzio.c; | |
1022 | }; | |
1023 | ||
1024 | module = { | |
1025 | name = bufio; | |
1026 | source = io/bufio.c; | |
911bd640 BC |
1027 | enable = emu; |
1028 | enable = x86; | |
1029 | enable = sparc64; | |
1030 | enable = powerpc; | |
8c411768 BC |
1031 | }; |
1032 | ||
1033 | module = { | |
8c411768 BC |
1034 | name = elf; |
1035 | source = kern/elf.c; | |
1036 | }; | |
1037 | ||
8c411768 | 1038 | module = { |
8c411768 BC |
1039 | name = crypto; |
1040 | source = lib/crypto.c; | |
610c1efd BC |
1041 | |
1042 | extra_dist = lib/libgcrypt-grub/cipher/crypto.lst; | |
8c411768 BC |
1043 | }; |
1044 | ||
1045 | module = { | |
8c411768 BC |
1046 | name = gcry_arcfour; |
1047 | cflags = '$(CFLAGS_GCRY)'; | |
1048 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1049 | source = lib/libgcrypt-grub/cipher/arcfour.c; | |
1050 | }; | |
1051 | ||
1052 | module = { | |
8c411768 BC |
1053 | name = gcry_blowfish; |
1054 | cflags = '$(CFLAGS_GCRY)'; | |
1055 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1056 | source = lib/libgcrypt-grub/cipher/blowfish.c; | |
1057 | }; | |
1058 | ||
1059 | module = { | |
8c411768 BC |
1060 | name = gcry_camellia; |
1061 | cflags = '$(CFLAGS_GCRY)'; | |
1062 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1063 | source = lib/libgcrypt-grub/cipher/camellia.c; | |
1064 | source = lib/libgcrypt-grub/cipher/camellia-glue.c; | |
1065 | }; | |
1066 | ||
1067 | module = { | |
8c411768 BC |
1068 | name = gcry_cast5; |
1069 | cflags = '$(CFLAGS_GCRY)'; | |
1070 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1071 | source = lib/libgcrypt-grub/cipher/cast5.c; | |
1072 | }; | |
1073 | ||
1074 | module = { | |
8c411768 BC |
1075 | name = gcry_crc; |
1076 | cflags = '$(CFLAGS_GCRY)'; | |
1077 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1078 | source = lib/libgcrypt-grub/cipher/crc.c; | |
1079 | }; | |
1080 | ||
1081 | module = { | |
8c411768 BC |
1082 | name = gcry_des; |
1083 | cflags = '$(CFLAGS_GCRY)'; | |
1084 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1085 | source = lib/libgcrypt-grub/cipher/des.c; | |
1086 | }; | |
1087 | ||
1088 | module = { | |
8c411768 BC |
1089 | name = gcry_md4; |
1090 | cflags = '$(CFLAGS_GCRY)'; | |
1091 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1092 | source = lib/libgcrypt-grub/cipher/md4.c; | |
1093 | }; | |
1094 | ||
1095 | module = { | |
8c411768 BC |
1096 | name = gcry_md5; |
1097 | cflags = '$(CFLAGS_GCRY)'; | |
1098 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1099 | source = lib/libgcrypt-grub/cipher/md5.c; | |
1100 | }; | |
1101 | ||
1102 | module = { | |
8c411768 BC |
1103 | name = gcry_rfc2268; |
1104 | cflags = '$(CFLAGS_GCRY)'; | |
1105 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1106 | source = lib/libgcrypt-grub/cipher/rfc2268.c; | |
1107 | }; | |
1108 | ||
1109 | module = { | |
8c411768 BC |
1110 | name = gcry_rijndael; |
1111 | cflags = '$(CFLAGS_GCRY)'; | |
1112 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1113 | source = lib/libgcrypt-grub/cipher/rijndael.c; | |
1114 | }; | |
1115 | ||
1116 | module = { | |
8c411768 BC |
1117 | name = gcry_rmd160; |
1118 | cflags = '$(CFLAGS_GCRY)'; | |
1119 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1120 | source = lib/libgcrypt-grub/cipher/rmd160.c; | |
1121 | }; | |
1122 | ||
1123 | module = { | |
8c411768 BC |
1124 | name = gcry_seed; |
1125 | cflags = '$(CFLAGS_GCRY)'; | |
1126 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1127 | source = lib/libgcrypt-grub/cipher/seed.c; | |
1128 | }; | |
1129 | ||
1130 | module = { | |
8c411768 BC |
1131 | name = gcry_serpent; |
1132 | cflags = '$(CFLAGS_GCRY)'; | |
1133 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1134 | source = lib/libgcrypt-grub/cipher/serpent.c; | |
1135 | }; | |
1136 | ||
1137 | module = { | |
8c411768 BC |
1138 | name = gcry_sha1; |
1139 | cflags = '$(CFLAGS_GCRY)'; | |
1140 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1141 | source = lib/libgcrypt-grub/cipher/sha1.c; | |
1142 | }; | |
1143 | ||
1144 | module = { | |
8c411768 BC |
1145 | name = gcry_sha256; |
1146 | cflags = '$(CFLAGS_GCRY)'; | |
1147 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1148 | source = lib/libgcrypt-grub/cipher/sha256.c; | |
1149 | }; | |
1150 | ||
1151 | module = { | |
8c411768 BC |
1152 | name = gcry_sha512; |
1153 | cflags = '$(CFLAGS_GCRY)'; | |
1154 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1155 | source = lib/libgcrypt-grub/cipher/sha512.c; | |
1156 | }; | |
1157 | ||
1158 | module = { | |
8c411768 BC |
1159 | name = gcry_tiger; |
1160 | cflags = '$(CFLAGS_GCRY)'; | |
1161 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1162 | source = lib/libgcrypt-grub/cipher/tiger.c; | |
1163 | }; | |
1164 | ||
1165 | module = { | |
8c411768 BC |
1166 | name = gcry_twofish; |
1167 | cflags = '$(CFLAGS_GCRY)'; | |
1168 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1169 | source = lib/libgcrypt-grub/cipher/twofish.c; | |
1170 | }; | |
1171 | ||
1172 | module = { | |
8c411768 BC |
1173 | name = gcry_whirlpool; |
1174 | cflags = '$(CFLAGS_GCRY)'; | |
1175 | cppflags = '$(CPPFLAGS_GCRY)'; | |
1176 | source = lib/libgcrypt-grub/cipher/whirlpool.c; | |
1177 | }; | |
1178 | ||
1179 | module = { | |
8c411768 BC |
1180 | name = pbkdf2; |
1181 | source = lib/pbkdf2.c; | |
1182 | }; | |
1183 | ||
1184 | module = { | |
1185 | name = relocator; | |
1186 | mips = lib/mips/relocator.c; | |
1187 | mips = lib/mips/relocator_asm.S; | |
1188 | x86 = lib/i386/relocator.c; | |
1189 | x86 = lib/i386/relocator_asm.S; | |
1190 | x86 = lib/i386/relocator_backward.S; | |
a60f6ee1 | 1191 | extra_dist = lib/relocator.c; |
911bd640 BC |
1192 | enable = mips; |
1193 | enable = x86; | |
8c411768 BC |
1194 | }; |
1195 | ||
1196 | module = { | |
1197 | name = datetime; | |
1198 | source = lib/cmos_datetime.c; | |
1199 | x86_efi = lib/efi/datetime.c; | |
1200 | sparc64_ieee1275 = lib/ieee1275/datetime.c; | |
1201 | powerpc_ieee1275 = lib/ieee1275/datetime.c; | |
911bd640 BC |
1202 | enable = x86; |
1203 | enable = mips; | |
1204 | enable = sparc64_ieee1275; | |
1205 | enable = powerpc_ieee1275; | |
8c411768 BC |
1206 | }; |
1207 | ||
1208 | module = { | |
1209 | name = setjmp; | |
2b6c0084 BC |
1210 | nodist = lib/target_cpu/setjmp.S; |
1211 | extra_dist = lib/i386/setjmp.S; | |
1212 | extra_dist = lib/mips/setjmp.S; | |
1213 | extra_dist = lib/x86_64/setjmp.S; | |
1214 | extra_dist = lib/sparc64/setjmp.S; | |
1215 | extra_dist = lib/powerpc/setjmp.S; | |
8c411768 BC |
1216 | }; |
1217 | ||
1218 | module = { | |
1219 | name = aout; | |
1220 | source = loader/aout.c; | |
911bd640 BC |
1221 | enable = i386_pc; |
1222 | enable = i386_qemu; | |
1223 | enable = i386_coreboot; | |
1224 | enable = i386_multiboot; | |
1225 | enable = i386_ieee1275; | |
8c411768 BC |
1226 | }; |
1227 | ||
1228 | module = { | |
1229 | name = bsd; | |
1230 | source = loader/i386/bsd.c; | |
1231 | source = loader/i386/bsd32.c; | |
1232 | source = loader/i386/bsd64.c; | |
1233 | source = loader/i386/bsd_helper.S; | |
1234 | source = loader/i386/bsd_trampoline.S; | |
610c1efd BC |
1235 | |
1236 | extra_dist = loader/i386/bsdXX.c; | |
1237 | extra_dist = loader/i386/bsd_pagetable.c; | |
1238 | ||
911bd640 BC |
1239 | enable = i386_pc; |
1240 | enable = i386_qemu; | |
1241 | enable = i386_coreboot; | |
1242 | enable = i386_multiboot; | |
8c411768 BC |
1243 | }; |
1244 | ||
1245 | module = { | |
1246 | name = linux16; | |
1247 | source = loader/i386/pc/linux.c; | |
911bd640 | 1248 | enable = i386_pc; |
8c411768 BC |
1249 | }; |
1250 | ||
1251 | module = { | |
1252 | name = multiboot2; | |
1253 | cppflags = "-DGRUB_USE_MULTIBOOT2"; | |
1254 | ||
1255 | source = loader/multiboot.c; | |
1256 | source = loader/multiboot_mbi2.c; | |
911bd640 BC |
1257 | enable = x86; |
1258 | enable = mips; | |
8c411768 BC |
1259 | }; |
1260 | ||
1261 | module = { | |
1262 | name = multiboot; | |
1263 | source = loader/multiboot.c; | |
1264 | source = loader/i386/multiboot_mbi.c; | |
a60f6ee1 | 1265 | extra_dist = loader/multiboot_elfxx.c; |
911bd640 | 1266 | enable = x86; |
8c411768 BC |
1267 | }; |
1268 | ||
1269 | module = { | |
1270 | name = linux; | |
1271 | i386 = loader/i386/linux.c; | |
1272 | i386_efi = loader/i386/efi/linux.c; | |
1273 | i386_ieee1275 = loader/i386/ieee1275/linux.c; | |
1274 | x86_64_efi = loader/i386/efi/linux.c; | |
1275 | x86_64_efi = loader/i386/linux_trampoline.S; | |
1276 | mips = loader/mips/linux.c; | |
1277 | powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c; | |
1278 | sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c; | |
911bd640 | 1279 | enable = nonemu; |
8c411768 BC |
1280 | }; |
1281 | ||
1282 | module = { | |
1283 | name = xnu; | |
02c9030a BC |
1284 | source = loader/xnu_resume.c; |
1285 | source = loader/i386/xnu.c; | |
1286 | source = loader/macho32.c; | |
1287 | source = loader/macho64.c; | |
1288 | source = loader/macho.c; | |
1289 | source = loader/xnu.c; | |
a60f6ee1 BC |
1290 | |
1291 | extra_dist = loader/machoXX.c; | |
911bd640 BC |
1292 | enable = i386_pc; |
1293 | enable = x86_efi; | |
8c411768 BC |
1294 | }; |
1295 | ||
1296 | module = { | |
1297 | name = appleldr; | |
1298 | x86_efi = loader/efi/appleloader.c; | |
911bd640 | 1299 | enable = x86_efi; |
8c411768 BC |
1300 | }; |
1301 | ||
1302 | module = { | |
1303 | name = chain; | |
1304 | x86_efi = loader/efi/chainloader.c; | |
1305 | i386_pc = loader/i386/pc/chainloader.c; | |
911bd640 BC |
1306 | enable = i386_pc; |
1307 | enable = x86_efi; | |
8c411768 BC |
1308 | }; |
1309 | ||
1310 | module = { | |
1311 | name = mmap; | |
1312 | i386_pc = mmap/mmap.c; | |
1313 | i386_pc = mmap/i386/uppermem.c; | |
1314 | i386_pc = mmap/i386/mmap.c; | |
1315 | i386_pc = mmap/i386/pc/mmap.c; | |
1316 | i386_pc = mmap/i386/pc/mmap_helper.S; | |
1317 | ||
1318 | x86_efi = mmap/mmap.c; | |
1319 | x86_efi = mmap/i386/uppermem.c; | |
1320 | x86_efi = mmap/i386/mmap.c; | |
1321 | x86_efi = mmap/efi/mmap.c; | |
1322 | ||
1323 | i386_coreboot = mmap/mmap.c; | |
1324 | i386_coreboot = mmap/i386/uppermem.c; | |
1325 | i386_coreboot = mmap/i386/mmap.c; | |
1326 | ||
062cdbc1 BC |
1327 | i386_multiboot = mmap/mmap.c; |
1328 | i386_multiboot = mmap/i386/uppermem.c; | |
1329 | i386_multiboot = mmap/i386/mmap.c; | |
1330 | ||
8c411768 BC |
1331 | i386_qemu = mmap/mmap.c; |
1332 | i386_qemu = mmap/i386/uppermem.c; | |
1333 | i386_qemu = mmap/i386/mmap.c; | |
1334 | ||
1335 | i386_ieee1275 = mmap/mmap.c; | |
1336 | i386_ieee1275 = mmap/i386/uppermem.c; | |
1337 | i386_ieee1275 = mmap/i386/mmap.c; | |
1338 | ||
1339 | mips_yeeloong = mmap/mmap.c; | |
1340 | mips_yeeloong = mmap/mips/yeeloong/uppermem.c; | |
911bd640 BC |
1341 | |
1342 | enable = x86; | |
1343 | enable = mips_yeeloong; | |
8c411768 BC |
1344 | }; |
1345 | ||
1346 | module = { | |
8c411768 BC |
1347 | name = normal; |
1348 | source = normal/main.c; | |
1349 | source = normal/cmdline.c; | |
1350 | source = normal/dyncmd.c; | |
1351 | source = normal/auth.c; | |
1352 | source = normal/autofs.c; | |
8c411768 BC |
1353 | source = normal/color.c; |
1354 | source = normal/completion.c; | |
1355 | source = normal/datetime.c; | |
1356 | source = normal/menu.c; | |
1357 | source = normal/menu_entry.c; | |
1358 | source = normal/menu_text.c; | |
1359 | source = normal/misc.c; | |
1360 | source = normal/crypto.c; | |
1361 | source = normal/term.c; | |
1362 | source = normal/context.c; | |
297f0c2b BC |
1363 | source = normal/charset.c; |
1364 | ||
1365 | source = script/main.c; | |
1366 | source = script/script.c; | |
1367 | source = script/execute.c; | |
1368 | source = script/function.c; | |
1369 | source = script/lexer.c; | |
1370 | ||
02c9030a | 1371 | source = unidata.c; |
297f0c2b BC |
1372 | nodist = grub_script.tab.c; |
1373 | nodist = grub_script.yy.c; | |
1374 | nodist = grub_script.tab.h; | |
1375 | nodist = grub_script.yy.h; | |
1376 | ||
1377 | extra_dist = script/yylex.l; | |
1378 | extra_dist = script/parser.y; | |
1379 | ||
1380 | cflags = '$(CFLAGS_POSIX) -Wno-error'; | |
1381 | cppflags = '$(CPPFLAGS_POSIX)'; | |
8c411768 BC |
1382 | }; |
1383 | ||
1384 | module = { | |
8c411768 BC |
1385 | name = part_acorn; |
1386 | source = partmap/acorn.c; | |
1387 | }; | |
1388 | ||
1389 | module = { | |
8c411768 BC |
1390 | name = part_amiga; |
1391 | source = partmap/amiga.c; | |
1392 | }; | |
1393 | ||
1394 | module = { | |
8c411768 BC |
1395 | name = part_apple; |
1396 | source = partmap/apple.c; | |
1397 | }; | |
1398 | ||
1399 | module = { | |
8c411768 BC |
1400 | name = part_gpt; |
1401 | source = partmap/gpt.c; | |
1402 | }; | |
1403 | ||
1404 | module = { | |
8c411768 BC |
1405 | name = part_msdos; |
1406 | source = partmap/msdos.c; | |
1407 | }; | |
1408 | ||
1409 | module = { | |
8c411768 BC |
1410 | name = part_sun; |
1411 | source = partmap/sun.c; | |
1412 | }; | |
1413 | ||
1414 | module = { | |
8c411768 BC |
1415 | name = part_bsd; |
1416 | source = partmap/bsdlabel.c; | |
1417 | }; | |
1418 | ||
1419 | module = { | |
8c411768 BC |
1420 | name = part_sunpc; |
1421 | source = partmap/sunpc.c; | |
1422 | }; | |
1423 | ||
1424 | module = { | |
8c411768 BC |
1425 | name = msdospart; |
1426 | source = parttool/msdospart.c; | |
1427 | }; | |
1428 | ||
8c411768 BC |
1429 | module = { |
1430 | name = at_keyboard; | |
1431 | source = term/at_keyboard.c; | |
911bd640 | 1432 | enable = x86; |
8c411768 BC |
1433 | }; |
1434 | ||
1435 | module = { | |
1436 | name = gfxterm; | |
1437 | source = term/gfxterm.c; | |
911bd640 BC |
1438 | enable = emu; |
1439 | enable = x86; | |
1440 | enable = sparc64; | |
1441 | enable = powerpc; | |
8c411768 BC |
1442 | }; |
1443 | ||
1444 | module = { | |
1445 | name = serial; | |
1446 | source = term/serial.c; | |
911bd640 | 1447 | enable = i386; |
8c411768 BC |
1448 | }; |
1449 | ||
1450 | module = { | |
8c411768 BC |
1451 | name = terminfo; |
1452 | source = term/terminfo.c; | |
1453 | source = term/tparm.c; | |
1454 | }; | |
1455 | ||
1456 | module = { | |
1457 | name = usb_keyboard; | |
1458 | source = term/usb_keyboard.c; | |
911bd640 BC |
1459 | enable = i386_pc; |
1460 | enable = mips_yeeloong; | |
8c411768 BC |
1461 | }; |
1462 | ||
1463 | module = { | |
1464 | name = vga; | |
1426af20 | 1465 | i386_pc = video/i386/pc/vga.c; |
911bd640 | 1466 | enable = i386_pc; |
8c411768 BC |
1467 | }; |
1468 | ||
1469 | module = { | |
1470 | name = vga_text; | |
1471 | x86 = term/i386/pc/vga_text.c; | |
1472 | x86 = term/i386/vga_common.c; | |
911bd640 | 1473 | enable = x86; |
8c411768 BC |
1474 | }; |
1475 | ||
297f0c2b BC |
1476 | module = { |
1477 | name = video_cirrus; | |
1478 | i386 = video/cirrus.c; | |
911bd640 | 1479 | enable = i386; |
297f0c2b BC |
1480 | }; |
1481 | ||
1482 | module = { | |
1483 | name = video_bochs; | |
1484 | i386 = video/bochs.c; | |
911bd640 | 1485 | enable = i386; |
297f0c2b BC |
1486 | }; |
1487 | ||
8c411768 BC |
1488 | module = { |
1489 | name = functional_test; | |
1490 | source = tests/lib/functional_test.c; | |
1491 | source = tests/lib/test.c; | |
8c411768 BC |
1492 | }; |
1493 | ||
1494 | module = { | |
1495 | name = example_functional_test; | |
1496 | source = tests/example_functional_test.c; | |
1497 | cflags = -Wno-format; | |
8c411768 BC |
1498 | }; |
1499 | ||
1500 | module = { | |
1501 | name = bitmap; | |
1502 | source = video/bitmap.c; | |
911bd640 BC |
1503 | enable = emu; |
1504 | enable = x86; | |
1505 | enable = sparc64; | |
1506 | enable = powerpc; | |
8c411768 BC |
1507 | }; |
1508 | ||
1509 | module = { | |
1510 | name = bitmap_scale; | |
1511 | source = video/bitmap_scale.c; | |
911bd640 BC |
1512 | enable = emu; |
1513 | enable = x86; | |
1514 | enable = sparc64; | |
1515 | enable = powerpc; | |
8c411768 BC |
1516 | }; |
1517 | ||
1518 | module = { | |
1519 | name = efi_gop; | |
1520 | x86_efi = video/efi_gop.c; | |
911bd640 | 1521 | enable = x86_efi; |
8c411768 BC |
1522 | }; |
1523 | ||
1524 | module = { | |
1525 | name = efi_uga; | |
1526 | x86_efi = video/efi_uga.c; | |
911bd640 | 1527 | enable = x86_efi; |
8c411768 BC |
1528 | }; |
1529 | ||
1530 | module = { | |
8c411768 BC |
1531 | name = jpeg; |
1532 | source = video/readers/jpeg.c; | |
1533 | }; | |
1534 | ||
1535 | module = { | |
8c411768 BC |
1536 | name = png; |
1537 | source = video/readers/png.c; | |
1538 | }; | |
1539 | ||
1540 | module = { | |
8c411768 BC |
1541 | name = tga; |
1542 | source = video/readers/tga.c; | |
1543 | }; | |
1544 | ||
1545 | module = { | |
1546 | name = vbe; | |
1547 | i386_pc = video/i386/pc/vbe.c; | |
911bd640 | 1548 | enable = i386_pc; |
8c411768 BC |
1549 | }; |
1550 | ||
1551 | module = { | |
1552 | name = video_fb; | |
1553 | source = video/fb/video_fb.c; | |
1554 | source = video/fb/fbblit.c; | |
1555 | source = video/fb/fbfill.c; | |
1556 | source = video/fb/fbutil.c; | |
911bd640 BC |
1557 | enable = emu; |
1558 | enable = x86; | |
1559 | enable = sparc64; | |
1560 | enable = powerpc; | |
8c411768 BC |
1561 | }; |
1562 | ||
1563 | module = { | |
1564 | name = video; | |
1565 | source = video/video.c; | |
911bd640 BC |
1566 | enable = emu; |
1567 | enable = x86; | |
1568 | enable = sparc64; | |
1569 | enable = powerpc; | |
8c411768 BC |
1570 | }; |
1571 | ||
1572 | module = { | |
1573 | name = ieee1275_fb; | |
1574 | source = video/ieee1275.c; | |
911bd640 BC |
1575 | enable = powerpc; |
1576 | enable = sparc64; | |
8c411768 BC |
1577 | }; |
1578 | ||
1579 | module = { | |
1580 | name = sdl; | |
1581 | source = video/emu/sdl.c; | |
911bd640 BC |
1582 | condition = COND_GRUB_EMU_SDL; |
1583 | enable = emu; | |
8c411768 BC |
1584 | }; |
1585 | ||
1586 | module = { | |
1587 | name = datehook; | |
1588 | source = hook/datehook.c; | |
8c411768 | 1589 | }; |