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