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