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