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