]> git.proxmox.com Git - grub2.git/blob - grub-core/Makefile.core.def
Installing to the RMP also needs mokmanager.
[grub2.git] / grub-core / Makefile.core.def
1 AutoGen definitions Makefile.tpl;
2
3 transform_data = {
4 installdir = noinst;
5 name = gensyminfo.sh;
6 common = gensyminfo.sh.in;
7 };
8
9 transform_data = {
10 installdir = noinst;
11 name = genmod.sh;
12 common = genmod.sh.in;
13 };
14
15 transform_data = {
16 installdir = noinst;
17 name = modinfo.sh;
18 common = modinfo.sh.in;
19 };
20
21 transform_data = {
22 installdir = platform;
23 name = gmodule.pl;
24 common = gmodule.pl.in;
25 };
26
27 transform_data = {
28 installdir = platform;
29 name = gdb_grub;
30 common = gdb_grub.in;
31 };
32
33 transform_data = {
34 installdir = platform;
35 name = grub.chrp;
36 common = boot/powerpc/grub.chrp.in;
37 enable = powerpc_ieee1275;
38 };
39
40 transform_data = {
41 installdir = platform;
42 name = bootinfo.txt;
43 common = boot/powerpc/bootinfo.txt.in;
44 enable = powerpc_ieee1275;
45 };
46
47 kernel = {
48 name = kernel;
49
50 nostrip = emu;
51
52 emu_ldflags = '-Wl,-r,-d';
53 i386_efi_ldflags = '-Wl,-r,-d';
54 i386_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
55 x86_64_efi_ldflags = '-Wl,-r,-d';
56 x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
57
58 ia64_efi_cflags = '-fno-builtin -fpic -minline-int-divide-max-throughput';
59 ia64_efi_ldflags = '-Wl,-r,-d';
60 ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
61
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
65 arm64_efi_ldflags = '-Wl,-r,-d';
66 arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';
67
68 riscv32_efi_ldflags = '-Wl,-r,-d';
69 riscv32_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';
70
71 riscv64_efi_ldflags = '-Wl,-r,-d';
72 riscv64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';
73
74 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
75 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
76 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
77 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
78 i386_coreboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
79 i386_coreboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
80 i386_multiboot_ldflags = '$(TARGET_IMG_LDFLAGS)';
81 i386_multiboot_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
82 i386_ieee1275_ldflags = '$(TARGET_IMG_LDFLAGS)';
83 i386_ieee1275_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x10000';
84 i386_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
85 i386_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
86 x86_64_xen_ldflags = '$(TARGET_IMG_LDFLAGS)';
87 x86_64_xen_ldflags = '$(TARGET_IMG_BASE_LDOPT),0';
88 i386_xen_pvh_ldflags = '$(TARGET_IMG_LDFLAGS)';
89 i386_xen_pvh_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x100000';
90
91 mips_loongson_ldflags = '-Wl,-Ttext,0x80200000';
92 powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000';
93 sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400';
94 mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)';
95 mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000';
96
97 mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
98 i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
99 emu_cflags = '$(CFLAGS_GNULIB)';
100 emu_cppflags = '$(CPPFLAGS_GNULIB)';
101 arm_uboot_ldflags = '-Wl,-r,-d';
102 arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
103 arm_coreboot_ldflags = '-Wl,-r,-d';
104 arm_coreboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
105
106 i386_pc_startup = kern/i386/pc/startup.S;
107 i386_efi_startup = kern/i386/efi/startup.S;
108 x86_64_efi_startup = kern/x86_64/efi/startup.S;
109 i386_xen_startup = kern/i386/xen/startup.S;
110 x86_64_xen_startup = kern/x86_64/xen/startup.S;
111 i386_xen_pvh_startup = kern/i386/xen/startup_pvh.S;
112 i386_qemu_startup = kern/i386/qemu/startup.S;
113 i386_ieee1275_startup = kern/i386/ieee1275/startup.S;
114 i386_coreboot_startup = kern/i386/coreboot/startup.S;
115 i386_multiboot_startup = kern/i386/coreboot/startup.S;
116 mips_startup = kern/mips/startup.S;
117 sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S;
118 powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S;
119 arm_uboot_startup = kern/arm/startup.S;
120 arm_coreboot_startup = kern/arm/startup.S;
121 arm_efi_startup = kern/arm/efi/startup.S;
122 arm64_efi_startup = kern/arm64/efi/startup.S;
123 riscv32_efi_startup = kern/riscv/efi/startup.S;
124 riscv64_efi_startup = kern/riscv/efi/startup.S;
125
126 common = kern/buffer.c;
127 common = kern/command.c;
128 common = kern/corecmd.c;
129 common = kern/device.c;
130 common = kern/disk.c;
131 common = kern/dl.c;
132 common = kern/env.c;
133 common = kern/err.c;
134 common = kern/file.c;
135 common = kern/fs.c;
136 common = kern/list.c;
137 common = kern/main.c;
138 common = kern/misc.c;
139 common = kern/parser.c;
140 common = kern/partition.c;
141 common = kern/rescue_parser.c;
142 common = kern/rescue_reader.c;
143 common = kern/term.c;
144 common = kern/verifiers.c;
145
146 noemu = kern/compiler-rt.c;
147 noemu = kern/mm.c;
148 noemu = kern/time.c;
149 noemu = kern/generic/millisleep.c;
150
151 noemu_nodist = symlist.c;
152
153 mips = kern/generic/rtc_get_time_ms.c;
154
155 ieee1275 = disk/ieee1275/ofdisk.c;
156 ieee1275 = kern/ieee1275/cmain.c;
157 ieee1275 = kern/ieee1275/ieee1275.c;
158 ieee1275 = kern/ieee1275/mmap.c;
159 ieee1275 = kern/ieee1275/openfw.c;
160 ieee1275 = term/ieee1275/console.c;
161 ieee1275 = kern/ieee1275/init.c;
162
163 uboot = disk/uboot/ubootdisk.c;
164 uboot = kern/uboot/uboot.c;
165 uboot = kern/uboot/init.c;
166 uboot = kern/uboot/hw.c;
167 uboot = term/uboot/console.c;
168 arm_uboot = kern/arm/uboot/init.c;
169 arm_uboot = kern/arm/uboot/uboot.S;
170
171 arm_coreboot = kern/arm/coreboot/init.c;
172 arm_coreboot = kern/arm/coreboot/timer.c;
173 arm_coreboot = kern/arm/coreboot/coreboot.S;
174 arm_coreboot = lib/fdt.c;
175 arm_coreboot = bus/fdt.c;
176 arm_coreboot = term/ps2.c;
177 arm_coreboot = term/arm/pl050.c;
178 arm_coreboot = term/arm/cros.c;
179 arm_coreboot = term/arm/cros_ec.c;
180 arm_coreboot = bus/spi/rk3288_spi.c;
181 arm_coreboot = commands/keylayouts.c;
182 arm_coreboot = kern/arm/coreboot/dma.c;
183
184 terminfoinkernel = term/terminfo.c;
185 terminfoinkernel = term/tparm.c;
186 terminfoinkernel = commands/extcmd.c;
187 terminfoinkernel = lib/arg.c;
188
189 softdiv = lib/division.c;
190
191 i386 = kern/i386/dl.c;
192 i386_xen = kern/i386/dl.c;
193 i386_xen_pvh = kern/i386/dl.c;
194
195 i386_coreboot = kern/i386/coreboot/init.c;
196 i386_multiboot = kern/i386/coreboot/init.c;
197 i386_qemu = kern/i386/qemu/init.c;
198 i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c;
199 coreboot = video/coreboot/cbfb.c;
200
201 efi = disk/efi/efidisk.c;
202 efi = kern/efi/efi.c;
203 efi = kern/efi/init.c;
204 efi = kern/efi/mm.c;
205 efi = term/efi/console.c;
206 efi = kern/acpi.c;
207 efi = kern/efi/acpi.c;
208 efi = kern/efi/sb.c;
209 efi = kern/lockdown.c;
210 i386_coreboot = kern/i386/pc/acpi.c;
211 i386_multiboot = kern/i386/pc/acpi.c;
212 i386_coreboot = kern/acpi.c;
213 i386_multiboot = kern/acpi.c;
214
215 x86 = kern/i386/tsc.c;
216 x86 = kern/i386/tsc_pit.c;
217 i386_efi = kern/i386/efi/tsc.c;
218 x86_64_efi = kern/i386/efi/tsc.c;
219 i386_efi = kern/i386/tsc_pmtimer.c;
220 i386_coreboot = kern/i386/tsc_pmtimer.c;
221 x86_64_efi = kern/i386/tsc_pmtimer.c;
222
223 i386_efi = kern/i386/efi/init.c;
224 i386_efi = bus/pci.c;
225
226 x86_64 = kern/x86_64/dl.c;
227 x86_64_xen = kern/x86_64/dl.c;
228 x86_64_efi = kern/x86_64/efi/callwrap.S;
229 x86_64_efi = kern/i386/efi/init.c;
230 x86_64_efi = bus/pci.c;
231
232 xen = kern/i386/tsc.c;
233 xen = kern/i386/xen/tsc.c;
234 x86_64_xen = kern/x86_64/xen/hypercall.S;
235 i386_xen = kern/i386/xen/hypercall.S;
236 xen = kern/xen/init.c;
237 xen = term/xen/console.c;
238 xen = disk/xen/xendisk.c;
239 xen = commands/boot.c;
240
241 i386_xen_pvh = commands/boot.c;
242 i386_xen_pvh = disk/xen/xendisk.c;
243 i386_xen_pvh = kern/i386/tsc.c;
244 i386_xen_pvh = kern/i386/xen/tsc.c;
245 i386_xen_pvh = kern/i386/xen/pvh.c;
246 i386_xen_pvh = kern/xen/init.c;
247 i386_xen_pvh = term/xen/console.c;
248
249 ia64_efi = kern/ia64/efi/startup.S;
250 ia64_efi = kern/ia64/efi/init.c;
251 ia64_efi = kern/ia64/dl.c;
252 ia64_efi = kern/ia64/dl_helper.c;
253 ia64_efi = kern/ia64/cache.c;
254
255 arm_efi = kern/arm/efi/init.c;
256 arm_efi = kern/efi/fdt.c;
257
258 arm64_efi = kern/arm64/efi/init.c;
259 arm64_efi = kern/efi/fdt.c;
260
261 riscv32_efi = kern/riscv/efi/init.c;
262 riscv32_efi = kern/efi/fdt.c;
263
264 riscv64_efi = kern/riscv/efi/init.c;
265 riscv64_efi = kern/efi/fdt.c;
266
267 i386_pc = kern/i386/pc/init.c;
268 i386_pc = kern/i386/pc/mmap.c;
269 i386_pc = term/i386/pc/console.c;
270
271 i386_qemu = bus/pci.c;
272 i386_qemu = kern/vga_init.c;
273 i386_qemu = kern/i386/qemu/mmap.c;
274
275 coreboot = kern/coreboot/mmap.c;
276 i386_coreboot = kern/i386/coreboot/cbtable.c;
277 coreboot = kern/coreboot/cbtable.c;
278 arm_coreboot = kern/arm/coreboot/cbtable.c;
279
280 i386_multiboot = kern/i386/multiboot_mmap.c;
281
282 mips = kern/mips/cache.S;
283 mips = kern/mips/dl.c;
284 mips = kern/mips/init.c;
285
286 mips_qemu_mips = kern/mips/qemu_mips/init.c;
287 mips_qemu_mips = term/ns8250.c;
288 mips_qemu_mips = term/serial.c;
289 mips_qemu_mips = term/at_keyboard.c;
290 mips_qemu_mips = term/ps2.c;
291 mips_qemu_mips = commands/boot.c;
292 mips_qemu_mips = commands/keylayouts.c;
293 mips_qemu_mips = term/i386/pc/vga_text.c;
294 mips_qemu_mips = kern/vga_init.c;
295
296 mips_arc = kern/mips/arc/init.c;
297 mips_arc = term/arc/console.c;
298 mips_arc = disk/arc/arcdisk.c;
299
300 mips_loongson = term/ns8250.c;
301 mips_loongson = bus/bonito.c;
302 mips_loongson = bus/cs5536.c;
303 mips_loongson = bus/pci.c;
304 mips_loongson = kern/mips/loongson/init.c;
305 mips_loongson = term/at_keyboard.c;
306 mips_loongson = term/ps2.c;
307 mips_loongson = commands/boot.c;
308 mips_loongson = term/serial.c;
309 mips_loongson = video/sm712.c;
310 mips_loongson = video/sis315pro.c;
311 mips_loongson = video/radeon_fuloong2e.c;
312 mips_loongson = video/radeon_yeeloong3a.c;
313 extra_dist = video/sm712_init.c;
314 extra_dist = video/sis315_init.c;
315 mips_loongson = commands/keylayouts.c;
316
317 powerpc_ieee1275 = kern/powerpc/cache.S;
318 powerpc_ieee1275 = kern/powerpc/dl.c;
319 powerpc_ieee1275 = kern/powerpc/compiler-rt.S;
320
321 sparc64_ieee1275 = kern/sparc64/cache.S;
322 sparc64_ieee1275 = kern/sparc64/dl.c;
323 sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c;
324 sparc64_ieee1275 = disk/ieee1275/obdisk.c;
325
326 arm = kern/arm/dl.c;
327 arm = kern/arm/dl_helper.c;
328 arm = kern/arm/cache_armv6.S;
329 arm = kern/arm/cache_armv7.S;
330 extra_dist = kern/arm/cache.S;
331 arm = kern/arm/cache.c;
332 arm = kern/arm/compiler-rt.S;
333
334 arm64 = kern/arm64/cache.c;
335 arm64 = kern/arm64/cache_flush.S;
336 arm64 = kern/arm64/dl.c;
337 arm64 = kern/arm64/dl_helper.c;
338
339 riscv32 = kern/riscv/cache.c;
340 riscv32 = kern/riscv/cache_flush.S;
341 riscv32 = kern/riscv/dl.c;
342
343 riscv64 = kern/riscv/cache.c;
344 riscv64 = kern/riscv/cache_flush.S;
345 riscv64 = kern/riscv/dl.c;
346
347 emu = disk/host.c;
348 emu = kern/emu/cache_s.S;
349 emu = kern/emu/hostdisk.c;
350 emu = osdep/unix/hostdisk.c;
351 emu = osdep/exec.c;
352 extra_dist = osdep/unix/exec.c;
353 emu = osdep/devmapper/hostdisk.c;
354 emu = osdep/hostdisk.c;
355 emu = kern/emu/hostfs.c;
356 emu = kern/emu/main.c;
357 emu = kern/emu/argp_common.c;
358 emu = kern/emu/misc.c;
359 emu = kern/emu/mm.c;
360 emu = kern/emu/time.c;
361 emu = kern/emu/cache.c;
362 emu = osdep/emuconsole.c;
363 extra_dist = osdep/unix/emuconsole.c;
364 extra_dist = osdep/windows/emuconsole.c;
365 emu = osdep/dl.c;
366 extra_dist = osdep/unix/dl.c;
367 extra_dist = osdep/windows/dl.c;
368 emu = osdep/sleep.c;
369 emu = osdep/init.c;
370 emu = osdep/emunet.c;
371 extra_dist = osdep/linux/emunet.c;
372 extra_dist = osdep/basic/emunet.c;
373 emu = osdep/cputime.c;
374 extra_dist = osdep/unix/cputime.c;
375 extra_dist = osdep/windows/cputime.c;
376
377 videoinkernel = term/gfxterm.c;
378 videoinkernel = font/font.c;
379 videoinkernel = font/font_cmd.c;
380 videoinkernel = io/bufio.c;
381 videoinkernel = video/fb/fbblit.c;
382 videoinkernel = video/fb/fbfill.c;
383 videoinkernel = video/fb/fbutil.c;
384 videoinkernel = video/fb/video_fb.c;
385 videoinkernel = video/video.c;
386
387 extra_dist = kern/i386/int.S;
388 extra_dist = kern/i386/realmode.S;
389 extra_dist = boot/i386/pc/lzma_decode.S;
390 extra_dist = kern/mips/cache_flush.S;
391 };
392
393 program = {
394 name = grub-emu;
395 mansection = 1;
396
397 emu = kern/emu/full.c;
398 emu_nodist = grub_emu_init.c;
399
400 ldadd = 'kernel.exec$(EXEEXT)';
401 ldadd = '$(MODULE_FILES)';
402 ldadd = 'lib/gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
403
404 enable = emu;
405 };
406
407 program = {
408 name = grub-emu-lite;
409
410 emu = kern/emu/lite.c;
411 emu_nodist = symlist.c;
412
413 ldadd = 'kernel.exec$(EXEEXT)';
414 ldadd = 'lib/gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
415
416 enable = emu;
417 };
418
419 image = {
420 name = boot;
421 i386_pc = boot/i386/pc/boot.S;
422 i386_qemu = boot/i386/qemu/boot.S;
423 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
424
425 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
426 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
427
428 i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)';
429 i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)';
430 i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
431
432 /* The entry point for a.out binaries on sparc64 starts
433 at 0x4000. Since we are writing the 32 bytes long a.out
434 header in the assembly code ourselves, we need to tell
435 the linker to adjust the start of the text segment to
436 0x4000 - 0x20 = 0x3fe0.
437 */
438 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x3fe0';
439 sparc64_ieee1275_objcopyflags = '-O binary';
440
441 objcopyflags = '-O binary';
442 enable = i386_pc;
443 enable = i386_qemu;
444 enable = sparc64_ieee1275;
445 };
446
447 image = {
448 name = boot_hybrid;
449 i386_pc = boot/i386/pc/boot.S;
450
451 cppflags = '-DHYBRID_BOOT=1';
452
453 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
454 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
455
456 objcopyflags = '-O binary';
457 enable = i386_pc;
458 };
459
460 image = {
461 name = cdboot;
462
463 i386_pc = boot/i386/pc/cdboot.S;
464 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
465 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
466
467 sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S;
468
469 /* See comment for sparc64_ieee1275_ldflags above. */
470 sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x3fe0';
471 sparc64_ieee1275_objcopyflags = '-O binary';
472 sparc64_ieee1275_cppflags = '-DCDBOOT=1';
473
474 objcopyflags = '-O binary';
475
476 enable = sparc64_ieee1275;
477 enable = i386_pc;
478 };
479
480 image = {
481 name = pxeboot;
482 i386_pc = boot/i386/pc/pxeboot.S;
483
484 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
485 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00';
486
487 objcopyflags = '-O binary';
488 enable = i386_pc;
489 };
490
491 image = {
492 name = diskboot;
493 i386_pc = boot/i386/pc/diskboot.S;
494
495 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
496 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000';
497
498 sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S;
499 sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200';
500
501 objcopyflags = '-O binary';
502
503 enable = i386_pc;
504 enable = sparc64_ieee1275;
505 };
506
507 image = {
508 name = lnxboot;
509 i386_pc = boot/i386/pc/lnxboot.S;
510
511 i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)';
512 i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000';
513
514 objcopyflags = '-O binary';
515 enable = i386_pc;
516 };
517
518 image = {
519 name = xz_decompress;
520 mips = boot/mips/startup_raw.S;
521 common = boot/decompressor/minilib.c;
522 common = boot/decompressor/xz.c;
523 common = lib/xzembed/xz_dec_bcj.c;
524 common = lib/xzembed/xz_dec_lzma2.c;
525 common = lib/xzembed/xz_dec_stream.c;
526 common = kern/compiler-rt.c;
527
528 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1';
529
530 objcopyflags = '-O binary';
531 mips_ldflags = '-Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
532 cflags = '-Wno-unreachable-code';
533 enable = mips;
534 };
535
536 image = {
537 name = none_decompress;
538 mips = boot/mips/startup_raw.S;
539 common = boot/decompressor/none.c;
540
541 cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1';
542
543 objcopyflags = '-O binary';
544 mips_ldflags = '-Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)';
545 enable = mips;
546 };
547
548 image = {
549 name = lzma_decompress;
550 i386_pc = boot/i386/pc/startup_raw.S;
551 i386_pc_nodist = rs_decoder.h;
552
553 objcopyflags = '-O binary';
554 ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200';
555 enable = i386_pc;
556 };
557
558 image = {
559 name = fwstart;
560 mips_loongson = boot/mips/loongson/fwstart.S;
561 objcopyflags = '-O binary';
562 ldflags = '-Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
563 enable = mips_loongson;
564 };
565
566 image = {
567 name = fwstart_fuloong2f;
568 mips_loongson = boot/mips/loongson/fuloong2f.S;
569 objcopyflags = '-O binary';
570 ldflags = '-Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic';
571 enable = mips_loongson;
572 };
573
574 module = {
575 name = disk;
576 common = lib/disk.c;
577 extra_dist = kern/disk_common.c;
578 };
579
580 module = {
581 name = trig;
582 common_nodist = trigtables.c;
583 extra_dist = gentrigtables.c;
584 };
585
586 module = {
587 name = cs5536;
588 x86 = bus/cs5536.c;
589 enable = x86;
590 };
591
592 module = {
593 name = lsspd;
594 mips_loongson = commands/mips/loongson/lsspd.c;
595 enable = mips_loongson;
596 };
597
598 module = {
599 name = usb;
600 common = bus/usb/usb.c;
601 common = bus/usb/usbtrans.c;
602 common = bus/usb/usbhub.c;
603 enable = usb;
604 };
605
606 module = {
607 name = usbserial_common;
608 common = bus/usb/serial/common.c;
609 enable = usb;
610 };
611
612 module = {
613 name = usbserial_pl2303;
614 common = bus/usb/serial/pl2303.c;
615 enable = usb;
616 };
617
618 module = {
619 name = usbserial_ftdi;
620 common = bus/usb/serial/ftdi.c;
621 enable = usb;
622 };
623
624 module = {
625 name = usbserial_usbdebug;
626 common = bus/usb/serial/usbdebug_late.c;
627 enable = usb;
628 };
629
630 module = {
631 name = uhci;
632 common = bus/usb/uhci.c;
633 enable = pci;
634 };
635
636 module = {
637 name = ohci;
638 common = bus/usb/ohci.c;
639 enable = pci;
640 };
641
642 module = {
643 name = ehci;
644 common = bus/usb/ehci.c;
645 arm_coreboot = bus/usb/ehci-fdt.c;
646 pci = bus/usb/ehci-pci.c;
647 enable = pci;
648 enable = arm_coreboot;
649 };
650
651 module = {
652 name = pci;
653 common = bus/pci.c;
654 i386_ieee1275 = bus/i386/ieee1275/pci.c;
655
656 enable = i386_pc;
657 enable = i386_ieee1275;
658 enable = i386_coreboot;
659 enable = i386_multiboot;
660 };
661
662 module = {
663 name = nativedisk;
664 common = commands/nativedisk.c;
665
666 enable = x86;
667 enable = mips_loongson;
668 enable = mips_qemu_mips;
669 };
670
671 module = {
672 name = emupci;
673 common = bus/emu/pci.c;
674 common = commands/lspci.c;
675
676 enable = emu;
677 condition = COND_GRUB_EMU_PCI;
678 };
679
680 module = {
681 name = lsdev;
682 common = commands/arc/lsdev.c;
683
684 enable = mips_arc;
685 };
686
687 module = {
688 name = lsxen;
689 common = commands/xen/lsxen.c;
690
691 enable = xen;
692 };
693
694 module = {
695 name = cmostest;
696 common = commands/i386/cmostest.c;
697 enable = cmos;
698 };
699
700 module = {
701 name = cmosdump;
702 common = commands/i386/cmosdump.c;
703 enable = cmos;
704 };
705
706 module = {
707 name = iorw;
708 common = commands/iorw.c;
709 enable = x86;
710 };
711
712 module = {
713 name = cbtable;
714 common = kern/i386/coreboot/cbtable.c;
715 common = kern/coreboot/cbtable.c;
716 enable = i386_pc;
717 enable = i386_efi;
718 enable = i386_qemu;
719 enable = i386_multiboot;
720 enable = i386_ieee1275;
721 enable = x86_64_efi;
722 };
723
724 module = {
725 name = cbtime;
726 common = commands/i386/coreboot/cb_timestamps.c;
727 enable = x86;
728 };
729
730 module = {
731 name = cbls;
732 common = commands/i386/coreboot/cbls.c;
733 enable = x86;
734 };
735
736 module = {
737 name = cbmemc;
738 common = term/i386/coreboot/cbmemc.c;
739 enable = x86;
740 };
741
742 module = {
743 name = regexp;
744 common = commands/regexp.c;
745 common = commands/wildcard.c;
746 common = lib/gnulib/regex.c;
747 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
748 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
749 };
750
751 module = {
752 name = acpi;
753
754 common = commands/acpi.c;
755 i386_pc = kern/acpi.c;
756 i386_pc = kern/i386/pc/acpi.c;
757
758 enable = efi;
759 enable = i386_pc;
760 enable = i386_coreboot;
761 enable = i386_multiboot;
762 };
763
764 module = {
765 name = lsacpi;
766
767 common = commands/lsacpi.c;
768
769 enable = efi;
770 enable = i386_pc;
771 enable = i386_coreboot;
772 enable = i386_multiboot;
773 };
774
775 module = {
776 name = lsefisystab;
777
778 common = commands/efi/lsefisystab.c;
779
780 enable = efi;
781 };
782
783 module = {
784 name = lssal;
785
786 common = commands/efi/lssal.c;
787
788 enable = efi;
789 };
790
791 module = {
792 name = lsefimmap;
793
794 common = commands/efi/lsefimmap.c;
795
796 enable = efi;
797 };
798
799 module = {
800 name = lsefi;
801 common = commands/efi/lsefi.c;
802 enable = efi;
803 };
804
805 module = {
806 name = efifwsetup;
807 efi = commands/efi/efifwsetup.c;
808 enable = efi;
809 };
810
811 module = {
812 name = blocklist;
813 common = commands/blocklist.c;
814 };
815
816 module = {
817 name = boot;
818 common = commands/boot.c;
819 i386_pc = lib/i386/pc/biosnum.c;
820 enable = x86;
821 enable = emu;
822 enable = sparc64_ieee1275;
823 enable = powerpc_ieee1275;
824 enable = mips_arc;
825 enable = ia64_efi;
826 enable = arm_efi;
827 enable = arm64_efi;
828 enable = arm_uboot;
829 enable = arm_coreboot;
830 enable = riscv32_efi;
831 enable = riscv64_efi;
832 };
833
834 module = {
835 name = cat;
836 common = commands/cat.c;
837 };
838
839 module = {
840 name = cmp;
841 common = commands/cmp.c;
842 };
843
844 module = {
845 name = configfile;
846 common = commands/configfile.c;
847 };
848
849 module = {
850 name = cpuid;
851 common = commands/i386/cpuid.c;
852 enable = x86;
853 enable = i386_xen_pvh;
854 enable = i386_xen;
855 enable = x86_64_xen;
856 };
857
858 module = {
859 name = date;
860 common = commands/date.c;
861 };
862
863 module = {
864 name = drivemap;
865
866 i386_pc = commands/i386/pc/drivemap.c;
867 i386_pc = commands/i386/pc/drivemap_int13h.S;
868 enable = i386_pc;
869 };
870
871 module = {
872 name = echo;
873 common = commands/echo.c;
874 };
875
876 module = {
877 name = eval;
878 common = commands/eval.c;
879 };
880
881 module = {
882 name = extcmd;
883 common = commands/extcmd.c;
884 common = lib/arg.c;
885 enable = terminfomodule;
886 };
887
888 module = {
889 name = fixvideo;
890 common = commands/efi/fixvideo.c;
891 enable = i386_efi;
892 enable = x86_64_efi;
893 };
894
895 module = {
896 name = gptsync;
897 common = commands/gptsync.c;
898 };
899
900 module = {
901 name = halt;
902 nopc = commands/halt.c;
903 i386_pc = commands/i386/pc/halt.c;
904 i386_pc = commands/acpihalt.c;
905 i386_coreboot = commands/acpihalt.c;
906 i386_multiboot = commands/acpihalt.c;
907 i386_efi = commands/acpihalt.c;
908 x86_64_efi = commands/acpihalt.c;
909 i386_multiboot = lib/i386/halt.c;
910 i386_coreboot = lib/i386/halt.c;
911 i386_qemu = lib/i386/halt.c;
912 xen = lib/xen/halt.c;
913 i386_xen_pvh = lib/xen/halt.c;
914 efi = lib/efi/halt.c;
915 ieee1275 = lib/ieee1275/halt.c;
916 emu = lib/emu/halt.c;
917 uboot = lib/dummy/halt.c;
918 arm_coreboot = lib/dummy/halt.c;
919 };
920
921 module = {
922 name = reboot;
923 i386 = lib/i386/reboot.c;
924 i386 = lib/i386/reboot_trampoline.S;
925 powerpc_ieee1275 = lib/ieee1275/reboot.c;
926 sparc64_ieee1275 = lib/ieee1275/reboot.c;
927 mips_arc = lib/mips/arc/reboot.c;
928 mips_loongson = lib/mips/loongson/reboot.c;
929 mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
930 xen = lib/xen/reboot.c;
931 i386_xen_pvh = lib/xen/reboot.c;
932 uboot = lib/uboot/reboot.c;
933 arm_coreboot = lib/dummy/reboot.c;
934 common = commands/reboot.c;
935 };
936
937 module = {
938 name = hashsum;
939 common = commands/hashsum.c;
940 };
941
942 module = {
943 name = pgp;
944 common = commands/pgp.c;
945 cflags = '$(CFLAGS_POSIX)';
946 cppflags = '-I$(srcdir)/lib/posix_wrap';
947 };
948
949 module = {
950 name = hdparm;
951 common = commands/hdparm.c;
952 enable = pci;
953 enable = mips_qemu_mips;
954 };
955
956 module = {
957 name = help;
958 common = commands/help.c;
959 };
960
961 module = {
962 name = hexdump;
963 common = commands/hexdump.c;
964 common = lib/hexdump.c;
965 };
966
967 module = {
968 name = keystatus;
969 common = commands/keystatus.c;
970 };
971
972 module = {
973 name = loadbios;
974 common = commands/efi/loadbios.c;
975 enable = i386_efi;
976 enable = x86_64_efi;
977 };
978
979 module = {
980 name = loadenv;
981 common = commands/loadenv.c;
982 common = lib/envblk.c;
983 };
984
985 module = {
986 name = ls;
987 common = commands/ls.c;
988 };
989
990 module = {
991 name = lsmmap;
992 common = commands/lsmmap.c;
993 };
994
995 module = {
996 name = lspci;
997 common = commands/lspci.c;
998
999 enable = pci;
1000 };
1001
1002 module = {
1003 name = memrw;
1004 common = commands/memrw.c;
1005 };
1006
1007 module = {
1008 name = minicmd;
1009 common = commands/minicmd.c;
1010 };
1011
1012 module = {
1013 name = parttool;
1014 common = commands/parttool.c;
1015 };
1016
1017 module = {
1018 name = password;
1019 common = commands/password.c;
1020 };
1021
1022 module = {
1023 name = password_pbkdf2;
1024 common = commands/password_pbkdf2.c;
1025 };
1026
1027 module = {
1028 name = play;
1029 x86 = commands/i386/pc/play.c;
1030 enable = x86;
1031 };
1032
1033 module = {
1034 name = spkmodem;
1035 x86 = term/spkmodem.c;
1036 enable = x86;
1037 };
1038
1039 module = {
1040 name = morse;
1041 x86 = term/morse.c;
1042 enable = x86;
1043 };
1044
1045 module = {
1046 name = probe;
1047 common = commands/probe.c;
1048 };
1049
1050 module = {
1051 name = read;
1052 common = commands/read.c;
1053 };
1054
1055 module = {
1056 name = search;
1057 common = commands/search_wrap.c;
1058 extra_dist = commands/search.c;
1059 };
1060
1061 module = {
1062 name = search_fs_file;
1063 common = commands/search_file.c;
1064 };
1065
1066 module = {
1067 name = search_fs_uuid;
1068 common = commands/search_uuid.c;
1069 };
1070
1071 module = {
1072 name = search_label;
1073 common = commands/search_label.c;
1074 };
1075
1076 module = {
1077 name = setpci;
1078 common = commands/setpci.c;
1079 enable = pci;
1080 };
1081
1082 module = {
1083 name = pcidump;
1084 common = commands/pcidump.c;
1085 enable = pci;
1086 };
1087
1088 module = {
1089 name = sleep;
1090 common = commands/sleep.c;
1091 };
1092
1093 module = {
1094 name = smbios;
1095
1096 common = commands/smbios.c;
1097 efi = commands/efi/smbios.c;
1098 i386_pc = commands/i386/pc/smbios.c;
1099 i386_coreboot = commands/i386/pc/smbios.c;
1100 i386_multiboot = commands/i386/pc/smbios.c;
1101
1102 enable = efi;
1103 enable = i386_pc;
1104 enable = i386_coreboot;
1105 enable = i386_multiboot;
1106 };
1107
1108 module = {
1109 name = suspend;
1110 ieee1275 = commands/ieee1275/suspend.c;
1111 enable = i386_ieee1275;
1112 enable = powerpc_ieee1275;
1113 };
1114
1115 module = {
1116 name = escc;
1117 ieee1275 = term/ieee1275/escc.c;
1118 enable = powerpc_ieee1275;
1119 };
1120
1121 module = {
1122 name = terminal;
1123 common = commands/terminal.c;
1124 };
1125
1126 module = {
1127 name = test;
1128 common = commands/test.c;
1129 };
1130
1131 module = {
1132 name = true;
1133 common = commands/true.c;
1134 };
1135
1136 module = {
1137 name = usbtest;
1138 common = commands/usbtest.c;
1139 enable = usb;
1140 };
1141
1142 module = {
1143 name = videoinfo;
1144 common = commands/videoinfo.c;
1145 };
1146
1147 module = {
1148 name = videotest;
1149 common = commands/videotest.c;
1150 };
1151
1152 module = {
1153 name = xnu_uuid;
1154 common = commands/xnu_uuid.c;
1155 };
1156
1157 module = {
1158 name = dm_nv;
1159 common = disk/dmraid_nvidia.c;
1160 };
1161
1162 module = {
1163 name = loopback;
1164 common = disk/loopback.c;
1165 };
1166
1167 module = {
1168 name = cryptodisk;
1169 common = disk/cryptodisk.c;
1170 };
1171
1172 module = {
1173 name = json;
1174 common = lib/json/json.c;
1175 };
1176
1177 module = {
1178 name = afsplitter;
1179 common = disk/AFSplitter.c;
1180 };
1181
1182 module = {
1183 name = luks;
1184 common = disk/luks.c;
1185 };
1186
1187 module = {
1188 name = luks2;
1189 common = disk/luks2.c;
1190 common = lib/gnulib/base64.c;
1191 cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
1192 cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB) -I$(srcdir)/lib/json';
1193 };
1194
1195 module = {
1196 name = geli;
1197 common = disk/geli.c;
1198 };
1199
1200 module = {
1201 name = lvm;
1202 common = disk/lvm.c;
1203 };
1204
1205 module = {
1206 name = ldm;
1207 common = disk/ldm.c;
1208 };
1209
1210 module = {
1211 name = mdraid09;
1212 common = disk/mdraid_linux.c;
1213 };
1214
1215 module = {
1216 name = mdraid09_be;
1217 common = disk/mdraid_linux_be.c;
1218 };
1219
1220 module = {
1221 name = mdraid1x;
1222 common = disk/mdraid1x_linux.c;
1223 };
1224
1225 module = {
1226 name = diskfilter;
1227 common = disk/diskfilter.c;
1228 };
1229
1230 module = {
1231 name = raid5rec;
1232 common = disk/raid5_recover.c;
1233 };
1234
1235 module = {
1236 name = raid6rec;
1237 common = disk/raid6_recover.c;
1238 };
1239
1240 module = {
1241 name = scsi;
1242 common = disk/scsi.c;
1243 };
1244
1245 module = {
1246 name = memdisk;
1247 common = disk/memdisk.c;
1248 };
1249
1250 module = {
1251 name = ata;
1252 common = disk/ata.c;
1253 enable = pci;
1254 enable = mips_qemu_mips;
1255 };
1256
1257 module = {
1258 name = ahci;
1259 common = disk/ahci.c;
1260 enable = pci;
1261 };
1262
1263 module = {
1264 name = pata;
1265 common = disk/pata.c;
1266 enable = pci;
1267 enable = mips_qemu_mips;
1268 };
1269
1270 module = {
1271 name = biosdisk;
1272 i386_pc = disk/i386/pc/biosdisk.c;
1273 enable = i386_pc;
1274 };
1275
1276 module = {
1277 name = usbms;
1278 common = disk/usbms.c;
1279 enable = usb;
1280 };
1281
1282 module = {
1283 name = nand;
1284 ieee1275 = disk/ieee1275/nand.c;
1285 enable = i386_ieee1275;
1286 };
1287
1288 module = {
1289 name = efiemu;
1290 common = efiemu/main.c;
1291 common = efiemu/i386/loadcore32.c;
1292 common = efiemu/i386/loadcore64.c;
1293 i386_pc = efiemu/i386/pc/cfgtables.c;
1294 i386_coreboot = efiemu/i386/pc/cfgtables.c;
1295 i386_multiboot = efiemu/i386/pc/cfgtables.c;
1296 i386_ieee1275 = efiemu/i386/nocfgtables.c;
1297 i386_qemu = efiemu/i386/nocfgtables.c;
1298 common = efiemu/mm.c;
1299 common = efiemu/loadcore_common.c;
1300 common = efiemu/symbols.c;
1301 common = efiemu/loadcore32.c;
1302 common = efiemu/loadcore64.c;
1303 common = efiemu/prepare32.c;
1304 common = efiemu/prepare64.c;
1305 common = efiemu/pnvram.c;
1306 common = efiemu/i386/coredetect.c;
1307
1308 extra_dist = efiemu/prepare.c;
1309 extra_dist = efiemu/loadcore.c;
1310 extra_dist = efiemu/runtime/efiemu.S;
1311 extra_dist = efiemu/runtime/efiemu.c;
1312
1313 enable = i386_pc;
1314 enable = i386_coreboot;
1315 enable = i386_ieee1275;
1316 enable = i386_multiboot;
1317 enable = i386_qemu;
1318 };
1319
1320 module = {
1321 name = font;
1322 common = font/font.c;
1323 common = font/font_cmd.c;
1324 enable = videomodules;
1325 };
1326
1327 module = {
1328 name = procfs;
1329 common = fs/proc.c;
1330 };
1331
1332 module = {
1333 name = affs;
1334 common = fs/affs.c;
1335 };
1336
1337 module = {
1338 name = afs;
1339 common = fs/afs.c;
1340 };
1341
1342 module = {
1343 name = bfs;
1344 common = fs/bfs.c;
1345 };
1346
1347 module = {
1348 name = zstd;
1349 common = lib/zstd/debug.c;
1350 common = lib/zstd/entropy_common.c;
1351 common = lib/zstd/error_private.c;
1352 common = lib/zstd/fse_decompress.c;
1353 common = lib/zstd/huf_decompress.c;
1354 common = lib/zstd/module.c;
1355 common = lib/zstd/xxhash.c;
1356 common = lib/zstd/zstd_common.c;
1357 common = lib/zstd/zstd_decompress.c;
1358 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1359 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/zstd';
1360 };
1361
1362 module = {
1363 name = btrfs;
1364 common = fs/btrfs.c;
1365 common = lib/crc.c;
1366 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1367 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -I$(srcdir)/lib/zstd -DMINILZO_HAVE_CONFIG_H';
1368 };
1369
1370 module = {
1371 name = archelp;
1372 common = fs/archelp.c;
1373 };
1374
1375 module = {
1376 name = cbfs;
1377 common = fs/cbfs.c;
1378 };
1379
1380 module = {
1381 name = cpio;
1382 common = fs/cpio.c;
1383 };
1384
1385 module = {
1386 name = cpio_be;
1387 common = fs/cpio_be.c;
1388 };
1389
1390 module = {
1391 name = newc;
1392 common = fs/newc.c;
1393 };
1394
1395 module = {
1396 name = odc;
1397 common = fs/odc.c;
1398 };
1399
1400 module = {
1401 name = ext2;
1402 common = fs/ext2.c;
1403 };
1404
1405 module = {
1406 name = fat;
1407 common = fs/fat.c;
1408 };
1409
1410 module = {
1411 name = exfat;
1412 common = fs/exfat.c;
1413 };
1414
1415 module = {
1416 name = f2fs;
1417 common = fs/f2fs.c;
1418 };
1419
1420 module = {
1421 name = fshelp;
1422 common = fs/fshelp.c;
1423 };
1424
1425 module = {
1426 name = hfs;
1427 common = fs/hfs.c;
1428 };
1429
1430 module = {
1431 name = hfsplus;
1432 common = fs/hfsplus.c;
1433 };
1434
1435 module = {
1436 name = hfspluscomp;
1437 common = fs/hfspluscomp.c;
1438 };
1439
1440 module = {
1441 name = iso9660;
1442 common = fs/iso9660.c;
1443 };
1444
1445 module = {
1446 name = jfs;
1447 common = fs/jfs.c;
1448 };
1449
1450 module = {
1451 name = minix;
1452 common = fs/minix.c;
1453 };
1454
1455 module = {
1456 name = minix2;
1457 common = fs/minix2.c;
1458 };
1459
1460 module = {
1461 name = minix3;
1462 common = fs/minix3.c;
1463 };
1464
1465 module = {
1466 name = minix_be;
1467 common = fs/minix_be.c;
1468 };
1469
1470 module = {
1471 name = minix2_be;
1472 common = fs/minix2_be.c;
1473 };
1474
1475 module = {
1476 name = minix3_be;
1477 common = fs/minix3_be.c;
1478 };
1479
1480 module = {
1481 name = nilfs2;
1482 common = fs/nilfs2.c;
1483 };
1484
1485 module = {
1486 name = ntfs;
1487 common = fs/ntfs.c;
1488 };
1489
1490 module = {
1491 name = ntfscomp;
1492 common = fs/ntfscomp.c;
1493 };
1494
1495 module = {
1496 name = reiserfs;
1497 common = fs/reiserfs.c;
1498 };
1499
1500 module = {
1501 name = romfs;
1502 common = fs/romfs.c;
1503 };
1504
1505 module = {
1506 name = sfs;
1507 common = fs/sfs.c;
1508 };
1509
1510 module = {
1511 name = squash4;
1512 common = fs/squash4.c;
1513 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1514 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
1515 };
1516
1517 module = {
1518 name = tar;
1519 common = fs/tar.c;
1520 };
1521
1522 module = {
1523 name = udf;
1524 common = fs/udf.c;
1525 };
1526
1527 module = {
1528 name = ufs1;
1529 common = fs/ufs.c;
1530 };
1531
1532 module = {
1533 name = ufs1_be;
1534 common = fs/ufs_be.c;
1535 };
1536
1537 module = {
1538 name = ufs2;
1539 common = fs/ufs2.c;
1540 };
1541
1542 module = {
1543 name = xfs;
1544 common = fs/xfs.c;
1545 };
1546
1547 module = {
1548 name = zfs;
1549 common = fs/zfs/zfs.c;
1550 common = fs/zfs/zfs_lzjb.c;
1551 common = fs/zfs/zfs_lz4.c;
1552 common = fs/zfs/zfs_sha256.c;
1553 common = fs/zfs/zfs_fletcher.c;
1554 };
1555
1556 module = {
1557 name = zfscrypt;
1558 common = fs/zfs/zfscrypt.c;
1559 };
1560
1561 module = {
1562 name = zfsinfo;
1563 common = fs/zfs/zfsinfo.c;
1564 };
1565
1566 module = {
1567 name = macbless;
1568 common = commands/macbless.c;
1569 };
1570
1571 module = {
1572 name = pxe;
1573 i386_pc = net/drivers/i386/pc/pxe.c;
1574 enable = i386_pc;
1575 };
1576
1577 module = {
1578 name = gettext;
1579 common = gettext/gettext.c;
1580 };
1581
1582 module = {
1583 name = gfxmenu;
1584 common = gfxmenu/gfxmenu.c;
1585 common = gfxmenu/view.c;
1586 common = gfxmenu/font.c;
1587 common = gfxmenu/icon_manager.c;
1588 common = gfxmenu/theme_loader.c;
1589 common = gfxmenu/widget-box.c;
1590 common = gfxmenu/gui_canvas.c;
1591 common = gfxmenu/gui_circular_progress.c;
1592 common = gfxmenu/gui_box.c;
1593 common = gfxmenu/gui_label.c;
1594 common = gfxmenu/gui_list.c;
1595 common = gfxmenu/gui_image.c;
1596 common = gfxmenu/gui_progress_bar.c;
1597 common = gfxmenu/gui_util.c;
1598 common = gfxmenu/gui_string_util.c;
1599 };
1600
1601 module = {
1602 name = hello;
1603 common = hello/hello.c;
1604 };
1605
1606 module = {
1607 name = gzio;
1608 common = io/gzio.c;
1609 };
1610
1611 module = {
1612 name = offsetio;
1613 common = io/offset.c;
1614 };
1615
1616 module = {
1617 name = bufio;
1618 common = io/bufio.c;
1619 enable = videomodules;
1620 };
1621
1622 module = {
1623 name = elf;
1624 common = kern/elf.c;
1625
1626 extra_dist = kern/elfXX.c;
1627 };
1628
1629 module = {
1630 name = crypto;
1631 common = lib/crypto.c;
1632
1633 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1634 };
1635
1636 module = {
1637 name = pbkdf2;
1638 common = lib/pbkdf2.c;
1639 };
1640
1641 module = {
1642 name = relocator;
1643 common = lib/relocator.c;
1644 x86 = lib/i386/relocator16.S;
1645 x86 = lib/i386/relocator32.S;
1646 x86 = lib/i386/relocator64.S;
1647 i386_xen_pvh = lib/i386/relocator16.S;
1648 i386_xen_pvh = lib/i386/relocator32.S;
1649 i386_xen_pvh = lib/i386/relocator64.S;
1650 i386 = lib/i386/relocator_asm.S;
1651 i386_xen_pvh = lib/i386/relocator_asm.S;
1652 x86_64 = lib/x86_64/relocator_asm.S;
1653 i386_xen = lib/i386/relocator_asm.S;
1654 x86_64_xen = lib/x86_64/relocator_asm.S;
1655 x86 = lib/i386/relocator.c;
1656 x86 = lib/i386/relocator_common_c.c;
1657 i386_xen_pvh = lib/i386/relocator.c;
1658 i386_xen_pvh = lib/i386/relocator_common_c.c;
1659 ieee1275 = lib/ieee1275/relocator.c;
1660 efi = lib/efi/relocator.c;
1661 mips = lib/mips/relocator_asm.S;
1662 mips = lib/mips/relocator.c;
1663 powerpc = lib/powerpc/relocator_asm.S;
1664 powerpc = lib/powerpc/relocator.c;
1665 xen = lib/xen/relocator.c;
1666 i386_xen = lib/i386/xen/relocator.S;
1667 x86_64_xen = lib/x86_64/xen/relocator.S;
1668 xen = lib/i386/relocator_common_c.c;
1669 x86_64_efi = lib/x86_64/efi/relocator.c;
1670
1671 extra_dist = lib/i386/relocator_common.S;
1672 extra_dist = kern/powerpc/cache_flush.S;
1673
1674 enable = mips;
1675 enable = powerpc;
1676 enable = x86;
1677 enable = i386_xen_pvh;
1678 enable = xen;
1679 };
1680
1681 module = {
1682 name = datetime;
1683 common = lib/datetime.c;
1684 cmos = lib/cmos_datetime.c;
1685 efi = lib/efi/datetime.c;
1686 uboot = lib/dummy/datetime.c;
1687 arm_coreboot = lib/dummy/datetime.c;
1688 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1689 powerpc_ieee1275 = lib/ieee1275/datetime.c;
1690 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1691 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1692 xen = lib/xen/datetime.c;
1693 i386_xen_pvh = lib/xen/datetime.c;
1694
1695 mips_arc = lib/arc/datetime.c;
1696 };
1697
1698 module = {
1699 name = setjmp;
1700 common = lib/setjmp.S;
1701 extra_dist = lib/i386/setjmp.S;
1702 extra_dist = lib/mips/setjmp.S;
1703 extra_dist = lib/x86_64/setjmp.S;
1704 extra_dist = lib/sparc64/setjmp.S;
1705 extra_dist = lib/powerpc/setjmp.S;
1706 extra_dist = lib/ia64/setjmp.S;
1707 extra_dist = lib/ia64/longjmp.S;
1708 extra_dist = lib/arm/setjmp.S;
1709 extra_dist = lib/arm64/setjmp.S;
1710 extra_dist = lib/riscv/setjmp.S;
1711 };
1712
1713 module = {
1714 name = aout;
1715 common = loader/aout.c;
1716 enable = x86;
1717 };
1718
1719 module = {
1720 name = bsd;
1721 x86 = loader/i386/bsd.c;
1722 x86 = loader/i386/bsd32.c;
1723 x86 = loader/i386/bsd64.c;
1724
1725 extra_dist = loader/i386/bsdXX.c;
1726 extra_dist = loader/i386/bsd_pagetable.c;
1727
1728 enable = x86;
1729 };
1730
1731 module = {
1732 name = plan9;
1733 i386_pc = loader/i386/pc/plan9.c;
1734 enable = i386_pc;
1735 };
1736
1737
1738 module = {
1739 name = linux16;
1740 common = loader/i386/pc/linux.c;
1741 enable = x86;
1742 };
1743
1744 module = {
1745 name = ntldr;
1746 i386_pc = loader/i386/pc/ntldr.c;
1747 enable = i386_pc;
1748 };
1749
1750
1751 module = {
1752 name = truecrypt;
1753 i386_pc = loader/i386/pc/truecrypt.c;
1754 enable = i386_pc;
1755 };
1756
1757
1758 module = {
1759 name = freedos;
1760 i386_pc = loader/i386/pc/freedos.c;
1761 enable = i386_pc;
1762 };
1763
1764 module = {
1765 name = pxechain;
1766 i386_pc = loader/i386/pc/pxechainloader.c;
1767 enable = i386_pc;
1768 };
1769
1770 module = {
1771 name = multiboot2;
1772 cppflags = "-DGRUB_USE_MULTIBOOT2";
1773
1774 common = loader/multiboot.c;
1775 common = loader/multiboot_mbi2.c;
1776 enable = x86;
1777 enable = i386_xen_pvh;
1778 enable = mips;
1779 };
1780
1781 module = {
1782 name = multiboot;
1783 common = loader/multiboot.c;
1784 x86 = loader/i386/multiboot_mbi.c;
1785 i386_xen_pvh = loader/i386/multiboot_mbi.c;
1786 extra_dist = loader/multiboot_elfxx.c;
1787 enable = x86;
1788 enable = i386_xen_pvh;
1789 };
1790
1791 module = {
1792 name = xen_boot;
1793 arm64 = loader/arm64/xen_boot.c;
1794 enable = arm64;
1795 };
1796
1797 module = {
1798 name = linux;
1799 x86 = loader/i386/linux.c;
1800 i386_xen_pvh = loader/i386/linux.c;
1801 xen = loader/i386/xen.c;
1802 i386_pc = lib/i386/pc/vesa_modes_table.c;
1803 i386_xen_pvh = lib/i386/pc/vesa_modes_table.c;
1804 mips = loader/mips/linux.c;
1805 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1806 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
1807 ia64_efi = loader/ia64/efi/linux.c;
1808 arm_coreboot = loader/arm/linux.c;
1809 arm_efi = loader/arm64/linux.c;
1810 arm_uboot = loader/arm/linux.c;
1811 arm64 = loader/arm64/linux.c;
1812 riscv32 = loader/riscv/linux.c;
1813 riscv64 = loader/riscv/linux.c;
1814 common = loader/linux.c;
1815 common = lib/cmdline.c;
1816 enable = noemu;
1817 };
1818
1819 module = {
1820 name = fdt;
1821 efi = loader/efi/fdt.c;
1822 common = lib/fdt.c;
1823 enable = fdt;
1824 };
1825
1826 module = {
1827 name = xnu;
1828 x86 = loader/xnu_resume.c;
1829 x86 = loader/i386/xnu.c;
1830 x86 = loader/xnu.c;
1831
1832 /* Code is pretty generic but relies on RNG which
1833 is available only on few platforms. It's not a
1834 big deal as xnu needs ACPI anyway and we have
1835 RNG on all platforms with ACPI.
1836 */
1837 enable = i386_multiboot;
1838 enable = i386_coreboot;
1839 enable = i386_pc;
1840 enable = i386_efi;
1841 enable = x86_64_efi;
1842 };
1843
1844 module = {
1845 name = random;
1846 x86 = lib/i386/random.c;
1847 common = lib/random.c;
1848
1849 i386_multiboot = kern/i386/tsc_pmtimer.c;
1850 i386_coreboot = kern/i386/tsc_pmtimer.c;
1851 i386_pc = kern/i386/tsc_pmtimer.c;
1852
1853 enable = i386_multiboot;
1854 enable = i386_coreboot;
1855 enable = i386_pc;
1856 enable = i386_efi;
1857 enable = x86_64_efi;
1858 };
1859
1860 module = {
1861 name = macho;
1862
1863 common = loader/macho.c;
1864 common = loader/macho32.c;
1865 common = loader/macho64.c;
1866 common = loader/lzss.c;
1867 extra_dist = loader/machoXX.c;
1868 };
1869
1870 module = {
1871 name = appleldr;
1872 common = loader/efi/appleloader.c;
1873 enable = i386_efi;
1874 enable = x86_64_efi;
1875 };
1876
1877 module = {
1878 name = chain;
1879 efi = loader/efi/chainloader.c;
1880 i386_pc = loader/i386/pc/chainloader.c;
1881 i386_coreboot = loader/i386/coreboot/chainloader.c;
1882 i386_coreboot = lib/LzmaDec.c;
1883 enable = i386_pc;
1884 enable = i386_coreboot;
1885 enable = efi;
1886 };
1887
1888 module = {
1889 name = mmap;
1890 common = mmap/mmap.c;
1891 x86 = mmap/i386/uppermem.c;
1892 x86 = mmap/i386/mmap.c;
1893 i386_xen_pvh = mmap/i386/uppermem.c;
1894 i386_xen_pvh = mmap/i386/mmap.c;
1895
1896 i386_pc = mmap/i386/pc/mmap.c;
1897 i386_pc = mmap/i386/pc/mmap_helper.S;
1898
1899 efi = mmap/efi/mmap.c;
1900
1901 mips = mmap/mips/uppermem.c;
1902
1903 enable = x86;
1904 enable = i386_xen_pvh;
1905 enable = ia64_efi;
1906 enable = arm_efi;
1907 enable = arm64_efi;
1908 enable = riscv32_efi;
1909 enable = riscv64_efi;
1910 enable = mips;
1911 };
1912
1913 module = {
1914 name = normal;
1915 common = normal/main.c;
1916 common = normal/cmdline.c;
1917 common = normal/dyncmd.c;
1918 common = normal/auth.c;
1919 common = normal/autofs.c;
1920 common = normal/color.c;
1921 common = normal/completion.c;
1922 common = normal/menu.c;
1923 common = normal/menu_entry.c;
1924 common = normal/menu_text.c;
1925 common = normal/misc.c;
1926 common = normal/crypto.c;
1927 common = normal/term.c;
1928 common = normal/context.c;
1929 common = normal/charset.c;
1930 common = lib/getline.c;
1931
1932 common = script/main.c;
1933 common = script/script.c;
1934 common = script/execute.c;
1935 common = script/function.c;
1936 common = script/lexer.c;
1937 common = script/argv.c;
1938
1939 common = commands/menuentry.c;
1940
1941 common = unidata.c;
1942 common_nodist = grub_script.tab.c;
1943 common_nodist = grub_script.yy.c;
1944 common_nodist = grub_script.tab.h;
1945 common_nodist = grub_script.yy.h;
1946
1947 extra_dist = script/yylex.l;
1948 extra_dist = script/parser.y;
1949
1950 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
1951 cppflags = '$(CPPFLAGS_POSIX)';
1952 };
1953
1954 module = {
1955 name = part_acorn;
1956 common = partmap/acorn.c;
1957 };
1958
1959 module = {
1960 name = part_amiga;
1961 common = partmap/amiga.c;
1962 };
1963
1964 module = {
1965 name = part_apple;
1966 common = partmap/apple.c;
1967 };
1968
1969 module = {
1970 name = part_gpt;
1971 common = partmap/gpt.c;
1972 };
1973
1974 module = {
1975 name = part_msdos;
1976 common = partmap/msdos.c;
1977 };
1978
1979 module = {
1980 name = part_sun;
1981 common = partmap/sun.c;
1982 };
1983
1984 module = {
1985 name = part_plan;
1986 common = partmap/plan.c;
1987 };
1988
1989 module = {
1990 name = part_dvh;
1991 common = partmap/dvh.c;
1992 };
1993
1994 module = {
1995 name = part_bsd;
1996 common = partmap/bsdlabel.c;
1997 };
1998
1999 module = {
2000 name = part_sunpc;
2001 common = partmap/sunpc.c;
2002 };
2003
2004 module = {
2005 name = part_dfly;
2006 common = partmap/dfly.c;
2007 };
2008
2009 module = {
2010 name = msdospart;
2011 common = parttool/msdospart.c;
2012 };
2013
2014 module = {
2015 name = at_keyboard;
2016 common = term/at_keyboard.c;
2017 common = term/ps2.c;
2018 enable = x86;
2019 };
2020
2021 module = {
2022 name = gfxterm;
2023 common = term/gfxterm.c;
2024 enable = videomodules;
2025 };
2026
2027 module = {
2028 name = gfxterm_background;
2029 common = term/gfxterm_background.c;
2030 };
2031
2032 module = {
2033 name = serial;
2034 common = term/serial.c;
2035 x86 = term/ns8250.c;
2036 ieee1275 = term/ieee1275/serial.c;
2037 mips_arc = term/arc/serial.c;
2038 efi = term/efi/serial.c;
2039
2040 enable = terminfomodule;
2041 enable = ieee1275;
2042 enable = mips_arc;
2043 };
2044
2045 module = {
2046 name = sendkey;
2047 i386_pc = commands/i386/pc/sendkey.c;
2048 enable = i386_pc;
2049 };
2050
2051 module = {
2052 name = terminfo;
2053 common = term/terminfo.c;
2054 common = term/tparm.c;
2055 enable = terminfomodule;
2056 };
2057
2058 module = {
2059 name = usb_keyboard;
2060 common = term/usb_keyboard.c;
2061 enable = usb;
2062 };
2063
2064 module = {
2065 name = vga;
2066 common = video/i386/pc/vga.c;
2067 enable = i386_pc;
2068 };
2069
2070 module = {
2071 name = vga_text;
2072 common = term/i386/pc/vga_text.c;
2073 enable = i386_pc;
2074 };
2075
2076 module = {
2077 name = mda_text;
2078 common = term/i386/pc/mda_text.c;
2079 enable = i386_pc;
2080 enable = i386_coreboot_multiboot_qemu;
2081 };
2082
2083 module = {
2084 name = video_cirrus;
2085 x86 = video/cirrus.c;
2086 enable = x86;
2087 };
2088
2089 module = {
2090 name = video_bochs;
2091 x86 = video/bochs.c;
2092 enable = x86;
2093 };
2094
2095 module = {
2096 name = functional_test;
2097 common = tests/lib/functional_test.c;
2098 common = tests/lib/test.c;
2099 common = tests/checksums.h;
2100 common = tests/video_checksum.c;
2101 common = tests/fake_input.c;
2102 common = video/capture.c;
2103 };
2104
2105 module = {
2106 name = exfctest;
2107 common = tests/example_functional_test.c;
2108 };
2109
2110 module = {
2111 name = strtoull_test;
2112 common = tests/strtoull_test.c;
2113 };
2114
2115 module = {
2116 name = setjmp_test;
2117 common = tests/setjmp_test.c;
2118 };
2119
2120 module = {
2121 name = signature_test;
2122 common = tests/signature_test.c;
2123 common = tests/signatures.h;
2124 };
2125
2126 module = {
2127 name = sleep_test;
2128 common = tests/sleep_test.c;
2129 };
2130
2131 module = {
2132 name = xnu_uuid_test;
2133 common = tests/xnu_uuid_test.c;
2134 };
2135
2136 module = {
2137 name = pbkdf2_test;
2138 common = tests/pbkdf2_test.c;
2139 };
2140
2141 module = {
2142 name = legacy_password_test;
2143 common = tests/legacy_password_test.c;
2144 enable = i386_pc;
2145 enable = i386_xen_pvh;
2146 enable = i386_efi;
2147 enable = x86_64_efi;
2148 enable = emu;
2149 enable = xen;
2150 };
2151
2152 module = {
2153 name = div;
2154 common = lib/division.c;
2155 enable = no_softdiv;
2156 };
2157
2158 module = {
2159 name = div_test;
2160 common = tests/div_test.c;
2161 };
2162
2163 module = {
2164 name = mul_test;
2165 common = tests/mul_test.c;
2166 };
2167
2168 module = {
2169 name = shift_test;
2170 common = tests/shift_test.c;
2171 };
2172
2173 module = {
2174 name = cmp_test;
2175 common = tests/cmp_test.c;
2176 };
2177
2178 module = {
2179 name = ctz_test;
2180 common = tests/ctz_test.c;
2181 };
2182
2183 module = {
2184 name = bswap_test;
2185 common = tests/bswap_test.c;
2186 };
2187
2188 module = {
2189 name = videotest_checksum;
2190 common = tests/videotest_checksum.c;
2191 };
2192
2193 module = {
2194 name = gfxterm_menu;
2195 common = tests/gfxterm_menu.c;
2196 };
2197
2198 module = {
2199 name = cmdline_cat_test;
2200 common = tests/cmdline_cat_test.c;
2201 };
2202
2203 module = {
2204 name = bitmap;
2205 common = video/bitmap.c;
2206 };
2207
2208 module = {
2209 name = bitmap_scale;
2210 common = video/bitmap_scale.c;
2211 };
2212
2213 module = {
2214 name = efi_gop;
2215 efi = video/efi_gop.c;
2216 enable = efi;
2217 };
2218
2219 module = {
2220 name = efi_uga;
2221 efi = video/efi_uga.c;
2222 enable = i386_efi;
2223 enable = x86_64_efi;
2224 };
2225
2226 module = {
2227 name = jpeg;
2228 common = video/readers/jpeg.c;
2229 };
2230
2231 module = {
2232 name = png;
2233 common = video/readers/png.c;
2234 };
2235
2236 module = {
2237 name = tga;
2238 common = video/readers/tga.c;
2239 };
2240
2241 module = {
2242 name = vbe;
2243 common = video/i386/pc/vbe.c;
2244 enable = i386_pc;
2245 };
2246
2247 module = {
2248 name = video_fb;
2249 common = video/fb/video_fb.c;
2250 common = video/fb/fbblit.c;
2251 common = video/fb/fbfill.c;
2252 common = video/fb/fbutil.c;
2253 enable = videomodules;
2254 };
2255
2256 module = {
2257 name = video;
2258 common = video/video.c;
2259 enable = videomodules;
2260 };
2261
2262 module = {
2263 name = video_colors;
2264 common = video/colors.c;
2265 };
2266
2267 module = {
2268 name = ieee1275_fb;
2269 ieee1275 = video/ieee1275.c;
2270 enable = powerpc_ieee1275;
2271 };
2272
2273 module = {
2274 name = sdl;
2275 emu = video/emu/sdl.c;
2276 enable = emu;
2277 condition = COND_GRUB_EMU_SDL;
2278 };
2279
2280 module = {
2281 name = datehook;
2282 common = hook/datehook.c;
2283 };
2284
2285 module = {
2286 name = net;
2287 common = net/net.c;
2288 common = net/dns.c;
2289 common = net/bootp.c;
2290 common = net/ip.c;
2291 common = net/udp.c;
2292 common = net/tcp.c;
2293 common = net/icmp.c;
2294 common = net/icmp6.c;
2295 common = net/ethernet.c;
2296 common = net/arp.c;
2297 common = net/netbuff.c;
2298 };
2299
2300 module = {
2301 name = tftp;
2302 common = net/tftp.c;
2303 };
2304
2305 module = {
2306 name = http;
2307 common = net/http.c;
2308 };
2309
2310 module = {
2311 name = ofnet;
2312 common = net/drivers/ieee1275/ofnet.c;
2313 enable = ieee1275;
2314 };
2315
2316 module = {
2317 name = ubootnet;
2318 common = net/drivers/uboot/ubootnet.c;
2319 enable = uboot;
2320 };
2321
2322 module = {
2323 name = efinet;
2324 common = net/drivers/efi/efinet.c;
2325 enable = efi;
2326 };
2327
2328 module = {
2329 name = emunet;
2330 emu = net/drivers/emu/emunet.c;
2331 enable = emu;
2332 };
2333
2334 module = {
2335 name = legacycfg;
2336 common = commands/legacycfg.c;
2337 common = lib/legacy_parse.c;
2338 emu = lib/i386/pc/vesa_modes_table.c;
2339 i386_efi = lib/i386/pc/vesa_modes_table.c;
2340 x86_64_efi = lib/i386/pc/vesa_modes_table.c;
2341 xen = lib/i386/pc/vesa_modes_table.c;
2342
2343 enable = i386_pc;
2344 enable = i386_xen_pvh;
2345 enable = i386_efi;
2346 enable = x86_64_efi;
2347 enable = emu;
2348 enable = xen;
2349 };
2350
2351 module = {
2352 name = syslinuxcfg;
2353 common = lib/syslinux_parse.c;
2354 common = commands/syslinuxcfg.c;
2355 };
2356
2357 module = {
2358 name = test_blockarg;
2359 common = tests/test_blockarg.c;
2360 };
2361
2362 module = {
2363 name = xzio;
2364 common = io/xzio.c;
2365 common = lib/xzembed/xz_dec_bcj.c;
2366 common = lib/xzembed/xz_dec_lzma2.c;
2367 common = lib/xzembed/xz_dec_stream.c;
2368 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
2369 cflags='-Wno-unreachable-code';
2370 };
2371
2372 module = {
2373 name = lzopio;
2374 common = io/lzopio.c;
2375 common = lib/minilzo/minilzo.c;
2376 cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
2377 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
2378 };
2379
2380 module = {
2381 name = testload;
2382 common = commands/testload.c;
2383 };
2384
2385 module = {
2386 name = backtrace;
2387 x86 = lib/i386/backtrace.c;
2388 i386_xen_pvh = lib/i386/backtrace.c;
2389 i386_xen = lib/i386/backtrace.c;
2390 x86_64_xen = lib/i386/backtrace.c;
2391 common = lib/backtrace.c;
2392 enable = x86;
2393 enable = i386_xen_pvh;
2394 enable = i386_xen;
2395 enable = x86_64_xen;
2396 };
2397
2398 module = {
2399 name = lsapm;
2400 common = commands/i386/pc/lsapm.c;
2401 enable = i386_pc;
2402 };
2403
2404 module = {
2405 name = keylayouts;
2406 common = commands/keylayouts.c;
2407 enable = x86;
2408 };
2409
2410 module = {
2411 name = priority_queue;
2412 common = lib/priority_queue.c;
2413 };
2414
2415 module = {
2416 name = time;
2417 common = commands/time.c;
2418 };
2419
2420 module = {
2421 name = cacheinfo;
2422 common = commands/cacheinfo.c;
2423 condition = COND_ENABLE_CACHE_STATS;
2424 };
2425
2426 module = {
2427 name = boottime;
2428 common = commands/boottime.c;
2429 condition = COND_ENABLE_BOOT_TIME_STATS;
2430 };
2431
2432 module = {
2433 name = adler32;
2434 common = lib/adler32.c;
2435 };
2436
2437 module = {
2438 name = crc64;
2439 common = lib/crc64.c;
2440 };
2441
2442 module = {
2443 name = mpi;
2444 common = lib/libgcrypt-grub/mpi/mpiutil.c;
2445 common = lib/libgcrypt-grub/mpi/mpi-bit.c;
2446 common = lib/libgcrypt-grub/mpi/mpi-add.c;
2447 common = lib/libgcrypt-grub/mpi/mpi-mul.c;
2448 common = lib/libgcrypt-grub/mpi/mpi-mod.c;
2449 common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
2450 common = lib/libgcrypt-grub/mpi/mpi-div.c;
2451 common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
2452 common = lib/libgcrypt-grub/mpi/mpi-inv.c;
2453 common = lib/libgcrypt-grub/mpi/mpi-pow.c;
2454 common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
2455 common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
2456 common = lib/libgcrypt-grub/mpi/mpih-mul.c;
2457 common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
2458 common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
2459 common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
2460 common = lib/libgcrypt-grub/mpi/mpih-add1.c;
2461 common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
2462 common = lib/libgcrypt-grub/mpi/mpih-div.c;
2463 common = lib/libgcrypt-grub/mpi/mpicoder.c;
2464 common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
2465 common = lib/libgcrypt-grub/mpi/mpi-inline.c;
2466 common = lib/libgcrypt_wrap/mem.c;
2467
2468 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2469 cppflags = '$(CPPFLAGS_GCRY)';
2470 };
2471
2472 module = {
2473 name = all_video;
2474 common = lib/fake_module.c;
2475 };
2476
2477 module = {
2478 name = gdb;
2479 common = gdb/cstub.c;
2480 common = gdb/gdb.c;
2481 i386 = gdb/i386/idt.c;
2482 i386 = gdb/i386/machdep.S;
2483 i386 = gdb/i386/signal.c;
2484 enable = i386;
2485 };
2486
2487 module = {
2488 name = testspeed;
2489 common = commands/testspeed.c;
2490 };
2491
2492 module = {
2493 name = tpm;
2494 common = commands/tpm.c;
2495 efi = commands/efi/tpm.c;
2496 enable = efi;
2497 };
2498
2499 module = {
2500 name = tr;
2501 common = commands/tr.c;
2502 };
2503
2504 module = {
2505 name = progress;
2506 common = lib/progress.c;
2507 };
2508
2509 module = {
2510 name = file;
2511 common = commands/file.c;
2512 common = commands/file32.c;
2513 common = commands/file64.c;
2514 extra_dist = commands/fileXX.c;
2515 common = loader/i386/xen_file.c;
2516 common = loader/i386/xen_file32.c;
2517 common = loader/i386/xen_file64.c;
2518 extra_dist = loader/i386/xen_fileXX.c;
2519 };
2520 module = {
2521 name = rdmsr;
2522 common = commands/i386/rdmsr.c;
2523 enable = x86;
2524 };
2525 module = {
2526 name = wrmsr;
2527 common = commands/i386/wrmsr.c;
2528 enable = x86;
2529 };