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