]> git.proxmox.com Git - grub2.git/blame - grub-core/Makefile.core.def
Add facility to debug GRUB with gdb under qemu.
[grub2.git] / grub-core / Makefile.core.def
CommitLineData
8c411768
BC
1AutoGen definitions Makefile.tpl;
2
b524259b 3script = {
3572f2b6 4 installdir = noinst;
b524259b
BC
5 name = gensyminfo.sh;
6 common = gensyminfo.sh.in;
7};
8
9script = {
3572f2b6 10 installdir = noinst;
b524259b
BC
11 name = genmod.sh;
12 common = genmod.sh.in;
13};
14
6ad6223e
VS
15script = {
16 installdir = noinst;
17 name = modinfo.sh;
18 common = modinfo.sh.in;
19};
20
2536cf64
LK
21script = {
22 installdir = noinst;
23 name = gmodule.pl;
24 common = gmodule.pl.in;
25};
26
27script = {
28 installdir = noinst;
29 name = gdb_grub;
30 common = gdb_grub.in;
31};
32
8c411768
BC
33kernel = {
34 name = kernel;
35
c1c6e4c0
BC
36 nostrip = emu;
37
911bd640 38 emu_ldflags = '-Wl,-r,-d';
6585de4c
VS
39 i386_efi_ldflags = '-Wl,-r,-d';
40 i386_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment';
41 x86_64_efi_ldflags = '-Wl,-r,-d';
42 x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment';
43
44 ia64_efi_cflags = '-fno-builtin -fpic -minline-int-divide-max-throughput';
bea33583 45 ia64_efi_ldflags = '-Wl,-r,-d';
46 ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment';
2d465fb0
BC
47
48 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
60240b8b 49 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
2d465fb0
BC
50
51 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
fb53b340 52 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200';
2d465fb0 53
03f80960
VS
54 ldadd = '$(LDADD_KERNEL)';
55
fb53b340
VS
56 i386_coreboot_ldflags = '-Wl,-Ttext=0x8200';
57 i386_multiboot_ldflags = '-Wl,-Ttext=0x8200';
58 i386_ieee1275_ldflags = '-Wl,-Ttext=0x10000';
54da1feb 59 mips_loongson_ldflags = '-Wl,-Ttext,0x80200000';
fb53b340
VS
60 powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000';
61 sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400';
b772baed 62 mips_arc_ldflags = '-Wl,-Ttext,0x8bd00000';
3666d5f6 63 mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
8c411768 64
54da1feb 65 mips_loongson_cppflags = '-DUSE_ASCII_FAILBACK';
8c411768 66 i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
16321bf9
BC
67 emu_cflags = '$(CFLAGS_GNULIB)';
68 emu_cppflags = '$(CPPFLAGS_GNULIB)';
8c411768 69
8427685f
BC
70 i386_pc_startup = kern/i386/pc/startup.S;
71 i386_efi_startup = kern/i386/efi/startup.S;
72 x86_64_efi_startup = kern/x86_64/efi/startup.S;
73 i386_qemu_startup = kern/i386/qemu/startup.S;
74 i386_ieee1275_startup = kern/i386/ieee1275/startup.S;
eefe8abd
VS
75 i386_coreboot_startup = kern/i386/coreboot/startup.S;
76 i386_multiboot_startup = kern/i386/coreboot/startup.S;
f440c33f 77 mips_startup = kern/mips/startup.S;
8427685f
BC
78 sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S;
79 powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S;
80
81 common = kern/command.c;
82 common = kern/corecmd.c;
83 common = kern/device.c;
84 common = kern/disk.c;
85 common = kern/dl.c;
86 common = kern/env.c;
87 common = kern/err.c;
88 common = kern/file.c;
89 common = kern/fs.c;
90 common = kern/list.c;
91 common = kern/main.c;
92 common = kern/misc.c;
93 common = kern/parser.c;
94 common = kern/partition.c;
95 common = kern/rescue_parser.c;
96 common = kern/rescue_reader.c;
97 common = kern/term.c;
98
99 noemu = kern/mm.c;
100 noemu = kern/time.c;
101 noemu = kern/generic/millisleep.c;
102
103 noemu_nodist = symlist.c;
104
eefe8abd 105 i386_pc = kern/generic/rtc_get_time_ms.c;
eefe8abd
VS
106 i386_qemu = kern/generic/rtc_get_time_ms.c;
107 i386_coreboot = kern/generic/rtc_get_time_ms.c;
108 i386_multiboot = kern/generic/rtc_get_time_ms.c;
8906c3dd 109 mips = kern/generic/rtc_get_time_ms.c;
8427685f
BC
110
111 ieee1275 = disk/ieee1275/ofdisk.c;
112 ieee1275 = kern/ieee1275/cmain.c;
113 ieee1275 = kern/ieee1275/ieee1275.c;
114 ieee1275 = kern/ieee1275/mmap.c;
115 ieee1275 = kern/ieee1275/openfw.c;
116 ieee1275 = term/ieee1275/ofconsole.c;
574618a2 117 ieee1275 = kern/ieee1275/init.c;
8427685f 118
ee74fa48
VS
119 terminfoinkernel = term/terminfo.c;
120 terminfoinkernel = term/tparm.c;
121 terminfoinkernel = commands/extcmd.c;
122 terminfoinkernel = lib/arg.c;
8427685f
BC
123
124 i386 = kern/i386/dl.c;
125
126 i386_coreboot_multiboot_qemu = kern/i386/coreboot/init.c;
8427685f
BC
127 i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c;
128
eefe8abd
VS
129 i386_coreboot_multiboot_qemu = term/i386/vga_common.c;
130 i386_pc = term/i386/vga_common.c;
8427685f 131
eefe8abd 132 x86 = kern/i386/pit.c;
8427685f 133
6585de4c
VS
134 efi = disk/efi/efidisk.c;
135 efi = kern/efi/efi.c;
136 efi = kern/efi/init.c;
137 efi = kern/efi/mm.c;
138 efi = term/efi/console.c;
8427685f
BC
139
140 i386_efi = kern/i386/tsc.c;
6585de4c 141 i386_efi = kern/i386/efi/init.c;
8427685f
BC
142
143 x86_64_efi = kern/i386/tsc.c;
144 x86_64_efi = kern/x86_64/dl.c;
145 x86_64_efi = kern/x86_64/efi/callwrap.S;
6585de4c
VS
146 x86_64_efi = kern/i386/efi/init.c;
147
148 ia64_efi = kern/ia64/efi/startup.S;
6585de4c 149 ia64_efi = kern/ia64/efi/init.c;
c18271ed 150 ia64_efi = kern/ia64/dl.c;
5452733f 151 ia64_efi = kern/ia64/dl_helper.c;
8427685f 152
8c411768
BC
153 i386_pc = kern/i386/pc/init.c;
154 i386_pc = kern/i386/pc/mmap.c;
155 i386_pc = kern/i386/tsc.c;
8c411768 156 i386_pc = term/i386/pc/console.c;
8427685f
BC
157
158 i386_qemu = bus/pci.c;
93c06ff9 159 i386_qemu = kern/vga_init.c;
8427685f
BC
160 i386_qemu = kern/i386/qemu/mmap.c;
161 i386_qemu = kern/i386/tsc.c;
162
8c411768 163 i386_coreboot = kern/i386/coreboot/mmap.c;
8c411768 164 i386_coreboot = kern/i386/tsc.c;
8427685f 165
062cdbc1 166 i386_multiboot = kern/i386/multiboot_mmap.c;
062cdbc1 167 i386_multiboot = kern/i386/tsc.c;
8c411768 168
f440c33f
VS
169 mips = kern/mips/cache.S;
170 mips = kern/mips/dl.c;
171 mips = kern/mips/init.c;
8906c3dd 172
3666d5f6
VS
173 mips_qemu_mips = kern/mips/qemu_mips/init.c;
174 mips_qemu_mips = term/ns8250.c;
175 mips_qemu_mips = term/serial.c;
d7345994
VS
176 mips_qemu_mips = term/at_keyboard.c;
177 mips_qemu_mips = commands/keylayouts.c;
93c06ff9
VS
178 mips_qemu_mips = term/i386/pc/vga_text.c;
179 mips_qemu_mips = term/i386/vga_common.c;
180 mips_qemu_mips = kern/vga_init.c;
3666d5f6 181
8906c3dd
VS
182 mips_arc = kern/mips/arc/init.c;
183 mips_arc = term/arc/console.c;
184 mips_arc = disk/arc/arcdisk.c;
185
54da1feb
VS
186 mips_loongson = term/ns8250.c;
187 mips_loongson = bus/bonito.c;
188 mips_loongson = bus/cs5536.c;
189 mips_loongson = bus/pci.c;
54da1feb
VS
190 mips_loongson = kern/mips/loongson/init.c;
191 mips_loongson = term/at_keyboard.c;
192 mips_loongson = term/serial.c;
193 mips_loongson = video/sm712.c;
194 mips_loongson = video/sis315pro.c;
d94497ea 195 mips_loongson = video/radeon_fuloong2e.c;
6556eba9 196 extra_dist = video/sm712_init.c;
54da1feb 197 mips_loongson = commands/keylayouts.c;
8c411768 198
8c411768 199 powerpc_ieee1275 = kern/powerpc/cache.S;
8427685f
BC
200 powerpc_ieee1275 = kern/powerpc/dl.c;
201
202 sparc64_ieee1275 = kern/sparc64/cache.S;
203 sparc64_ieee1275 = kern/sparc64/dl.c;
8c411768 204 sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
8c411768 205
8427685f
BC
206 emu = disk/host.c;
207 emu = gnulib/progname.c;
5fe7620a 208 emu = gnulib/error.c;
0a2b2cdc 209 emu = kern/emu/cache_s.S;
8427685f 210 emu = kern/emu/console.c;
8c411768
BC
211 emu = kern/emu/hostdisk.c;
212 emu = kern/emu/hostfs.c;
8427685f
BC
213 emu = kern/emu/main.c;
214 emu = kern/emu/misc.c;
215 emu = kern/emu/mm.c;
216 emu = kern/emu/time.c;
6f49d0aa 217 emu = kern/emu/cache.c;
610c1efd 218
eefe8abd 219 videoinkernel = term/gfxterm.c;
eefe8abd
VS
220 videoinkernel = font/font.c;
221 videoinkernel = font/font_cmd.c;
222 videoinkernel = io/bufio.c;
223 videoinkernel = video/bitmap.c;
224 videoinkernel = video/bitmap_scale.c;
52832c55 225 videoinkernel = video/colors.c;
eefe8abd
VS
226 videoinkernel = video/fb/fbblit.c;
227 videoinkernel = video/fb/fbfill.c;
228 videoinkernel = video/fb/fbutil.c;
229 videoinkernel = video/fb/video_fb.c;
230 videoinkernel = video/video.c;
231
685475e5
VS
232 videoinkernel = commands/boot.c;
233
fc5efcc0 234 extra_dist = kern/i386/int.S;
610c1efd
BC
235 extra_dist = kern/i386/realmode.S;
236 extra_dist = kern/i386/pc/lzma_decode.S;
d768d159 237 extra_dist = kern/mips/cache_flush.S;
8c411768
BC
238};
239
240program = {
241 name = grub-emu;
242 mansection = 1;
243
8427685f
BC
244 emu = kern/emu/full.c;
245 emu_nodist = grub_emu_init.c;
8c411768 246
e235a228 247 ldadd = 'kernel.img$(EXEEXT)';
8c411768 248 ldadd = '$(MODULE_FILES)';
f4727da9 249 ldadd = '$(LIBUTIL) $(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 250
911bd640 251 enable = emu;
8c411768
BC
252};
253
254program = {
255 name = grub-emu-lite;
256
8427685f 257 emu = kern/emu/lite.c;
8427685f 258 emu_nodist = symlist.c;
8c411768 259
e235a228 260 ldadd = 'kernel.img$(EXEEXT)';
f4727da9 261 ldadd = '$(LIBUTIL) $(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 262
911bd640 263 enable = emu;
8c411768
BC
264};
265
8c411768
BC
266image = {
267 name = boot;
268 i386_pc = boot/i386/pc/boot.S;
8c411768 269 i386_qemu = boot/i386/qemu/boot.S;
8427685f 270 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
2d465fb0
BC
271
272 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
273 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
274
275 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
276 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)';
8c411768
BC
277 i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
278
911bd640 279 sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big';
8c411768 280 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000';
911bd640
BC
281
282 objcopyflags = '-O binary';
283 enable = i386_pc;
284 enable = i386_qemu;
285 enable = sparc64_ieee1275;
8c411768
BC
286};
287
288image = {
289 name = cdboot;
2d465fb0
BC
290 i386_pc = boot/i386/pc/cdboot.S;
291 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
292 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
911bd640
BC
293 objcopyflags = '-O binary';
294 enable = i386_pc;
8c411768
BC
295};
296
297image = {
298 name = pxeboot;
2d465fb0 299 i386_pc = boot/i386/pc/pxeboot.S;
8c411768 300
2d465fb0
BC
301 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
302 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
911bd640
BC
303
304 objcopyflags = '-O binary';
305 enable = i386_pc;
8c411768
BC
306};
307
308image = {
309 name = diskboot;
310 i386_pc = boot/i386/pc/diskboot.S;
2d465fb0
BC
311
312 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
313 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
8c411768
BC
314
315 sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
316 sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
911bd640
BC
317
318 objcopyflags = '-O binary';
319
320 enable = i386_pc;
321 enable = sparc64_ieee1275;
8c411768
BC
322};
323
324image = {
325 name = lnxboot;
2d465fb0 326 i386_pc = boot/i386/pc/lnxboot.S;
8c411768 327
2d465fb0
BC
328 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
329 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
911bd640
BC
330
331 objcopyflags = '-O binary';
332 enable = i386_pc;
8c411768
BC
333};
334
c5b4cd37 335image = {
758194b0 336 name = xz_decompress;
c5b4cd37 337 mips = boot/mips/startup_raw.S;
758194b0
VS
338 common = boot/decompressor/minilib.c;
339 common = boot/decompressor/xz.c;
f8926c32
VS
340 common = lib/xzembed/xz_dec_bcj.c;
341 common = lib/xzembed/xz_dec_lzma2.c;
342 common = lib/xzembed/xz_dec_stream.c;
c5b4cd37 343
400b9371 344 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
c5b4cd37
VS
345
346 objcopyflags = '-O binary';
400b9371 347 mips_loongson_ldflags = '-static-libgcc -Wl,-Ttext,0x80100000';
3666d5f6 348 mips_qemu_mips_ldflags = '-static-libgcc -Wl,-Ttext,0x80100000';
b772baed 349 mips_arc_ldflags = '-static-libgcc -Wl,-Ttext,0x8bc00000';
5a407278 350 ldadd = '-lgcc';
c5b4cd37
VS
351 cflags = '-static-libgcc';
352 enable = mips;
353};
354
758194b0
VS
355image = {
356 name = none_decompress;
357 mips = boot/mips/startup_raw.S;
358 common = boot/decompressor/none.c;
359
400b9371 360 cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
758194b0
VS
361
362 objcopyflags = '-O binary';
400b9371 363 mips_loongson_ldflags = '-static-libgcc -Wl,-Ttext,0x80100000';
3666d5f6 364 mips_qemu_mips_ldflags = '-static-libgcc -Wl,-Ttext,0x80100000';
b772baed 365 mips_arc_ldflags = '-static-libgcc -Wl,-Ttext,0x8bc00000';
5a407278 366 ldadd = '-lgcc';
758194b0
VS
367 cflags = '-static-libgcc';
368 enable = mips;
369};
370
60240b8b
VS
371image = {
372 name = lzma_decompress;
373 i386_pc = boot/i386/pc/startup_raw.S;
374
375 objcopyflags = '-O binary';
376 ldflags = '-Wl,-Ttext,0x8200';
377 enable = i386_pc;
378};
379
297f0c2b
BC
380image = {
381 name = fwstart;
54da1feb 382 mips_loongson = boot/mips/loongson/fwstart.S;
911bd640 383 objcopyflags = '-O binary';
1d955d00 384 ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
54da1feb 385 enable = mips_loongson;
297f0c2b
BC
386};
387
a9fa2a22 388image = {
14a2562c
VS
389 name = fwstart_fuloong2f;
390 mips_loongson = boot/mips/loongson/fuloong2f.S;
911bd640 391 objcopyflags = '-O binary';
a9fa2a22 392 ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
54da1feb 393 enable = mips_loongson;
297f0c2b
BC
394};
395
e235a228
BC
396module = {
397 name = trig;
8427685f 398 common_nodist = trigtables.c;
e235a228 399 extra_dist = gentrigtables.c;
e235a228
BC
400};
401
baea1766
BC
402module = {
403 name = cs5536;
f7711f5e
BC
404 x86 = bus/cs5536.c;
405 enable = x86;
baea1766
BC
406};
407
8c411768
BC
408module = {
409 name = libusb;
8427685f 410 emu = bus/usb/emu/usb.c;
911bd640
BC
411 enable = emu;
412 condition = COND_GRUB_EMU_USB;
8c411768
BC
413};
414
297f0c2b
BC
415module = {
416 name = lsspd;
54da1feb
VS
417 mips_loongson = commands/mips/loongson/lsspd.c;
418 enable = mips_loongson;
297f0c2b
BC
419};
420
8c411768
BC
421module = {
422 name = usb;
8427685f 423 common = bus/usb/usb.c;
fe942b7d
VS
424 common = bus/usb/usbtrans.c;
425 common = bus/usb/usbhub.c;
eefe8abd 426 enable = usb;
fe942b7d
VS
427};
428
429module = {
430 name = emuusb;
431 common = bus/usb/usb.c;
432 condition = COND_GRUB_EMU_USB;
8c411768
BC
433};
434
d84666e6
BC
435module = {
436 name = usbserial_common;
437 common = bus/usb/serial/common.c;
eefe8abd 438 enable = usb;
d84666e6
BC
439};
440
441module = {
442 name = usbserial_pl2303;
443 common = bus/usb/serial/pl2303.c;
eefe8abd 444 enable = usb;
d84666e6
BC
445};
446
447module = {
448 name = usbserial_ftdi;
449 common = bus/usb/serial/ftdi.c;
eefe8abd 450 enable = usb;
d84666e6
BC
451};
452
8c411768
BC
453module = {
454 name = uhci;
8427685f 455 common = bus/usb/uhci.c;
eefe8abd 456 enable = x86;
8c411768
BC
457};
458
459module = {
460 name = ohci;
8427685f 461 common = bus/usb/ohci.c;
eefe8abd 462 enable = pci;
8c411768
BC
463};
464
465module = {
466 name = pci;
fe942b7d 467 common = bus/pci.c;
d9b78bce 468
911bd640 469 enable = i386_pc;
6585de4c
VS
470 enable = i386_efi;
471 enable = x86_64_efi;
911bd640
BC
472 enable = i386_ieee1275;
473 enable = i386_coreboot;
f0b05761 474 enable = i386_multiboot;
fe942b7d
VS
475};
476
477module = {
478 name = emupci;
479 common = bus/emu/pci.c;
480 common = commands/lspci.c;
481
482 condition = COND_GRUB_EMU_PCI;
8c411768
BC
483};
484
8906c3dd
VS
485module = {
486 name = lsdev;
487 common = commands/arc/lsdev.c;
488
489 enable = mips_arc;
490};
491
8c411768
BC
492library = {
493 name = libgnulib.a;
8427685f 494 common = gnulib/regex.c;
8c411768
BC
495 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
496 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
8c411768
BC
497};
498
16c7cb32
BC
499module = {
500 name = cmostest;
eefe8abd
VS
501 common = commands/i386/cmostest.c;
502 enable = cmos;
16c7cb32
BC
503};
504
8c411768
BC
505module = {
506 name = iorw;
8427685f 507 common = commands/iorw.c;
f7711f5e 508 enable = x86;
8c411768
BC
509};
510
511module = {
512 name = regexp;
8427685f 513 common = commands/regexp.c;
8fdefb92 514 common = commands/wildcard.c;
8c411768
BC
515 ldadd = libgnulib.a;
516 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
517 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
8c411768
BC
518};
519
520module = {
521 name = acpi;
522
1782b135 523 common = commands/acpi.c;
6585de4c 524 efi = commands/efi/acpi.c;
8c411768 525 i386_pc = commands/i386/pc/acpi.c;
16bd6cfa
VS
526 i386_coreboot = commands/i386/pc/acpi.c;
527 i386_multiboot = commands/i386/pc/acpi.c;
911bd640 528
6585de4c 529 enable = efi;
911bd640 530 enable = i386_pc;
16bd6cfa
VS
531 enable = i386_coreboot;
532 enable = i386_multiboot;
8c411768
BC
533};
534
1782b135
TG
535module = {
536 name = lsacpi;
537
538 common = commands/lsacpi.c;
539
9a79fcf2 540 enable = efi;
1782b135
TG
541 enable = i386_pc;
542 enable = i386_coreboot;
543 enable = i386_multiboot;
544};
545
105de6a7
TG
546module = {
547 name = lsefisystab;
548
549 common = commands/efi/lsefisystab.c;
550
9a79fcf2 551 enable = efi;
105de6a7
TG
552};
553
554module = {
555 name = lssal;
556
557 common = commands/efi/lssal.c;
558
9a79fcf2 559 enable = efi;
105de6a7
TG
560};
561
41a331a8
TG
562module = {
563 name = lsefimmap;
564
565 common = commands/efi/lsefimmap.c;
566
9a79fcf2 567 enable = efi;
41a331a8
TG
568};
569
8c411768 570module = {
8c411768 571 name = blocklist;
8427685f 572 common = commands/blocklist.c;
8c411768
BC
573};
574
575module = {
8c411768 576 name = boot;
8427685f 577 common = commands/boot.c;
8c411768 578 i386_pc = lib/i386/pc/biosnum.c;
685475e5 579 enable = videomodules;
8c411768
BC
580};
581
582module = {
8c411768 583 name = cat;
8427685f 584 common = commands/cat.c;
8c411768
BC
585};
586
587module = {
8c411768 588 name = cmp;
8427685f 589 common = commands/cmp.c;
8c411768
BC
590};
591
592module = {
8c411768 593 name = configfile;
8427685f 594 common = commands/configfile.c;
8c411768
BC
595};
596
597module = {
598 name = cpuid;
354128c8 599 x86 = commands/i386/cpuid.c;
911bd640 600 enable = x86;
8c411768
BC
601};
602
8c411768 603module = {
8c411768 604 name = date;
8427685f 605 common = commands/date.c;
8c411768
BC
606};
607
608module = {
609 name = drivemap;
610
611 i386_pc = commands/i386/pc/drivemap.c;
612 i386_pc = commands/i386/pc/drivemap_int13h.S;
911bd640 613 enable = i386_pc;
8c411768
BC
614};
615
616module = {
8c411768 617 name = echo;
8427685f 618 common = commands/echo.c;
8c411768
BC
619};
620
621module = {
8c411768 622 name = extcmd;
8427685f
BC
623 common = commands/extcmd.c;
624 common = lib/arg.c;
ee74fa48 625 enable = terminfomodule;
8c411768
BC
626};
627
628module = {
629 name = fixvideo;
6585de4c
VS
630 common = commands/efi/fixvideo.c;
631 enable = i386_efi;
632 enable = x86_64_efi;
8c411768
BC
633};
634
635module = {
8c411768 636 name = gptsync;
8427685f 637 common = commands/gptsync.c;
8c411768
BC
638};
639
640module = {
641 name = halt;
8427685f 642 nopc = commands/halt.c;
8c411768 643 i386_pc = commands/i386/pc/halt.c;
4df7996d 644 i386_pc = commands/acpihalt.c;
2419f17a
VS
645 i386_coreboot = commands/acpihalt.c;
646 i386_multiboot = commands/acpihalt.c;
c18271ed 647 i386_efi = commands/acpihalt.c;
648 x86_64_efi = commands/acpihalt.c;
afba9f98
VS
649 i386_multiboot = lib/i386/halt.c;
650 i386_coreboot = lib/i386/halt.c;
651 i386_qemu = lib/i386/halt.c;
6585de4c 652 efi = lib/efi/halt.c;
afba9f98
VS
653 ieee1275 = lib/ieee1275/halt.c;
654 emu = lib/emu/halt.c;
8c411768
BC
655};
656
544c2487
VS
657module = {
658 name = reboot;
659 i386 = lib/i386/reboot.c;
660 i386 = lib/i386/reboot_trampoline.S;
661 ia64_efi = lib/efi/reboot.c;
662 x86_64_efi = lib/efi/reboot.c;
663 powerpc_ieee1275 = lib/ieee1275/reboot.c;
664 sparc64_ieee1275 = lib/ieee1275/reboot.c;
665 mips_arc = lib/mips/arc/reboot.c;
666 mips_loongson = lib/mips/loongson/reboot.c;
667 mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
668 common = commands/reboot.c;
669};
670
8c411768 671module = {
8c411768 672 name = hashsum;
8427685f 673 common = commands/hashsum.c;
8c411768
BC
674};
675
676module = {
677 name = hdparm;
8427685f
BC
678 common = commands/hdparm.c;
679 common = lib/hexdump.c;
eefe8abd 680 enable = pci;
9a79fcf2 681 enable = mips_qemu_mips;
8c411768
BC
682};
683
684module = {
8c411768 685 name = help;
8427685f 686 common = commands/help.c;
8c411768
BC
687};
688
689module = {
8c411768 690 name = hexdump;
8427685f
BC
691 common = commands/hexdump.c;
692 common = lib/hexdump.c;
8c411768
BC
693};
694
695module = {
8c411768 696 name = keystatus;
8427685f 697 common = commands/keystatus.c;
8c411768
BC
698};
699
700module = {
701 name = loadbios;
6585de4c
VS
702 common = commands/efi/loadbios.c;
703 enable = i386_efi;
704 enable = x86_64_efi;
8c411768
BC
705};
706
707module = {
8c411768 708 name = loadenv;
8427685f
BC
709 common = commands/loadenv.c;
710 common = lib/envblk.c;
8c411768
BC
711};
712
713module = {
8c411768 714 name = ls;
8427685f 715 common = commands/ls.c;
8c411768
BC
716};
717
718module = {
8c411768 719 name = lsmmap;
8427685f 720 common = commands/lsmmap.c;
8c411768
BC
721};
722
723module = {
724 name = lspci;
8427685f 725 common = commands/lspci.c;
8c411768 726
eefe8abd 727 enable = pci;
8c411768
BC
728};
729
730module = {
8c411768 731 name = memrw;
8427685f 732 common = commands/memrw.c;
8c411768
BC
733};
734
735module = {
8c411768 736 name = minicmd;
8427685f 737 common = commands/minicmd.c;
8c411768
BC
738};
739
740module = {
8c411768 741 name = parttool;
8427685f 742 common = commands/parttool.c;
8c411768
BC
743};
744
745module = {
8c411768 746 name = password;
8427685f 747 common = commands/password.c;
8c411768
BC
748};
749
750module = {
8c411768 751 name = password_pbkdf2;
8427685f 752 common = commands/password_pbkdf2.c;
8c411768
BC
753};
754
755module = {
756 name = play;
f7711f5e
BC
757 x86 = commands/i386/pc/play.c;
758 enable = x86;
8c411768
BC
759};
760
761module = {
8c411768 762 name = probe;
8427685f 763 common = commands/probe.c;
8c411768
BC
764};
765
8c411768 766module = {
8c411768 767 name = read;
8427685f 768 common = commands/read.c;
8c411768
BC
769};
770
8c411768 771module = {
8c411768 772 name = search;
8427685f 773 common = commands/search_wrap.c;
610c1efd 774 extra_dist = commands/search.c;
8c411768
BC
775};
776
777module = {
8c411768 778 name = search_fs_file;
8427685f 779 common = commands/search_file.c;
8c411768
BC
780};
781
782module = {
8c411768 783 name = search_fs_uuid;
8427685f 784 common = commands/search_uuid.c;
8c411768
BC
785};
786
787module = {
8c411768 788 name = search_label;
8427685f 789 common = commands/search_label.c;
8c411768
BC
790};
791
792module = {
793 name = setpci;
8427685f 794 common = commands/setpci.c;
911bd640 795 enable = x86;
8c411768
BC
796};
797
798module = {
8c411768 799 name = sleep;
8427685f 800 common = commands/sleep.c;
8c411768
BC
801};
802
803module = {
804 name = suspend;
8427685f 805 ieee1275 = commands/ieee1275/suspend.c;
911bd640
BC
806 enable = i386_ieee1275;
807 enable = powerpc_ieee1275;
8c411768
BC
808};
809
810module = {
8c411768 811 name = terminal;
8427685f 812 common = commands/terminal.c;
8c411768
BC
813};
814
815module = {
8c411768 816 name = test;
8427685f 817 common = commands/test.c;
8c411768
BC
818};
819
820module = {
8c411768 821 name = true;
8427685f 822 common = commands/true.c;
8c411768
BC
823};
824
825module = {
826 name = usbtest;
8427685f 827 common = commands/usbtest.c;
eefe8abd 828 enable = usb;
8c411768
BC
829};
830
831module = {
540e2fe1
VS
832 name = videoinfo;
833 common = commands/videoinfo.c;
8c411768
BC
834};
835
836module = {
8c411768 837 name = videotest;
8427685f 838 common = commands/videotest.c;
8c411768
BC
839};
840
841module = {
8c411768 842 name = xnu_uuid;
8427685f 843 common = commands/xnu_uuid.c;
8c411768
BC
844};
845
846module = {
8c411768 847 name = dm_nv;
8427685f 848 common = disk/dmraid_nvidia.c;
8c411768
BC
849};
850
851module = {
8c411768 852 name = loopback;
8427685f 853 common = disk/loopback.c;
8c411768
BC
854};
855
8585e54b
VS
856module = {
857 name = cryptodisk;
858 common = disk/cryptodisk.c;
859};
860
7217f315
MG
861module = {
862 name = luks;
863 common = disk/luks.c;
864 common = disk/AFSplitter.c;
865};
866
1a1f408f
VS
867module = {
868 name = geli;
869 common = disk/geli.c;
870};
871
8c411768 872module = {
8c411768 873 name = lvm;
8427685f 874 common = disk/lvm.c;
8c411768
BC
875};
876
877module = {
1e8d555b 878 name = mdraid09;
8427685f 879 common = disk/mdraid_linux.c;
8c411768
BC
880};
881
1e8d555b
VS
882module = {
883 name = mdraid1x;
884 common = disk/mdraid1x_linux.c;
885};
886
8c411768 887module = {
8c411768 888 name = raid;
8427685f 889 common = disk/raid.c;
8c411768
BC
890};
891
892module = {
8c411768 893 name = raid5rec;
8427685f 894 common = disk/raid5_recover.c;
8c411768
BC
895};
896
897module = {
8c411768 898 name = raid6rec;
8427685f 899 common = disk/raid6_recover.c;
8c411768
BC
900};
901
902module = {
8c411768 903 name = scsi;
8427685f 904 common = disk/scsi.c;
8c411768
BC
905};
906
907module = {
8c411768 908 name = memdisk;
8427685f 909 common = disk/memdisk.c;
8c411768
BC
910};
911
912module = {
913 name = ata;
8427685f 914 common = disk/ata.c;
eefe8abd 915 enable = pci;
a228ec10 916 enable = mips_qemu_mips;
8c411768
BC
917};
918
919module = {
de2690be
VS
920 name = ahci;
921 common = disk/ahci.c;
eefe8abd 922 enable = pci;
8c411768
BC
923};
924
de2690be
VS
925module = {
926 name = pata;
927 common = disk/pata.c;
eefe8abd 928 enable = pci;
a228ec10 929 enable = mips_qemu_mips;
8c411768
BC
930};
931
932module = {
933 name = biosdisk;
934 i386_pc = disk/i386/pc/biosdisk.c;
911bd640 935 enable = i386_pc;
8c411768
BC
936};
937
938module = {
939 name = usbms;
8427685f 940 common = disk/usbms.c;
eefe8abd 941 enable = usb;
8c411768
BC
942};
943
944module = {
945 name = nand;
8427685f 946 ieee1275 = disk/ieee1275/nand.c;
911bd640 947 enable = i386_ieee1275;
8c411768
BC
948};
949
950module = {
951 name = efiemu;
16bd6cfa
VS
952 common = efiemu/main.c;
953 common = efiemu/i386/loadcore32.c;
954 common = efiemu/i386/loadcore64.c;
8c411768 955 i386_pc = efiemu/i386/pc/cfgtables.c;
8218d8b6
VS
956 i386_coreboot = efiemu/i386/pc/cfgtables.c;
957 i386_multiboot = efiemu/i386/pc/cfgtables.c;
958 i386_ieee1275 = efiemu/i386/nocfgtables.c;
6f8157cb 959 i386_qemu = efiemu/i386/nocfgtables.c;
16bd6cfa
VS
960 common = efiemu/mm.c;
961 common = efiemu/loadcore_common.c;
962 common = efiemu/symbols.c;
963 common = efiemu/loadcore32.c;
964 common = efiemu/loadcore64.c;
965 common = efiemu/prepare32.c;
966 common = efiemu/prepare64.c;
967 common = efiemu/pnvram.c;
968 common = efiemu/i386/coredetect.c;
a60f6ee1
BC
969
970 extra_dist = efiemu/prepare.c;
971 extra_dist = efiemu/loadcore.c;
972 extra_dist = efiemu/runtime/efiemu.S;
973 extra_dist = efiemu/runtime/efiemu.c;
911bd640
BC
974
975 enable = i386_pc;
8218d8b6 976 enable = i386_coreboot;
16bd6cfa
VS
977 enable = i386_ieee1275;
978 enable = i386_multiboot;
6f8157cb 979 enable = i386_qemu;
8c411768
BC
980};
981
982module = {
983 name = font;
8427685f
BC
984 common = font/font.c;
985 common = font/font_cmd.c;
eefe8abd 986 enable = videomodules;
8c411768
BC
987};
988
989module = {
8c411768 990 name = affs;
8427685f 991 common = fs/affs.c;
8c411768
BC
992};
993
eb0b6b45
VS
994module = {
995 name = afs;
996 common = fs/afs.c;
997};
998
5825b379
VS
999module = {
1000 name = bfs;
1001 common = fs/bfs.c;
1002};
1003
4dfbc574
RM
1004module = {
1005 name = btrfs;
1006 common = fs/btrfs.c;
3836e89d 1007 common = lib/crc.c;
095f077e
SJ
1008 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1009 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
4dfbc574
RM
1010};
1011
8c411768 1012module = {
8c411768 1013 name = cpio;
8427685f 1014 common = fs/cpio.c;
8c411768
BC
1015};
1016
1017module = {
8c411768 1018 name = ext2;
8427685f 1019 common = fs/ext2.c;
8c411768
BC
1020};
1021
1022module = {
8c411768 1023 name = fat;
8427685f 1024 common = fs/fat.c;
8c411768
BC
1025};
1026
48fe18dc
VS
1027module = {
1028 name = exfat;
1029 common = fs/exfat.c;
1030};
1031
8c411768 1032module = {
8c411768 1033 name = fshelp;
8427685f 1034 common = fs/fshelp.c;
8c411768
BC
1035};
1036
1037module = {
8c411768 1038 name = hfs;
8427685f 1039 common = fs/hfs.c;
8c411768
BC
1040};
1041
1042module = {
8c411768 1043 name = hfsplus;
8427685f 1044 common = fs/hfsplus.c;
8c411768
BC
1045};
1046
1047module = {
8c411768 1048 name = iso9660;
8427685f 1049 common = fs/iso9660.c;
8c411768
BC
1050};
1051
1052module = {
8c411768 1053 name = jfs;
8427685f 1054 common = fs/jfs.c;
8c411768
BC
1055};
1056
1057module = {
8c411768 1058 name = minix;
8427685f 1059 common = fs/minix.c;
8c411768
BC
1060};
1061
b4a0c915
VS
1062module = {
1063 name = minix2;
1064 common = fs/minix2.c;
1065};
1066
3dd3dd33
FZ
1067module = {
1068 name = minix3;
1069 common = fs/minix3.c;
1070};
1071
8c411768 1072module = {
8c411768 1073 name = nilfs2;
8427685f 1074 common = fs/nilfs2.c;
8c411768
BC
1075};
1076
1077module = {
8c411768 1078 name = ntfs;
8427685f 1079 common = fs/ntfs.c;
8c411768
BC
1080};
1081
1082module = {
8c411768 1083 name = ntfscomp;
8427685f 1084 common = fs/ntfscomp.c;
8c411768
BC
1085};
1086
1087module = {
8c411768 1088 name = reiserfs;
8427685f 1089 common = fs/reiserfs.c;
8c411768
BC
1090};
1091
29184e93
VS
1092module = {
1093 name = romfs;
1094 common = fs/romfs.c;
1095};
1096
8c411768 1097module = {
8c411768 1098 name = sfs;
8427685f 1099 common = fs/sfs.c;
8c411768
BC
1100};
1101
332fa368
VS
1102module = {
1103 name = squash4;
1104 common = fs/squash4.c;
1105};
1106
8c411768 1107module = {
8c411768 1108 name = tar;
8427685f 1109 common = fs/tar.c;
8c411768
BC
1110};
1111
1112module = {
8c411768 1113 name = udf;
8427685f 1114 common = fs/udf.c;
8c411768
BC
1115};
1116
1117module = {
8c411768 1118 name = ufs1;
8427685f 1119 common = fs/ufs.c;
8c411768
BC
1120};
1121
1122module = {
8c411768 1123 name = ufs2;
8427685f 1124 common = fs/ufs2.c;
8c411768
BC
1125};
1126
1127module = {
8c411768 1128 name = xfs;
8427685f 1129 common = fs/xfs.c;
8c411768
BC
1130};
1131
bf78d5b2
RM
1132module = {
1133 name = zfs;
1134 common = fs/zfs/zfs.c;
1135 common = fs/zfs/zfs_lzjb.c;
1136 common = fs/zfs/zfs_sha256.c;
1137 common = fs/zfs/zfs_fletcher.c;
1138};
1139
f003a8c5
VS
1140module = {
1141 name = zfscrypt;
1142 common = fs/zfs/zfscrypt.c;
1143};
1144
bf78d5b2
RM
1145module = {
1146 name = zfsinfo;
1147 common = fs/zfs/zfsinfo.c;
1148};
1149
8c411768
BC
1150module = {
1151 name = pxe;
8e60fc8f 1152 i386_pc = net/drivers/i386/pc/pxe.c;
911bd640 1153 enable = i386_pc;
8c411768
BC
1154};
1155
1156module = {
1157 name = gettext;
8427685f 1158 common = gettext/gettext.c;
8c411768
BC
1159};
1160
1161module = {
8c411768 1162 name = gfxmenu;
8427685f
BC
1163 common = gfxmenu/gfxmenu.c;
1164 common = gfxmenu/model.c;
1165 common = gfxmenu/view.c;
1166 common = gfxmenu/font.c;
1167 common = gfxmenu/icon_manager.c;
1168 common = gfxmenu/theme_loader.c;
1169 common = gfxmenu/widget-box.c;
1170 common = gfxmenu/gui_canvas.c;
1171 common = gfxmenu/gui_circular_progress.c;
1172 common = gfxmenu/gui_box.c;
1173 common = gfxmenu/gui_label.c;
1174 common = gfxmenu/gui_list.c;
1175 common = gfxmenu/gui_image.c;
1176 common = gfxmenu/gui_progress_bar.c;
1177 common = gfxmenu/gui_util.c;
1178 common = gfxmenu/gui_string_util.c;
8c411768
BC
1179};
1180
1181module = {
8c411768 1182 name = hello;
8427685f 1183 common = hello/hello.c;
8c411768
BC
1184};
1185
1186module = {
8c411768 1187 name = gzio;
8427685f 1188 common = io/gzio.c;
8c411768
BC
1189};
1190
1191module = {
1192 name = bufio;
8427685f 1193 common = io/bufio.c;
eefe8abd 1194 enable = videomodules;
8c411768
BC
1195};
1196
1197module = {
8c411768 1198 name = elf;
8427685f 1199 common = kern/elf.c;
8c411768
BC
1200};
1201
8c411768 1202module = {
8c411768 1203 name = crypto;
8427685f 1204 common = lib/crypto.c;
610c1efd
BC
1205
1206 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
8c411768
BC
1207};
1208
8c411768 1209module = {
8c411768 1210 name = pbkdf2;
8427685f 1211 common = lib/pbkdf2.c;
8c411768
BC
1212};
1213
1214module = {
1215 name = relocator;
16bd6cfa
VS
1216 common = lib/relocator.c;
1217 x86 = lib/i386/relocator16.S;
1218 x86 = lib/i386/relocator32.S;
1219 x86 = lib/i386/relocator64.S;
1220 i386 = lib/i386/relocator_asm.S;
1221 x86_64 = lib/x86_64/relocator_asm.S;
8c411768 1222 x86 = lib/i386/relocator.c;
16bd6cfa 1223 ieee1275 = lib/ieee1275/relocator.c;
6585de4c 1224 efi = lib/efi/relocator.c;
16bd6cfa
VS
1225 mips = lib/mips/relocator_asm.S;
1226 mips = lib/mips/relocator.c;
1227 powerpc = lib/powerpc/relocator_asm.S;
1228 powerpc = lib/powerpc/relocator.c;
1229
6556eba9
BC
1230 extra_dist = lib/i386/relocator_common.S;
1231 extra_dist = kern/powerpc/cache_flush.S;
1232
911bd640 1233 enable = mips;
16bd6cfa 1234 enable = powerpc;
911bd640 1235 enable = x86;
8c411768
BC
1236};
1237
1238module = {
1239 name = datetime;
eefe8abd 1240 cmos = lib/cmos_datetime.c;
6585de4c 1241 efi = lib/efi/datetime.c;
8c411768
BC
1242 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1243 powerpc_ieee1275 = lib/ieee1275/datetime.c;
a07a81b3
VS
1244 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1245 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1246
8906c3dd 1247 mips_arc = lib/arc/datetime.c;
eefe8abd 1248 enable = noemu;
8c411768
BC
1249};
1250
1251module = {
1252 name = setjmp;
8427685f 1253 common = lib/setjmp.S;
2b6c0084
BC
1254 extra_dist = lib/i386/setjmp.S;
1255 extra_dist = lib/mips/setjmp.S;
1256 extra_dist = lib/x86_64/setjmp.S;
1257 extra_dist = lib/sparc64/setjmp.S;
1258 extra_dist = lib/powerpc/setjmp.S;
9a79fcf2 1259 extra_dist = lib/ia64/setjmp.S;
8c411768
BC
1260};
1261
1262module = {
1263 name = aout;
8427685f 1264 common = loader/aout.c;
16bd6cfa 1265 enable = x86;
8c411768
BC
1266};
1267
1268module = {
1269 name = bsd;
16bd6cfa
VS
1270 x86 = loader/i386/bsd.c;
1271 x86 = loader/i386/bsd32.c;
1272 x86 = loader/i386/bsd64.c;
610c1efd
BC
1273
1274 extra_dist = loader/i386/bsdXX.c;
1275 extra_dist = loader/i386/bsd_pagetable.c;
1276
16bd6cfa 1277 enable = x86;
8c411768
BC
1278};
1279
70e8145a
VS
1280module = {
1281 name = plan9;
1282 i386_pc = loader/i386/pc/plan9.c;
1283 enable = i386_pc;
1284};
1285
1286
8c411768
BC
1287module = {
1288 name = linux16;
8427685f 1289 i386_pc = loader/i386/pc/linux.c;
25953e10 1290 i386_pc = lib/cmdline.c;
911bd640 1291 enable = i386_pc;
8c411768
BC
1292};
1293
16bd6cfa
VS
1294module = {
1295 name = ntldr;
1296 i386_pc = loader/i386/pc/ntldr.c;
1297 enable = i386_pc;
1298};
1299
b28fd807
VS
1300module = {
1301 name = freedos;
1302 i386_pc = loader/i386/pc/freedos.c;
1303 enable = i386_pc;
1304};
1305
8c411768
BC
1306module = {
1307 name = multiboot2;
1308 cppflags = "-DGRUB_USE_MULTIBOOT2";
1309
8427685f
BC
1310 common = loader/multiboot.c;
1311 common = loader/multiboot_mbi2.c;
911bd640
BC
1312 enable = x86;
1313 enable = mips;
8c411768
BC
1314};
1315
1316module = {
1317 name = multiboot;
8427685f
BC
1318 common = loader/multiboot.c;
1319 x86 = loader/i386/multiboot_mbi.c;
a60f6ee1 1320 extra_dist = loader/multiboot_elfxx.c;
911bd640 1321 enable = x86;
8c411768
BC
1322};
1323
1324module = {
1325 name = linux;
16bd6cfa 1326 x86 = loader/i386/linux.c;
e31bb619 1327 i386_pc = lib/i386/pc/vesa_modes_table.c;
8c411768
BC
1328 mips = loader/mips/linux.c;
1329 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1330 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
6585de4c 1331 ia64_efi = loader/ia64/efi/linux.c;
25953e10 1332 common = lib/cmdline.c;
8427685f 1333 enable = noemu;
8c411768
BC
1334};
1335
1336module = {
1337 name = xnu;
16bd6cfa
VS
1338 x86 = loader/xnu_resume.c;
1339 x86 = loader/i386/xnu.c;
1340 x86 = loader/macho32.c;
1341 x86 = loader/macho64.c;
1342 x86 = loader/macho.c;
1343 x86 = loader/xnu.c;
a60f6ee1
BC
1344
1345 extra_dist = loader/machoXX.c;
16bd6cfa 1346 enable = x86;
8c411768
BC
1347};
1348
1349module = {
1350 name = appleldr;
6585de4c
VS
1351 common = loader/efi/appleloader.c;
1352 enable = i386_efi;
1353 enable = x86_64_efi;
8c411768
BC
1354};
1355
1356module = {
1357 name = chain;
6585de4c 1358 efi = loader/efi/chainloader.c;
8c411768 1359 i386_pc = loader/i386/pc/chainloader.c;
8d5d8444 1360 i386_coreboot = loader/i386/coreboot/chainloader.c;
911bd640 1361 enable = i386_pc;
ba7df45e 1362 enable = i386_coreboot;
6585de4c 1363 enable = efi;
8c411768
BC
1364};
1365
1366module = {
1367 name = mmap;
eefe8abd
VS
1368 common = mmap/mmap.c;
1369 x86 = mmap/i386/uppermem.c;
1370 x86 = mmap/i386/mmap.c;
1371
8c411768
BC
1372 i386_pc = mmap/i386/pc/mmap.c;
1373 i386_pc = mmap/i386/pc/mmap_helper.S;
1374
6585de4c 1375 efi = mmap/efi/mmap.c;
8c411768 1376
8906c3dd 1377 mips = mmap/mips/uppermem.c;
911bd640
BC
1378
1379 enable = x86;
c18271ed 1380 enable = ia64_efi;
f440c33f 1381 enable = mips;
8c411768
BC
1382};
1383
1384module = {
8c411768 1385 name = normal;
8427685f
BC
1386 common = normal/main.c;
1387 common = normal/cmdline.c;
1388 common = normal/dyncmd.c;
1389 common = normal/auth.c;
1390 common = normal/autofs.c;
1391 common = normal/color.c;
1392 common = normal/completion.c;
1393 common = normal/datetime.c;
1394 common = normal/menu.c;
1395 common = normal/menu_entry.c;
1396 common = normal/menu_text.c;
1397 common = normal/misc.c;
1398 common = normal/crypto.c;
1399 common = normal/term.c;
1400 common = normal/context.c;
1401 common = normal/charset.c;
1402
1403 common = script/main.c;
1404 common = script/script.c;
1405 common = script/execute.c;
1406 common = script/function.c;
1407 common = script/lexer.c;
1408 common = script/argv.c;
1409
9284756e
BC
1410 common = commands/menuentry.c;
1411
8427685f
BC
1412 common = unidata.c;
1413 common_nodist = grub_script.tab.c;
1414 common_nodist = grub_script.yy.c;
1415 common_nodist = grub_script.tab.h;
1416 common_nodist = grub_script.yy.h;
297f0c2b
BC
1417
1418 extra_dist = script/yylex.l;
1419 extra_dist = script/parser.y;
1420
124df5f6 1421 cflags = '$(CFLAGS_POSIX)';
297f0c2b 1422 cppflags = '$(CPPFLAGS_POSIX)';
8c411768
BC
1423};
1424
1425module = {
8c411768 1426 name = part_acorn;
8427685f 1427 common = partmap/acorn.c;
8c411768
BC
1428};
1429
1430module = {
8c411768 1431 name = part_amiga;
8427685f 1432 common = partmap/amiga.c;
8c411768
BC
1433};
1434
1435module = {
8c411768 1436 name = part_apple;
8427685f 1437 common = partmap/apple.c;
8c411768
BC
1438};
1439
1440module = {
8c411768 1441 name = part_gpt;
8427685f 1442 common = partmap/gpt.c;
8c411768
BC
1443};
1444
1445module = {
8c411768 1446 name = part_msdos;
8427685f 1447 common = partmap/msdos.c;
8c411768
BC
1448};
1449
1450module = {
8c411768 1451 name = part_sun;
8427685f 1452 common = partmap/sun.c;
8c411768
BC
1453};
1454
ac9ef7ee
VS
1455module = {
1456 name = part_plan;
1457 common = partmap/plan.c;
111c1778 1458};
4e01c8c1 1459
8906c3dd
VS
1460module = {
1461 name = part_dvh;
1462 common = partmap/dvh.c;
1463};
1464
8c411768 1465module = {
8c411768 1466 name = part_bsd;
8427685f 1467 common = partmap/bsdlabel.c;
8c411768
BC
1468};
1469
1470module = {
8c411768 1471 name = part_sunpc;
8427685f 1472 common = partmap/sunpc.c;
8c411768
BC
1473};
1474
1475module = {
8c411768 1476 name = msdospart;
8427685f 1477 common = parttool/msdospart.c;
8c411768
BC
1478};
1479
8c411768
BC
1480module = {
1481 name = at_keyboard;
8427685f 1482 common = term/at_keyboard.c;
911bd640 1483 enable = x86;
8c411768
BC
1484};
1485
1486module = {
1487 name = gfxterm;
8427685f 1488 common = term/gfxterm.c;
eefe8abd 1489 enable = videomodules;
8c411768
BC
1490};
1491
1492module = {
1493 name = serial;
8427685f 1494 common = term/serial.c;
d84666e6
BC
1495 x86 = term/ns8250.c;
1496
9a79fcf2 1497 enable = x86;
d84666e6
BC
1498};
1499
1500module = {
1501 name = sendkey;
1502 i386_pc = commands/i386/pc/sendkey.c;
1503 enable = i386_pc;
8c411768
BC
1504};
1505
1506module = {
8c411768 1507 name = terminfo;
8427685f
BC
1508 common = term/terminfo.c;
1509 common = term/tparm.c;
ee74fa48 1510 enable = terminfomodule;
8c411768
BC
1511};
1512
1513module = {
1514 name = usb_keyboard;
8427685f 1515 common = term/usb_keyboard.c;
eefe8abd 1516 enable = usb;
8c411768
BC
1517};
1518
1519module = {
1520 name = vga;
9fc9ce37 1521 common = video/i386/pc/vga.c;
911bd640 1522 enable = i386_pc;
9fc9ce37
VS
1523 enable = i386_coreboot;
1524 enable = i386_multiboot;
8c411768
BC
1525};
1526
1527module = {
1528 name = vga_text;
16bd6cfa
VS
1529 common = term/i386/pc/vga_text.c;
1530 common = term/i386/vga_common.c;
1531 enable = i386_pc;
1532 enable = i386_coreboot;
1533 enable = i386_multiboot;
8c411768
BC
1534};
1535
297f0c2b
BC
1536module = {
1537 name = video_cirrus;
f7711f5e
BC
1538 x86 = video/cirrus.c;
1539 enable = x86;
297f0c2b
BC
1540};
1541
1542module = {
1543 name = video_bochs;
f7711f5e
BC
1544 x86 = video/bochs.c;
1545 enable = x86;
297f0c2b
BC
1546};
1547
8c411768
BC
1548module = {
1549 name = functional_test;
8427685f
BC
1550 common = tests/lib/functional_test.c;
1551 common = tests/lib/test.c;
8c411768
BC
1552};
1553
1554module = {
1555 name = example_functional_test;
8427685f 1556 common = tests/example_functional_test.c;
8c411768 1557 cflags = -Wno-format;
8c411768
BC
1558};
1559
1560module = {
1561 name = bitmap;
8427685f 1562 common = video/bitmap.c;
eefe8abd 1563 enable = videomodules;
8c411768
BC
1564};
1565
1566module = {
1567 name = bitmap_scale;
8427685f 1568 common = video/bitmap_scale.c;
eefe8abd 1569 enable = videomodules;
8c411768
BC
1570};
1571
1572module = {
1573 name = efi_gop;
6585de4c
VS
1574 efi = video/efi_gop.c;
1575 enable = efi;
8c411768
BC
1576};
1577
1578module = {
1579 name = efi_uga;
6585de4c 1580 efi = video/efi_uga.c;
c18271ed 1581 enable = i386_efi;
1582 enable = x86_64_efi;
8c411768
BC
1583};
1584
1585module = {
8c411768 1586 name = jpeg;
8427685f 1587 common = video/readers/jpeg.c;
8c411768
BC
1588};
1589
1590module = {
8c411768 1591 name = png;
8427685f 1592 common = video/readers/png.c;
8c411768
BC
1593};
1594
1595module = {
8c411768 1596 name = tga;
8427685f 1597 common = video/readers/tga.c;
8c411768
BC
1598};
1599
1600module = {
1601 name = vbe;
9fc9ce37 1602 common = video/i386/pc/vbe.c;
911bd640 1603 enable = i386_pc;
9fc9ce37
VS
1604 enable = i386_coreboot;
1605 enable = i386_multiboot;
8c411768
BC
1606};
1607
1608module = {
1609 name = video_fb;
8427685f
BC
1610 common = video/fb/video_fb.c;
1611 common = video/fb/fbblit.c;
1612 common = video/fb/fbfill.c;
1613 common = video/fb/fbutil.c;
eefe8abd 1614 enable = videomodules;
8c411768
BC
1615};
1616
1617module = {
1618 name = video;
8427685f 1619 common = video/video.c;
1c95b6d2 1620 common = video/colors.c;
eefe8abd 1621 enable = videomodules;
8c411768
BC
1622};
1623
1624module = {
1625 name = ieee1275_fb;
8427685f 1626 ieee1275 = video/ieee1275.c;
cf02731e 1627 enable = powerpc_ieee1275;
8c411768
BC
1628};
1629
1630module = {
1631 name = sdl;
8427685f 1632 emu = video/emu/sdl.c;
911bd640 1633 enable = emu;
8427685f 1634 condition = COND_GRUB_EMU_SDL;
8c411768
BC
1635};
1636
1637module = {
1638 name = datehook;
8427685f 1639 common = hook/datehook.c;
8c411768 1640};
92eb189b 1641
975cffff
VS
1642module = {
1643 name = net;
c0425677 1644 common = net/net.c;
138eeb36 1645 common = net/bootp.c;
7bb47706
MA
1646 common = net/ip.c;
1647 common = net/udp.c;
1648 common = net/ethernet.c;
1649 common = net/arp.c;
7bb47706
MA
1650 common = net/netbuff.c;
1651};
1652
1653module = {
1654 name = tftp;
1655 common = net/tftp.c;
1656};
1657
1658module = {
1659 name = ofnet;
9d22909b 1660 common = net/drivers/ieee1275/ofnet.c;
7bb47706
MA
1661 enable = ieee1275;
1662};
90451bb1 1663
9d22909b
VS
1664module = {
1665 name = efinet;
1666 common = net/drivers/efi/efinet.c;
1667 enable = efi;
1668};
1669
90451bb1
VS
1670module = {
1671 name = emunet;
1672 emu = net/drivers/emu/emunet.c;
d8123bfb 1673 enable = emu;
90451bb1 1674};
760a7e5a 1675
92eb189b
VS
1676module = {
1677 name = legacycfg;
1678 common = commands/legacycfg.c;
fff175c7 1679 common = lib/legacy_parse.c;
d6d94820 1680 emu = lib/i386/pc/vesa_modes_table.c;
92eb189b 1681 enable = i386_pc;
abda0cad 1682 enable = emu;
bd960307 1683};
122a9b2c 1684
928bad47
BC
1685module = {
1686 name = test_blockarg;
1687 common = tests/test_blockarg.c;
47b4c2c3 1688};
06f70117 1689
f0aff67c
SJ
1690module = {
1691 name = xzio;
1692 common = io/xzio.c;
1693 common = lib/xzembed/xz_dec_bcj.c;
1694 common = lib/xzembed/xz_dec_lzma2.c;
1695 common = lib/xzembed/xz_dec_stream.c;
1696 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
1697};
1698
d6beefcf
SJ
1699module = {
1700 name = lzopio;
1701 common = io/lzopio.c;
1702 common = lib/minilzo/minilzo.c;
1703 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1704 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1705};
1706
06f70117
VS
1707module = {
1708 name = testload;
1709 common = commands/testload.c;
fff175c7 1710};
890c9fa5
VS
1711
1712module = {
1713 name = lsapm;
1714 common = commands/i386/pc/lsapm.c;
1715 enable = i386_pc;
1716};
1a9130dd 1717
5aaf2c18
VS
1718module = {
1719 name = keylayouts;
1720 common = commands/keylayouts.c;
1a9130dd 1721 enable = videomodules;
5aaf2c18 1722};
5ff1d945
VS
1723
1724module = {
1725 name = time;
1726 common = commands/time.c;
1727};
99cecb4f 1728
c5dc1690
SJ
1729module = {
1730 name = cacheinfo;
1731 common = commands/cacheinfo.c;
1732 condition = COND_ENABLE_CACHE_STATS;
1733};
9a8d32a2
SJ
1734
1735module = {
1736 name = adler32;
1737 common = lib/adler32.c;
1738};
158dc1ea
VS
1739
1740module = {
1741 name = crc64;
1742 common = lib/crc64.c;
1743};