]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - GRUB2/MOD_SRC/grub-2.04/grub-core/Makefile.core.def
1.0.67 release
[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/ventoy_browser.c;
1614 common = ventoy/lzx.c;
1615 common = ventoy/xpress.c;
1616 common = ventoy/huffman.c;
1617 common = ventoy/miniz.c;
1618 };
1619
1620 module = {
1621 name = setkey;
1622 common = term/setkey.c;
1623 };
1624
1625 module = {
1626 name = hello;
1627 common = hello/hello.c;
1628 };
1629
1630 module = {
1631 name = gzio;
1632 common = io/gzio.c;
1633 };
1634
1635 module = {
1636 name = offsetio;
1637 common = io/offset.c;
1638 };
1639
1640 module = {
1641 name = bufio;
1642 common = io/bufio.c;
1643 enable = videomodules;
1644 };
1645
1646 module = {
1647 name = elf;
1648 common = kern/elf.c;
1649
1650 extra_dist = kern/elfXX.c;
1651 };
1652
1653 module = {
1654 name = crypto;
1655 common = lib/crypto.c;
1656
1657 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1658 };
1659
1660 module = {
1661 name = pbkdf2;
1662 common = lib/pbkdf2.c;
1663 };
1664
1665 module = {
1666 name = relocator;
1667 common = lib/relocator.c;
1668 x86 = lib/i386/relocator16.S;
1669 x86 = lib/i386/relocator32.S;
1670 x86 = lib/i386/relocator64.S;
1671 i386_xen_pvh = lib/i386/relocator16.S;
1672 i386_xen_pvh = lib/i386/relocator32.S;
1673 i386_xen_pvh = lib/i386/relocator64.S;
1674 i386 = lib/i386/relocator_asm.S;
1675 i386_xen_pvh = lib/i386/relocator_asm.S;
1676 x86_64 = lib/x86_64/relocator_asm.S;
1677 i386_xen = lib/i386/relocator_asm.S;
1678 x86_64_xen = lib/x86_64/relocator_asm.S;
1679 x86 = lib/i386/relocator.c;
1680 x86 = lib/i386/relocator_common_c.c;
1681 i386_xen_pvh = lib/i386/relocator.c;
1682 i386_xen_pvh = lib/i386/relocator_common_c.c;
1683 ieee1275 = lib/ieee1275/relocator.c;
1684 efi = lib/efi/relocator.c;
1685 mips = lib/mips/relocator_asm.S;
1686 mips = lib/mips/relocator.c;
1687 mips64 = lib/mips64/relocator_asm.S;
1688 mips64 = lib/mips64/relocator.c;
1689 powerpc = lib/powerpc/relocator_asm.S;
1690 powerpc = lib/powerpc/relocator.c;
1691 xen = lib/xen/relocator.c;
1692 i386_xen = lib/i386/xen/relocator.S;
1693 x86_64_xen = lib/x86_64/xen/relocator.S;
1694 xen = lib/i386/relocator_common_c.c;
1695 x86_64_efi = lib/x86_64/efi/relocator.c;
1696
1697 extra_dist = lib/i386/relocator_common.S;
1698 extra_dist = kern/powerpc/cache_flush.S;
1699
1700 enable = mips;
1701 enable = mips64;
1702 enable = powerpc;
1703 enable = x86;
1704 enable = i386_xen_pvh;
1705 enable = xen;
1706 };
1707
1708 module = {
1709 name = datetime;
1710 cmos = lib/cmos_datetime.c;
1711 efi = lib/efi/datetime.c;
1712 uboot = lib/dummy/datetime.c;
1713 arm_coreboot = lib/dummy/datetime.c;
1714 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1715 powerpc_ieee1275 = lib/ieee1275/datetime.c;
1716 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1717 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1718 xen = lib/xen/datetime.c;
1719 i386_xen_pvh = lib/xen/datetime.c;
1720
1721 mips_arc = lib/arc/datetime.c;
1722 enable = noemu;
1723 };
1724
1725 module = {
1726 name = setjmp;
1727 common = lib/setjmp.S;
1728 extra_dist = lib/i386/setjmp.S;
1729 extra_dist = lib/mips/setjmp.S;
1730 extra_dist = lib/x86_64/setjmp.S;
1731 extra_dist = lib/sparc64/setjmp.S;
1732 extra_dist = lib/powerpc/setjmp.S;
1733 extra_dist = lib/ia64/setjmp.S;
1734 extra_dist = lib/ia64/longjmp.S;
1735 extra_dist = lib/arm/setjmp.S;
1736 extra_dist = lib/arm64/setjmp.S;
1737 extra_dist = lib/riscv/setjmp.S;
1738 };
1739
1740 module = {
1741 name = aout;
1742 common = loader/aout.c;
1743 enable = x86;
1744 };
1745
1746 module = {
1747 name = bsd;
1748 x86 = loader/i386/bsd.c;
1749 x86 = loader/i386/bsd32.c;
1750 x86 = loader/i386/bsd64.c;
1751
1752 extra_dist = loader/i386/bsdXX.c;
1753 extra_dist = loader/i386/bsd_pagetable.c;
1754
1755 enable = x86;
1756 };
1757
1758 module = {
1759 name = plan9;
1760 i386_pc = loader/i386/pc/plan9.c;
1761 enable = i386_pc;
1762 };
1763
1764
1765 module = {
1766 name = linux16;
1767 common = loader/i386/pc/linux.c;
1768 enable = x86;
1769 };
1770
1771 module = {
1772 name = ntldr;
1773 i386_pc = loader/i386/pc/ntldr.c;
1774 enable = i386_pc;
1775 };
1776
1777
1778 module = {
1779 name = truecrypt;
1780 i386_pc = loader/i386/pc/truecrypt.c;
1781 enable = i386_pc;
1782 };
1783
1784
1785 module = {
1786 name = freedos;
1787 i386_pc = loader/i386/pc/freedos.c;
1788 enable = i386_pc;
1789 };
1790
1791 module = {
1792 name = pxechain;
1793 i386_pc = loader/i386/pc/pxechainloader.c;
1794 enable = i386_pc;
1795 };
1796
1797 module = {
1798 name = multiboot2;
1799 cppflags = "-DGRUB_USE_MULTIBOOT2";
1800
1801 common = loader/multiboot.c;
1802 common = loader/multiboot_mbi2.c;
1803 enable = x86;
1804 enable = i386_xen_pvh;
1805 enable = mips;
1806 };
1807
1808 module = {
1809 name = multiboot;
1810 common = loader/multiboot.c;
1811 x86 = loader/i386/multiboot_mbi.c;
1812 i386_xen_pvh = loader/i386/multiboot_mbi.c;
1813 extra_dist = loader/multiboot_elfxx.c;
1814 enable = x86;
1815 enable = i386_xen_pvh;
1816 };
1817
1818 module = {
1819 name = xen_boot;
1820 arm64 = loader/arm64/xen_boot.c;
1821 enable = arm64;
1822 };
1823
1824 module = {
1825 name = linux;
1826 x86 = loader/i386/linux.c;
1827 i386_xen_pvh = loader/i386/linux.c;
1828 xen = loader/i386/xen.c;
1829 i386_pc = lib/i386/pc/vesa_modes_table.c;
1830 i386_xen_pvh = lib/i386/pc/vesa_modes_table.c;
1831 mips = loader/mips/linux.c;
1832 mips64 = loader/mips64/linux.c;
1833 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1834 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
1835 ia64_efi = loader/ia64/efi/linux.c;
1836 arm_coreboot = loader/arm/linux.c;
1837 arm_efi = loader/arm64/linux.c;
1838 arm_uboot = loader/arm/linux.c;
1839 arm64 = loader/arm64/linux.c;
1840 riscv32 = loader/riscv/linux.c;
1841 riscv64 = loader/riscv/linux.c;
1842 common = loader/linux.c;
1843 common = lib/cmdline.c;
1844 enable = noemu;
1845 };
1846
1847 module = {
1848 name = fdt;
1849 efi = loader/efi/fdt.c;
1850 common = lib/fdt.c;
1851 enable = fdt;
1852 };
1853
1854 module = {
1855 name = xnu;
1856 x86 = loader/xnu_resume.c;
1857 x86 = loader/i386/xnu.c;
1858 x86 = loader/xnu.c;
1859
1860 /* Code is pretty generic but relies on RNG which
1861 is available only on few platforms. It's not a
1862 big deal as xnu needs ACPI anyway and we have
1863 RNG on all platforms with ACPI.
1864 */
1865 enable = i386_multiboot;
1866 enable = i386_coreboot;
1867 enable = i386_pc;
1868 enable = i386_efi;
1869 enable = x86_64_efi;
1870 };
1871
1872 module = {
1873 name = random;
1874 x86 = lib/i386/random.c;
1875 common = lib/random.c;
1876
1877 i386_multiboot = kern/i386/tsc_pmtimer.c;
1878 i386_coreboot = kern/i386/tsc_pmtimer.c;
1879 i386_pc = kern/i386/tsc_pmtimer.c;
1880
1881 enable = i386_multiboot;
1882 enable = i386_coreboot;
1883 enable = i386_pc;
1884 enable = i386_efi;
1885 enable = x86_64_efi;
1886 };
1887
1888 module = {
1889 name = macho;
1890
1891 common = loader/macho.c;
1892 common = loader/macho32.c;
1893 common = loader/macho64.c;
1894 common = loader/lzss.c;
1895 extra_dist = loader/machoXX.c;
1896 };
1897
1898 module = {
1899 name = appleldr;
1900 common = loader/efi/appleloader.c;
1901 enable = i386_efi;
1902 enable = x86_64_efi;
1903 };
1904
1905 module = {
1906 name = chain;
1907 efi = loader/efi/chainloader.c;
1908 i386_pc = loader/i386/pc/chainloader.c;
1909 i386_coreboot = loader/i386/coreboot/chainloader.c;
1910 i386_coreboot = lib/LzmaDec.c;
1911 enable = i386_pc;
1912 enable = i386_coreboot;
1913 enable = efi;
1914 };
1915
1916 module = {
1917 name = mmap;
1918 common = mmap/mmap.c;
1919 x86 = mmap/i386/uppermem.c;
1920 x86 = mmap/i386/mmap.c;
1921 i386_xen_pvh = mmap/i386/uppermem.c;
1922 i386_xen_pvh = mmap/i386/mmap.c;
1923
1924 i386_pc = mmap/i386/pc/mmap.c;
1925 i386_pc = mmap/i386/pc/mmap_helper.S;
1926
1927 efi = mmap/efi/mmap.c;
1928
1929 mips = mmap/mips/uppermem.c;
1930
1931 enable = x86;
1932 enable = i386_xen_pvh;
1933 enable = ia64_efi;
1934 enable = arm_efi;
1935 enable = arm64_efi;
1936 enable = riscv32_efi;
1937 enable = riscv64_efi;
1938 enable = mips;
1939 enable = mips64_efi;
1940 };
1941
1942 module = {
1943 name = normal;
1944 common = normal/main.c;
1945 common = normal/cmdline.c;
1946 common = normal/dyncmd.c;
1947 common = normal/auth.c;
1948 common = normal/autofs.c;
1949 common = normal/color.c;
1950 common = normal/completion.c;
1951 common = normal/datetime.c;
1952 common = normal/menu.c;
1953 common = normal/menu_entry.c;
1954 common = normal/menu_text.c;
1955 common = normal/misc.c;
1956 common = normal/crypto.c;
1957 common = normal/term.c;
1958 common = normal/context.c;
1959 common = normal/charset.c;
1960 common = lib/getline.c;
1961
1962 common = script/main.c;
1963 common = script/script.c;
1964 common = script/execute.c;
1965 common = script/function.c;
1966 common = script/lexer.c;
1967 common = script/argv.c;
1968
1969 common = commands/menuentry.c;
1970
1971 common = unidata.c;
1972 common_nodist = grub_script.tab.c;
1973 common_nodist = grub_script.yy.c;
1974 common_nodist = grub_script.tab.h;
1975 common_nodist = grub_script.yy.h;
1976
1977 extra_dist = script/yylex.l;
1978 extra_dist = script/parser.y;
1979
1980 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
1981 cppflags = '$(CPPFLAGS_POSIX)';
1982 };
1983
1984 module = {
1985 name = part_acorn;
1986 common = partmap/acorn.c;
1987 };
1988
1989 module = {
1990 name = part_amiga;
1991 common = partmap/amiga.c;
1992 };
1993
1994 module = {
1995 name = part_apple;
1996 common = partmap/apple.c;
1997 };
1998
1999 module = {
2000 name = part_gpt;
2001 common = partmap/gpt.c;
2002 };
2003
2004 module = {
2005 name = part_msdos;
2006 common = partmap/msdos.c;
2007 };
2008
2009 module = {
2010 name = part_sun;
2011 common = partmap/sun.c;
2012 };
2013
2014 module = {
2015 name = part_plan;
2016 common = partmap/plan.c;
2017 };
2018
2019 module = {
2020 name = part_dvh;
2021 common = partmap/dvh.c;
2022 };
2023
2024 module = {
2025 name = part_bsd;
2026 common = partmap/bsdlabel.c;
2027 };
2028
2029 module = {
2030 name = part_sunpc;
2031 common = partmap/sunpc.c;
2032 };
2033
2034 module = {
2035 name = part_dfly;
2036 common = partmap/dfly.c;
2037 };
2038
2039 module = {
2040 name = msdospart;
2041 common = parttool/msdospart.c;
2042 };
2043
2044 module = {
2045 name = at_keyboard;
2046 common = term/at_keyboard.c;
2047 common = term/ps2.c;
2048 enable = x86;
2049 };
2050
2051 module = {
2052 name = gfxterm;
2053 common = term/gfxterm.c;
2054 enable = videomodules;
2055 };
2056
2057 module = {
2058 name = gfxterm_background;
2059 common = term/gfxterm_background.c;
2060 };
2061
2062 module = {
2063 name = serial;
2064 common = term/serial.c;
2065 x86 = term/ns8250.c;
2066 ieee1275 = term/ieee1275/serial.c;
2067 mips_arc = term/arc/serial.c;
2068 efi = term/efi/serial.c;
2069
2070 enable = terminfomodule;
2071 enable = ieee1275;
2072 enable = mips_arc;
2073 };
2074
2075 module = {
2076 name = sendkey;
2077 i386_pc = commands/i386/pc/sendkey.c;
2078 enable = i386_pc;
2079 };
2080
2081 module = {
2082 name = terminfo;
2083 common = term/terminfo.c;
2084 common = term/tparm.c;
2085 enable = terminfomodule;
2086 };
2087
2088 module = {
2089 name = usb_keyboard;
2090 common = term/usb_keyboard.c;
2091 enable = usb;
2092 };
2093
2094 module = {
2095 name = vga;
2096 common = video/i386/pc/vga.c;
2097 enable = i386_pc;
2098 };
2099
2100 module = {
2101 name = vga_text;
2102 common = term/i386/pc/vga_text.c;
2103 enable = i386_pc;
2104 };
2105
2106 module = {
2107 name = mda_text;
2108 common = term/i386/pc/mda_text.c;
2109 enable = i386_pc;
2110 enable = i386_coreboot_multiboot_qemu;
2111 };
2112
2113 module = {
2114 name = video_cirrus;
2115 x86 = video/cirrus.c;
2116 enable = x86;
2117 };
2118
2119 module = {
2120 name = video_bochs;
2121 x86 = video/bochs.c;
2122 enable = x86;
2123 };
2124
2125 module = {
2126 name = functional_test;
2127 common = tests/lib/functional_test.c;
2128 common = tests/lib/test.c;
2129 common = tests/checksums.h;
2130 common = tests/video_checksum.c;
2131 common = tests/fake_input.c;
2132 common = video/capture.c;
2133 };
2134
2135 module = {
2136 name = exfctest;
2137 common = tests/example_functional_test.c;
2138 };
2139
2140 module = {
2141 name = strtoull_test;
2142 common = tests/strtoull_test.c;
2143 };
2144
2145 module = {
2146 name = setjmp_test;
2147 common = tests/setjmp_test.c;
2148 };
2149
2150 module = {
2151 name = signature_test;
2152 common = tests/signature_test.c;
2153 common = tests/signatures.h;
2154 };
2155
2156 module = {
2157 name = sleep_test;
2158 common = tests/sleep_test.c;
2159 };
2160
2161 module = {
2162 name = xnu_uuid_test;
2163 common = tests/xnu_uuid_test.c;
2164 };
2165
2166 module = {
2167 name = pbkdf2_test;
2168 common = tests/pbkdf2_test.c;
2169 };
2170
2171 module = {
2172 name = legacy_password_test;
2173 common = tests/legacy_password_test.c;
2174 enable = i386_pc;
2175 enable = i386_xen_pvh;
2176 enable = i386_efi;
2177 enable = x86_64_efi;
2178 enable = emu;
2179 enable = xen;
2180 };
2181
2182 module = {
2183 name = div;
2184 common = lib/division.c;
2185 enable = no_softdiv;
2186 };
2187
2188 module = {
2189 name = div_test;
2190 common = tests/div_test.c;
2191 };
2192
2193 module = {
2194 name = mul_test;
2195 common = tests/mul_test.c;
2196 };
2197
2198 module = {
2199 name = shift_test;
2200 common = tests/shift_test.c;
2201 };
2202
2203 module = {
2204 name = cmp_test;
2205 common = tests/cmp_test.c;
2206 };
2207
2208 module = {
2209 name = ctz_test;
2210 common = tests/ctz_test.c;
2211 };
2212
2213 module = {
2214 name = bswap_test;
2215 common = tests/bswap_test.c;
2216 };
2217
2218 module = {
2219 name = videotest_checksum;
2220 common = tests/videotest_checksum.c;
2221 };
2222
2223 module = {
2224 name = gfxterm_menu;
2225 common = tests/gfxterm_menu.c;
2226 };
2227
2228 module = {
2229 name = cmdline_cat_test;
2230 common = tests/cmdline_cat_test.c;
2231 };
2232
2233 module = {
2234 name = bitmap;
2235 common = video/bitmap.c;
2236 };
2237
2238 module = {
2239 name = bitmap_scale;
2240 common = video/bitmap_scale.c;
2241 };
2242
2243 module = {
2244 name = efi_gop;
2245 efi = video/efi_gop.c;
2246 enable = efi;
2247 };
2248
2249 module = {
2250 name = efi_uga;
2251 efi = video/efi_uga.c;
2252 enable = i386_efi;
2253 enable = x86_64_efi;
2254 };
2255
2256 module = {
2257 name = jpeg;
2258 common = video/readers/jpeg.c;
2259 };
2260
2261 module = {
2262 name = png;
2263 common = video/readers/png.c;
2264 };
2265
2266 module = {
2267 name = tga;
2268 common = video/readers/tga.c;
2269 };
2270
2271 module = {
2272 name = vbe;
2273 common = video/i386/pc/vbe.c;
2274 enable = i386_pc;
2275 };
2276
2277 module = {
2278 name = video_fb;
2279 common = video/fb/video_fb.c;
2280 common = video/fb/fbblit.c;
2281 common = video/fb/fbfill.c;
2282 common = video/fb/fbutil.c;
2283 enable = videomodules;
2284 };
2285
2286 module = {
2287 name = video;
2288 common = video/video.c;
2289 enable = videomodules;
2290 };
2291
2292 module = {
2293 name = video_colors;
2294 common = video/colors.c;
2295 };
2296
2297 module = {
2298 name = ieee1275_fb;
2299 ieee1275 = video/ieee1275.c;
2300 enable = powerpc_ieee1275;
2301 };
2302
2303 module = {
2304 name = sdl;
2305 emu = video/emu/sdl.c;
2306 enable = emu;
2307 condition = COND_GRUB_EMU_SDL;
2308 };
2309
2310 module = {
2311 name = datehook;
2312 common = hook/datehook.c;
2313 };
2314
2315 module = {
2316 name = net;
2317 common = net/net.c;
2318 common = net/dns.c;
2319 common = net/bootp.c;
2320 common = net/ip.c;
2321 common = net/udp.c;
2322 common = net/tcp.c;
2323 common = net/icmp.c;
2324 common = net/icmp6.c;
2325 common = net/ethernet.c;
2326 common = net/arp.c;
2327 common = net/netbuff.c;
2328 };
2329
2330 module = {
2331 name = tftp;
2332 common = net/tftp.c;
2333 };
2334
2335 module = {
2336 name = http;
2337 common = net/http.c;
2338 };
2339
2340 module = {
2341 name = ofnet;
2342 common = net/drivers/ieee1275/ofnet.c;
2343 enable = ieee1275;
2344 };
2345
2346 module = {
2347 name = ubootnet;
2348 common = net/drivers/uboot/ubootnet.c;
2349 enable = uboot;
2350 };
2351
2352 module = {
2353 name = efinet;
2354 common = net/drivers/efi/efinet.c;
2355 enable = efi;
2356 };
2357
2358 module = {
2359 name = emunet;
2360 emu = net/drivers/emu/emunet.c;
2361 enable = emu;
2362 };
2363
2364 module = {
2365 name = legacycfg;
2366 common = commands/legacycfg.c;
2367 common = lib/legacy_parse.c;
2368 emu = lib/i386/pc/vesa_modes_table.c;
2369 i386_efi = lib/i386/pc/vesa_modes_table.c;
2370 x86_64_efi = lib/i386/pc/vesa_modes_table.c;
2371 xen = lib/i386/pc/vesa_modes_table.c;
2372
2373 enable = i386_pc;
2374 enable = i386_xen_pvh;
2375 enable = i386_efi;
2376 enable = x86_64_efi;
2377 enable = emu;
2378 enable = xen;
2379 };
2380
2381 module = {
2382 name = syslinuxcfg;
2383 common = lib/syslinux_parse.c;
2384 common = commands/syslinuxcfg.c;
2385 };
2386
2387 module = {
2388 name = test_blockarg;
2389 common = tests/test_blockarg.c;
2390 };
2391
2392 module = {
2393 name = xzio;
2394 common = io/xzio.c;
2395 common = lib/xzembed/xz_dec_bcj.c;
2396 common = lib/xzembed/xz_dec_lzma2.c;
2397 common = lib/xzembed/xz_dec_stream.c;
2398 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
2399 cflags='-Wno-unreachable-code';
2400 };
2401
2402 module = {
2403 name = lzopio;
2404 common = io/lzopio.c;
2405 common = lib/minilzo/minilzo.c;
2406 cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
2407 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
2408 };
2409
2410 module = {
2411 name = testload;
2412 common = commands/testload.c;
2413 };
2414
2415 module = {
2416 name = backtrace;
2417 x86 = lib/i386/backtrace.c;
2418 i386_xen_pvh = lib/i386/backtrace.c;
2419 i386_xen = lib/i386/backtrace.c;
2420 x86_64_xen = lib/i386/backtrace.c;
2421 common = lib/backtrace.c;
2422 enable = x86;
2423 enable = i386_xen_pvh;
2424 enable = i386_xen;
2425 enable = x86_64_xen;
2426 };
2427
2428 module = {
2429 name = lsapm;
2430 common = commands/i386/pc/lsapm.c;
2431 enable = i386_pc;
2432 };
2433
2434 module = {
2435 name = keylayouts;
2436 common = commands/keylayouts.c;
2437 enable = x86;
2438 };
2439
2440 module = {
2441 name = priority_queue;
2442 common = lib/priority_queue.c;
2443 };
2444
2445 module = {
2446 name = time;
2447 common = commands/time.c;
2448 };
2449
2450 module = {
2451 name = cacheinfo;
2452 common = commands/cacheinfo.c;
2453 condition = COND_ENABLE_CACHE_STATS;
2454 };
2455
2456 module = {
2457 name = boottime;
2458 common = commands/boottime.c;
2459 condition = COND_ENABLE_BOOT_TIME_STATS;
2460 };
2461
2462 module = {
2463 name = adler32;
2464 common = lib/adler32.c;
2465 };
2466
2467 module = {
2468 name = crc64;
2469 common = lib/crc64.c;
2470 };
2471
2472 module = {
2473 name = mpi;
2474 common = lib/libgcrypt-grub/mpi/mpiutil.c;
2475 common = lib/libgcrypt-grub/mpi/mpi-bit.c;
2476 common = lib/libgcrypt-grub/mpi/mpi-add.c;
2477 common = lib/libgcrypt-grub/mpi/mpi-mul.c;
2478 common = lib/libgcrypt-grub/mpi/mpi-mod.c;
2479 common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
2480 common = lib/libgcrypt-grub/mpi/mpi-div.c;
2481 common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
2482 common = lib/libgcrypt-grub/mpi/mpi-inv.c;
2483 common = lib/libgcrypt-grub/mpi/mpi-pow.c;
2484 common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
2485 common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
2486 common = lib/libgcrypt-grub/mpi/mpih-mul.c;
2487 common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
2488 common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
2489 common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
2490 common = lib/libgcrypt-grub/mpi/mpih-add1.c;
2491 common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
2492 common = lib/libgcrypt-grub/mpi/mpih-div.c;
2493 common = lib/libgcrypt-grub/mpi/mpicoder.c;
2494 common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
2495 common = lib/libgcrypt-grub/mpi/mpi-inline.c;
2496 common = lib/libgcrypt_wrap/mem.c;
2497
2498 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2499 cppflags = '$(CPPFLAGS_GCRY)';
2500 };
2501
2502 module = {
2503 name = all_video;
2504 common = lib/fake_module.c;
2505 };
2506
2507 module = {
2508 name = gdb;
2509 common = gdb/cstub.c;
2510 common = gdb/gdb.c;
2511 i386 = gdb/i386/idt.c;
2512 i386 = gdb/i386/machdep.S;
2513 i386 = gdb/i386/signal.c;
2514 enable = i386;
2515 };
2516
2517 module = {
2518 name = testspeed;
2519 common = commands/testspeed.c;
2520 };
2521
2522 module = {
2523 name = tpm;
2524 common = commands/tpm.c;
2525 efi = commands/efi/tpm.c;
2526 enable = x86_64_efi;
2527 };
2528
2529 module = {
2530 name = tr;
2531 common = commands/tr.c;
2532 };
2533
2534 module = {
2535 name = progress;
2536 common = lib/progress.c;
2537 };
2538
2539 module = {
2540 name = file;
2541 common = commands/file.c;
2542 common = commands/file32.c;
2543 common = commands/file64.c;
2544 extra_dist = commands/fileXX.c;
2545 common = loader/i386/xen_file.c;
2546 common = loader/i386/xen_file32.c;
2547 common = loader/i386/xen_file64.c;
2548 extra_dist = loader/i386/xen_fileXX.c;
2549 };
2550 module = {
2551 name = rdmsr;
2552 common = commands/i386/rdmsr.c;
2553 enable = x86;
2554 };
2555 module = {
2556 name = wrmsr;
2557 common = commands/i386/wrmsr.c;
2558 enable = x86;
2559 };