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