]> git.proxmox.com Git - grub2.git/blob - grub-core/Makefile.core.def
* grub-core/kern/emu/error.c: Removed.
[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 arm_efi_ldflags = '-Wl,-r,-d';
63 arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
64
65 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
66 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
67
68 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
69 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
70
71 ldadd = '$(LDADD_KERNEL)';
72
73 i386_coreboot_ldflags = '-Wl,-Ttext=0x8200';
74 i386_multiboot_ldflags = '-Wl,-Ttext=0x8200';
75 i386_ieee1275_ldflags = '-Wl,-Ttext=0x10000';
76 mips_loongson_ldflags = '-Wl,-Ttext,0x80200000';
77 powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000';
78 sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400';
79 mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)';
80 mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
81
82 mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
83 mips_loongson_cppflags = '-DUSE_ASCII_FALLBACK';
84 i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
85 emu_cflags = '$(CFLAGS_GNULIB)';
86 emu_cppflags = '$(CPPFLAGS_GNULIB)';
87 arm_uboot_ldflags = '-Wl,-Ttext=0x08000000';
88 arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
89
90 i386_pc_startup = kern/i386/pc/startup.S;
91 i386_efi_startup = kern/i386/efi/startup.S;
92 x86_64_efi_startup = kern/x86_64/efi/startup.S;
93 i386_qemu_startup = kern/i386/qemu/startup.S;
94 i386_ieee1275_startup = kern/i386/ieee1275/startup.S;
95 i386_coreboot_startup = kern/i386/coreboot/startup.S;
96 i386_multiboot_startup = kern/i386/coreboot/startup.S;
97 mips_startup = kern/mips/startup.S;
98 sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S;
99 powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S;
100 arm_uboot_startup = kern/arm/uboot/startup.S;
101 arm_efi_startup = kern/arm/efi/startup.S;
102
103 common = kern/command.c;
104 common = kern/corecmd.c;
105 common = kern/device.c;
106 common = kern/disk.c;
107 common = kern/dl.c;
108 common = kern/env.c;
109 common = kern/err.c;
110 common = kern/file.c;
111 common = kern/fs.c;
112 common = kern/list.c;
113 common = kern/main.c;
114 common = kern/misc.c;
115 common = kern/parser.c;
116 common = kern/partition.c;
117 common = kern/rescue_parser.c;
118 common = kern/rescue_reader.c;
119 common = kern/term.c;
120
121 noemu = kern/mm.c;
122 noemu = kern/time.c;
123 noemu = kern/generic/millisleep.c;
124
125 noemu_nodist = symlist.c;
126
127 mips = kern/generic/rtc_get_time_ms.c;
128
129 ieee1275 = disk/ieee1275/ofdisk.c;
130 ieee1275 = kern/ieee1275/cmain.c;
131 ieee1275 = kern/ieee1275/ieee1275.c;
132 ieee1275 = kern/ieee1275/mmap.c;
133 ieee1275 = kern/ieee1275/openfw.c;
134 ieee1275 = term/ieee1275/console.c;
135 ieee1275 = kern/ieee1275/init.c;
136
137 uboot = disk/uboot/ubootdisk.c;
138 uboot = kern/uboot/uboot.c;
139 uboot = kern/uboot/init.c;
140 uboot = kern/uboot/hw.c;
141 uboot = term/uboot/console.c;
142
143 terminfoinkernel = term/terminfo.c;
144 terminfoinkernel = term/tparm.c;
145 terminfoinkernel = commands/extcmd.c;
146 terminfoinkernel = lib/arg.c;
147
148 i386 = kern/i386/dl.c;
149
150 i386_coreboot = kern/i386/coreboot/init.c;
151 i386_multiboot = kern/i386/coreboot/init.c;
152 i386_qemu = kern/i386/qemu/init.c;
153 i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c;
154 i386_coreboot = video/i386/coreboot/cbfb.c;
155
156 efi = disk/efi/efidisk.c;
157 efi = kern/efi/efi.c;
158 efi = kern/efi/init.c;
159 efi = kern/efi/mm.c;
160 efi = term/efi/console.c;
161
162 x86 = kern/i386/tsc.c;
163
164 i386_efi = kern/i386/efi/init.c;
165 i386_efi = bus/pci.c;
166
167 x86_64_efi = kern/x86_64/dl.c;
168 x86_64_efi = kern/x86_64/efi/callwrap.S;
169 x86_64_efi = kern/i386/efi/init.c;
170 x86_64_efi = bus/pci.c;
171
172 ia64_efi = kern/ia64/efi/startup.S;
173 ia64_efi = kern/ia64/efi/init.c;
174 ia64_efi = kern/ia64/dl.c;
175 ia64_efi = kern/ia64/dl_helper.c;
176
177 arm_efi = kern/arm/efi/init.c;
178 arm_efi = kern/arm/efi/misc.c;
179
180 i386_pc = kern/i386/pc/init.c;
181 i386_pc = kern/i386/pc/mmap.c;
182 i386_pc = term/i386/pc/console.c;
183
184 i386_qemu = bus/pci.c;
185 i386_qemu = kern/vga_init.c;
186 i386_qemu = kern/i386/qemu/mmap.c;
187
188 i386_coreboot = kern/i386/coreboot/mmap.c;
189 i386_coreboot = kern/i386/coreboot/cbtable.c;
190
191 i386_multiboot = kern/i386/multiboot_mmap.c;
192
193 mips = kern/mips/cache.S;
194 mips = kern/mips/dl.c;
195 mips = kern/mips/init.c;
196
197 mips_qemu_mips = kern/mips/qemu_mips/init.c;
198 mips_qemu_mips = term/ns8250.c;
199 mips_qemu_mips = term/serial.c;
200 mips_qemu_mips = term/at_keyboard.c;
201 mips_qemu_mips = commands/boot.c;
202 mips_qemu_mips = commands/keylayouts.c;
203 mips_qemu_mips = term/i386/pc/vga_text.c;
204 mips_qemu_mips = kern/vga_init.c;
205
206 mips_arc = kern/mips/arc/init.c;
207 mips_arc = term/arc/console.c;
208 mips_arc = disk/arc/arcdisk.c;
209
210 mips_loongson = term/ns8250.c;
211 mips_loongson = bus/bonito.c;
212 mips_loongson = bus/cs5536.c;
213 mips_loongson = bus/pci.c;
214 mips_loongson = kern/mips/loongson/init.c;
215 mips_loongson = term/at_keyboard.c;
216 mips_loongson = commands/boot.c;
217 mips_loongson = term/serial.c;
218 mips_loongson = video/sm712.c;
219 mips_loongson = video/sis315pro.c;
220 mips_loongson = video/radeon_fuloong2e.c;
221 extra_dist = video/sm712_init.c;
222 extra_dist = video/sis315_init.c;
223 mips_loongson = commands/keylayouts.c;
224
225 powerpc_ieee1275 = kern/powerpc/cache.S;
226 powerpc_ieee1275 = kern/powerpc/dl.c;
227
228 sparc64_ieee1275 = kern/sparc64/cache.S;
229 sparc64_ieee1275 = kern/sparc64/dl.c;
230 sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
231
232 arm = kern/arm/dl.c;
233 arm = kern/arm/dl_helper.c;
234 arm = kern/arm/cache_armv6.S;
235 arm = kern/arm/cache_armv7.S;
236 extra_dist = kern/arm/cache.S;
237 arm = kern/arm/cache.c;
238 arm = kern/arm/misc.S;
239
240 emu = disk/host.c;
241 emu = kern/emu/cache_s.S;
242 emu = kern/emu/hostdisk.c;
243 emu = osdep/unix/hostdisk.c;
244 emu = osdep/devmapper/hostdisk.c;
245 emu = osdep/hostdisk.c;
246 emu = kern/emu/hostfs.c;
247 emu = kern/emu/main.c;
248 emu = kern/emu/argp_common.c;
249 emu = kern/emu/misc.c;
250 emu = kern/emu/mm.c;
251 emu = kern/emu/time.c;
252 emu = kern/emu/cache.c;
253 emu = osdep/emuconsole.c;
254 extra_dist = osdep/unix/emuconsole.c;
255 extra_dist = osdep/windows/emuconsole.c;
256 emu = osdep/sleep.c;
257 emu = osdep/init.c;
258 emu = osdep/emunet.c;
259 extra_dist = osdep/linux/emunet.c;
260 extra_dist = osdep/basic/emunet.c;
261
262 videoinkernel = term/gfxterm.c;
263 videoinkernel = font/font.c;
264 videoinkernel = font/font_cmd.c;
265 videoinkernel = io/bufio.c;
266 videoinkernel = video/fb/fbblit.c;
267 videoinkernel = video/fb/fbfill.c;
268 videoinkernel = video/fb/fbutil.c;
269 videoinkernel = video/fb/video_fb.c;
270 videoinkernel = video/video.c;
271
272 extra_dist = kern/i386/int.S;
273 extra_dist = kern/i386/realmode.S;
274 extra_dist = boot/i386/pc/lzma_decode.S;
275 extra_dist = kern/mips/cache_flush.S;
276 };
277
278 program = {
279 name = grub-emu;
280 mansection = 1;
281
282 emu = kern/emu/full.c;
283 emu_nodist = grub_emu_init.c;
284
285 ldadd = 'kernel.exec$(EXEEXT)';
286 ldadd = '$(MODULE_FILES)';
287 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
288
289 enable = emu;
290 };
291
292 program = {
293 name = grub-emu-lite;
294
295 emu = kern/emu/lite.c;
296 emu_nodist = symlist.c;
297
298 ldadd = 'kernel.exec$(EXEEXT)';
299 ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
300
301 enable = emu;
302 };
303
304 image = {
305 name = boot;
306 i386_pc = boot/i386/pc/boot.S;
307 i386_qemu = boot/i386/qemu/boot.S;
308 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
309
310 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
311 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
312
313 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
314 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)';
315 i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
316
317 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
318 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
319
320 objcopyflags = '-O binary';
321 enable = i386_pc;
322 enable = i386_qemu;
323 enable = sparc64_ieee1275;
324 };
325
326 image = {
327 name = boot_hybrid;
328 i386_pc = boot/i386/pc/boot.S;
329
330 cppflags = '-DHYBRID_BOOT=1';
331
332 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
333 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
334
335 objcopyflags = '-O binary';
336 enable = i386_pc;
337 };
338
339 image = {
340 name = cdboot;
341
342 i386_pc = boot/i386/pc/cdboot.S;
343 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
344 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
345
346 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
347 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
348 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
349 sparc64_ieee1275_cppflags = '-DCDBOOT=1';
350
351 objcopyflags = '-O binary';
352
353 enable = sparc64_ieee1275;
354 enable = i386_pc;
355 };
356
357 image = {
358 name = pxeboot;
359 i386_pc = boot/i386/pc/pxeboot.S;
360
361 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
362 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
363
364 objcopyflags = '-O binary';
365 enable = i386_pc;
366 };
367
368 image = {
369 name = diskboot;
370 i386_pc = boot/i386/pc/diskboot.S;
371
372 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
373 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
374
375 sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
376 sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
377
378 objcopyflags = '-O binary';
379
380 enable = i386_pc;
381 enable = sparc64_ieee1275;
382 };
383
384 image = {
385 name = lnxboot;
386 i386_pc = boot/i386/pc/lnxboot.S;
387
388 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
389 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
390
391 objcopyflags = '-O binary';
392 enable = i386_pc;
393 };
394
395 image = {
396 name = xz_decompress;
397 mips = boot/mips/startup_raw.S;
398 common = boot/decompressor/minilib.c;
399 common = boot/decompressor/xz.c;
400 common = lib/xzembed/xz_dec_bcj.c;
401 common = lib/xzembed/xz_dec_lzma2.c;
402 common = lib/xzembed/xz_dec_stream.c;
403
404 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
405
406 objcopyflags = '-O binary';
407 mips_ldflags = '-static-libgcc -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
408 ldadd = '-lgcc';
409 cflags = '-Wno-unreachable-code -static-libgcc';
410 enable = mips;
411 };
412
413 image = {
414 name = none_decompress;
415 mips = boot/mips/startup_raw.S;
416 common = boot/decompressor/none.c;
417
418 cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
419
420 objcopyflags = '-O binary';
421 mips_ldflags = '-static-libgcc -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
422 ldadd = '-lgcc';
423 cflags = '-static-libgcc';
424 enable = mips;
425 };
426
427 image = {
428 name = lzma_decompress;
429 i386_pc = boot/i386/pc/startup_raw.S;
430 i386_pc_nodist = rs_decoder.h;
431
432 objcopyflags = '-O binary';
433 ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200';
434 enable = i386_pc;
435 };
436
437 image = {
438 name = fwstart;
439 mips_loongson = boot/mips/loongson/fwstart.S;
440 objcopyflags = '-O binary';
441 ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
442 enable = mips_loongson;
443 };
444
445 image = {
446 name = fwstart_fuloong2f;
447 mips_loongson = boot/mips/loongson/fuloong2f.S;
448 objcopyflags = '-O binary';
449 ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
450 enable = mips_loongson;
451 };
452
453 module = {
454 name = trig;
455 common_nodist = trigtables.c;
456 extra_dist = gentrigtables.c;
457 };
458
459 module = {
460 name = cs5536;
461 x86 = bus/cs5536.c;
462 enable = x86;
463 };
464
465 module = {
466 name = libusb;
467 emu = bus/usb/emu/usb.c;
468 enable = emu;
469 condition = COND_GRUB_EMU_USB;
470 };
471
472 module = {
473 name = lsspd;
474 mips_loongson = commands/mips/loongson/lsspd.c;
475 enable = mips_loongson;
476 };
477
478 module = {
479 name = usb;
480 common = bus/usb/usb.c;
481 common = bus/usb/usbtrans.c;
482 common = bus/usb/usbhub.c;
483 enable = usb;
484 };
485
486 module = {
487 name = emuusb;
488 common = bus/usb/usb.c;
489 condition = COND_GRUB_EMU_USB;
490 };
491
492 module = {
493 name = usbserial_common;
494 common = bus/usb/serial/common.c;
495 enable = usb;
496 };
497
498 module = {
499 name = usbserial_pl2303;
500 common = bus/usb/serial/pl2303.c;
501 enable = usb;
502 };
503
504 module = {
505 name = usbserial_ftdi;
506 common = bus/usb/serial/ftdi.c;
507 enable = usb;
508 };
509
510 module = {
511 name = usbserial_usbdebug;
512 common = bus/usb/serial/usbdebug_late.c;
513 enable = usb;
514 };
515
516 module = {
517 name = uhci;
518 common = bus/usb/uhci.c;
519 enable = pci;
520 };
521
522 module = {
523 name = ohci;
524 common = bus/usb/ohci.c;
525 enable = pci;
526 };
527
528 module = {
529 name = ehci;
530 common = bus/usb/ehci.c;
531 enable = pci;
532 };
533
534 module = {
535 name = pci;
536 common = bus/pci.c;
537
538 enable = i386_pc;
539 enable = i386_ieee1275;
540 enable = i386_coreboot;
541 enable = i386_multiboot;
542 };
543
544 module = {
545 name = nativedisk;
546 common = commands/nativedisk.c;
547
548 enable = x86;
549 enable = mips_loongson;
550 enable = mips_qemu_mips;
551 };
552
553 module = {
554 name = emupci;
555 common = bus/emu/pci.c;
556 common = commands/lspci.c;
557
558 condition = COND_GRUB_EMU_PCI;
559 };
560
561 module = {
562 name = lsdev;
563 common = commands/arc/lsdev.c;
564
565 enable = mips_arc;
566 };
567
568 library = {
569 name = libgnulib.a;
570 common = gnulib/regex.c;
571 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
572 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
573 };
574
575 module = {
576 name = cmostest;
577 common = commands/i386/cmostest.c;
578 enable = cmos;
579 };
580
581 module = {
582 name = cmosdump;
583 common = commands/i386/cmosdump.c;
584 enable = cmos;
585 };
586
587 module = {
588 name = iorw;
589 common = commands/iorw.c;
590 enable = x86;
591 };
592
593 module = {
594 name = cbtable;
595 common = kern/i386/coreboot/cbtable.c;
596 enable = i386_pc;
597 enable = i386_efi;
598 enable = i386_qemu;
599 enable = i386_multiboot;
600 enable = i386_ieee1275;
601 enable = x86_64_efi;
602 };
603
604 module = {
605 name = cbtime;
606 common = commands/i386/coreboot/cb_timestamps.c;
607 enable = x86;
608 };
609
610 module = {
611 name = cbls;
612 common = commands/i386/coreboot/cbls.c;
613 enable = x86;
614 };
615
616 module = {
617 name = cbmemc;
618 common = term/i386/coreboot/cbmemc.c;
619 enable = x86;
620 };
621
622 module = {
623 name = regexp;
624 common = commands/regexp.c;
625 common = commands/wildcard.c;
626 ldadd = libgnulib.a;
627 dependencies = libgnulib.a;
628 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
629 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
630 };
631
632 module = {
633 name = acpi;
634
635 common = commands/acpi.c;
636 efi = commands/efi/acpi.c;
637 i386_pc = commands/i386/pc/acpi.c;
638 i386_coreboot = commands/i386/pc/acpi.c;
639 i386_multiboot = commands/i386/pc/acpi.c;
640
641 enable = efi;
642 enable = i386_pc;
643 enable = i386_coreboot;
644 enable = i386_multiboot;
645 };
646
647 module = {
648 name = lsacpi;
649
650 common = commands/lsacpi.c;
651
652 enable = efi;
653 enable = i386_pc;
654 enable = i386_coreboot;
655 enable = i386_multiboot;
656 };
657
658 module = {
659 name = lsefisystab;
660
661 common = commands/efi/lsefisystab.c;
662
663 enable = efi;
664 };
665
666 module = {
667 name = lssal;
668
669 common = commands/efi/lssal.c;
670
671 enable = efi;
672 };
673
674 module = {
675 name = lsefimmap;
676
677 common = commands/efi/lsefimmap.c;
678
679 enable = efi;
680 };
681
682 module = {
683 name = lsefi;
684 common = commands/efi/lsefi.c;
685 enable = efi;
686 };
687
688 module = {
689 name = efifwsetup;
690 efi = commands/efi/efifwsetup.c;
691 enable = efi;
692 };
693
694 module = {
695 name = blocklist;
696 common = commands/blocklist.c;
697 };
698
699 module = {
700 name = boot;
701 common = commands/boot.c;
702 i386_pc = lib/i386/pc/biosnum.c;
703 enable = x86;
704 enable = emu;
705 enable = sparc64_ieee1275;
706 enable = powerpc_ieee1275;
707 enable = mips_arc;
708 enable = ia64_efi;
709 enable = arm_efi;
710 enable = arm_uboot;
711 };
712
713 module = {
714 name = cat;
715 common = commands/cat.c;
716 };
717
718 module = {
719 name = cmp;
720 common = commands/cmp.c;
721 };
722
723 module = {
724 name = configfile;
725 common = commands/configfile.c;
726 };
727
728 module = {
729 name = cpuid;
730 x86 = commands/i386/cpuid.c;
731 enable = x86;
732 };
733
734 module = {
735 name = date;
736 common = commands/date.c;
737 };
738
739 module = {
740 name = drivemap;
741
742 i386_pc = commands/i386/pc/drivemap.c;
743 i386_pc = commands/i386/pc/drivemap_int13h.S;
744 enable = i386_pc;
745 };
746
747 module = {
748 name = echo;
749 common = commands/echo.c;
750 };
751
752 module = {
753 name = eval;
754 common = commands/eval.c;
755 };
756
757 module = {
758 name = extcmd;
759 common = commands/extcmd.c;
760 common = lib/arg.c;
761 enable = terminfomodule;
762 };
763
764 module = {
765 name = fixvideo;
766 common = commands/efi/fixvideo.c;
767 enable = i386_efi;
768 enable = x86_64_efi;
769 };
770
771 module = {
772 name = gptsync;
773 common = commands/gptsync.c;
774 };
775
776 module = {
777 name = halt;
778 nopc = commands/halt.c;
779 i386_pc = commands/i386/pc/halt.c;
780 i386_pc = commands/acpihalt.c;
781 i386_coreboot = commands/acpihalt.c;
782 i386_multiboot = commands/acpihalt.c;
783 i386_efi = commands/acpihalt.c;
784 x86_64_efi = commands/acpihalt.c;
785 i386_multiboot = lib/i386/halt.c;
786 i386_coreboot = lib/i386/halt.c;
787 i386_qemu = lib/i386/halt.c;
788 efi = lib/efi/halt.c;
789 ieee1275 = lib/ieee1275/halt.c;
790 emu = lib/emu/halt.c;
791 uboot = lib/uboot/halt.c;
792 };
793
794 module = {
795 name = reboot;
796 i386 = lib/i386/reboot.c;
797 i386 = lib/i386/reboot_trampoline.S;
798 ia64_efi = lib/efi/reboot.c;
799 x86_64_efi = lib/efi/reboot.c;
800 arm_efi = lib/efi/reboot.c;
801 powerpc_ieee1275 = lib/ieee1275/reboot.c;
802 sparc64_ieee1275 = lib/ieee1275/reboot.c;
803 mips_arc = lib/mips/arc/reboot.c;
804 mips_loongson = lib/mips/loongson/reboot.c;
805 mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
806 uboot = lib/uboot/reboot.c;
807 common = commands/reboot.c;
808 };
809
810 module = {
811 name = hashsum;
812 common = commands/hashsum.c;
813 };
814
815 module = {
816 name = verify;
817 common = commands/verify.c;
818 cflags = '$(CFLAGS_POSIX)';
819 cppflags = '-I$(srcdir)/lib/posix_wrap';
820 };
821
822 module = {
823 name = hdparm;
824 common = commands/hdparm.c;
825 common = lib/hexdump.c;
826 enable = pci;
827 enable = mips_qemu_mips;
828 };
829
830 module = {
831 name = help;
832 common = commands/help.c;
833 };
834
835 module = {
836 name = hexdump;
837 common = commands/hexdump.c;
838 common = lib/hexdump.c;
839 };
840
841 module = {
842 name = keystatus;
843 common = commands/keystatus.c;
844 };
845
846 module = {
847 name = loadbios;
848 common = commands/efi/loadbios.c;
849 enable = i386_efi;
850 enable = x86_64_efi;
851 };
852
853 module = {
854 name = loadenv;
855 common = commands/loadenv.c;
856 common = lib/envblk.c;
857 };
858
859 module = {
860 name = ls;
861 common = commands/ls.c;
862 };
863
864 module = {
865 name = lsmmap;
866 common = commands/lsmmap.c;
867 };
868
869 module = {
870 name = lspci;
871 common = commands/lspci.c;
872
873 enable = pci;
874 };
875
876 module = {
877 name = memrw;
878 common = commands/memrw.c;
879 };
880
881 module = {
882 name = minicmd;
883 common = commands/minicmd.c;
884 };
885
886 module = {
887 name = parttool;
888 common = commands/parttool.c;
889 };
890
891 module = {
892 name = password;
893 common = commands/password.c;
894 };
895
896 module = {
897 name = password_pbkdf2;
898 common = commands/password_pbkdf2.c;
899 };
900
901 module = {
902 name = play;
903 x86 = commands/i386/pc/play.c;
904 enable = x86;
905 };
906
907 module = {
908 name = spkmodem;
909 x86 = term/spkmodem.c;
910 enable = x86;
911 };
912
913 module = {
914 name = morse;
915 x86 = term/morse.c;
916 enable = x86;
917 };
918
919 module = {
920 name = probe;
921 common = commands/probe.c;
922 };
923
924 module = {
925 name = read;
926 common = commands/read.c;
927 };
928
929 module = {
930 name = search;
931 common = commands/search_wrap.c;
932 extra_dist = commands/search.c;
933 };
934
935 module = {
936 name = search_fs_file;
937 common = commands/search_file.c;
938 };
939
940 module = {
941 name = search_fs_uuid;
942 common = commands/search_uuid.c;
943 };
944
945 module = {
946 name = search_label;
947 common = commands/search_label.c;
948 };
949
950 module = {
951 name = setpci;
952 common = commands/setpci.c;
953 enable = pci;
954 };
955
956 module = {
957 name = pcidump;
958 common = commands/pcidump.c;
959 enable = pci;
960 };
961
962 module = {
963 name = sleep;
964 common = commands/sleep.c;
965 };
966
967 module = {
968 name = suspend;
969 ieee1275 = commands/ieee1275/suspend.c;
970 enable = i386_ieee1275;
971 enable = powerpc_ieee1275;
972 };
973
974 module = {
975 name = escc;
976 ieee1275 = term/ieee1275/escc.c;
977 enable = powerpc_ieee1275;
978 };
979
980 module = {
981 name = terminal;
982 common = commands/terminal.c;
983 };
984
985 module = {
986 name = test;
987 common = commands/test.c;
988 };
989
990 module = {
991 name = true;
992 common = commands/true.c;
993 };
994
995 module = {
996 name = usbtest;
997 common = commands/usbtest.c;
998 enable = usb;
999 };
1000
1001 module = {
1002 name = videoinfo;
1003 common = commands/videoinfo.c;
1004 };
1005
1006 module = {
1007 name = videotest;
1008 common = commands/videotest.c;
1009 };
1010
1011 module = {
1012 name = xnu_uuid;
1013 common = commands/xnu_uuid.c;
1014 };
1015
1016 module = {
1017 name = dm_nv;
1018 common = disk/dmraid_nvidia.c;
1019 };
1020
1021 module = {
1022 name = loopback;
1023 common = disk/loopback.c;
1024 };
1025
1026 module = {
1027 name = cryptodisk;
1028 common = disk/cryptodisk.c;
1029 };
1030
1031 module = {
1032 name = luks;
1033 common = disk/luks.c;
1034 common = disk/AFSplitter.c;
1035 };
1036
1037 module = {
1038 name = geli;
1039 common = disk/geli.c;
1040 };
1041
1042 module = {
1043 name = lvm;
1044 common = disk/lvm.c;
1045 };
1046
1047 module = {
1048 name = ldm;
1049 common = disk/ldm.c;
1050 };
1051
1052 module = {
1053 name = mdraid09;
1054 common = disk/mdraid_linux.c;
1055 };
1056
1057 module = {
1058 name = mdraid09_be;
1059 common = disk/mdraid_linux_be.c;
1060 };
1061
1062 module = {
1063 name = mdraid1x;
1064 common = disk/mdraid1x_linux.c;
1065 };
1066
1067 module = {
1068 name = diskfilter;
1069 common = disk/diskfilter.c;
1070 };
1071
1072 module = {
1073 name = raid5rec;
1074 common = disk/raid5_recover.c;
1075 };
1076
1077 module = {
1078 name = raid6rec;
1079 common = disk/raid6_recover.c;
1080 };
1081
1082 module = {
1083 name = scsi;
1084 common = disk/scsi.c;
1085 };
1086
1087 module = {
1088 name = memdisk;
1089 common = disk/memdisk.c;
1090 };
1091
1092 module = {
1093 name = ata;
1094 common = disk/ata.c;
1095 enable = pci;
1096 enable = mips_qemu_mips;
1097 };
1098
1099 module = {
1100 name = ahci;
1101 common = disk/ahci.c;
1102 enable = pci;
1103 };
1104
1105 module = {
1106 name = pata;
1107 common = disk/pata.c;
1108 enable = pci;
1109 enable = mips_qemu_mips;
1110 };
1111
1112 module = {
1113 name = biosdisk;
1114 i386_pc = disk/i386/pc/biosdisk.c;
1115 enable = i386_pc;
1116 };
1117
1118 module = {
1119 name = usbms;
1120 common = disk/usbms.c;
1121 enable = usb;
1122 };
1123
1124 module = {
1125 name = nand;
1126 ieee1275 = disk/ieee1275/nand.c;
1127 enable = i386_ieee1275;
1128 };
1129
1130 module = {
1131 name = efiemu;
1132 common = efiemu/main.c;
1133 common = efiemu/i386/loadcore32.c;
1134 common = efiemu/i386/loadcore64.c;
1135 i386_pc = efiemu/i386/pc/cfgtables.c;
1136 i386_coreboot = efiemu/i386/pc/cfgtables.c;
1137 i386_multiboot = efiemu/i386/pc/cfgtables.c;
1138 i386_ieee1275 = efiemu/i386/nocfgtables.c;
1139 i386_qemu = efiemu/i386/nocfgtables.c;
1140 common = efiemu/mm.c;
1141 common = efiemu/loadcore_common.c;
1142 common = efiemu/symbols.c;
1143 common = efiemu/loadcore32.c;
1144 common = efiemu/loadcore64.c;
1145 common = efiemu/prepare32.c;
1146 common = efiemu/prepare64.c;
1147 common = efiemu/pnvram.c;
1148 common = efiemu/i386/coredetect.c;
1149
1150 extra_dist = efiemu/prepare.c;
1151 extra_dist = efiemu/loadcore.c;
1152 extra_dist = efiemu/runtime/efiemu.S;
1153 extra_dist = efiemu/runtime/efiemu.c;
1154
1155 enable = i386_pc;
1156 enable = i386_coreboot;
1157 enable = i386_ieee1275;
1158 enable = i386_multiboot;
1159 enable = i386_qemu;
1160 };
1161
1162 module = {
1163 name = font;
1164 common = font/font.c;
1165 common = font/font_cmd.c;
1166 enable = videomodules;
1167 };
1168
1169 module = {
1170 name = procfs;
1171 common = fs/proc.c;
1172 };
1173
1174 module = {
1175 name = affs;
1176 common = fs/affs.c;
1177 };
1178
1179 module = {
1180 name = afs;
1181 common = fs/afs.c;
1182 };
1183
1184 module = {
1185 name = bfs;
1186 common = fs/bfs.c;
1187 };
1188
1189 module = {
1190 name = btrfs;
1191 common = fs/btrfs.c;
1192 common = lib/crc.c;
1193 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1194 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1195 };
1196
1197 module = {
1198 name = archelp;
1199 common = fs/archelp.c;
1200 };
1201
1202 module = {
1203 name = cbfs;
1204 common = fs/cbfs.c;
1205 };
1206
1207 module = {
1208 name = cpio;
1209 common = fs/cpio.c;
1210 };
1211
1212 module = {
1213 name = cpio_be;
1214 common = fs/cpio_be.c;
1215 };
1216
1217 module = {
1218 name = newc;
1219 common = fs/newc.c;
1220 };
1221
1222 module = {
1223 name = odc;
1224 common = fs/odc.c;
1225 };
1226
1227 module = {
1228 name = ext2;
1229 common = fs/ext2.c;
1230 };
1231
1232 module = {
1233 name = fat;
1234 common = fs/fat.c;
1235 };
1236
1237 module = {
1238 name = exfat;
1239 common = fs/exfat.c;
1240 };
1241
1242 module = {
1243 name = fshelp;
1244 common = fs/fshelp.c;
1245 };
1246
1247 module = {
1248 name = hfs;
1249 common = fs/hfs.c;
1250 };
1251
1252 module = {
1253 name = hfsplus;
1254 common = fs/hfsplus.c;
1255 };
1256
1257 module = {
1258 name = hfspluscomp;
1259 common = fs/hfspluscomp.c;
1260 };
1261
1262 module = {
1263 name = iso9660;
1264 common = fs/iso9660.c;
1265 };
1266
1267 module = {
1268 name = jfs;
1269 common = fs/jfs.c;
1270 };
1271
1272 module = {
1273 name = minix;
1274 common = fs/minix.c;
1275 };
1276
1277 module = {
1278 name = minix2;
1279 common = fs/minix2.c;
1280 };
1281
1282 module = {
1283 name = minix3;
1284 common = fs/minix3.c;
1285 };
1286
1287 module = {
1288 name = minix_be;
1289 common = fs/minix_be.c;
1290 };
1291
1292 module = {
1293 name = minix2_be;
1294 common = fs/minix2_be.c;
1295 };
1296
1297 module = {
1298 name = minix3_be;
1299 common = fs/minix3_be.c;
1300 };
1301
1302 module = {
1303 name = nilfs2;
1304 common = fs/nilfs2.c;
1305 };
1306
1307 module = {
1308 name = ntfs;
1309 common = fs/ntfs.c;
1310 };
1311
1312 module = {
1313 name = ntfscomp;
1314 common = fs/ntfscomp.c;
1315 };
1316
1317 module = {
1318 name = reiserfs;
1319 common = fs/reiserfs.c;
1320 };
1321
1322 module = {
1323 name = romfs;
1324 common = fs/romfs.c;
1325 };
1326
1327 module = {
1328 name = sfs;
1329 common = fs/sfs.c;
1330 };
1331
1332 module = {
1333 name = squash4;
1334 common = fs/squash4.c;
1335 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1336 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1337 };
1338
1339 module = {
1340 name = tar;
1341 common = fs/tar.c;
1342 };
1343
1344 module = {
1345 name = udf;
1346 common = fs/udf.c;
1347 };
1348
1349 module = {
1350 name = ufs1;
1351 common = fs/ufs.c;
1352 };
1353
1354 module = {
1355 name = ufs1_be;
1356 common = fs/ufs_be.c;
1357 };
1358
1359 module = {
1360 name = ufs2;
1361 common = fs/ufs2.c;
1362 };
1363
1364 module = {
1365 name = xfs;
1366 common = fs/xfs.c;
1367 };
1368
1369 module = {
1370 name = zfs;
1371 common = fs/zfs/zfs.c;
1372 common = fs/zfs/zfs_lzjb.c;
1373 common = fs/zfs/zfs_lz4.c;
1374 common = fs/zfs/zfs_sha256.c;
1375 common = fs/zfs/zfs_fletcher.c;
1376 };
1377
1378 module = {
1379 name = zfscrypt;
1380 common = fs/zfs/zfscrypt.c;
1381 };
1382
1383 module = {
1384 name = zfsinfo;
1385 common = fs/zfs/zfsinfo.c;
1386 };
1387
1388 module = {
1389 name = pxe;
1390 i386_pc = net/drivers/i386/pc/pxe.c;
1391 enable = i386_pc;
1392 };
1393
1394 module = {
1395 name = gettext;
1396 common = gettext/gettext.c;
1397 };
1398
1399 module = {
1400 name = gfxmenu;
1401 common = gfxmenu/gfxmenu.c;
1402 common = gfxmenu/model.c;
1403 common = gfxmenu/view.c;
1404 common = gfxmenu/font.c;
1405 common = gfxmenu/icon_manager.c;
1406 common = gfxmenu/theme_loader.c;
1407 common = gfxmenu/widget-box.c;
1408 common = gfxmenu/gui_canvas.c;
1409 common = gfxmenu/gui_circular_progress.c;
1410 common = gfxmenu/gui_box.c;
1411 common = gfxmenu/gui_label.c;
1412 common = gfxmenu/gui_list.c;
1413 common = gfxmenu/gui_image.c;
1414 common = gfxmenu/gui_progress_bar.c;
1415 common = gfxmenu/gui_util.c;
1416 common = gfxmenu/gui_string_util.c;
1417 };
1418
1419 module = {
1420 name = hello;
1421 common = hello/hello.c;
1422 };
1423
1424 module = {
1425 name = gzio;
1426 common = io/gzio.c;
1427 };
1428
1429 module = {
1430 name = bufio;
1431 common = io/bufio.c;
1432 enable = videomodules;
1433 };
1434
1435 module = {
1436 name = elf;
1437 common = kern/elf.c;
1438
1439 extra_dist = kern/elfXX.c;
1440 };
1441
1442 module = {
1443 name = crypto;
1444 common = lib/crypto.c;
1445
1446 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1447 };
1448
1449 module = {
1450 name = pbkdf2;
1451 common = lib/pbkdf2.c;
1452 };
1453
1454 module = {
1455 name = relocator;
1456 common = lib/relocator.c;
1457 x86 = lib/i386/relocator16.S;
1458 x86 = lib/i386/relocator32.S;
1459 x86 = lib/i386/relocator64.S;
1460 i386 = lib/i386/relocator_asm.S;
1461 x86_64 = lib/x86_64/relocator_asm.S;
1462 x86 = lib/i386/relocator.c;
1463 ieee1275 = lib/ieee1275/relocator.c;
1464 efi = lib/efi/relocator.c;
1465 mips = lib/mips/relocator_asm.S;
1466 mips = lib/mips/relocator.c;
1467 powerpc = lib/powerpc/relocator_asm.S;
1468 powerpc = lib/powerpc/relocator.c;
1469
1470 extra_dist = lib/i386/relocator_common.S;
1471 extra_dist = kern/powerpc/cache_flush.S;
1472
1473 enable = mips;
1474 enable = powerpc;
1475 enable = x86;
1476 };
1477
1478 module = {
1479 name = datetime;
1480 cmos = lib/cmos_datetime.c;
1481 efi = lib/efi/datetime.c;
1482 uboot = lib/uboot/datetime.c;
1483 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1484 powerpc_ieee1275 = lib/ieee1275/datetime.c;
1485 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1486 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1487
1488 mips_arc = lib/arc/datetime.c;
1489 enable = noemu;
1490 };
1491
1492 module = {
1493 name = setjmp;
1494 common = lib/setjmp.S;
1495 extra_dist = lib/i386/setjmp.S;
1496 extra_dist = lib/mips/setjmp.S;
1497 extra_dist = lib/x86_64/setjmp.S;
1498 extra_dist = lib/sparc64/setjmp.S;
1499 extra_dist = lib/powerpc/setjmp.S;
1500 extra_dist = lib/ia64/setjmp.S;
1501 extra_dist = lib/ia64/longjmp.S;
1502 extra_dist = lib/arm/setjmp.S;
1503 };
1504
1505 module = {
1506 name = aout;
1507 common = loader/aout.c;
1508 enable = x86;
1509 };
1510
1511 module = {
1512 name = bsd;
1513 x86 = loader/i386/bsd.c;
1514 x86 = loader/i386/bsd32.c;
1515 x86 = loader/i386/bsd64.c;
1516
1517 extra_dist = loader/i386/bsdXX.c;
1518 extra_dist = loader/i386/bsd_pagetable.c;
1519
1520 enable = x86;
1521 };
1522
1523 module = {
1524 name = plan9;
1525 i386_pc = loader/i386/pc/plan9.c;
1526 enable = i386_pc;
1527 };
1528
1529
1530 module = {
1531 name = linux16;
1532 common = loader/i386/pc/linux.c;
1533 common = loader/linux.c;
1534 common = lib/cmdline.c;
1535 enable = x86;
1536 };
1537
1538 module = {
1539 name = ntldr;
1540 i386_pc = loader/i386/pc/ntldr.c;
1541 enable = i386_pc;
1542 };
1543
1544 module = {
1545 name = freedos;
1546 i386_pc = loader/i386/pc/freedos.c;
1547 enable = i386_pc;
1548 };
1549
1550 module = {
1551 name = pxechain;
1552 i386_pc = loader/i386/pc/pxechainloader.c;
1553 enable = i386_pc;
1554 };
1555
1556 module = {
1557 name = multiboot2;
1558 cppflags = "-DGRUB_USE_MULTIBOOT2";
1559
1560 common = loader/multiboot.c;
1561 common = loader/multiboot_mbi2.c;
1562 enable = x86;
1563 enable = mips;
1564 };
1565
1566 module = {
1567 name = multiboot;
1568 common = loader/multiboot.c;
1569 x86 = loader/i386/multiboot_mbi.c;
1570 extra_dist = loader/multiboot_elfxx.c;
1571 enable = x86;
1572 };
1573
1574 module = {
1575 name = linux;
1576 x86 = loader/i386/linux.c;
1577 i386_pc = lib/i386/pc/vesa_modes_table.c;
1578 mips = loader/mips/linux.c;
1579 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1580 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
1581 ia64_efi = loader/ia64/efi/linux.c;
1582 arm = loader/arm/linux.c;
1583 arm = lib/fdt.c;
1584 common = loader/linux.c;
1585 common = lib/cmdline.c;
1586 enable = noemu;
1587 };
1588
1589 module = {
1590 name = xnu;
1591 x86 = loader/xnu_resume.c;
1592 x86 = loader/i386/xnu.c;
1593 x86 = loader/macho32.c;
1594 x86 = loader/macho64.c;
1595 x86 = loader/macho.c;
1596 x86 = loader/xnu.c;
1597 x86 = loader/lzss.c;
1598
1599 extra_dist = loader/machoXX.c;
1600 enable = x86;
1601 };
1602
1603 module = {
1604 name = appleldr;
1605 common = loader/efi/appleloader.c;
1606 enable = i386_efi;
1607 enable = x86_64_efi;
1608 };
1609
1610 module = {
1611 name = chain;
1612 efi = loader/efi/chainloader.c;
1613 i386_pc = loader/i386/pc/chainloader.c;
1614 i386_coreboot = loader/i386/coreboot/chainloader.c;
1615 enable = i386_pc;
1616 enable = i386_coreboot;
1617 enable = efi;
1618 };
1619
1620 module = {
1621 name = mmap;
1622 common = mmap/mmap.c;
1623 x86 = mmap/i386/uppermem.c;
1624 x86 = mmap/i386/mmap.c;
1625
1626 i386_pc = mmap/i386/pc/mmap.c;
1627 i386_pc = mmap/i386/pc/mmap_helper.S;
1628
1629 efi = mmap/efi/mmap.c;
1630
1631 mips = mmap/mips/uppermem.c;
1632
1633 enable = x86;
1634 enable = ia64_efi;
1635 enable = arm_efi;
1636 enable = mips;
1637 };
1638
1639 module = {
1640 name = normal;
1641 common = normal/main.c;
1642 common = normal/cmdline.c;
1643 common = normal/dyncmd.c;
1644 common = normal/auth.c;
1645 common = normal/autofs.c;
1646 common = normal/color.c;
1647 common = normal/completion.c;
1648 common = normal/datetime.c;
1649 common = normal/menu.c;
1650 common = normal/menu_entry.c;
1651 common = normal/menu_text.c;
1652 common = normal/misc.c;
1653 common = normal/crypto.c;
1654 common = normal/term.c;
1655 common = normal/context.c;
1656 common = normal/charset.c;
1657
1658 common = script/main.c;
1659 common = script/script.c;
1660 common = script/execute.c;
1661 common = script/function.c;
1662 common = script/lexer.c;
1663 common = script/argv.c;
1664
1665 common = commands/menuentry.c;
1666
1667 common = unidata.c;
1668 common_nodist = grub_script.tab.c;
1669 common_nodist = grub_script.yy.c;
1670 common_nodist = grub_script.tab.h;
1671 common_nodist = grub_script.yy.h;
1672
1673 extra_dist = script/yylex.l;
1674 extra_dist = script/parser.y;
1675
1676 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
1677 cppflags = '$(CPPFLAGS_POSIX)';
1678 };
1679
1680 module = {
1681 name = part_acorn;
1682 common = partmap/acorn.c;
1683 };
1684
1685 module = {
1686 name = part_amiga;
1687 common = partmap/amiga.c;
1688 };
1689
1690 module = {
1691 name = part_apple;
1692 common = partmap/apple.c;
1693 };
1694
1695 module = {
1696 name = part_gpt;
1697 common = partmap/gpt.c;
1698 };
1699
1700 module = {
1701 name = part_msdos;
1702 common = partmap/msdos.c;
1703 };
1704
1705 module = {
1706 name = part_sun;
1707 common = partmap/sun.c;
1708 };
1709
1710 module = {
1711 name = part_plan;
1712 common = partmap/plan.c;
1713 };
1714
1715 module = {
1716 name = part_dvh;
1717 common = partmap/dvh.c;
1718 };
1719
1720 module = {
1721 name = part_bsd;
1722 common = partmap/bsdlabel.c;
1723 };
1724
1725 module = {
1726 name = part_sunpc;
1727 common = partmap/sunpc.c;
1728 };
1729
1730 module = {
1731 name = part_dfly;
1732 common = partmap/dfly.c;
1733 };
1734
1735 module = {
1736 name = msdospart;
1737 common = parttool/msdospart.c;
1738 };
1739
1740 module = {
1741 name = at_keyboard;
1742 common = term/at_keyboard.c;
1743 enable = x86;
1744 };
1745
1746 module = {
1747 name = gfxterm;
1748 common = term/gfxterm.c;
1749 enable = videomodules;
1750 };
1751
1752 module = {
1753 name = gfxterm_background;
1754 common = term/gfxterm_background.c;
1755 };
1756
1757 module = {
1758 name = serial;
1759 common = term/serial.c;
1760 x86 = term/ns8250.c;
1761 ieee1275 = term/ieee1275/serial.c;
1762 mips_arc = term/arc/serial.c;
1763 efi = term/efi/serial.c;
1764
1765 enable = terminfomodule;
1766 enable = ieee1275;
1767 enable = mips_arc;
1768 };
1769
1770 module = {
1771 name = sendkey;
1772 i386_pc = commands/i386/pc/sendkey.c;
1773 enable = i386_pc;
1774 };
1775
1776 module = {
1777 name = terminfo;
1778 common = term/terminfo.c;
1779 common = term/tparm.c;
1780 enable = terminfomodule;
1781 };
1782
1783 module = {
1784 name = usb_keyboard;
1785 common = term/usb_keyboard.c;
1786 enable = usb;
1787 };
1788
1789 module = {
1790 name = vga;
1791 common = video/i386/pc/vga.c;
1792 enable = i386_pc;
1793 };
1794
1795 module = {
1796 name = vga_text;
1797 common = term/i386/pc/vga_text.c;
1798 enable = i386_pc;
1799 };
1800
1801 module = {
1802 name = mda_text;
1803 common = term/i386/pc/mda_text.c;
1804 enable = i386_pc;
1805 enable = i386_coreboot_multiboot_qemu;
1806 };
1807
1808 module = {
1809 name = video_cirrus;
1810 x86 = video/cirrus.c;
1811 enable = x86;
1812 };
1813
1814 module = {
1815 name = video_bochs;
1816 x86 = video/bochs.c;
1817 enable = x86;
1818 };
1819
1820 module = {
1821 name = functional_test;
1822 common = tests/lib/functional_test.c;
1823 common = tests/lib/test.c;
1824 common = tests/checksums.h;
1825 common = tests/video_checksum.c;
1826 common = tests/fake_input.c;
1827 common = video/capture.c;
1828 };
1829
1830 module = {
1831 name = exfctest;
1832 common = tests/example_functional_test.c;
1833 };
1834
1835 module = {
1836 name = setjmp_test;
1837 common = tests/setjmp_test.c;
1838 };
1839
1840 module = {
1841 name = videotest_checksum;
1842 common = tests/videotest_checksum.c;
1843 };
1844
1845 module = {
1846 name = gfxterm_menu;
1847 common = tests/gfxterm_menu.c;
1848 };
1849
1850 module = {
1851 name = cmdline_cat_test;
1852 common = tests/cmdline_cat_test.c;
1853 };
1854
1855 module = {
1856 name = bitmap;
1857 common = video/bitmap.c;
1858 };
1859
1860 module = {
1861 name = bitmap_scale;
1862 common = video/bitmap_scale.c;
1863 };
1864
1865 module = {
1866 name = efi_gop;
1867 efi = video/efi_gop.c;
1868 enable = efi;
1869 };
1870
1871 module = {
1872 name = efi_uga;
1873 efi = video/efi_uga.c;
1874 enable = i386_efi;
1875 enable = x86_64_efi;
1876 };
1877
1878 module = {
1879 name = jpeg;
1880 common = video/readers/jpeg.c;
1881 };
1882
1883 module = {
1884 name = png;
1885 common = video/readers/png.c;
1886 };
1887
1888 module = {
1889 name = tga;
1890 common = video/readers/tga.c;
1891 };
1892
1893 module = {
1894 name = vbe;
1895 common = video/i386/pc/vbe.c;
1896 enable = i386_pc;
1897 };
1898
1899 module = {
1900 name = video_fb;
1901 common = video/fb/video_fb.c;
1902 common = video/fb/fbblit.c;
1903 common = video/fb/fbfill.c;
1904 common = video/fb/fbutil.c;
1905 enable = videomodules;
1906 };
1907
1908 module = {
1909 name = video;
1910 common = video/video.c;
1911 enable = videomodules;
1912 };
1913
1914 module = {
1915 name = video_colors;
1916 common = video/colors.c;
1917 };
1918
1919 module = {
1920 name = ieee1275_fb;
1921 ieee1275 = video/ieee1275.c;
1922 enable = powerpc_ieee1275;
1923 };
1924
1925 module = {
1926 name = sdl;
1927 emu = video/emu/sdl.c;
1928 enable = emu;
1929 condition = COND_GRUB_EMU_SDL;
1930 };
1931
1932 module = {
1933 name = datehook;
1934 common = hook/datehook.c;
1935 };
1936
1937 module = {
1938 name = net;
1939 common = net/net.c;
1940 common = net/dns.c;
1941 common = net/bootp.c;
1942 common = net/ip.c;
1943 common = net/udp.c;
1944 common = net/tcp.c;
1945 common = net/icmp.c;
1946 common = net/icmp6.c;
1947 common = net/ethernet.c;
1948 common = net/arp.c;
1949 common = net/netbuff.c;
1950 };
1951
1952 module = {
1953 name = tftp;
1954 common = net/tftp.c;
1955 };
1956
1957 module = {
1958 name = http;
1959 common = net/http.c;
1960 };
1961
1962 module = {
1963 name = ofnet;
1964 common = net/drivers/ieee1275/ofnet.c;
1965 enable = ieee1275;
1966 };
1967
1968 module = {
1969 name = ubootnet;
1970 common = net/drivers/uboot/ubootnet.c;
1971 enable = uboot;
1972 };
1973
1974 module = {
1975 name = efinet;
1976 common = net/drivers/efi/efinet.c;
1977 enable = efi;
1978 };
1979
1980 module = {
1981 name = emunet;
1982 emu = net/drivers/emu/emunet.c;
1983 enable = emu;
1984 };
1985
1986 module = {
1987 name = legacycfg;
1988 common = commands/legacycfg.c;
1989 common = lib/legacy_parse.c;
1990 emu = lib/i386/pc/vesa_modes_table.c;
1991 i386_efi = lib/i386/pc/vesa_modes_table.c;
1992 x86_64_efi = lib/i386/pc/vesa_modes_table.c;
1993
1994 enable = i386_pc;
1995 enable = i386_efi;
1996 enable = x86_64_efi;
1997 enable = emu;
1998 };
1999
2000 module = {
2001 name = test_blockarg;
2002 common = tests/test_blockarg.c;
2003 };
2004
2005 module = {
2006 name = xzio;
2007 common = io/xzio.c;
2008 common = lib/xzembed/xz_dec_bcj.c;
2009 common = lib/xzembed/xz_dec_lzma2.c;
2010 common = lib/xzembed/xz_dec_stream.c;
2011 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
2012 cflags='-Wno-unreachable-code';
2013 };
2014
2015 module = {
2016 name = lzopio;
2017 common = io/lzopio.c;
2018 common = lib/minilzo/minilzo.c;
2019 cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
2020 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
2021 };
2022
2023 module = {
2024 name = testload;
2025 common = commands/testload.c;
2026 };
2027
2028 module = {
2029 name = backtrace;
2030 x86 = lib/i386/backtrace.c;
2031 common = lib/backtrace.c;
2032 enable = x86;
2033 };
2034
2035 module = {
2036 name = lsapm;
2037 common = commands/i386/pc/lsapm.c;
2038 enable = i386_pc;
2039 };
2040
2041 module = {
2042 name = keylayouts;
2043 common = commands/keylayouts.c;
2044 enable = x86;
2045 };
2046
2047 module = {
2048 name = priority_queue;
2049 common = lib/priority_queue.c;
2050 };
2051
2052 module = {
2053 name = time;
2054 common = commands/time.c;
2055 };
2056
2057 module = {
2058 name = cacheinfo;
2059 common = commands/cacheinfo.c;
2060 condition = COND_ENABLE_CACHE_STATS;
2061 };
2062
2063 module = {
2064 name = boottime;
2065 common = commands/boottime.c;
2066 condition = COND_ENABLE_BOOT_TIME_STATS;
2067 };
2068
2069 module = {
2070 name = adler32;
2071 common = lib/adler32.c;
2072 };
2073
2074 module = {
2075 name = crc64;
2076 common = lib/crc64.c;
2077 };
2078
2079 module = {
2080 name = mpi;
2081 common = lib/libgcrypt-grub/mpi/mpiutil.c;
2082 common = lib/libgcrypt-grub/mpi/mpi-bit.c;
2083 common = lib/libgcrypt-grub/mpi/mpi-add.c;
2084 common = lib/libgcrypt-grub/mpi/mpi-mul.c;
2085 common = lib/libgcrypt-grub/mpi/mpi-mod.c;
2086 common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
2087 common = lib/libgcrypt-grub/mpi/mpi-div.c;
2088 common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
2089 common = lib/libgcrypt-grub/mpi/mpi-inv.c;
2090 common = lib/libgcrypt-grub/mpi/mpi-pow.c;
2091 common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
2092 common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
2093 common = lib/libgcrypt-grub/mpi/mpih-mul.c;
2094 common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
2095 common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
2096 common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
2097 common = lib/libgcrypt-grub/mpi/mpih-add1.c;
2098 common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
2099 common = lib/libgcrypt-grub/mpi/mpih-div.c;
2100 common = lib/libgcrypt-grub/mpi/mpicoder.c;
2101 common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
2102 common = lib/libgcrypt-grub/mpi/mpi-inline.c;
2103 common = lib/libgcrypt_wrap/mem.c;
2104
2105 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2106 cppflags = '$(CPPFLAGS_GCRY)';
2107 };
2108
2109 module = {
2110 name = all_video;
2111 common = lib/fake_module.c;
2112 };
2113
2114 module = {
2115 name = gdb;
2116 common = gdb/cstub.c;
2117 common = gdb/gdb.c;
2118 i386 = gdb/i386/idt.c;
2119 i386 = gdb/i386/machdep.S;
2120 i386 = gdb/i386/signal.c;
2121 enable = i386;
2122 };
2123
2124 module = {
2125 name = testspeed;
2126 common = commands/testspeed.c;
2127 };