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