]> git.proxmox.com Git - grub2.git/blob - grub-core/Makefile.core.def
* grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
[grub2.git] / grub-core / Makefile.core.def
1 AutoGen definitions Makefile.tpl;
2
3 script = {
4 installdir = noinst;
5 name = gensyminfo.sh;
6 common = gensyminfo.sh.in;
7 };
8
9 script = {
10 installdir = noinst;
11 name = genmod.sh;
12 common = genmod.sh.in;
13 };
14
15 script = {
16 installdir = noinst;
17 name = modinfo.sh;
18 common = modinfo.sh.in;
19 };
20
21 script = {
22 installdir = platform;
23 name = gmodule.pl;
24 common = gmodule.pl.in;
25 };
26
27 script = {
28 installdir = platform;
29 name = gdb_grub;
30 common = gdb_grub.in;
31 };
32
33 script = {
34 installdir = platform;
35 name = grub.chrp;
36 common = boot/powerpc/grub.chrp.in;
37 enable = powerpc_ieee1275;
38 };
39
40 script = {
41 installdir = platform;
42 name = bootinfo.txt;
43 common = boot/powerpc/bootinfo.txt.in;
44 enable = powerpc_ieee1275;
45 };
46
47 kernel = {
48 name = kernel;
49
50 nostrip = emu;
51
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';
57
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';
61
62 x86_64_xen_cppflags = '$(CPPFLAGS_XEN)';
63 i386_xen_cppflags = '$(CPPFLAGS_XEN)';
64
65 arm_efi_ldflags = '-Wl,-r,-d';
66 arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
67
68 arm64_efi_ldflags = '-Wl,-r,-d';
69 arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
70
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';
85
86 ldadd = '$(LDADD_KERNEL)';
87
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';
93
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';
100
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;
116
117 common = kern/command.c;
118 common = kern/corecmd.c;
119 common = kern/device.c;
120 common = kern/disk.c;
121 common = kern/dl.c;
122 common = kern/env.c;
123 common = kern/err.c;
124 common = kern/file.c;
125 common = kern/fs.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;
134
135 noemu = kern/mm.c;
136 noemu = kern/time.c;
137 noemu = kern/generic/millisleep.c;
138
139 noemu_nodist = symlist.c;
140
141 mips = kern/generic/rtc_get_time_ms.c;
142
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;
150
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;
156
157 terminfoinkernel = term/terminfo.c;
158 terminfoinkernel = term/tparm.c;
159 terminfoinkernel = commands/extcmd.c;
160 terminfoinkernel = lib/arg.c;
161
162 i386 = kern/i386/dl.c;
163 i386_xen = kern/i386/dl.c;
164
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;
170
171 efi = disk/efi/efidisk.c;
172 efi = kern/efi/efi.c;
173 efi = kern/efi/init.c;
174 efi = kern/efi/mm.c;
175 efi = term/efi/console.c;
176
177 x86 = kern/i386/tsc.c;
178
179 i386_efi = kern/i386/efi/init.c;
180 i386_efi = bus/pci.c;
181
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;
187
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;
195
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;
201
202 arm_efi = kern/arm/efi/init.c;
203 arm_efi = kern/arm/efi/misc.c;
204
205 arm64_efi = kern/arm/efi/init.c;
206
207 i386_pc = kern/i386/pc/init.c;
208 i386_pc = kern/i386/pc/mmap.c;
209 i386_pc = term/i386/pc/console.c;
210
211 i386_qemu = bus/pci.c;
212 i386_qemu = kern/vga_init.c;
213 i386_qemu = kern/i386/qemu/mmap.c;
214
215 i386_coreboot = kern/i386/coreboot/mmap.c;
216 i386_coreboot = kern/i386/coreboot/cbtable.c;
217
218 i386_multiboot = kern/i386/multiboot_mmap.c;
219
220 mips = kern/mips/cache.S;
221 mips = kern/mips/dl.c;
222 mips = kern/mips/init.c;
223
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;
232
233 mips_arc = kern/mips/arc/init.c;
234 mips_arc = term/arc/console.c;
235 mips_arc = disk/arc/arcdisk.c;
236
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;
251
252 powerpc_ieee1275 = kern/powerpc/cache.S;
253 powerpc_ieee1275 = kern/powerpc/dl.c;
254
255 sparc64_ieee1275 = kern/sparc64/cache.S;
256 sparc64_ieee1275 = kern/sparc64/dl.c;
257 sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
258
259 arm = kern/arm/dl.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;
266
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;
271
272 emu = disk/host.c;
273 emu = kern/emu/cache_s.S;
274 emu = kern/emu/hostdisk.c;
275 emu = osdep/unix/hostdisk.c;
276 emu = osdep/exec.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;
284 emu = kern/emu/mm.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;
290 emu = osdep/dl.c;
291 extra_dist = osdep/unix/dl.c;
292 extra_dist = osdep/windows/dl.c;
293 emu = osdep/sleep.c;
294 emu = osdep/init.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;
301
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;
311
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;
316 };
317
318 program = {
319 name = grub-emu;
320 mansection = 1;
321
322 emu = kern/emu/full.c;
323 emu_nodist = grub_emu_init.c;
324
325 ldadd = 'kernel.exec$(EXEEXT)';
326 ldadd = '$(MODULE_FILES)';
327 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
328
329 enable = emu;
330 };
331
332 program = {
333 name = grub-emu-lite;
334
335 emu = kern/emu/lite.c;
336 emu_nodist = symlist.c;
337
338 ldadd = 'kernel.exec$(EXEEXT)';
339 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
340
341 enable = emu;
342 };
343
344 image = {
345 name = boot;
346 i386_pc = boot/i386/pc/boot.S;
347 i386_qemu = boot/i386/qemu/boot.S;
348 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
349
350 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
351 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
352
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)';
356
357 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
358 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
359
360 objcopyflags = '-O binary';
361 enable = i386_pc;
362 enable = i386_qemu;
363 enable = sparc64_ieee1275;
364 };
365
366 image = {
367 name = boot_hybrid;
368 i386_pc = boot/i386/pc/boot.S;
369
370 cppflags = '-DHYBRID_BOOT=1';
371
372 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
373 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
374
375 objcopyflags = '-O binary';
376 enable = i386_pc;
377 };
378
379 image = {
380 name = cdboot;
381
382 i386_pc = boot/i386/pc/cdboot.S;
383 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
384 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
385
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';
390
391 objcopyflags = '-O binary';
392
393 enable = sparc64_ieee1275;
394 enable = i386_pc;
395 };
396
397 image = {
398 name = pxeboot;
399 i386_pc = boot/i386/pc/pxeboot.S;
400
401 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
402 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
403
404 objcopyflags = '-O binary';
405 enable = i386_pc;
406 };
407
408 image = {
409 name = diskboot;
410 i386_pc = boot/i386/pc/diskboot.S;
411
412 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
413 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
414
415 sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
416 sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
417
418 objcopyflags = '-O binary';
419
420 enable = i386_pc;
421 enable = sparc64_ieee1275;
422 };
423
424 image = {
425 name = lnxboot;
426 i386_pc = boot/i386/pc/lnxboot.S;
427
428 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
429 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
430
431 objcopyflags = '-O binary';
432 enable = i386_pc;
433 };
434
435 image = {
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;
443
444 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
445
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)';
450 enable = mips;
451 };
452
453 image = {
454 name = none_decompress;
455 mips = boot/mips/startup_raw.S;
456 common = boot/decompressor/none.c;
457
458 cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
459
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)';
464 enable = mips;
465 };
466
467 image = {
468 name = lzma_decompress;
469 i386_pc = boot/i386/pc/startup_raw.S;
470 i386_pc_nodist = rs_decoder.h;
471
472 objcopyflags = '-O binary';
473 ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200';
474 enable = i386_pc;
475 };
476
477 image = {
478 name = fwstart;
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;
483 };
484
485 image = {
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;
491 };
492
493 module = {
494 name = disk;
495 common = lib/disk.c;
496 extra_dist = kern/disk_common.c;
497 };
498
499 module = {
500 name = trig;
501 common_nodist = trigtables.c;
502 extra_dist = gentrigtables.c;
503 };
504
505 module = {
506 name = cs5536;
507 x86 = bus/cs5536.c;
508 enable = x86;
509 };
510
511 module = {
512 name = libusb;
513 emu = bus/usb/emu/usb.c;
514 enable = emu;
515 condition = COND_GRUB_EMU_USB;
516 };
517
518 module = {
519 name = lsspd;
520 mips_loongson = commands/mips/loongson/lsspd.c;
521 enable = mips_loongson;
522 };
523
524 module = {
525 name = usb;
526 common = bus/usb/usb.c;
527 common = bus/usb/usbtrans.c;
528 common = bus/usb/usbhub.c;
529 enable = usb;
530 };
531
532 module = {
533 name = emuusb;
534 common = bus/usb/usb.c;
535 enable = emu;
536 condition = COND_GRUB_EMU_USB;
537 };
538
539 module = {
540 name = usbserial_common;
541 common = bus/usb/serial/common.c;
542 enable = usb;
543 };
544
545 module = {
546 name = usbserial_pl2303;
547 common = bus/usb/serial/pl2303.c;
548 enable = usb;
549 };
550
551 module = {
552 name = usbserial_ftdi;
553 common = bus/usb/serial/ftdi.c;
554 enable = usb;
555 };
556
557 module = {
558 name = usbserial_usbdebug;
559 common = bus/usb/serial/usbdebug_late.c;
560 enable = usb;
561 };
562
563 module = {
564 name = uhci;
565 common = bus/usb/uhci.c;
566 enable = pci;
567 };
568
569 module = {
570 name = ohci;
571 common = bus/usb/ohci.c;
572 enable = pci;
573 };
574
575 module = {
576 name = ehci;
577 common = bus/usb/ehci.c;
578 enable = pci;
579 };
580
581 module = {
582 name = pci;
583 common = bus/pci.c;
584 i386_ieee1275 = bus/i386/ieee1275/pci.c;
585
586 enable = i386_pc;
587 enable = i386_ieee1275;
588 enable = i386_coreboot;
589 enable = i386_multiboot;
590 };
591
592 module = {
593 name = nativedisk;
594 common = commands/nativedisk.c;
595
596 enable = x86;
597 enable = mips_loongson;
598 enable = mips_qemu_mips;
599 };
600
601 module = {
602 name = emupci;
603 common = bus/emu/pci.c;
604 common = commands/lspci.c;
605
606 enable = emu;
607 condition = COND_GRUB_EMU_PCI;
608 };
609
610 module = {
611 name = lsdev;
612 common = commands/arc/lsdev.c;
613
614 enable = mips_arc;
615 };
616
617 module = {
618 name = lsxen;
619 common = commands/xen/lsxen.c;
620 cppflags = '$(CPPFLAGS_XEN)';
621
622 enable = xen;
623 };
624
625 module = {
626 name = check_nt_hiberfil;
627 common = commands/i386/nthibr.c;
628 };
629
630 module = {
631 name = cmostest;
632 common = commands/i386/cmostest.c;
633 enable = cmos;
634 };
635
636 module = {
637 name = cmosdump;
638 common = commands/i386/cmosdump.c;
639 enable = cmos;
640 };
641
642 module = {
643 name = iorw;
644 common = commands/iorw.c;
645 enable = x86;
646 };
647
648 module = {
649 name = cbtable;
650 common = kern/i386/coreboot/cbtable.c;
651 enable = i386_pc;
652 enable = i386_efi;
653 enable = i386_qemu;
654 enable = i386_multiboot;
655 enable = i386_ieee1275;
656 enable = x86_64_efi;
657 };
658
659 module = {
660 name = cbtime;
661 common = commands/i386/coreboot/cb_timestamps.c;
662 enable = x86;
663 };
664
665 module = {
666 name = cbls;
667 common = commands/i386/coreboot/cbls.c;
668 enable = x86;
669 };
670
671 module = {
672 name = cbmemc;
673 common = term/i386/coreboot/cbmemc.c;
674 enable = x86;
675 };
676
677 module = {
678 name = regexp;
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)';
684 };
685
686 module = {
687 name = acpi;
688
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;
694
695 enable = efi;
696 enable = i386_pc;
697 enable = i386_coreboot;
698 enable = i386_multiboot;
699 };
700
701 module = {
702 name = lsacpi;
703
704 common = commands/lsacpi.c;
705
706 enable = efi;
707 enable = i386_pc;
708 enable = i386_coreboot;
709 enable = i386_multiboot;
710 };
711
712 module = {
713 name = lsefisystab;
714
715 common = commands/efi/lsefisystab.c;
716
717 enable = efi;
718 };
719
720 module = {
721 name = lssal;
722
723 common = commands/efi/lssal.c;
724
725 enable = efi;
726 };
727
728 module = {
729 name = lsefimmap;
730
731 common = commands/efi/lsefimmap.c;
732
733 enable = efi;
734 };
735
736 module = {
737 name = lsefi;
738 common = commands/efi/lsefi.c;
739 enable = efi;
740 };
741
742 module = {
743 name = efifwsetup;
744 efi = commands/efi/efifwsetup.c;
745 enable = efi;
746 };
747
748 module = {
749 name = blocklist;
750 common = commands/blocklist.c;
751 };
752
753 module = {
754 name = boot;
755 common = commands/boot.c;
756 i386_pc = lib/i386/pc/biosnum.c;
757 enable = x86;
758 enable = emu;
759 enable = sparc64_ieee1275;
760 enable = powerpc_ieee1275;
761 enable = mips_arc;
762 enable = ia64_efi;
763 enable = arm_efi;
764 enable = arm64_efi;
765 enable = arm_uboot;
766 };
767
768 module = {
769 name = cat;
770 common = commands/cat.c;
771 };
772
773 module = {
774 name = cmp;
775 common = commands/cmp.c;
776 };
777
778 module = {
779 name = configfile;
780 common = commands/configfile.c;
781 };
782
783 module = {
784 name = cpuid;
785 common = commands/i386/cpuid.c;
786 enable = x86;
787 enable = i386_xen;
788 enable = x86_64_xen;
789 };
790
791 module = {
792 name = date;
793 common = commands/date.c;
794 };
795
796 module = {
797 name = drivemap;
798
799 i386_pc = commands/i386/pc/drivemap.c;
800 i386_pc = commands/i386/pc/drivemap_int13h.S;
801 enable = i386_pc;
802 };
803
804 module = {
805 name = echo;
806 common = commands/echo.c;
807 };
808
809 module = {
810 name = eval;
811 common = commands/eval.c;
812 };
813
814 module = {
815 name = extcmd;
816 common = commands/extcmd.c;
817 common = lib/arg.c;
818 enable = terminfomodule;
819 };
820
821 module = {
822 name = fixvideo;
823 common = commands/efi/fixvideo.c;
824 enable = i386_efi;
825 enable = x86_64_efi;
826 };
827
828 module = {
829 name = gptsync;
830 common = commands/gptsync.c;
831 };
832
833 module = {
834 name = halt;
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;
851 };
852
853 module = {
854 name = reboot;
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;
870 };
871
872 module = {
873 name = hashsum;
874 common = commands/hashsum.c;
875 };
876
877 module = {
878 name = verify;
879 common = commands/verify.c;
880 cflags = '$(CFLAGS_POSIX)';
881 cppflags = '-I$(srcdir)/lib/posix_wrap';
882 };
883
884 module = {
885 name = hdparm;
886 common = commands/hdparm.c;
887 common = lib/hexdump.c;
888 enable = pci;
889 enable = mips_qemu_mips;
890 };
891
892 module = {
893 name = help;
894 common = commands/help.c;
895 };
896
897 module = {
898 name = hexdump;
899 common = commands/hexdump.c;
900 common = lib/hexdump.c;
901 };
902
903 module = {
904 name = keystatus;
905 common = commands/keystatus.c;
906 };
907
908 module = {
909 name = loadbios;
910 common = commands/efi/loadbios.c;
911 enable = i386_efi;
912 enable = x86_64_efi;
913 };
914
915 module = {
916 name = loadenv;
917 common = commands/loadenv.c;
918 common = lib/envblk.c;
919 };
920
921 module = {
922 name = ls;
923 common = commands/ls.c;
924 };
925
926 module = {
927 name = lsmmap;
928 common = commands/lsmmap.c;
929 };
930
931 module = {
932 name = lspci;
933 common = commands/lspci.c;
934
935 enable = pci;
936 };
937
938 module = {
939 name = memrw;
940 common = commands/memrw.c;
941 };
942
943 module = {
944 name = minicmd;
945 common = commands/minicmd.c;
946 };
947
948 module = {
949 name = parttool;
950 common = commands/parttool.c;
951 };
952
953 module = {
954 name = password;
955 common = commands/password.c;
956 };
957
958 module = {
959 name = password_pbkdf2;
960 common = commands/password_pbkdf2.c;
961 };
962
963 module = {
964 name = play;
965 x86 = commands/i386/pc/play.c;
966 enable = x86;
967 };
968
969 module = {
970 name = spkmodem;
971 x86 = term/spkmodem.c;
972 enable = x86;
973 };
974
975 module = {
976 name = morse;
977 x86 = term/morse.c;
978 enable = x86;
979 };
980
981 module = {
982 name = probe;
983 common = commands/probe.c;
984 };
985
986 module = {
987 name = read;
988 common = commands/read.c;
989 };
990
991 module = {
992 name = search;
993 common = commands/search_wrap.c;
994 extra_dist = commands/search.c;
995 };
996
997 module = {
998 name = search_fs_file;
999 common = commands/search_file.c;
1000 };
1001
1002 module = {
1003 name = search_fs_uuid;
1004 common = commands/search_uuid.c;
1005 };
1006
1007 module = {
1008 name = search_label;
1009 common = commands/search_label.c;
1010 };
1011
1012 module = {
1013 name = setpci;
1014 common = commands/setpci.c;
1015 enable = pci;
1016 };
1017
1018 module = {
1019 name = pcidump;
1020 common = commands/pcidump.c;
1021 enable = pci;
1022 };
1023
1024 module = {
1025 name = sleep;
1026 common = commands/sleep.c;
1027 };
1028
1029 module = {
1030 name = suspend;
1031 ieee1275 = commands/ieee1275/suspend.c;
1032 enable = i386_ieee1275;
1033 enable = powerpc_ieee1275;
1034 };
1035
1036 module = {
1037 name = escc;
1038 ieee1275 = term/ieee1275/escc.c;
1039 enable = powerpc_ieee1275;
1040 };
1041
1042 module = {
1043 name = terminal;
1044 common = commands/terminal.c;
1045 };
1046
1047 module = {
1048 name = test;
1049 common = commands/test.c;
1050 };
1051
1052 module = {
1053 name = true;
1054 common = commands/true.c;
1055 };
1056
1057 module = {
1058 name = usbtest;
1059 common = commands/usbtest.c;
1060 enable = usb;
1061 };
1062
1063 module = {
1064 name = videoinfo;
1065 common = commands/videoinfo.c;
1066 };
1067
1068 module = {
1069 name = videotest;
1070 common = commands/videotest.c;
1071 };
1072
1073 module = {
1074 name = xnu_uuid;
1075 common = commands/xnu_uuid.c;
1076 };
1077
1078 module = {
1079 name = dm_nv;
1080 common = disk/dmraid_nvidia.c;
1081 };
1082
1083 module = {
1084 name = loopback;
1085 common = disk/loopback.c;
1086 };
1087
1088 module = {
1089 name = cryptodisk;
1090 common = disk/cryptodisk.c;
1091 };
1092
1093 module = {
1094 name = luks;
1095 common = disk/luks.c;
1096 common = disk/AFSplitter.c;
1097 };
1098
1099 module = {
1100 name = geli;
1101 common = disk/geli.c;
1102 };
1103
1104 module = {
1105 name = lvm;
1106 common = disk/lvm.c;
1107 };
1108
1109 module = {
1110 name = ldm;
1111 common = disk/ldm.c;
1112 };
1113
1114 module = {
1115 name = mdraid09;
1116 common = disk/mdraid_linux.c;
1117 };
1118
1119 module = {
1120 name = mdraid09_be;
1121 common = disk/mdraid_linux_be.c;
1122 };
1123
1124 module = {
1125 name = mdraid1x;
1126 common = disk/mdraid1x_linux.c;
1127 };
1128
1129 module = {
1130 name = diskfilter;
1131 common = disk/diskfilter.c;
1132 };
1133
1134 module = {
1135 name = raid5rec;
1136 common = disk/raid5_recover.c;
1137 };
1138
1139 module = {
1140 name = raid6rec;
1141 common = disk/raid6_recover.c;
1142 };
1143
1144 module = {
1145 name = scsi;
1146 common = disk/scsi.c;
1147 };
1148
1149 module = {
1150 name = memdisk;
1151 common = disk/memdisk.c;
1152 };
1153
1154 module = {
1155 name = ata;
1156 common = disk/ata.c;
1157 enable = pci;
1158 enable = mips_qemu_mips;
1159 };
1160
1161 module = {
1162 name = ahci;
1163 common = disk/ahci.c;
1164 enable = pci;
1165 };
1166
1167 module = {
1168 name = pata;
1169 common = disk/pata.c;
1170 enable = pci;
1171 enable = mips_qemu_mips;
1172 };
1173
1174 module = {
1175 name = biosdisk;
1176 i386_pc = disk/i386/pc/biosdisk.c;
1177 enable = i386_pc;
1178 };
1179
1180 module = {
1181 name = usbms;
1182 common = disk/usbms.c;
1183 enable = usb;
1184 };
1185
1186 module = {
1187 name = nand;
1188 ieee1275 = disk/ieee1275/nand.c;
1189 enable = i386_ieee1275;
1190 };
1191
1192 module = {
1193 name = efiemu;
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;
1211
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;
1216
1217 enable = i386_pc;
1218 enable = i386_coreboot;
1219 enable = i386_ieee1275;
1220 enable = i386_multiboot;
1221 enable = i386_qemu;
1222 };
1223
1224 module = {
1225 name = font;
1226 common = font/font.c;
1227 common = font/font_cmd.c;
1228 enable = videomodules;
1229 };
1230
1231 module = {
1232 name = procfs;
1233 common = fs/proc.c;
1234 };
1235
1236 module = {
1237 name = affs;
1238 common = fs/affs.c;
1239 };
1240
1241 module = {
1242 name = afs;
1243 common = fs/afs.c;
1244 };
1245
1246 module = {
1247 name = bfs;
1248 common = fs/bfs.c;
1249 };
1250
1251 module = {
1252 name = btrfs;
1253 common = fs/btrfs.c;
1254 common = lib/crc.c;
1255 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1256 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1257 };
1258
1259 module = {
1260 name = archelp;
1261 common = fs/archelp.c;
1262 };
1263
1264 module = {
1265 name = cbfs;
1266 common = fs/cbfs.c;
1267 };
1268
1269 module = {
1270 name = cpio;
1271 common = fs/cpio.c;
1272 };
1273
1274 module = {
1275 name = cpio_be;
1276 common = fs/cpio_be.c;
1277 };
1278
1279 module = {
1280 name = newc;
1281 common = fs/newc.c;
1282 };
1283
1284 module = {
1285 name = odc;
1286 common = fs/odc.c;
1287 };
1288
1289 module = {
1290 name = ext2;
1291 common = fs/ext2.c;
1292 };
1293
1294 module = {
1295 name = fat;
1296 common = fs/fat.c;
1297 };
1298
1299 module = {
1300 name = exfat;
1301 common = fs/exfat.c;
1302 };
1303
1304 module = {
1305 name = fshelp;
1306 common = fs/fshelp.c;
1307 };
1308
1309 module = {
1310 name = hfs;
1311 common = fs/hfs.c;
1312 };
1313
1314 module = {
1315 name = hfsplus;
1316 common = fs/hfsplus.c;
1317 };
1318
1319 module = {
1320 name = hfspluscomp;
1321 common = fs/hfspluscomp.c;
1322 };
1323
1324 module = {
1325 name = iso9660;
1326 common = fs/iso9660.c;
1327 };
1328
1329 module = {
1330 name = jfs;
1331 common = fs/jfs.c;
1332 };
1333
1334 module = {
1335 name = minix;
1336 common = fs/minix.c;
1337 };
1338
1339 module = {
1340 name = minix2;
1341 common = fs/minix2.c;
1342 };
1343
1344 module = {
1345 name = minix3;
1346 common = fs/minix3.c;
1347 };
1348
1349 module = {
1350 name = minix_be;
1351 common = fs/minix_be.c;
1352 };
1353
1354 module = {
1355 name = minix2_be;
1356 common = fs/minix2_be.c;
1357 };
1358
1359 module = {
1360 name = minix3_be;
1361 common = fs/minix3_be.c;
1362 };
1363
1364 module = {
1365 name = nilfs2;
1366 common = fs/nilfs2.c;
1367 };
1368
1369 module = {
1370 name = ntfs;
1371 common = fs/ntfs.c;
1372 };
1373
1374 module = {
1375 name = ntfscomp;
1376 common = fs/ntfscomp.c;
1377 };
1378
1379 module = {
1380 name = reiserfs;
1381 common = fs/reiserfs.c;
1382 };
1383
1384 module = {
1385 name = romfs;
1386 common = fs/romfs.c;
1387 };
1388
1389 module = {
1390 name = sfs;
1391 common = fs/sfs.c;
1392 };
1393
1394 module = {
1395 name = squash4;
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';
1399 };
1400
1401 module = {
1402 name = tar;
1403 common = fs/tar.c;
1404 };
1405
1406 module = {
1407 name = udf;
1408 common = fs/udf.c;
1409 };
1410
1411 module = {
1412 name = ufs1;
1413 common = fs/ufs.c;
1414 };
1415
1416 module = {
1417 name = ufs1_be;
1418 common = fs/ufs_be.c;
1419 };
1420
1421 module = {
1422 name = ufs2;
1423 common = fs/ufs2.c;
1424 };
1425
1426 module = {
1427 name = xfs;
1428 common = fs/xfs.c;
1429 };
1430
1431 module = {
1432 name = zfs;
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;
1438 };
1439
1440 module = {
1441 name = zfscrypt;
1442 common = fs/zfs/zfscrypt.c;
1443 };
1444
1445 module = {
1446 name = zfsinfo;
1447 common = fs/zfs/zfsinfo.c;
1448 };
1449
1450 module = {
1451 name = pxe;
1452 i386_pc = net/drivers/i386/pc/pxe.c;
1453 enable = i386_pc;
1454 };
1455
1456 module = {
1457 name = gettext;
1458 common = gettext/gettext.c;
1459 };
1460
1461 module = {
1462 name = gfxmenu;
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;
1479 };
1480
1481 module = {
1482 name = hello;
1483 common = hello/hello.c;
1484 };
1485
1486 module = {
1487 name = gzio;
1488 common = io/gzio.c;
1489 };
1490
1491 module = {
1492 name = offsetio;
1493 common = io/offset.c;
1494 };
1495
1496 module = {
1497 name = bufio;
1498 common = io/bufio.c;
1499 enable = videomodules;
1500 };
1501
1502 module = {
1503 name = elf;
1504 common = kern/elf.c;
1505
1506 extra_dist = kern/elfXX.c;
1507 };
1508
1509 module = {
1510 name = crypto;
1511 common = lib/crypto.c;
1512
1513 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1514 };
1515
1516 module = {
1517 name = pbkdf2;
1518 common = lib/pbkdf2.c;
1519 };
1520
1521 module = {
1522 name = relocator;
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)';
1544
1545 extra_dist = lib/i386/relocator_common.S;
1546 extra_dist = kern/powerpc/cache_flush.S;
1547
1548 enable = mips;
1549 enable = powerpc;
1550 enable = x86;
1551 enable = xen;
1552 };
1553
1554 module = {
1555 name = datetime;
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)';
1565
1566 mips_arc = lib/arc/datetime.c;
1567 enable = noemu;
1568 };
1569
1570 module = {
1571 name = setjmp;
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;
1582 };
1583
1584 module = {
1585 name = aout;
1586 common = loader/aout.c;
1587 enable = x86;
1588 };
1589
1590 module = {
1591 name = bsd;
1592 x86 = loader/i386/bsd.c;
1593 x86 = loader/i386/bsd32.c;
1594 x86 = loader/i386/bsd64.c;
1595
1596 extra_dist = loader/i386/bsdXX.c;
1597 extra_dist = loader/i386/bsd_pagetable.c;
1598
1599 enable = x86;
1600 };
1601
1602 module = {
1603 name = plan9;
1604 i386_pc = loader/i386/pc/plan9.c;
1605 enable = i386_pc;
1606 };
1607
1608
1609 module = {
1610 name = linux16;
1611 common = loader/i386/pc/linux.c;
1612 common = loader/linux.c;
1613 common = lib/cmdline.c;
1614 enable = x86;
1615 };
1616
1617 module = {
1618 name = ntldr;
1619 i386_pc = loader/i386/pc/ntldr.c;
1620 enable = i386_pc;
1621 };
1622
1623 module = {
1624 name = freedos;
1625 i386_pc = loader/i386/pc/freedos.c;
1626 enable = i386_pc;
1627 };
1628
1629 module = {
1630 name = pxechain;
1631 i386_pc = loader/i386/pc/pxechainloader.c;
1632 enable = i386_pc;
1633 };
1634
1635 module = {
1636 name = multiboot2;
1637 cppflags = "-DGRUB_USE_MULTIBOOT2";
1638
1639 common = loader/multiboot.c;
1640 common = lib/cmdline.c;
1641 common = loader/multiboot_mbi2.c;
1642 enable = x86;
1643 enable = mips;
1644 };
1645
1646 module = {
1647 name = multiboot;
1648 common = loader/multiboot.c;
1649 common = lib/cmdline.c;
1650 x86 = loader/i386/multiboot_mbi.c;
1651 extra_dist = loader/multiboot_elfxx.c;
1652 enable = x86;
1653 };
1654
1655 module = {
1656 name = linux;
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;
1670 arm = lib/fdt.c;
1671 common = loader/linux.c;
1672 common = lib/cmdline.c;
1673 enable = noemu;
1674 };
1675
1676 module = {
1677 name = xnu;
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;
1683 x86 = loader/xnu.c;
1684 x86 = loader/lzss.c;
1685
1686 extra_dist = loader/machoXX.c;
1687 enable = x86;
1688 };
1689
1690 module = {
1691 name = appleldr;
1692 common = loader/efi/appleloader.c;
1693 enable = i386_efi;
1694 enable = x86_64_efi;
1695 };
1696
1697 module = {
1698 name = chain;
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;
1703 enable = i386_pc;
1704 enable = i386_coreboot;
1705 enable = efi;
1706 };
1707
1708 module = {
1709 name = mmap;
1710 common = mmap/mmap.c;
1711 x86 = mmap/i386/uppermem.c;
1712 x86 = mmap/i386/mmap.c;
1713
1714 i386_pc = mmap/i386/pc/mmap.c;
1715 i386_pc = mmap/i386/pc/mmap_helper.S;
1716
1717 efi = mmap/efi/mmap.c;
1718
1719 mips = mmap/mips/uppermem.c;
1720
1721 enable = x86;
1722 enable = ia64_efi;
1723 enable = arm_efi;
1724 enable = arm64_efi;
1725 enable = mips;
1726 };
1727
1728 module = {
1729 name = normal;
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;
1746
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;
1753
1754 common = commands/menuentry.c;
1755
1756 common = unidata.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;
1761
1762 extra_dist = script/yylex.l;
1763 extra_dist = script/parser.y;
1764
1765 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
1766 cppflags = '$(CPPFLAGS_POSIX)';
1767 };
1768
1769 module = {
1770 name = part_acorn;
1771 common = partmap/acorn.c;
1772 };
1773
1774 module = {
1775 name = part_amiga;
1776 common = partmap/amiga.c;
1777 };
1778
1779 module = {
1780 name = part_apple;
1781 common = partmap/apple.c;
1782 };
1783
1784 module = {
1785 name = part_gpt;
1786 common = partmap/gpt.c;
1787 };
1788
1789 module = {
1790 name = part_msdos;
1791 common = partmap/msdos.c;
1792 };
1793
1794 module = {
1795 name = part_sun;
1796 common = partmap/sun.c;
1797 };
1798
1799 module = {
1800 name = part_plan;
1801 common = partmap/plan.c;
1802 };
1803
1804 module = {
1805 name = part_dvh;
1806 common = partmap/dvh.c;
1807 };
1808
1809 module = {
1810 name = part_bsd;
1811 common = partmap/bsdlabel.c;
1812 };
1813
1814 module = {
1815 name = part_sunpc;
1816 common = partmap/sunpc.c;
1817 };
1818
1819 module = {
1820 name = part_dfly;
1821 common = partmap/dfly.c;
1822 };
1823
1824 module = {
1825 name = msdospart;
1826 common = parttool/msdospart.c;
1827 };
1828
1829 module = {
1830 name = at_keyboard;
1831 common = term/at_keyboard.c;
1832 enable = x86;
1833 };
1834
1835 module = {
1836 name = gfxterm;
1837 common = term/gfxterm.c;
1838 enable = videomodules;
1839 };
1840
1841 module = {
1842 name = gfxterm_background;
1843 common = term/gfxterm_background.c;
1844 };
1845
1846 module = {
1847 name = serial;
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;
1853
1854 enable = terminfomodule;
1855 enable = ieee1275;
1856 enable = mips_arc;
1857 };
1858
1859 module = {
1860 name = sendkey;
1861 i386_pc = commands/i386/pc/sendkey.c;
1862 enable = i386_pc;
1863 };
1864
1865 module = {
1866 name = terminfo;
1867 common = term/terminfo.c;
1868 common = term/tparm.c;
1869 enable = terminfomodule;
1870 };
1871
1872 module = {
1873 name = usb_keyboard;
1874 common = term/usb_keyboard.c;
1875 enable = usb;
1876 };
1877
1878 module = {
1879 name = vga;
1880 common = video/i386/pc/vga.c;
1881 enable = i386_pc;
1882 };
1883
1884 module = {
1885 name = vga_text;
1886 common = term/i386/pc/vga_text.c;
1887 enable = i386_pc;
1888 };
1889
1890 module = {
1891 name = mda_text;
1892 common = term/i386/pc/mda_text.c;
1893 enable = i386_pc;
1894 enable = i386_coreboot_multiboot_qemu;
1895 };
1896
1897 module = {
1898 name = video_cirrus;
1899 x86 = video/cirrus.c;
1900 enable = x86;
1901 };
1902
1903 module = {
1904 name = video_bochs;
1905 x86 = video/bochs.c;
1906 enable = x86;
1907 };
1908
1909 module = {
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;
1917 };
1918
1919 module = {
1920 name = exfctest;
1921 common = tests/example_functional_test.c;
1922 };
1923
1924 module = {
1925 name = setjmp_test;
1926 common = tests/setjmp_test.c;
1927 };
1928
1929 module = {
1930 name = signature_test;
1931 common = tests/signature_test.c;
1932 common = tests/signatures.h;
1933 };
1934
1935 module = {
1936 name = xnu_uuid_test;
1937 common = tests/xnu_uuid_test.c;
1938 };
1939
1940 module = {
1941 name = pbkdf2_test;
1942 common = tests/pbkdf2_test.c;
1943 };
1944
1945 module = {
1946 name = legacy_password_test;
1947 common = tests/legacy_password_test.c;
1948 enable = i386_pc;
1949 enable = i386_efi;
1950 enable = x86_64_efi;
1951 enable = emu;
1952 enable = xen;
1953 };
1954
1955 module = {
1956 name = div_test;
1957 common = tests/div_test.c;
1958 };
1959
1960 module = {
1961 name = videotest_checksum;
1962 common = tests/videotest_checksum.c;
1963 };
1964
1965 module = {
1966 name = gfxterm_menu;
1967 common = tests/gfxterm_menu.c;
1968 };
1969
1970 module = {
1971 name = cmdline_cat_test;
1972 common = tests/cmdline_cat_test.c;
1973 };
1974
1975 module = {
1976 name = bitmap;
1977 common = video/bitmap.c;
1978 };
1979
1980 module = {
1981 name = bitmap_scale;
1982 common = video/bitmap_scale.c;
1983 };
1984
1985 module = {
1986 name = efi_gop;
1987 efi = video/efi_gop.c;
1988 enable = efi;
1989 };
1990
1991 module = {
1992 name = efi_uga;
1993 efi = video/efi_uga.c;
1994 enable = i386_efi;
1995 enable = x86_64_efi;
1996 };
1997
1998 module = {
1999 name = jpeg;
2000 common = video/readers/jpeg.c;
2001 };
2002
2003 module = {
2004 name = png;
2005 common = video/readers/png.c;
2006 };
2007
2008 module = {
2009 name = tga;
2010 common = video/readers/tga.c;
2011 };
2012
2013 module = {
2014 name = vbe;
2015 common = video/i386/pc/vbe.c;
2016 enable = i386_pc;
2017 };
2018
2019 module = {
2020 name = video_fb;
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;
2026 };
2027
2028 module = {
2029 name = video;
2030 common = video/video.c;
2031 enable = videomodules;
2032 };
2033
2034 module = {
2035 name = video_colors;
2036 common = video/colors.c;
2037 };
2038
2039 module = {
2040 name = ieee1275_fb;
2041 ieee1275 = video/ieee1275.c;
2042 enable = powerpc_ieee1275;
2043 };
2044
2045 module = {
2046 name = sdl;
2047 emu = video/emu/sdl.c;
2048 enable = emu;
2049 condition = COND_GRUB_EMU_SDL;
2050 };
2051
2052 module = {
2053 name = datehook;
2054 common = hook/datehook.c;
2055 };
2056
2057 module = {
2058 name = net;
2059 common = net/net.c;
2060 common = net/dns.c;
2061 common = net/bootp.c;
2062 common = net/ip.c;
2063 common = net/udp.c;
2064 common = net/tcp.c;
2065 common = net/icmp.c;
2066 common = net/icmp6.c;
2067 common = net/ethernet.c;
2068 common = net/arp.c;
2069 common = net/netbuff.c;
2070 };
2071
2072 module = {
2073 name = tftp;
2074 common = net/tftp.c;
2075 };
2076
2077 module = {
2078 name = http;
2079 common = net/http.c;
2080 };
2081
2082 module = {
2083 name = ofnet;
2084 common = net/drivers/ieee1275/ofnet.c;
2085 enable = ieee1275;
2086 };
2087
2088 module = {
2089 name = ubootnet;
2090 common = net/drivers/uboot/ubootnet.c;
2091 enable = uboot;
2092 };
2093
2094 module = {
2095 name = efinet;
2096 common = net/drivers/efi/efinet.c;
2097 enable = efi;
2098 };
2099
2100 module = {
2101 name = emunet;
2102 emu = net/drivers/emu/emunet.c;
2103 enable = emu;
2104 };
2105
2106 module = {
2107 name = legacycfg;
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;
2114
2115 enable = i386_pc;
2116 enable = i386_efi;
2117 enable = x86_64_efi;
2118 enable = emu;
2119 enable = xen;
2120 };
2121
2122 module = {
2123 name = test_blockarg;
2124 common = tests/test_blockarg.c;
2125 };
2126
2127 module = {
2128 name = xzio;
2129 common = io/xzio.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';
2135 };
2136
2137 module = {
2138 name = lzopio;
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';
2143 };
2144
2145 module = {
2146 name = testload;
2147 common = commands/testload.c;
2148 };
2149
2150 module = {
2151 name = backtrace;
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;
2156 enable = x86;
2157 enable = i386_xen;
2158 enable = x86_64_xen;
2159 };
2160
2161 module = {
2162 name = lsapm;
2163 common = commands/i386/pc/lsapm.c;
2164 enable = i386_pc;
2165 };
2166
2167 module = {
2168 name = keylayouts;
2169 common = commands/keylayouts.c;
2170 enable = x86;
2171 };
2172
2173 module = {
2174 name = priority_queue;
2175 common = lib/priority_queue.c;
2176 };
2177
2178 module = {
2179 name = time;
2180 common = commands/time.c;
2181 };
2182
2183 module = {
2184 name = cacheinfo;
2185 common = commands/cacheinfo.c;
2186 condition = COND_ENABLE_CACHE_STATS;
2187 };
2188
2189 module = {
2190 name = boottime;
2191 common = commands/boottime.c;
2192 condition = COND_ENABLE_BOOT_TIME_STATS;
2193 };
2194
2195 module = {
2196 name = adler32;
2197 common = lib/adler32.c;
2198 };
2199
2200 module = {
2201 name = crc64;
2202 common = lib/crc64.c;
2203 };
2204
2205 module = {
2206 name = mpi;
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;
2230
2231 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2232 cppflags = '$(CPPFLAGS_GCRY)';
2233 };
2234
2235 module = {
2236 name = all_video;
2237 common = lib/fake_module.c;
2238 };
2239
2240 module = {
2241 name = gdb;
2242 common = gdb/cstub.c;
2243 common = gdb/gdb.c;
2244 i386 = gdb/i386/idt.c;
2245 i386 = gdb/i386/machdep.S;
2246 i386 = gdb/i386/signal.c;
2247 enable = i386;
2248 };
2249
2250 module = {
2251 name = testspeed;
2252 common = commands/testspeed.c;
2253 };
2254
2255 module = {
2256 name = tr;
2257 common = commands/tr.c;
2258 };
2259
2260 module = {
2261 name = progress;
2262 common = lib/progress.c;
2263 };