1 AutoGen definitions Makefile.tpl;
6 common = gensyminfo.sh.in;
12 common = genmod.sh.in;
18 common = modinfo.sh.in;
22 installdir = platform;
24 common = gmodule.pl.in;
28 installdir = platform;
34 installdir = platform;
36 common = boot/powerpc/grub.chrp.in;
37 enable = powerpc_ieee1275;
41 installdir = platform;
43 common = boot/powerpc/bootinfo.txt.in;
44 enable = powerpc_ieee1275;
52 emu_ldflags = '-Wl,-r,-d';
53 i386_efi_ldflags = '-Wl,-r,-d';
54 i386_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
55 x86_64_efi_ldflags = '-Wl,-r,-d';
56 x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
58 ia64_efi_cflags = '-fno-builtin -fpic -minline-int-divide-max-throughput';
59 ia64_efi_ldflags = '-Wl,-r,-d';
60 ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
62 x86_64_xen_cppflags = '$(CPPFLAGS_XEN)';
63 i386_xen_cppflags = '$(CPPFLAGS_XEN)';
65 arm_efi_ldflags = '-Wl,-r,-d';
66 arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
68 arm64_efi_ldflags = '-Wl,-r,-d';
69 arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
71 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
72 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
73 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
74 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
75 i386_coreboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
76 i386_coreboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
77 i386_multiboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
78 i386_multiboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
79 i386_ieee1275_ldflags = '$(TARGET_IMG_LDFLAGS)';
80 i386_ieee1275_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x10000';
81 i386_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
82 i386_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
83 x86_64_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
84 x86_64_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
86 ldadd = '$(LDADD_KERNEL)';
88 mips_loongson_ldflags = '-Wl,-Ttext,0x80200000';
89 powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000';
90 sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400';
91 mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)';
92 mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
94 mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
95 i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
96 emu_cflags = '$(CFLAGS_GNULIB)';
97 emu_cppflags = '$(CPPFLAGS_GNULIB)';
98 arm_uboot_ldflags = '-Wl,-Ttext=0x08000000';
99 arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
101 i386_pc_startup = kern/i386/pc/startup.S;
102 i386_efi_startup = kern/i386/efi/startup.S;
103 x86_64_efi_startup = kern/x86_64/efi/startup.S;
104 i386_xen_startup = kern/i386/xen/startup.S;
105 x86_64_xen_startup = kern/x86_64/xen/startup.S;
106 i386_qemu_startup = kern/i386/qemu/startup.S;
107 i386_ieee1275_startup = kern/i386/ieee1275/startup.S;
108 i386_coreboot_startup = kern/i386/coreboot/startup.S;
109 i386_multiboot_startup = kern/i386/coreboot/startup.S;
110 mips_startup = kern/mips/startup.S;
111 sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S;
112 powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S;
113 arm_uboot_startup = kern/arm/uboot/startup.S;
114 arm_efi_startup = kern/arm/efi/startup.S;
115 arm64_efi_startup = kern/arm64/efi/startup.S;
117 common = kern/command.c;
118 common = kern/corecmd.c;
119 common = kern/device.c;
120 common = kern/disk.c;
124 common = kern/file.c;
126 common = kern/list.c;
127 common = kern/main.c;
128 common = kern/misc.c;
129 common = kern/parser.c;
130 common = kern/partition.c;
131 common = kern/rescue_parser.c;
132 common = kern/rescue_reader.c;
133 common = kern/term.c;
137 noemu = kern/generic/millisleep.c;
139 noemu_nodist = symlist.c;
141 mips = kern/generic/rtc_get_time_ms.c;
143 ieee1275 = disk/ieee1275/ofdisk.c;
144 ieee1275 = kern/ieee1275/cmain.c;
145 ieee1275 = kern/ieee1275/ieee1275.c;
146 ieee1275 = kern/ieee1275/mmap.c;
147 ieee1275 = kern/ieee1275/openfw.c;
148 ieee1275 = term/ieee1275/console.c;
149 ieee1275 = kern/ieee1275/init.c;
151 uboot = disk/uboot/ubootdisk.c;
152 uboot = kern/uboot/uboot.c;
153 uboot = kern/uboot/init.c;
154 uboot = kern/uboot/hw.c;
155 uboot = term/uboot/console.c;
157 terminfoinkernel = term/terminfo.c;
158 terminfoinkernel = term/tparm.c;
159 terminfoinkernel = commands/extcmd.c;
160 terminfoinkernel = lib/arg.c;
162 i386 = kern/i386/dl.c;
163 i386_xen = kern/i386/dl.c;
165 i386_coreboot = kern/i386/coreboot/init.c;
166 i386_multiboot = kern/i386/coreboot/init.c;
167 i386_qemu = kern/i386/qemu/init.c;
168 i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c;
169 i386_coreboot = video/i386/coreboot/cbfb.c;
171 efi = disk/efi/efidisk.c;
172 efi = kern/efi/efi.c;
173 efi = kern/efi/init.c;
175 efi = term/efi/console.c;
177 x86 = kern/i386/tsc.c;
179 i386_efi = kern/i386/efi/init.c;
180 i386_efi = bus/pci.c;
182 x86_64 = kern/x86_64/dl.c;
183 x86_64_xen = kern/x86_64/dl.c;
184 x86_64_efi = kern/x86_64/efi/callwrap.S;
185 x86_64_efi = kern/i386/efi/init.c;
186 x86_64_efi = bus/pci.c;
188 xen = kern/i386/tsc.c;
189 x86_64_xen = kern/x86_64/xen/hypercall.S;
190 i386_xen = kern/i386/xen/hypercall.S;
191 xen = kern/xen/init.c;
192 xen = term/xen/console.c;
193 xen = disk/xen/xendisk.c;
194 xen = commands/boot.c;
196 ia64_efi = kern/ia64/efi/startup.S;
197 ia64_efi = kern/ia64/efi/init.c;
198 ia64_efi = kern/ia64/dl.c;
199 ia64_efi = kern/ia64/dl_helper.c;
200 ia64_efi = kern/ia64/cache.c;
202 arm_efi = kern/arm/efi/init.c;
203 arm_efi = kern/arm/efi/misc.c;
205 arm64_efi = kern/arm/efi/init.c;
207 i386_pc = kern/i386/pc/init.c;
208 i386_pc = kern/i386/pc/mmap.c;
209 i386_pc = term/i386/pc/console.c;
211 i386_qemu = bus/pci.c;
212 i386_qemu = kern/vga_init.c;
213 i386_qemu = kern/i386/qemu/mmap.c;
215 i386_coreboot = kern/i386/coreboot/mmap.c;
216 i386_coreboot = kern/i386/coreboot/cbtable.c;
218 i386_multiboot = kern/i386/multiboot_mmap.c;
220 mips = kern/mips/cache.S;
221 mips = kern/mips/dl.c;
222 mips = kern/mips/init.c;
224 mips_qemu_mips = kern/mips/qemu_mips/init.c;
225 mips_qemu_mips = term/ns8250.c;
226 mips_qemu_mips = term/serial.c;
227 mips_qemu_mips = term/at_keyboard.c;
228 mips_qemu_mips = commands/boot.c;
229 mips_qemu_mips = commands/keylayouts.c;
230 mips_qemu_mips = term/i386/pc/vga_text.c;
231 mips_qemu_mips = kern/vga_init.c;
233 mips_arc = kern/mips/arc/init.c;
234 mips_arc = term/arc/console.c;
235 mips_arc = disk/arc/arcdisk.c;
237 mips_loongson = term/ns8250.c;
238 mips_loongson = bus/bonito.c;
239 mips_loongson = bus/cs5536.c;
240 mips_loongson = bus/pci.c;
241 mips_loongson = kern/mips/loongson/init.c;
242 mips_loongson = term/at_keyboard.c;
243 mips_loongson = commands/boot.c;
244 mips_loongson = term/serial.c;
245 mips_loongson = video/sm712.c;
246 mips_loongson = video/sis315pro.c;
247 mips_loongson = video/radeon_fuloong2e.c;
248 extra_dist = video/sm712_init.c;
249 extra_dist = video/sis315_init.c;
250 mips_loongson = commands/keylayouts.c;
252 powerpc_ieee1275 = kern/powerpc/cache.S;
253 powerpc_ieee1275 = kern/powerpc/dl.c;
255 sparc64_ieee1275 = kern/sparc64/cache.S;
256 sparc64_ieee1275 = kern/sparc64/dl.c;
257 sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
260 arm = kern/arm/dl_helper.c;
261 arm = kern/arm/cache_armv6.S;
262 arm = kern/arm/cache_armv7.S;
263 extra_dist = kern/arm/cache.S;
264 arm = kern/arm/cache.c;
265 arm = kern/arm/misc.S;
267 arm64 = kern/arm64/cache.c;
268 arm64 = kern/arm64/cache_flush.S;
269 arm64 = kern/arm64/dl.c;
270 arm64 = kern/arm64/dl_helper.c;
273 emu = kern/emu/cache_s.S;
274 emu = kern/emu/hostdisk.c;
275 emu = osdep/unix/hostdisk.c;
277 extra_dist = osdep/unix/exec.c;
278 emu = osdep/devmapper/hostdisk.c;
279 emu = osdep/hostdisk.c;
280 emu = kern/emu/hostfs.c;
281 emu = kern/emu/main.c;
282 emu = kern/emu/argp_common.c;
283 emu = kern/emu/misc.c;
285 emu = kern/emu/time.c;
286 emu = kern/emu/cache.c;
287 emu = osdep/emuconsole.c;
288 extra_dist = osdep/unix/emuconsole.c;
289 extra_dist = osdep/windows/emuconsole.c;
291 extra_dist = osdep/unix/dl.c;
292 extra_dist = osdep/windows/dl.c;
295 emu = osdep/emunet.c;
296 extra_dist = osdep/linux/emunet.c;
297 extra_dist = osdep/basic/emunet.c;
298 emu = osdep/cputime.c;
299 extra_dist = osdep/unix/cputime.c;
300 extra_dist = osdep/windows/cputime.c;
302 videoinkernel = term/gfxterm.c;
303 videoinkernel = font/font.c;
304 videoinkernel = font/font_cmd.c;
305 videoinkernel = io/bufio.c;
306 videoinkernel = video/fb/fbblit.c;
307 videoinkernel = video/fb/fbfill.c;
308 videoinkernel = video/fb/fbutil.c;
309 videoinkernel = video/fb/video_fb.c;
310 videoinkernel = video/video.c;
312 extra_dist = kern/i386/int.S;
313 extra_dist = kern/i386/realmode.S;
314 extra_dist = boot/i386/pc/lzma_decode.S;
315 extra_dist = kern/mips/cache_flush.S;
322 emu = kern/emu/full.c;
323 emu_nodist = grub_emu_init.c;
325 ldadd = 'kernel.exec$(EXEEXT)';
326 ldadd = '$(MODULE_FILES)';
327 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
333 name = grub-emu-lite;
335 emu = kern/emu/lite.c;
336 emu_nodist = symlist.c;
338 ldadd = 'kernel.exec$(EXEEXT)';
339 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
346 i386_pc = boot/i386/pc/boot.S;
347 i386_qemu = boot/i386/qemu/boot.S;
348 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
350 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
351 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
353 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
354 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)';
355 i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
357 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
358 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
360 objcopyflags = '-O binary';
363 enable = sparc64_ieee1275;
368 i386_pc = boot/i386/pc/boot.S;
370 cppflags = '-DHYBRID_BOOT=1';
372 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
373 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
375 objcopyflags = '-O binary';
382 i386_pc = boot/i386/pc/cdboot.S;
383 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
384 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
386 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
387 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
388 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
389 sparc64_ieee1275_cppflags = '-DCDBOOT=1';
391 objcopyflags = '-O binary';
393 enable = sparc64_ieee1275;
399 i386_pc = boot/i386/pc/pxeboot.S;
401 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
402 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
404 objcopyflags = '-O binary';
410 i386_pc = boot/i386/pc/diskboot.S;
412 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
413 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
415 sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
416 sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
418 objcopyflags = '-O binary';
421 enable = sparc64_ieee1275;
426 i386_pc = boot/i386/pc/lnxboot.S;
428 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
429 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
431 objcopyflags = '-O binary';
436 name = xz_decompress;
437 mips = boot/mips/startup_raw.S;
438 common = boot/decompressor/minilib.c;
439 common = boot/decompressor/xz.c;
440 common = lib/xzembed/xz_dec_bcj.c;
441 common = lib/xzembed/xz_dec_lzma2.c;
442 common = lib/xzembed/xz_dec_stream.c;
444 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
446 objcopyflags = '-O binary';
447 mips_ldflags = '$(TARGET_LDFLAGS_STATIC_LIBGCC) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
448 ldadd = '$(TARGET_LIBGCC)';
449 cflags = '-Wno-unreachable-code $(TARGET_LDFLAGS_STATIC_LIBGCC)';
454 name = none_decompress;
455 mips = boot/mips/startup_raw.S;
456 common = boot/decompressor/none.c;
458 cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
460 objcopyflags = '-O binary';
461 mips_ldflags = '$(TARGET_LDFLAGS_STATIC_LIBGCC) -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
462 ldadd = '$(TARGET_LIBGCC)';
463 cflags = '$(TARGET_LDFLAGS_STATIC_LIBGCC)';
468 name = lzma_decompress;
469 i386_pc = boot/i386/pc/startup_raw.S;
470 i386_pc_nodist = rs_decoder.h;
472 objcopyflags = '-O binary';
473 ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200';
479 mips_loongson = boot/mips/loongson/fwstart.S;
480 objcopyflags = '-O binary';
481 ldflags = '$(TARGET_LDFLAGS_STATIC_LIBGCC) $(TARGET_LIBGCC) -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
482 enable = mips_loongson;
486 name = fwstart_fuloong2f;
487 mips_loongson = boot/mips/loongson/fuloong2f.S;
488 objcopyflags = '-O binary';
489 ldflags = '$(TARGET_LDFLAGS_STATIC_LIBGCC) $(TARGET_LIBGCC) -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
490 enable = mips_loongson;
496 extra_dist = kern/disk_common.c;
501 common_nodist = trigtables.c;
502 extra_dist = gentrigtables.c;
513 emu = bus/usb/emu/usb.c;
515 condition = COND_GRUB_EMU_USB;
520 mips_loongson = commands/mips/loongson/lsspd.c;
521 enable = mips_loongson;
526 common = bus/usb/usb.c;
527 common = bus/usb/usbtrans.c;
528 common = bus/usb/usbhub.c;
534 common = bus/usb/usb.c;
536 condition = COND_GRUB_EMU_USB;
540 name = usbserial_common;
541 common = bus/usb/serial/common.c;
546 name = usbserial_pl2303;
547 common = bus/usb/serial/pl2303.c;
552 name = usbserial_ftdi;
553 common = bus/usb/serial/ftdi.c;
558 name = usbserial_usbdebug;
559 common = bus/usb/serial/usbdebug_late.c;
565 common = bus/usb/uhci.c;
571 common = bus/usb/ohci.c;
577 common = bus/usb/ehci.c;
584 i386_ieee1275 = bus/i386/ieee1275/pci.c;
587 enable = i386_ieee1275;
588 enable = i386_coreboot;
589 enable = i386_multiboot;
594 common = commands/nativedisk.c;
597 enable = mips_loongson;
598 enable = mips_qemu_mips;
603 common = bus/emu/pci.c;
604 common = commands/lspci.c;
607 condition = COND_GRUB_EMU_PCI;
612 common = commands/arc/lsdev.c;
619 common = commands/xen/lsxen.c;
620 cppflags = '$(CPPFLAGS_XEN)';
626 name = check_nt_hiberfil;
627 common = commands/i386/nthibr.c;
632 common = commands/i386/cmostest.c;
638 common = commands/i386/cmosdump.c;
644 common = commands/iorw.c;
650 common = kern/i386/coreboot/cbtable.c;
654 enable = i386_multiboot;
655 enable = i386_ieee1275;
661 common = commands/i386/coreboot/cb_timestamps.c;
667 common = commands/i386/coreboot/cbls.c;
673 common = term/i386/coreboot/cbmemc.c;
679 common = commands/regexp.c;
680 common = commands/wildcard.c;
681 common = gnulib/regex.c;
682 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
683 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
689 common = commands/acpi.c;
690 efi = commands/efi/acpi.c;
691 i386_pc = commands/i386/pc/acpi.c;
692 i386_coreboot = commands/i386/pc/acpi.c;
693 i386_multiboot = commands/i386/pc/acpi.c;
697 enable = i386_coreboot;
698 enable = i386_multiboot;
704 common = commands/lsacpi.c;
708 enable = i386_coreboot;
709 enable = i386_multiboot;
715 common = commands/efi/lsefisystab.c;
723 common = commands/efi/lssal.c;
731 common = commands/efi/lsefimmap.c;
738 common = commands/efi/lsefi.c;
744 efi = commands/efi/efifwsetup.c;
750 common = commands/blocklist.c;
755 common = commands/boot.c;
756 i386_pc = lib/i386/pc/biosnum.c;
759 enable = sparc64_ieee1275;
760 enable = powerpc_ieee1275;
770 common = commands/cat.c;
775 common = commands/cmp.c;
780 common = commands/configfile.c;
785 common = commands/i386/cpuid.c;
793 common = commands/date.c;
799 i386_pc = commands/i386/pc/drivemap.c;
800 i386_pc = commands/i386/pc/drivemap_int13h.S;
806 common = commands/echo.c;
811 common = commands/eval.c;
816 common = commands/extcmd.c;
818 enable = terminfomodule;
823 common = commands/efi/fixvideo.c;
830 common = commands/gptsync.c;
835 nopc = commands/halt.c;
836 i386_pc = commands/i386/pc/halt.c;
837 i386_pc = commands/acpihalt.c;
838 i386_coreboot = commands/acpihalt.c;
839 i386_multiboot = commands/acpihalt.c;
840 i386_efi = commands/acpihalt.c;
841 x86_64_efi = commands/acpihalt.c;
842 i386_multiboot = lib/i386/halt.c;
843 i386_coreboot = lib/i386/halt.c;
844 i386_qemu = lib/i386/halt.c;
845 xen = lib/xen/halt.c;
846 xen_cppflags = '$(CPPFLAGS_XEN)';
847 efi = lib/efi/halt.c;
848 ieee1275 = lib/ieee1275/halt.c;
849 emu = lib/emu/halt.c;
850 uboot = lib/uboot/halt.c;
855 i386 = lib/i386/reboot.c;
856 i386 = lib/i386/reboot_trampoline.S;
857 ia64_efi = lib/efi/reboot.c;
858 x86_64_efi = lib/efi/reboot.c;
859 arm_efi = lib/efi/reboot.c;
860 arm64_efi = lib/efi/reboot.c;
861 powerpc_ieee1275 = lib/ieee1275/reboot.c;
862 sparc64_ieee1275 = lib/ieee1275/reboot.c;
863 mips_arc = lib/mips/arc/reboot.c;
864 mips_loongson = lib/mips/loongson/reboot.c;
865 mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
866 xen = lib/xen/reboot.c;
867 xen_cppflags = '$(CPPFLAGS_XEN)';
868 uboot = lib/uboot/reboot.c;
869 common = commands/reboot.c;
874 common = commands/hashsum.c;
879 common = commands/verify.c;
880 cflags = '$(CFLAGS_POSIX)';
881 cppflags = '-I$(srcdir)/lib/posix_wrap';
886 common = commands/hdparm.c;
887 common = lib/hexdump.c;
889 enable = mips_qemu_mips;
894 common = commands/help.c;
899 common = commands/hexdump.c;
900 common = lib/hexdump.c;
905 common = commands/keystatus.c;
910 common = commands/efi/loadbios.c;
917 common = commands/loadenv.c;
918 common = lib/envblk.c;
923 common = commands/ls.c;
928 common = commands/lsmmap.c;
933 common = commands/lspci.c;
940 common = commands/memrw.c;
945 common = commands/minicmd.c;
950 common = commands/parttool.c;
955 common = commands/password.c;
959 name = password_pbkdf2;
960 common = commands/password_pbkdf2.c;
965 x86 = commands/i386/pc/play.c;
971 x86 = term/spkmodem.c;
983 common = commands/probe.c;
988 common = commands/read.c;
993 common = commands/search_wrap.c;
994 extra_dist = commands/search.c;
998 name = search_fs_file;
999 common = commands/search_file.c;
1003 name = search_fs_uuid;
1004 common = commands/search_uuid.c;
1008 name = search_label;
1009 common = commands/search_label.c;
1014 common = commands/setpci.c;
1020 common = commands/pcidump.c;
1026 common = commands/sleep.c;
1031 ieee1275 = commands/ieee1275/suspend.c;
1032 enable = i386_ieee1275;
1033 enable = powerpc_ieee1275;
1038 ieee1275 = term/ieee1275/escc.c;
1039 enable = powerpc_ieee1275;
1044 common = commands/terminal.c;
1049 common = commands/test.c;
1054 common = commands/true.c;
1059 common = commands/usbtest.c;
1065 common = commands/videoinfo.c;
1070 common = commands/videotest.c;
1075 common = commands/xnu_uuid.c;
1080 common = disk/dmraid_nvidia.c;
1085 common = disk/loopback.c;
1090 common = disk/cryptodisk.c;
1095 common = disk/luks.c;
1096 common = disk/AFSplitter.c;
1101 common = disk/geli.c;
1106 common = disk/lvm.c;
1111 common = disk/ldm.c;
1116 common = disk/mdraid_linux.c;
1121 common = disk/mdraid_linux_be.c;
1126 common = disk/mdraid1x_linux.c;
1131 common = disk/diskfilter.c;
1136 common = disk/raid5_recover.c;
1141 common = disk/raid6_recover.c;
1146 common = disk/scsi.c;
1151 common = disk/memdisk.c;
1156 common = disk/ata.c;
1158 enable = mips_qemu_mips;
1163 common = disk/ahci.c;
1169 common = disk/pata.c;
1171 enable = mips_qemu_mips;
1176 i386_pc = disk/i386/pc/biosdisk.c;
1182 common = disk/usbms.c;
1188 ieee1275 = disk/ieee1275/nand.c;
1189 enable = i386_ieee1275;
1194 common = efiemu/main.c;
1195 common = efiemu/i386/loadcore32.c;
1196 common = efiemu/i386/loadcore64.c;
1197 i386_pc = efiemu/i386/pc/cfgtables.c;
1198 i386_coreboot = efiemu/i386/pc/cfgtables.c;
1199 i386_multiboot = efiemu/i386/pc/cfgtables.c;
1200 i386_ieee1275 = efiemu/i386/nocfgtables.c;
1201 i386_qemu = efiemu/i386/nocfgtables.c;
1202 common = efiemu/mm.c;
1203 common = efiemu/loadcore_common.c;
1204 common = efiemu/symbols.c;
1205 common = efiemu/loadcore32.c;
1206 common = efiemu/loadcore64.c;
1207 common = efiemu/prepare32.c;
1208 common = efiemu/prepare64.c;
1209 common = efiemu/pnvram.c;
1210 common = efiemu/i386/coredetect.c;
1212 extra_dist = efiemu/prepare.c;
1213 extra_dist = efiemu/loadcore.c;
1214 extra_dist = efiemu/runtime/efiemu.S;
1215 extra_dist = efiemu/runtime/efiemu.c;
1218 enable = i386_coreboot;
1219 enable = i386_ieee1275;
1220 enable = i386_multiboot;
1226 common = font/font.c;
1227 common = font/font_cmd.c;
1228 enable = videomodules;
1253 common = fs/btrfs.c;
1255 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1256 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1261 common = fs/archelp.c;
1276 common = fs/cpio_be.c;
1301 common = fs/exfat.c;
1306 common = fs/fshelp.c;
1316 common = fs/hfsplus.c;
1321 common = fs/hfspluscomp.c;
1326 common = fs/iso9660.c;
1336 common = fs/minix.c;
1341 common = fs/minix2.c;
1346 common = fs/minix3.c;
1351 common = fs/minix_be.c;
1356 common = fs/minix2_be.c;
1361 common = fs/minix3_be.c;
1366 common = fs/nilfs2.c;
1376 common = fs/ntfscomp.c;
1381 common = fs/reiserfs.c;
1386 common = fs/romfs.c;
1396 common = fs/squash4.c;
1397 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1398 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1418 common = fs/ufs_be.c;
1433 common = fs/zfs/zfs.c;
1434 common = fs/zfs/zfs_lzjb.c;
1435 common = fs/zfs/zfs_lz4.c;
1436 common = fs/zfs/zfs_sha256.c;
1437 common = fs/zfs/zfs_fletcher.c;
1442 common = fs/zfs/zfscrypt.c;
1447 common = fs/zfs/zfsinfo.c;
1452 i386_pc = net/drivers/i386/pc/pxe.c;
1458 common = gettext/gettext.c;
1463 common = gfxmenu/gfxmenu.c;
1464 common = gfxmenu/model.c;
1465 common = gfxmenu/view.c;
1466 common = gfxmenu/font.c;
1467 common = gfxmenu/icon_manager.c;
1468 common = gfxmenu/theme_loader.c;
1469 common = gfxmenu/widget-box.c;
1470 common = gfxmenu/gui_canvas.c;
1471 common = gfxmenu/gui_circular_progress.c;
1472 common = gfxmenu/gui_box.c;
1473 common = gfxmenu/gui_label.c;
1474 common = gfxmenu/gui_list.c;
1475 common = gfxmenu/gui_image.c;
1476 common = gfxmenu/gui_progress_bar.c;
1477 common = gfxmenu/gui_util.c;
1478 common = gfxmenu/gui_string_util.c;
1483 common = hello/hello.c;
1493 common = io/offset.c;
1498 common = io/bufio.c;
1499 enable = videomodules;
1504 common = kern/elf.c;
1506 extra_dist = kern/elfXX.c;
1511 common = lib/crypto.c;
1513 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1518 common = lib/pbkdf2.c;
1523 common = lib/relocator.c;
1524 x86 = lib/i386/relocator16.S;
1525 x86 = lib/i386/relocator32.S;
1526 x86 = lib/i386/relocator64.S;
1527 i386 = lib/i386/relocator_asm.S;
1528 x86_64 = lib/x86_64/relocator_asm.S;
1529 i386_xen = lib/i386/relocator_asm.S;
1530 x86_64_xen = lib/x86_64/relocator_asm.S;
1531 x86 = lib/i386/relocator.c;
1532 x86 = lib/i386/relocator_common_c.c;
1533 ieee1275 = lib/ieee1275/relocator.c;
1534 efi = lib/efi/relocator.c;
1535 mips = lib/mips/relocator_asm.S;
1536 mips = lib/mips/relocator.c;
1537 powerpc = lib/powerpc/relocator_asm.S;
1538 powerpc = lib/powerpc/relocator.c;
1539 xen = lib/xen/relocator.c;
1540 i386_xen = lib/i386/xen/relocator.S;
1541 x86_64_xen = lib/x86_64/xen/relocator.S;
1542 xen = lib/i386/relocator_common_c.c;
1543 xen_cppflags = '$(CPPFLAGS_XEN)';
1545 extra_dist = lib/i386/relocator_common.S;
1546 extra_dist = kern/powerpc/cache_flush.S;
1556 cmos = lib/cmos_datetime.c;
1557 efi = lib/efi/datetime.c;
1558 uboot = lib/uboot/datetime.c;
1559 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1560 powerpc_ieee1275 = lib/ieee1275/datetime.c;
1561 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1562 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1563 xen = lib/xen/datetime.c;
1564 xen_cppflags = '$(CPPFLAGS_XEN)';
1566 mips_arc = lib/arc/datetime.c;
1572 common = lib/setjmp.S;
1573 extra_dist = lib/i386/setjmp.S;
1574 extra_dist = lib/mips/setjmp.S;
1575 extra_dist = lib/x86_64/setjmp.S;
1576 extra_dist = lib/sparc64/setjmp.S;
1577 extra_dist = lib/powerpc/setjmp.S;
1578 extra_dist = lib/ia64/setjmp.S;
1579 extra_dist = lib/ia64/longjmp.S;
1580 extra_dist = lib/arm/setjmp.S;
1581 extra_dist = lib/arm64/setjmp.S;
1586 common = loader/aout.c;
1592 x86 = loader/i386/bsd.c;
1593 x86 = loader/i386/bsd32.c;
1594 x86 = loader/i386/bsd64.c;
1596 extra_dist = loader/i386/bsdXX.c;
1597 extra_dist = loader/i386/bsd_pagetable.c;
1604 i386_pc = loader/i386/pc/plan9.c;
1611 common = loader/i386/pc/linux.c;
1612 common = loader/linux.c;
1613 common = lib/cmdline.c;
1619 i386_pc = loader/i386/pc/ntldr.c;
1625 i386_pc = loader/i386/pc/freedos.c;
1631 i386_pc = loader/i386/pc/pxechainloader.c;
1637 cppflags = "-DGRUB_USE_MULTIBOOT2";
1639 common = loader/multiboot.c;
1640 common = lib/cmdline.c;
1641 common = loader/multiboot_mbi2.c;
1648 common = loader/multiboot.c;
1649 common = lib/cmdline.c;
1650 x86 = loader/i386/multiboot_mbi.c;
1651 extra_dist = loader/multiboot_elfxx.c;
1657 x86 = loader/i386/linux.c;
1658 xen = loader/i386/xen.c;
1659 xen = loader/i386/xen_file.c;
1660 xen = loader/i386/xen_file32.c;
1661 xen = loader/i386/xen_file64.c;
1662 extra_dist = loader/i386/xen_fileXX.c;
1663 xen_cppflags = '$(CPPFLAGS_XEN)';
1664 i386_pc = lib/i386/pc/vesa_modes_table.c;
1665 mips = loader/mips/linux.c;
1666 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1667 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
1668 ia64_efi = loader/ia64/efi/linux.c;
1669 arm = loader/arm/linux.c;
1671 common = loader/linux.c;
1672 common = lib/cmdline.c;
1678 x86 = loader/xnu_resume.c;
1679 x86 = loader/i386/xnu.c;
1680 x86 = loader/macho32.c;
1681 x86 = loader/macho64.c;
1682 x86 = loader/macho.c;
1684 x86 = loader/lzss.c;
1686 extra_dist = loader/machoXX.c;
1692 common = loader/efi/appleloader.c;
1694 enable = x86_64_efi;
1699 efi = loader/efi/chainloader.c;
1700 i386_pc = loader/i386/pc/chainloader.c;
1701 i386_coreboot = loader/i386/coreboot/chainloader.c;
1702 i386_coreboot = lib/LzmaDec.c;
1704 enable = i386_coreboot;
1710 common = mmap/mmap.c;
1711 x86 = mmap/i386/uppermem.c;
1712 x86 = mmap/i386/mmap.c;
1714 i386_pc = mmap/i386/pc/mmap.c;
1715 i386_pc = mmap/i386/pc/mmap_helper.S;
1717 efi = mmap/efi/mmap.c;
1719 mips = mmap/mips/uppermem.c;
1730 common = normal/main.c;
1731 common = normal/cmdline.c;
1732 common = normal/dyncmd.c;
1733 common = normal/auth.c;
1734 common = normal/autofs.c;
1735 common = normal/color.c;
1736 common = normal/completion.c;
1737 common = normal/datetime.c;
1738 common = normal/menu.c;
1739 common = normal/menu_entry.c;
1740 common = normal/menu_text.c;
1741 common = normal/misc.c;
1742 common = normal/crypto.c;
1743 common = normal/term.c;
1744 common = normal/context.c;
1745 common = normal/charset.c;
1747 common = script/main.c;
1748 common = script/script.c;
1749 common = script/execute.c;
1750 common = script/function.c;
1751 common = script/lexer.c;
1752 common = script/argv.c;
1754 common = commands/menuentry.c;
1757 common_nodist = grub_script.tab.c;
1758 common_nodist = grub_script.yy.c;
1759 common_nodist = grub_script.tab.h;
1760 common_nodist = grub_script.yy.h;
1762 extra_dist = script/yylex.l;
1763 extra_dist = script/parser.y;
1765 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
1766 cppflags = '$(CPPFLAGS_POSIX)';
1771 common = partmap/acorn.c;
1776 common = partmap/amiga.c;
1781 common = partmap/apple.c;
1786 common = partmap/gpt.c;
1791 common = partmap/msdos.c;
1796 common = partmap/sun.c;
1801 common = partmap/plan.c;
1806 common = partmap/dvh.c;
1811 common = partmap/bsdlabel.c;
1816 common = partmap/sunpc.c;
1821 common = partmap/dfly.c;
1826 common = parttool/msdospart.c;
1831 common = term/at_keyboard.c;
1837 common = term/gfxterm.c;
1838 enable = videomodules;
1842 name = gfxterm_background;
1843 common = term/gfxterm_background.c;
1848 common = term/serial.c;
1849 x86 = term/ns8250.c;
1850 ieee1275 = term/ieee1275/serial.c;
1851 mips_arc = term/arc/serial.c;
1852 efi = term/efi/serial.c;
1854 enable = terminfomodule;
1861 i386_pc = commands/i386/pc/sendkey.c;
1867 common = term/terminfo.c;
1868 common = term/tparm.c;
1869 enable = terminfomodule;
1873 name = usb_keyboard;
1874 common = term/usb_keyboard.c;
1880 common = video/i386/pc/vga.c;
1886 common = term/i386/pc/vga_text.c;
1892 common = term/i386/pc/mda_text.c;
1894 enable = i386_coreboot_multiboot_qemu;
1898 name = video_cirrus;
1899 x86 = video/cirrus.c;
1905 x86 = video/bochs.c;
1910 name = functional_test;
1911 common = tests/lib/functional_test.c;
1912 common = tests/lib/test.c;
1913 common = tests/checksums.h;
1914 common = tests/video_checksum.c;
1915 common = tests/fake_input.c;
1916 common = video/capture.c;
1921 common = tests/example_functional_test.c;
1926 common = tests/setjmp_test.c;
1930 name = signature_test;
1931 common = tests/signature_test.c;
1932 common = tests/signatures.h;
1936 name = xnu_uuid_test;
1937 common = tests/xnu_uuid_test.c;
1942 common = tests/pbkdf2_test.c;
1946 name = legacy_password_test;
1947 common = tests/legacy_password_test.c;
1950 enable = x86_64_efi;
1957 common = tests/div_test.c;
1961 name = videotest_checksum;
1962 common = tests/videotest_checksum.c;
1966 name = gfxterm_menu;
1967 common = tests/gfxterm_menu.c;
1971 name = cmdline_cat_test;
1972 common = tests/cmdline_cat_test.c;
1977 common = video/bitmap.c;
1981 name = bitmap_scale;
1982 common = video/bitmap_scale.c;
1987 efi = video/efi_gop.c;
1993 efi = video/efi_uga.c;
1995 enable = x86_64_efi;
2000 common = video/readers/jpeg.c;
2005 common = video/readers/png.c;
2010 common = video/readers/tga.c;
2015 common = video/i386/pc/vbe.c;
2021 common = video/fb/video_fb.c;
2022 common = video/fb/fbblit.c;
2023 common = video/fb/fbfill.c;
2024 common = video/fb/fbutil.c;
2025 enable = videomodules;
2030 common = video/video.c;
2031 enable = videomodules;
2035 name = video_colors;
2036 common = video/colors.c;
2041 ieee1275 = video/ieee1275.c;
2042 enable = powerpc_ieee1275;
2047 emu = video/emu/sdl.c;
2049 condition = COND_GRUB_EMU_SDL;
2054 common = hook/datehook.c;
2061 common = net/bootp.c;
2065 common = net/icmp.c;
2066 common = net/icmp6.c;
2067 common = net/ethernet.c;
2069 common = net/netbuff.c;
2074 common = net/tftp.c;
2079 common = net/http.c;
2084 common = net/drivers/ieee1275/ofnet.c;
2090 common = net/drivers/uboot/ubootnet.c;
2096 common = net/drivers/efi/efinet.c;
2102 emu = net/drivers/emu/emunet.c;
2108 common = commands/legacycfg.c;
2109 common = lib/legacy_parse.c;
2110 emu = lib/i386/pc/vesa_modes_table.c;
2111 i386_efi = lib/i386/pc/vesa_modes_table.c;
2112 x86_64_efi = lib/i386/pc/vesa_modes_table.c;
2113 xen = lib/i386/pc/vesa_modes_table.c;
2117 enable = x86_64_efi;
2123 name = test_blockarg;
2124 common = tests/test_blockarg.c;
2130 common = lib/xzembed/xz_dec_bcj.c;
2131 common = lib/xzembed/xz_dec_lzma2.c;
2132 common = lib/xzembed/xz_dec_stream.c;
2133 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
2134 cflags='-Wno-unreachable-code';
2139 common = io/lzopio.c;
2140 common = lib/minilzo/minilzo.c;
2141 cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
2142 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
2147 common = commands/testload.c;
2152 x86 = lib/i386/backtrace.c;
2153 i386_xen = lib/i386/backtrace.c;
2154 x86_64_xen = lib/i386/backtrace.c;
2155 common = lib/backtrace.c;
2158 enable = x86_64_xen;
2163 common = commands/i386/pc/lsapm.c;
2169 common = commands/keylayouts.c;
2174 name = priority_queue;
2175 common = lib/priority_queue.c;
2180 common = commands/time.c;
2185 common = commands/cacheinfo.c;
2186 condition = COND_ENABLE_CACHE_STATS;
2191 common = commands/boottime.c;
2192 condition = COND_ENABLE_BOOT_TIME_STATS;
2197 common = lib/adler32.c;
2202 common = lib/crc64.c;
2207 common = lib/libgcrypt-grub/mpi/mpiutil.c;
2208 common = lib/libgcrypt-grub/mpi/mpi-bit.c;
2209 common = lib/libgcrypt-grub/mpi/mpi-add.c;
2210 common = lib/libgcrypt-grub/mpi/mpi-mul.c;
2211 common = lib/libgcrypt-grub/mpi/mpi-mod.c;
2212 common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
2213 common = lib/libgcrypt-grub/mpi/mpi-div.c;
2214 common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
2215 common = lib/libgcrypt-grub/mpi/mpi-inv.c;
2216 common = lib/libgcrypt-grub/mpi/mpi-pow.c;
2217 common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
2218 common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
2219 common = lib/libgcrypt-grub/mpi/mpih-mul.c;
2220 common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
2221 common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
2222 common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
2223 common = lib/libgcrypt-grub/mpi/mpih-add1.c;
2224 common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
2225 common = lib/libgcrypt-grub/mpi/mpih-div.c;
2226 common = lib/libgcrypt-grub/mpi/mpicoder.c;
2227 common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
2228 common = lib/libgcrypt-grub/mpi/mpi-inline.c;
2229 common = lib/libgcrypt_wrap/mem.c;
2231 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2232 cppflags = '$(CPPFLAGS_GCRY)';
2237 common = lib/fake_module.c;
2242 common = gdb/cstub.c;
2244 i386 = gdb/i386/idt.c;
2245 i386 = gdb/i386/machdep.S;
2246 i386 = gdb/i386/signal.c;
2252 common = commands/testspeed.c;
2257 common = commands/tr.c;
2262 common = lib/progress.c;