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