]> git.proxmox.com Git - grub2.git/blame - grub-core/Makefile.core.def
* grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
[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';
3ea1ca46 376 ldflags = '$(TARGET_IMG_LDFLAGS) -Wl,-Ttext,0x8200';
60240b8b
VS
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;
30545b85 795 enable = pci;
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
076e7c0f
VS
877module = {
878 name = ldm;
879 common = disk/ldm.c;
880};
881
8c411768 882module = {
1e8d555b 883 name = mdraid09;
8427685f 884 common = disk/mdraid_linux.c;
8c411768
BC
885};
886
1e8d555b
VS
887module = {
888 name = mdraid1x;
889 common = disk/mdraid1x_linux.c;
890};
891
8c411768 892module = {
076e7c0f
VS
893 name = diskfilter;
894 common = disk/diskfilter.c;
8c411768
BC
895};
896
897module = {
8c411768 898 name = raid5rec;
8427685f 899 common = disk/raid5_recover.c;
8c411768
BC
900};
901
902module = {
8c411768 903 name = raid6rec;
8427685f 904 common = disk/raid6_recover.c;
8c411768
BC
905};
906
907module = {
8c411768 908 name = scsi;
8427685f 909 common = disk/scsi.c;
8c411768
BC
910};
911
912module = {
8c411768 913 name = memdisk;
8427685f 914 common = disk/memdisk.c;
8c411768
BC
915};
916
917module = {
918 name = ata;
8427685f 919 common = disk/ata.c;
eefe8abd 920 enable = pci;
a228ec10 921 enable = mips_qemu_mips;
8c411768
BC
922};
923
924module = {
de2690be
VS
925 name = ahci;
926 common = disk/ahci.c;
eefe8abd 927 enable = pci;
8c411768
BC
928};
929
de2690be
VS
930module = {
931 name = pata;
932 common = disk/pata.c;
eefe8abd 933 enable = pci;
a228ec10 934 enable = mips_qemu_mips;
8c411768
BC
935};
936
937module = {
938 name = biosdisk;
939 i386_pc = disk/i386/pc/biosdisk.c;
911bd640 940 enable = i386_pc;
8c411768
BC
941};
942
943module = {
944 name = usbms;
8427685f 945 common = disk/usbms.c;
eefe8abd 946 enable = usb;
8c411768
BC
947};
948
949module = {
950 name = nand;
8427685f 951 ieee1275 = disk/ieee1275/nand.c;
911bd640 952 enable = i386_ieee1275;
8c411768
BC
953};
954
955module = {
956 name = efiemu;
16bd6cfa
VS
957 common = efiemu/main.c;
958 common = efiemu/i386/loadcore32.c;
959 common = efiemu/i386/loadcore64.c;
8c411768 960 i386_pc = efiemu/i386/pc/cfgtables.c;
8218d8b6
VS
961 i386_coreboot = efiemu/i386/pc/cfgtables.c;
962 i386_multiboot = efiemu/i386/pc/cfgtables.c;
963 i386_ieee1275 = efiemu/i386/nocfgtables.c;
6f8157cb 964 i386_qemu = efiemu/i386/nocfgtables.c;
16bd6cfa
VS
965 common = efiemu/mm.c;
966 common = efiemu/loadcore_common.c;
967 common = efiemu/symbols.c;
968 common = efiemu/loadcore32.c;
969 common = efiemu/loadcore64.c;
970 common = efiemu/prepare32.c;
971 common = efiemu/prepare64.c;
972 common = efiemu/pnvram.c;
973 common = efiemu/i386/coredetect.c;
a60f6ee1
BC
974
975 extra_dist = efiemu/prepare.c;
976 extra_dist = efiemu/loadcore.c;
977 extra_dist = efiemu/runtime/efiemu.S;
978 extra_dist = efiemu/runtime/efiemu.c;
911bd640
BC
979
980 enable = i386_pc;
8218d8b6 981 enable = i386_coreboot;
16bd6cfa
VS
982 enable = i386_ieee1275;
983 enable = i386_multiboot;
6f8157cb 984 enable = i386_qemu;
8c411768
BC
985};
986
987module = {
988 name = font;
8427685f
BC
989 common = font/font.c;
990 common = font/font_cmd.c;
eefe8abd 991 enable = videomodules;
8c411768
BC
992};
993
994module = {
8c411768 995 name = affs;
8427685f 996 common = fs/affs.c;
8c411768
BC
997};
998
999module = {
8c411768 1000 name = afs;
8427685f 1001 common = fs/afs.c;
8c411768
BC
1002};
1003
1004module = {
5825b379
VS
1005 name = bfs;
1006 common = fs/bfs.c;
8c411768
BC
1007};
1008
4dfbc574
RM
1009module = {
1010 name = btrfs;
1011 common = fs/btrfs.c;
3836e89d 1012 common = lib/crc.c;
095f077e
SJ
1013 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1014 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
4dfbc574
RM
1015};
1016
8c411768 1017module = {
8c411768 1018 name = cpio;
8427685f 1019 common = fs/cpio.c;
8c411768
BC
1020};
1021
a1a8b1b9
VS
1022module = {
1023 name = cpio_be;
1024 common = fs/cpio_be.c;
1025};
1026
1027module = {
1028 name = newc;
1029 common = fs/newc.c;
1030};
1031
1032module = {
1033 name = odc;
1034 common = fs/odc.c;
1035};
1036
8c411768 1037module = {
8c411768 1038 name = ext2;
8427685f 1039 common = fs/ext2.c;
8c411768
BC
1040};
1041
1042module = {
8c411768 1043 name = fat;
8427685f 1044 common = fs/fat.c;
8c411768
BC
1045};
1046
48fe18dc
VS
1047module = {
1048 name = exfat;
1049 common = fs/exfat.c;
1050};
1051
8c411768 1052module = {
8c411768 1053 name = fshelp;
8427685f 1054 common = fs/fshelp.c;
8c411768
BC
1055};
1056
1057module = {
8c411768 1058 name = hfs;
8427685f 1059 common = fs/hfs.c;
8c411768
BC
1060};
1061
1062module = {
8c411768 1063 name = hfsplus;
8427685f 1064 common = fs/hfsplus.c;
8c411768
BC
1065};
1066
1067module = {
8c411768 1068 name = iso9660;
8427685f 1069 common = fs/iso9660.c;
8c411768
BC
1070};
1071
1072module = {
8c411768 1073 name = jfs;
8427685f 1074 common = fs/jfs.c;
8c411768
BC
1075};
1076
1077module = {
8c411768 1078 name = minix;
8427685f 1079 common = fs/minix.c;
8c411768
BC
1080};
1081
b4a0c915
VS
1082module = {
1083 name = minix2;
1084 common = fs/minix2.c;
1085};
1086
3dd3dd33
FZ
1087module = {
1088 name = minix3;
1089 common = fs/minix3.c;
1090};
1091
8c411768 1092module = {
8c411768 1093 name = nilfs2;
8427685f 1094 common = fs/nilfs2.c;
8c411768
BC
1095};
1096
1097module = {
8c411768 1098 name = ntfs;
8427685f 1099 common = fs/ntfs.c;
8c411768
BC
1100};
1101
1102module = {
8c411768 1103 name = ntfscomp;
8427685f 1104 common = fs/ntfscomp.c;
8c411768
BC
1105};
1106
1107module = {
8c411768 1108 name = reiserfs;
8427685f 1109 common = fs/reiserfs.c;
8c411768
BC
1110};
1111
29184e93
VS
1112module = {
1113 name = romfs;
1114 common = fs/romfs.c;
1115};
1116
8c411768 1117module = {
8c411768 1118 name = sfs;
8427685f 1119 common = fs/sfs.c;
8c411768
BC
1120};
1121
332fa368
VS
1122module = {
1123 name = squash4;
1124 common = fs/squash4.c;
c029da8a
VS
1125 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1126 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
332fa368
VS
1127};
1128
8c411768 1129module = {
8c411768 1130 name = tar;
8427685f 1131 common = fs/tar.c;
8c411768
BC
1132};
1133
1134module = {
8c411768 1135 name = udf;
8427685f 1136 common = fs/udf.c;
8c411768
BC
1137};
1138
1139module = {
8c411768 1140 name = ufs1;
8427685f 1141 common = fs/ufs.c;
8c411768
BC
1142};
1143
1144module = {
8c411768 1145 name = ufs2;
8427685f 1146 common = fs/ufs2.c;
8c411768
BC
1147};
1148
1149module = {
8c411768 1150 name = xfs;
8427685f 1151 common = fs/xfs.c;
8c411768
BC
1152};
1153
bf78d5b2
RM
1154module = {
1155 name = zfs;
1156 common = fs/zfs/zfs.c;
1157 common = fs/zfs/zfs_lzjb.c;
1158 common = fs/zfs/zfs_sha256.c;
1159 common = fs/zfs/zfs_fletcher.c;
1160};
1161
f003a8c5
VS
1162module = {
1163 name = zfscrypt;
1164 common = fs/zfs/zfscrypt.c;
1165};
1166
bf78d5b2
RM
1167module = {
1168 name = zfsinfo;
1169 common = fs/zfs/zfsinfo.c;
1170};
1171
8c411768
BC
1172module = {
1173 name = pxe;
8e60fc8f 1174 i386_pc = net/drivers/i386/pc/pxe.c;
911bd640 1175 enable = i386_pc;
8c411768
BC
1176};
1177
1178module = {
1179 name = gettext;
8427685f 1180 common = gettext/gettext.c;
8c411768
BC
1181};
1182
1183module = {
8c411768 1184 name = gfxmenu;
8427685f
BC
1185 common = gfxmenu/gfxmenu.c;
1186 common = gfxmenu/model.c;
1187 common = gfxmenu/view.c;
1188 common = gfxmenu/font.c;
1189 common = gfxmenu/icon_manager.c;
1190 common = gfxmenu/theme_loader.c;
1191 common = gfxmenu/widget-box.c;
1192 common = gfxmenu/gui_canvas.c;
1193 common = gfxmenu/gui_circular_progress.c;
1194 common = gfxmenu/gui_box.c;
1195 common = gfxmenu/gui_label.c;
1196 common = gfxmenu/gui_list.c;
1197 common = gfxmenu/gui_image.c;
1198 common = gfxmenu/gui_progress_bar.c;
1199 common = gfxmenu/gui_util.c;
1200 common = gfxmenu/gui_string_util.c;
8c411768
BC
1201};
1202
1203module = {
8c411768 1204 name = hello;
8427685f 1205 common = hello/hello.c;
8c411768
BC
1206};
1207
1208module = {
8c411768 1209 name = gzio;
8427685f 1210 common = io/gzio.c;
8c411768
BC
1211};
1212
1213module = {
1214 name = bufio;
8427685f 1215 common = io/bufio.c;
eefe8abd 1216 enable = videomodules;
8c411768
BC
1217};
1218
1219module = {
8c411768 1220 name = elf;
8427685f 1221 common = kern/elf.c;
8c411768
BC
1222};
1223
8c411768 1224module = {
8c411768 1225 name = crypto;
8427685f 1226 common = lib/crypto.c;
610c1efd
BC
1227
1228 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
8c411768
BC
1229};
1230
8c411768 1231module = {
8c411768 1232 name = pbkdf2;
8427685f 1233 common = lib/pbkdf2.c;
8c411768
BC
1234};
1235
1236module = {
1237 name = relocator;
16bd6cfa
VS
1238 common = lib/relocator.c;
1239 x86 = lib/i386/relocator16.S;
1240 x86 = lib/i386/relocator32.S;
1241 x86 = lib/i386/relocator64.S;
1242 i386 = lib/i386/relocator_asm.S;
1243 x86_64 = lib/x86_64/relocator_asm.S;
8c411768 1244 x86 = lib/i386/relocator.c;
16bd6cfa 1245 ieee1275 = lib/ieee1275/relocator.c;
6585de4c 1246 efi = lib/efi/relocator.c;
16bd6cfa
VS
1247 mips = lib/mips/relocator_asm.S;
1248 mips = lib/mips/relocator.c;
1249 powerpc = lib/powerpc/relocator_asm.S;
1250 powerpc = lib/powerpc/relocator.c;
1251
6556eba9
BC
1252 extra_dist = lib/i386/relocator_common.S;
1253 extra_dist = kern/powerpc/cache_flush.S;
1254
911bd640 1255 enable = mips;
16bd6cfa 1256 enable = powerpc;
911bd640 1257 enable = x86;
8c411768
BC
1258};
1259
1260module = {
1261 name = datetime;
eefe8abd 1262 cmos = lib/cmos_datetime.c;
6585de4c 1263 efi = lib/efi/datetime.c;
8c411768
BC
1264 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1265 powerpc_ieee1275 = lib/ieee1275/datetime.c;
a07a81b3
VS
1266 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1267 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1268
8906c3dd 1269 mips_arc = lib/arc/datetime.c;
eefe8abd 1270 enable = noemu;
8c411768
BC
1271};
1272
1273module = {
1274 name = setjmp;
8427685f 1275 common = lib/setjmp.S;
2b6c0084
BC
1276 extra_dist = lib/i386/setjmp.S;
1277 extra_dist = lib/mips/setjmp.S;
1278 extra_dist = lib/x86_64/setjmp.S;
1279 extra_dist = lib/sparc64/setjmp.S;
1280 extra_dist = lib/powerpc/setjmp.S;
9a79fcf2 1281 extra_dist = lib/ia64/setjmp.S;
8c411768
BC
1282};
1283
1284module = {
1285 name = aout;
8427685f 1286 common = loader/aout.c;
16bd6cfa 1287 enable = x86;
8c411768
BC
1288};
1289
1290module = {
1291 name = bsd;
16bd6cfa
VS
1292 x86 = loader/i386/bsd.c;
1293 x86 = loader/i386/bsd32.c;
1294 x86 = loader/i386/bsd64.c;
610c1efd
BC
1295
1296 extra_dist = loader/i386/bsdXX.c;
1297 extra_dist = loader/i386/bsd_pagetable.c;
1298
16bd6cfa 1299 enable = x86;
8c411768
BC
1300};
1301
70e8145a
VS
1302module = {
1303 name = plan9;
1304 i386_pc = loader/i386/pc/plan9.c;
1305 enable = i386_pc;
1306};
1307
1308
8c411768
BC
1309module = {
1310 name = linux16;
8427685f 1311 i386_pc = loader/i386/pc/linux.c;
25953e10 1312 i386_pc = lib/cmdline.c;
911bd640 1313 enable = i386_pc;
8c411768
BC
1314};
1315
16bd6cfa
VS
1316module = {
1317 name = ntldr;
1318 i386_pc = loader/i386/pc/ntldr.c;
1319 enable = i386_pc;
1320};
1321
b28fd807
VS
1322module = {
1323 name = freedos;
1324 i386_pc = loader/i386/pc/freedos.c;
1325 enable = i386_pc;
1326};
1327
8c411768
BC
1328module = {
1329 name = multiboot2;
1330 cppflags = "-DGRUB_USE_MULTIBOOT2";
1331
8427685f
BC
1332 common = loader/multiboot.c;
1333 common = loader/multiboot_mbi2.c;
911bd640
BC
1334 enable = x86;
1335 enable = mips;
8c411768
BC
1336};
1337
1338module = {
1339 name = multiboot;
8427685f
BC
1340 common = loader/multiboot.c;
1341 x86 = loader/i386/multiboot_mbi.c;
a60f6ee1 1342 extra_dist = loader/multiboot_elfxx.c;
911bd640 1343 enable = x86;
8c411768
BC
1344};
1345
1346module = {
1347 name = linux;
16bd6cfa 1348 x86 = loader/i386/linux.c;
e31bb619 1349 i386_pc = lib/i386/pc/vesa_modes_table.c;
8c411768
BC
1350 mips = loader/mips/linux.c;
1351 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1352 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
6585de4c 1353 ia64_efi = loader/ia64/efi/linux.c;
25953e10 1354 common = lib/cmdline.c;
8427685f 1355 enable = noemu;
8c411768
BC
1356};
1357
1358module = {
1359 name = xnu;
16bd6cfa
VS
1360 x86 = loader/xnu_resume.c;
1361 x86 = loader/i386/xnu.c;
1362 x86 = loader/macho32.c;
1363 x86 = loader/macho64.c;
1364 x86 = loader/macho.c;
1365 x86 = loader/xnu.c;
a60f6ee1
BC
1366
1367 extra_dist = loader/machoXX.c;
16bd6cfa 1368 enable = x86;
8c411768
BC
1369};
1370
1371module = {
1372 name = appleldr;
6585de4c
VS
1373 common = loader/efi/appleloader.c;
1374 enable = i386_efi;
1375 enable = x86_64_efi;
8c411768
BC
1376};
1377
1378module = {
1379 name = chain;
6585de4c 1380 efi = loader/efi/chainloader.c;
8c411768 1381 i386_pc = loader/i386/pc/chainloader.c;
8d5d8444 1382 i386_coreboot = loader/i386/coreboot/chainloader.c;
911bd640 1383 enable = i386_pc;
ba7df45e 1384 enable = i386_coreboot;
6585de4c 1385 enable = efi;
8c411768
BC
1386};
1387
1388module = {
1389 name = mmap;
eefe8abd
VS
1390 common = mmap/mmap.c;
1391 x86 = mmap/i386/uppermem.c;
1392 x86 = mmap/i386/mmap.c;
1393
8c411768
BC
1394 i386_pc = mmap/i386/pc/mmap.c;
1395 i386_pc = mmap/i386/pc/mmap_helper.S;
1396
6585de4c 1397 efi = mmap/efi/mmap.c;
8c411768 1398
8906c3dd 1399 mips = mmap/mips/uppermem.c;
911bd640
BC
1400
1401 enable = x86;
c18271ed 1402 enable = ia64_efi;
f440c33f 1403 enable = mips;
8c411768
BC
1404};
1405
1406module = {
8c411768 1407 name = normal;
8427685f
BC
1408 common = normal/main.c;
1409 common = normal/cmdline.c;
1410 common = normal/dyncmd.c;
1411 common = normal/auth.c;
1412 common = normal/autofs.c;
1413 common = normal/color.c;
1414 common = normal/completion.c;
1415 common = normal/datetime.c;
1416 common = normal/menu.c;
1417 common = normal/menu_entry.c;
1418 common = normal/menu_text.c;
1419 common = normal/misc.c;
1420 common = normal/crypto.c;
1421 common = normal/term.c;
1422 common = normal/context.c;
1423 common = normal/charset.c;
1424
1425 common = script/main.c;
1426 common = script/script.c;
1427 common = script/execute.c;
1428 common = script/function.c;
1429 common = script/lexer.c;
1430 common = script/argv.c;
1431
9284756e
BC
1432 common = commands/menuentry.c;
1433
8427685f
BC
1434 common = unidata.c;
1435 common_nodist = grub_script.tab.c;
1436 common_nodist = grub_script.yy.c;
1437 common_nodist = grub_script.tab.h;
1438 common_nodist = grub_script.yy.h;
297f0c2b
BC
1439
1440 extra_dist = script/yylex.l;
1441 extra_dist = script/parser.y;
1442
124df5f6 1443 cflags = '$(CFLAGS_POSIX)';
297f0c2b 1444 cppflags = '$(CPPFLAGS_POSIX)';
8c411768
BC
1445};
1446
1447module = {
8c411768 1448 name = part_acorn;
8427685f 1449 common = partmap/acorn.c;
8c411768
BC
1450};
1451
1452module = {
8c411768 1453 name = part_amiga;
8427685f 1454 common = partmap/amiga.c;
8c411768
BC
1455};
1456
1457module = {
8c411768 1458 name = part_apple;
8427685f 1459 common = partmap/apple.c;
8c411768
BC
1460};
1461
1462module = {
8c411768 1463 name = part_gpt;
8427685f 1464 common = partmap/gpt.c;
8c411768
BC
1465};
1466
1467module = {
8c411768 1468 name = part_msdos;
8427685f 1469 common = partmap/msdos.c;
8c411768
BC
1470};
1471
1472module = {
8c411768 1473 name = part_sun;
8427685f 1474 common = partmap/sun.c;
8c411768
BC
1475};
1476
ac9ef7ee
VS
1477module = {
1478 name = part_plan;
1479 common = partmap/plan.c;
111c1778 1480};
4e01c8c1 1481
8906c3dd
VS
1482module = {
1483 name = part_dvh;
1484 common = partmap/dvh.c;
1485};
1486
8c411768 1487module = {
8c411768 1488 name = part_bsd;
8427685f 1489 common = partmap/bsdlabel.c;
8c411768
BC
1490};
1491
1492module = {
8c411768 1493 name = part_sunpc;
8427685f 1494 common = partmap/sunpc.c;
8c411768
BC
1495};
1496
1497module = {
8c411768 1498 name = msdospart;
8427685f 1499 common = parttool/msdospart.c;
8c411768
BC
1500};
1501
8c411768
BC
1502module = {
1503 name = at_keyboard;
8427685f 1504 common = term/at_keyboard.c;
911bd640 1505 enable = x86;
8c411768
BC
1506};
1507
1508module = {
1509 name = gfxterm;
8427685f 1510 common = term/gfxterm.c;
eefe8abd 1511 enable = videomodules;
8c411768
BC
1512};
1513
1514module = {
1515 name = serial;
8427685f 1516 common = term/serial.c;
d84666e6
BC
1517 x86 = term/ns8250.c;
1518
9a79fcf2 1519 enable = x86;
d84666e6
BC
1520};
1521
1522module = {
1523 name = sendkey;
1524 i386_pc = commands/i386/pc/sendkey.c;
1525 enable = i386_pc;
8c411768
BC
1526};
1527
1528module = {
8c411768 1529 name = terminfo;
8427685f
BC
1530 common = term/terminfo.c;
1531 common = term/tparm.c;
ee74fa48 1532 enable = terminfomodule;
8c411768
BC
1533};
1534
1535module = {
1536 name = usb_keyboard;
8427685f 1537 common = term/usb_keyboard.c;
eefe8abd 1538 enable = usb;
8c411768
BC
1539};
1540
1541module = {
1542 name = vga;
9fc9ce37 1543 common = video/i386/pc/vga.c;
911bd640 1544 enable = i386_pc;
9fc9ce37
VS
1545 enable = i386_coreboot;
1546 enable = i386_multiboot;
8c411768
BC
1547};
1548
1549module = {
1550 name = vga_text;
16bd6cfa
VS
1551 common = term/i386/pc/vga_text.c;
1552 common = term/i386/vga_common.c;
1553 enable = i386_pc;
1554 enable = i386_coreboot;
1555 enable = i386_multiboot;
8c411768
BC
1556};
1557
297f0c2b
BC
1558module = {
1559 name = video_cirrus;
f7711f5e
BC
1560 x86 = video/cirrus.c;
1561 enable = x86;
297f0c2b
BC
1562};
1563
1564module = {
1565 name = video_bochs;
f7711f5e
BC
1566 x86 = video/bochs.c;
1567 enable = x86;
297f0c2b
BC
1568};
1569
8c411768
BC
1570module = {
1571 name = functional_test;
8427685f
BC
1572 common = tests/lib/functional_test.c;
1573 common = tests/lib/test.c;
8c411768
BC
1574};
1575
1576module = {
1577 name = example_functional_test;
8427685f 1578 common = tests/example_functional_test.c;
8c411768 1579 cflags = -Wno-format;
8c411768
BC
1580};
1581
1582module = {
1583 name = bitmap;
8427685f 1584 common = video/bitmap.c;
eefe8abd 1585 enable = videomodules;
8c411768
BC
1586};
1587
1588module = {
1589 name = bitmap_scale;
8427685f 1590 common = video/bitmap_scale.c;
eefe8abd 1591 enable = videomodules;
8c411768
BC
1592};
1593
1594module = {
1595 name = efi_gop;
6585de4c
VS
1596 efi = video/efi_gop.c;
1597 enable = efi;
8c411768
BC
1598};
1599
1600module = {
1601 name = efi_uga;
6585de4c 1602 efi = video/efi_uga.c;
c18271ed 1603 enable = i386_efi;
1604 enable = x86_64_efi;
8c411768
BC
1605};
1606
1607module = {
8c411768 1608 name = jpeg;
8427685f 1609 common = video/readers/jpeg.c;
8c411768
BC
1610};
1611
1612module = {
8c411768 1613 name = png;
8427685f 1614 common = video/readers/png.c;
8c411768
BC
1615};
1616
1617module = {
8c411768 1618 name = tga;
8427685f 1619 common = video/readers/tga.c;
8c411768
BC
1620};
1621
1622module = {
1623 name = vbe;
9fc9ce37 1624 common = video/i386/pc/vbe.c;
911bd640 1625 enable = i386_pc;
9fc9ce37
VS
1626 enable = i386_coreboot;
1627 enable = i386_multiboot;
8c411768
BC
1628};
1629
1630module = {
1631 name = video_fb;
8427685f
BC
1632 common = video/fb/video_fb.c;
1633 common = video/fb/fbblit.c;
1634 common = video/fb/fbfill.c;
1635 common = video/fb/fbutil.c;
eefe8abd 1636 enable = videomodules;
8c411768
BC
1637};
1638
1639module = {
1640 name = video;
8427685f 1641 common = video/video.c;
1c95b6d2 1642 common = video/colors.c;
eefe8abd 1643 enable = videomodules;
8c411768
BC
1644};
1645
1646module = {
1647 name = ieee1275_fb;
8427685f 1648 ieee1275 = video/ieee1275.c;
cf02731e 1649 enable = powerpc_ieee1275;
8c411768
BC
1650};
1651
1652module = {
1653 name = sdl;
8427685f 1654 emu = video/emu/sdl.c;
911bd640 1655 enable = emu;
8427685f 1656 condition = COND_GRUB_EMU_SDL;
8c411768
BC
1657};
1658
1659module = {
1660 name = datehook;
8427685f 1661 common = hook/datehook.c;
8c411768 1662};
92eb189b 1663
975cffff
VS
1664module = {
1665 name = net;
c0425677 1666 common = net/net.c;
038ec56a 1667 common = net/dns.c;
138eeb36 1668 common = net/bootp.c;
7bb47706
MA
1669 common = net/ip.c;
1670 common = net/udp.c;
3a7af372 1671 common = net/tcp.c;
1367c143 1672 common = net/icmp.c;
a53cf653 1673 common = net/icmp6.c;
7bb47706
MA
1674 common = net/ethernet.c;
1675 common = net/arp.c;
7bb47706
MA
1676 common = net/netbuff.c;
1677};
1678
1679module = {
1680 name = tftp;
1681 common = net/tftp.c;
1682};
1683
80e72236
VS
1684module = {
1685 name = http;
1686 common = net/http.c;
1687};
1688
7bb47706
MA
1689module = {
1690 name = ofnet;
9d22909b 1691 common = net/drivers/ieee1275/ofnet.c;
7bb47706
MA
1692 enable = ieee1275;
1693};
90451bb1 1694
9d22909b
VS
1695module = {
1696 name = efinet;
1697 common = net/drivers/efi/efinet.c;
1698 enable = efi;
1699};
1700
90451bb1
VS
1701module = {
1702 name = emunet;
1703 emu = net/drivers/emu/emunet.c;
d8123bfb 1704 enable = emu;
90451bb1 1705};
760a7e5a 1706
92eb189b
VS
1707module = {
1708 name = legacycfg;
1709 common = commands/legacycfg.c;
fff175c7 1710 common = lib/legacy_parse.c;
d6d94820 1711 emu = lib/i386/pc/vesa_modes_table.c;
92eb189b 1712 enable = i386_pc;
abda0cad 1713 enable = emu;
bd960307 1714};
122a9b2c 1715
928bad47
BC
1716module = {
1717 name = test_blockarg;
1718 common = tests/test_blockarg.c;
47b4c2c3 1719};
06f70117 1720
f0aff67c
SJ
1721module = {
1722 name = xzio;
1723 common = io/xzio.c;
1724 common = lib/xzembed/xz_dec_bcj.c;
1725 common = lib/xzembed/xz_dec_lzma2.c;
1726 common = lib/xzembed/xz_dec_stream.c;
1727 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
1728};
1729
d6beefcf
SJ
1730module = {
1731 name = lzopio;
1732 common = io/lzopio.c;
1733 common = lib/minilzo/minilzo.c;
1734 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1735 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1736};
1737
06f70117
VS
1738module = {
1739 name = testload;
1740 common = commands/testload.c;
fff175c7 1741};
890c9fa5
VS
1742
1743module = {
1744 name = lsapm;
1745 common = commands/i386/pc/lsapm.c;
1746 enable = i386_pc;
1747};
1a9130dd 1748
5aaf2c18
VS
1749module = {
1750 name = keylayouts;
1751 common = commands/keylayouts.c;
1a9130dd 1752 enable = videomodules;
5aaf2c18 1753};
5ff1d945 1754
4db34616
VS
1755module = {
1756 name = priority_queue;
1757 common = lib/priority_queue.c;
1758};
1759
5ff1d945
VS
1760module = {
1761 name = time;
1762 common = commands/time.c;
1763};
99cecb4f 1764
c5dc1690
SJ
1765module = {
1766 name = cacheinfo;
1767 common = commands/cacheinfo.c;
1768 condition = COND_ENABLE_CACHE_STATS;
1769};
9a8d32a2
SJ
1770
1771module = {
1772 name = adler32;
1773 common = lib/adler32.c;
1774};
158dc1ea
VS
1775
1776module = {
1777 name = crc64;
1778 common = lib/crc64.c;
1779};