]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - GRUB2/MOD_SRC/grub-2.04/grub-core/Makefile.core.def
Support LibreELEC 11.0+ (#2281)
[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 = fwload;
918 efi = commands/efi/fwload.c;
919 enable = efi;
920 };
921
922 module = {
923 name = gptsync;
924 common = commands/gptsync.c;
925 };
926
927 module = {
928 name = halt;
929 nopc = commands/halt.c;
930 i386_pc = commands/i386/pc/halt.c;
931 i386_pc = commands/acpihalt.c;
932 i386_coreboot = commands/acpihalt.c;
933 i386_multiboot = commands/acpihalt.c;
934 i386_efi = commands/acpihalt.c;
935 x86_64_efi = commands/acpihalt.c;
936 i386_multiboot = lib/i386/halt.c;
937 i386_coreboot = lib/i386/halt.c;
938 i386_qemu = lib/i386/halt.c;
939 xen = lib/xen/halt.c;
940 i386_xen_pvh = lib/xen/halt.c;
941 efi = lib/efi/halt.c;
942 ieee1275 = lib/ieee1275/halt.c;
943 emu = lib/emu/halt.c;
944 uboot = lib/dummy/halt.c;
945 arm_coreboot = lib/dummy/halt.c;
946 };
947
948 module = {
949 name = reboot;
950 i386 = lib/i386/reboot.c;
951 i386 = lib/i386/reboot_trampoline.S;
952 powerpc_ieee1275 = lib/ieee1275/reboot.c;
953 sparc64_ieee1275 = lib/ieee1275/reboot.c;
954 mips_arc = lib/mips/arc/reboot.c;
955 mips_loongson = lib/mips/loongson/reboot.c;
956 mips_qemu_mips = lib/mips/qemu_mips/reboot.c;
957 xen = lib/xen/reboot.c;
958 i386_xen_pvh = lib/xen/reboot.c;
959 uboot = lib/uboot/reboot.c;
960 arm_coreboot = lib/dummy/reboot.c;
961 common = commands/reboot.c;
962 };
963
964 module = {
965 name = hashsum;
966 common = commands/hashsum.c;
967 };
968
969 module = {
970 name = pgp;
971 common = commands/pgp.c;
972 cflags = '$(CFLAGS_POSIX)';
973 cppflags = '-I$(srcdir)/lib/posix_wrap';
974 };
975
976 module = {
977 name = verifiers;
978 common = commands/verifiers.c;
979 };
980
981 module = {
982 name = shim_lock;
983 common = commands/efi/shim_lock.c;
984 enable = x86_64_efi;
985 };
986
987 module = {
988 name = hdparm;
989 common = commands/hdparm.c;
990 enable = pci;
991 enable = mips_qemu_mips;
992 };
993
994 module = {
995 name = help;
996 common = commands/help.c;
997 };
998
999 module = {
1000 name = hexdump;
1001 common = commands/hexdump.c;
1002 common = lib/hexdump.c;
1003 };
1004
1005 module = {
1006 name = keystatus;
1007 common = commands/keystatus.c;
1008 };
1009
1010 module = {
1011 name = loadbios;
1012 common = commands/efi/loadbios.c;
1013 enable = i386_efi;
1014 enable = x86_64_efi;
1015 };
1016
1017 module = {
1018 name = loadenv;
1019 common = commands/loadenv.c;
1020 common = commands/loadenv.h;
1021 common = lib/envblk.c;
1022 };
1023
1024 module = {
1025 name = ls;
1026 common = commands/ls.c;
1027 };
1028
1029 module = {
1030 name = lsmmap;
1031 common = commands/lsmmap.c;
1032 };
1033
1034 module = {
1035 name = lspci;
1036 common = commands/lspci.c;
1037
1038 enable = pci;
1039 };
1040
1041 module = {
1042 name = memrw;
1043 common = commands/memrw.c;
1044 };
1045
1046 module = {
1047 name = minicmd;
1048 common = commands/minicmd.c;
1049 };
1050
1051 module = {
1052 name = parttool;
1053 common = commands/parttool.c;
1054 };
1055
1056 module = {
1057 name = password;
1058 common = commands/password.c;
1059 };
1060
1061 module = {
1062 name = password_pbkdf2;
1063 common = commands/password_pbkdf2.c;
1064 };
1065
1066 module = {
1067 name = play;
1068 x86 = commands/i386/pc/play.c;
1069 enable = x86;
1070 };
1071
1072 module = {
1073 name = spkmodem;
1074 x86 = term/spkmodem.c;
1075 enable = x86;
1076 };
1077
1078 module = {
1079 name = morse;
1080 x86 = term/morse.c;
1081 enable = x86;
1082 };
1083
1084 module = {
1085 name = probe;
1086 common = commands/probe.c;
1087 };
1088
1089 module = {
1090 name = read;
1091 common = commands/read.c;
1092 };
1093
1094 module = {
1095 name = search;
1096 common = commands/search_wrap.c;
1097 extra_dist = commands/search.c;
1098 };
1099
1100 module = {
1101 name = search_fs_file;
1102 common = commands/search_file.c;
1103 };
1104
1105 module = {
1106 name = search_fs_uuid;
1107 common = commands/search_uuid.c;
1108 };
1109
1110 module = {
1111 name = search_label;
1112 common = commands/search_label.c;
1113 };
1114
1115 module = {
1116 name = setpci;
1117 common = commands/setpci.c;
1118 enable = pci;
1119 };
1120
1121 module = {
1122 name = pcidump;
1123 common = commands/pcidump.c;
1124 enable = pci;
1125 };
1126
1127 module = {
1128 name = sleep;
1129 common = commands/sleep.c;
1130 };
1131
1132 module = {
1133 name = smbios;
1134
1135 common = commands/smbios.c;
1136 efi = commands/efi/smbios.c;
1137 i386_pc = commands/i386/pc/smbios.c;
1138 i386_coreboot = commands/i386/pc/smbios.c;
1139 i386_multiboot = commands/i386/pc/smbios.c;
1140
1141 enable = efi;
1142 enable = i386_pc;
1143 enable = i386_coreboot;
1144 enable = i386_multiboot;
1145 };
1146
1147 module = {
1148 name = suspend;
1149 ieee1275 = commands/ieee1275/suspend.c;
1150 enable = i386_ieee1275;
1151 enable = powerpc_ieee1275;
1152 };
1153
1154 module = {
1155 name = escc;
1156 ieee1275 = term/ieee1275/escc.c;
1157 enable = powerpc_ieee1275;
1158 };
1159
1160 module = {
1161 name = terminal;
1162 common = commands/terminal.c;
1163 };
1164
1165 module = {
1166 name = test;
1167 common = commands/test.c;
1168 };
1169
1170 module = {
1171 name = true;
1172 common = commands/true.c;
1173 };
1174
1175 module = {
1176 name = usbtest;
1177 common = commands/usbtest.c;
1178 enable = usb;
1179 };
1180
1181 module = {
1182 name = videoinfo;
1183 common = commands/videoinfo.c;
1184 };
1185
1186 module = {
1187 name = videotest;
1188 common = commands/videotest.c;
1189 };
1190
1191 module = {
1192 name = xnu_uuid;
1193 common = commands/xnu_uuid.c;
1194 };
1195
1196 module = {
1197 name = dm_nv;
1198 common = disk/dmraid_nvidia.c;
1199 };
1200
1201 module = {
1202 name = loopback;
1203 common = disk/loopback.c;
1204 };
1205
1206 module = {
1207 name = cryptodisk;
1208 common = disk/cryptodisk.c;
1209 };
1210
1211 module = {
1212 name = luks;
1213 common = disk/luks.c;
1214 common = disk/AFSplitter.c;
1215 };
1216
1217 module = {
1218 name = geli;
1219 common = disk/geli.c;
1220 };
1221
1222 module = {
1223 name = lvm;
1224 common = disk/lvm.c;
1225 };
1226
1227 module = {
1228 name = ldm;
1229 common = disk/ldm.c;
1230 };
1231
1232 module = {
1233 name = mdraid09;
1234 common = disk/mdraid_linux.c;
1235 };
1236
1237 module = {
1238 name = mdraid09_be;
1239 common = disk/mdraid_linux_be.c;
1240 };
1241
1242 module = {
1243 name = mdraid1x;
1244 common = disk/mdraid1x_linux.c;
1245 };
1246
1247 module = {
1248 name = diskfilter;
1249 common = disk/diskfilter.c;
1250 };
1251
1252 module = {
1253 name = raid5rec;
1254 common = disk/raid5_recover.c;
1255 };
1256
1257 module = {
1258 name = raid6rec;
1259 common = disk/raid6_recover.c;
1260 };
1261
1262 module = {
1263 name = scsi;
1264 common = disk/scsi.c;
1265 };
1266
1267 module = {
1268 name = memdisk;
1269 common = disk/memdisk.c;
1270 };
1271
1272 module = {
1273 name = ata;
1274 common = disk/ata.c;
1275 enable = pci;
1276 enable = mips_qemu_mips;
1277 };
1278
1279 module = {
1280 name = ahci;
1281 common = disk/ahci.c;
1282 enable = pci;
1283 };
1284
1285 module = {
1286 name = pata;
1287 common = disk/pata.c;
1288 enable = pci;
1289 enable = mips_qemu_mips;
1290 };
1291
1292 module = {
1293 name = biosdisk;
1294 i386_pc = disk/i386/pc/biosdisk.c;
1295 enable = i386_pc;
1296 };
1297
1298 module = {
1299 name = usbms;
1300 common = disk/usbms.c;
1301 enable = usb;
1302 };
1303
1304 module = {
1305 name = nand;
1306 ieee1275 = disk/ieee1275/nand.c;
1307 enable = i386_ieee1275;
1308 };
1309
1310 module = {
1311 name = efiemu;
1312 common = efiemu/main.c;
1313 common = efiemu/i386/loadcore32.c;
1314 common = efiemu/i386/loadcore64.c;
1315 i386_pc = efiemu/i386/pc/cfgtables.c;
1316 i386_coreboot = efiemu/i386/pc/cfgtables.c;
1317 i386_multiboot = efiemu/i386/pc/cfgtables.c;
1318 i386_ieee1275 = efiemu/i386/nocfgtables.c;
1319 i386_qemu = efiemu/i386/nocfgtables.c;
1320 common = efiemu/mm.c;
1321 common = efiemu/loadcore_common.c;
1322 common = efiemu/symbols.c;
1323 common = efiemu/loadcore32.c;
1324 common = efiemu/loadcore64.c;
1325 common = efiemu/prepare32.c;
1326 common = efiemu/prepare64.c;
1327 common = efiemu/pnvram.c;
1328 common = efiemu/i386/coredetect.c;
1329
1330 extra_dist = efiemu/prepare.c;
1331 extra_dist = efiemu/loadcore.c;
1332 extra_dist = efiemu/runtime/efiemu.S;
1333 extra_dist = efiemu/runtime/efiemu.c;
1334
1335 enable = i386_pc;
1336 enable = i386_coreboot;
1337 enable = i386_ieee1275;
1338 enable = i386_multiboot;
1339 enable = i386_qemu;
1340 };
1341
1342 module = {
1343 name = font;
1344 common = font/font.c;
1345 common = font/font_cmd.c;
1346 enable = videomodules;
1347 };
1348
1349 module = {
1350 name = procfs;
1351 common = fs/proc.c;
1352 };
1353
1354 module = {
1355 name = affs;
1356 common = fs/affs.c;
1357 };
1358
1359 module = {
1360 name = afs;
1361 common = fs/afs.c;
1362 };
1363
1364 module = {
1365 name = bfs;
1366 common = fs/bfs.c;
1367 };
1368
1369 module = {
1370 name = zstd;
1371 common = lib/zstd/debug.c;
1372 common = lib/zstd/entropy_common.c;
1373 common = lib/zstd/error_private.c;
1374 common = lib/zstd/fse_decompress.c;
1375 common = lib/zstd/huf_decompress.c;
1376 common = lib/zstd/module.c;
1377 common = lib/zstd/xxhash.c;
1378 common = lib/zstd/zstd_common.c;
1379 common = lib/zstd/zstd_decompress.c;
1380 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1381 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/zstd';
1382 };
1383
1384 module = {
1385 name = btrfs;
1386 common = fs/btrfs.c;
1387 common = lib/crc.c;
1388 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1389 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -I$(srcdir)/lib/zstd -DMINILZO_HAVE_CONFIG_H';
1390 };
1391
1392 module = {
1393 name = archelp;
1394 common = fs/archelp.c;
1395 };
1396
1397 module = {
1398 name = cbfs;
1399 common = fs/cbfs.c;
1400 };
1401
1402 module = {
1403 name = cpio;
1404 common = fs/cpio.c;
1405 };
1406
1407 module = {
1408 name = cpio_be;
1409 common = fs/cpio_be.c;
1410 };
1411
1412 module = {
1413 name = newc;
1414 common = fs/newc.c;
1415 };
1416
1417 module = {
1418 name = odc;
1419 common = fs/odc.c;
1420 };
1421
1422 module = {
1423 name = ext2;
1424 common = fs/ext2.c;
1425 };
1426
1427 module = {
1428 name = fat;
1429 common = fs/fat.c;
1430 };
1431
1432 module = {
1433 name = exfat;
1434 common = fs/exfat.c;
1435 };
1436
1437 module = {
1438 name = f2fs;
1439 common = fs/f2fs.c;
1440 };
1441
1442 module = {
1443 name = fshelp;
1444 common = fs/fshelp.c;
1445 };
1446
1447 module = {
1448 name = hfs;
1449 common = fs/hfs.c;
1450 };
1451
1452 module = {
1453 name = hfsplus;
1454 common = fs/hfsplus.c;
1455 };
1456
1457 module = {
1458 name = hfspluscomp;
1459 common = fs/hfspluscomp.c;
1460 };
1461
1462 module = {
1463 name = iso9660;
1464 common = fs/iso9660.c;
1465 };
1466
1467 module = {
1468 name = jfs;
1469 common = fs/jfs.c;
1470 };
1471
1472 module = {
1473 name = minix;
1474 common = fs/minix.c;
1475 };
1476
1477 module = {
1478 name = minix2;
1479 common = fs/minix2.c;
1480 };
1481
1482 module = {
1483 name = minix3;
1484 common = fs/minix3.c;
1485 };
1486
1487 module = {
1488 name = minix_be;
1489 common = fs/minix_be.c;
1490 };
1491
1492 module = {
1493 name = minix2_be;
1494 common = fs/minix2_be.c;
1495 };
1496
1497 module = {
1498 name = minix3_be;
1499 common = fs/minix3_be.c;
1500 };
1501
1502 module = {
1503 name = nilfs2;
1504 common = fs/nilfs2.c;
1505 };
1506
1507 module = {
1508 name = ntfs;
1509 common = fs/ntfs.c;
1510 };
1511
1512 module = {
1513 name = ntfscomp;
1514 common = fs/ntfscomp.c;
1515 };
1516
1517 module = {
1518 name = reiserfs;
1519 common = fs/reiserfs.c;
1520 };
1521
1522 module = {
1523 name = romfs;
1524 common = fs/romfs.c;
1525 };
1526
1527 module = {
1528 name = sfs;
1529 common = fs/sfs.c;
1530 };
1531
1532 module = {
1533 name = squash4;
1534 common = fs/squash4.c;
1535 cflags = '$(CFLAGS_POSIX) -Wno-undef';
1536 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -I$(srcdir)/lib/zstd -DMINILZO_HAVE_CONFIG_H';
1537 };
1538
1539 module = {
1540 name = tar;
1541 common = fs/tar.c;
1542 };
1543
1544 module = {
1545 name = udf;
1546 common = fs/udf.c;
1547 };
1548
1549 module = {
1550 name = ufs1;
1551 common = fs/ufs.c;
1552 };
1553
1554 module = {
1555 name = ufs1_be;
1556 common = fs/ufs_be.c;
1557 };
1558
1559 module = {
1560 name = ufs2;
1561 common = fs/ufs2.c;
1562 };
1563
1564 module = {
1565 name = xfs;
1566 common = fs/xfs.c;
1567 };
1568
1569 module = {
1570 name = zfs;
1571 common = fs/zfs/zfs.c;
1572 common = fs/zfs/zfs_lzjb.c;
1573 common = fs/zfs/zfs_lz4.c;
1574 common = fs/zfs/zfs_sha256.c;
1575 common = fs/zfs/zfs_fletcher.c;
1576 };
1577
1578 module = {
1579 name = zfscrypt;
1580 common = fs/zfs/zfscrypt.c;
1581 };
1582
1583 module = {
1584 name = zfsinfo;
1585 common = fs/zfs/zfsinfo.c;
1586 };
1587
1588 module = {
1589 name = macbless;
1590 common = commands/macbless.c;
1591 };
1592
1593 module = {
1594 name = pxe;
1595 i386_pc = net/drivers/i386/pc/pxe.c;
1596 enable = i386_pc;
1597 };
1598
1599 module = {
1600 name = gettext;
1601 common = gettext/gettext.c;
1602 };
1603
1604 module = {
1605 name = gfxmenu;
1606 common = gfxmenu/gfxmenu.c;
1607 common = gfxmenu/view.c;
1608 common = gfxmenu/font.c;
1609 common = gfxmenu/icon_manager.c;
1610 common = gfxmenu/theme_loader.c;
1611 common = gfxmenu/widget-box.c;
1612 common = gfxmenu/gui_canvas.c;
1613 common = gfxmenu/gui_circular_progress.c;
1614 common = gfxmenu/gui_box.c;
1615 common = gfxmenu/gui_label.c;
1616 common = gfxmenu/gui_list.c;
1617 common = gfxmenu/gui_image.c;
1618 common = gfxmenu/gui_progress_bar.c;
1619 common = gfxmenu/gui_util.c;
1620 common = gfxmenu/gui_string_util.c;
1621 };
1622
1623 /* Added by longpanda for Ventoy Project */
1624 module = {
1625 name = ventoy;
1626 common = ventoy/ventoy.c;
1627 common = ventoy/ventoy_cmd.c;
1628 common = ventoy/ventoy_linux.c;
1629 common = ventoy/ventoy_unix.c;
1630 common = ventoy/ventoy_windows.c;
1631 common = ventoy/ventoy_vhd.c;
1632 common = ventoy/ventoy_plugin.c;
1633 common = ventoy/ventoy_json.c;
1634 common = ventoy/ventoy_browser.c;
1635 common = ventoy/lzx.c;
1636 common = ventoy/xpress.c;
1637 common = ventoy/huffman.c;
1638 common = ventoy/miniz.c;
1639 };
1640
1641 module = {
1642 name = setkey;
1643 common = term/setkey.c;
1644 };
1645
1646 module = {
1647 name = mouse;
1648 efi = term/efi/mouse.c;
1649 enable = efi;
1650 };
1651
1652 module = {
1653 name = hello;
1654 common = hello/hello.c;
1655 };
1656
1657 module = {
1658 name = gzio;
1659 common = io/gzio.c;
1660 };
1661
1662 module = {
1663 name = offsetio;
1664 common = io/offset.c;
1665 };
1666
1667 module = {
1668 name = bufio;
1669 common = io/bufio.c;
1670 enable = videomodules;
1671 };
1672
1673 module = {
1674 name = elf;
1675 common = kern/elf.c;
1676
1677 extra_dist = kern/elfXX.c;
1678 };
1679
1680 module = {
1681 name = crypto;
1682 common = lib/crypto.c;
1683
1684 extra_dist = lib/libgcrypt-grub/cipher/crypto.lst;
1685 };
1686
1687 module = {
1688 name = pbkdf2;
1689 common = lib/pbkdf2.c;
1690 };
1691
1692 module = {
1693 name = relocator;
1694 common = lib/relocator.c;
1695 x86 = lib/i386/relocator16.S;
1696 x86 = lib/i386/relocator32.S;
1697 x86 = lib/i386/relocator64.S;
1698 i386_xen_pvh = lib/i386/relocator16.S;
1699 i386_xen_pvh = lib/i386/relocator32.S;
1700 i386_xen_pvh = lib/i386/relocator64.S;
1701 i386 = lib/i386/relocator_asm.S;
1702 i386_xen_pvh = lib/i386/relocator_asm.S;
1703 x86_64 = lib/x86_64/relocator_asm.S;
1704 i386_xen = lib/i386/relocator_asm.S;
1705 x86_64_xen = lib/x86_64/relocator_asm.S;
1706 x86 = lib/i386/relocator.c;
1707 x86 = lib/i386/relocator_common_c.c;
1708 i386_xen_pvh = lib/i386/relocator.c;
1709 i386_xen_pvh = lib/i386/relocator_common_c.c;
1710 ieee1275 = lib/ieee1275/relocator.c;
1711 efi = lib/efi/relocator.c;
1712 mips = lib/mips/relocator_asm.S;
1713 mips = lib/mips/relocator.c;
1714 mips64 = lib/mips64/relocator_asm.S;
1715 mips64 = lib/mips64/relocator.c;
1716 powerpc = lib/powerpc/relocator_asm.S;
1717 powerpc = lib/powerpc/relocator.c;
1718 xen = lib/xen/relocator.c;
1719 i386_xen = lib/i386/xen/relocator.S;
1720 x86_64_xen = lib/x86_64/xen/relocator.S;
1721 xen = lib/i386/relocator_common_c.c;
1722 x86_64_efi = lib/x86_64/efi/relocator.c;
1723
1724 extra_dist = lib/i386/relocator_common.S;
1725 extra_dist = kern/powerpc/cache_flush.S;
1726
1727 enable = mips;
1728 enable = mips64;
1729 enable = powerpc;
1730 enable = x86;
1731 enable = i386_xen_pvh;
1732 enable = xen;
1733 };
1734
1735 module = {
1736 name = datetime;
1737 cmos = lib/cmos_datetime.c;
1738 efi = lib/efi/datetime.c;
1739 uboot = lib/dummy/datetime.c;
1740 arm_coreboot = lib/dummy/datetime.c;
1741 sparc64_ieee1275 = lib/ieee1275/datetime.c;
1742 powerpc_ieee1275 = lib/ieee1275/datetime.c;
1743 sparc64_ieee1275 = lib/ieee1275/cmos.c;
1744 powerpc_ieee1275 = lib/ieee1275/cmos.c;
1745 xen = lib/xen/datetime.c;
1746 i386_xen_pvh = lib/xen/datetime.c;
1747
1748 mips_arc = lib/arc/datetime.c;
1749 enable = noemu;
1750 };
1751
1752 module = {
1753 name = setjmp;
1754 common = lib/setjmp.S;
1755 extra_dist = lib/i386/setjmp.S;
1756 extra_dist = lib/mips/setjmp.S;
1757 extra_dist = lib/x86_64/setjmp.S;
1758 extra_dist = lib/sparc64/setjmp.S;
1759 extra_dist = lib/powerpc/setjmp.S;
1760 extra_dist = lib/ia64/setjmp.S;
1761 extra_dist = lib/ia64/longjmp.S;
1762 extra_dist = lib/arm/setjmp.S;
1763 extra_dist = lib/arm64/setjmp.S;
1764 extra_dist = lib/riscv/setjmp.S;
1765 };
1766
1767 module = {
1768 name = aout;
1769 common = loader/aout.c;
1770 enable = x86;
1771 };
1772
1773 module = {
1774 name = bsd;
1775 x86 = loader/i386/bsd.c;
1776 x86 = loader/i386/bsd32.c;
1777 x86 = loader/i386/bsd64.c;
1778
1779 extra_dist = loader/i386/bsdXX.c;
1780 extra_dist = loader/i386/bsd_pagetable.c;
1781
1782 enable = x86;
1783 };
1784
1785 module = {
1786 name = plan9;
1787 i386_pc = loader/i386/pc/plan9.c;
1788 enable = i386_pc;
1789 };
1790
1791
1792 module = {
1793 name = linux16;
1794 common = loader/i386/pc/linux.c;
1795 enable = x86;
1796 };
1797
1798 module = {
1799 name = ntldr;
1800 i386_pc = loader/i386/pc/ntldr.c;
1801 enable = i386_pc;
1802 };
1803
1804
1805 module = {
1806 name = truecrypt;
1807 i386_pc = loader/i386/pc/truecrypt.c;
1808 enable = i386_pc;
1809 };
1810
1811
1812 module = {
1813 name = freedos;
1814 i386_pc = loader/i386/pc/freedos.c;
1815 enable = i386_pc;
1816 };
1817
1818 module = {
1819 name = pxechain;
1820 i386_pc = loader/i386/pc/pxechainloader.c;
1821 enable = i386_pc;
1822 };
1823
1824 module = {
1825 name = multiboot2;
1826 cppflags = "-DGRUB_USE_MULTIBOOT2";
1827
1828 common = loader/multiboot.c;
1829 common = loader/multiboot_mbi2.c;
1830 enable = x86;
1831 enable = i386_xen_pvh;
1832 enable = mips;
1833 };
1834
1835 module = {
1836 name = multiboot;
1837 common = loader/multiboot.c;
1838 x86 = loader/i386/multiboot_mbi.c;
1839 i386_xen_pvh = loader/i386/multiboot_mbi.c;
1840 extra_dist = loader/multiboot_elfxx.c;
1841 enable = x86;
1842 enable = i386_xen_pvh;
1843 };
1844
1845 module = {
1846 name = xen_boot;
1847 arm64 = loader/arm64/xen_boot.c;
1848 enable = arm64;
1849 };
1850
1851 module = {
1852 name = linux;
1853 x86 = loader/i386/linux.c;
1854 i386_xen_pvh = loader/i386/linux.c;
1855 xen = loader/i386/xen.c;
1856 i386_pc = lib/i386/pc/vesa_modes_table.c;
1857 i386_xen_pvh = lib/i386/pc/vesa_modes_table.c;
1858 mips = loader/mips/linux.c;
1859 mips64 = loader/mips64/linux.c;
1860 powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c;
1861 sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
1862 ia64_efi = loader/ia64/efi/linux.c;
1863 arm_coreboot = loader/arm/linux.c;
1864 arm_efi = loader/arm64/linux.c;
1865 arm_uboot = loader/arm/linux.c;
1866 arm64 = loader/arm64/linux.c;
1867 riscv32 = loader/riscv/linux.c;
1868 riscv64 = loader/riscv/linux.c;
1869 common = loader/linux.c;
1870 common = lib/cmdline.c;
1871 enable = noemu;
1872 };
1873
1874 module = {
1875 name = fdt;
1876 efi = loader/efi/fdt.c;
1877 common = lib/fdt.c;
1878 enable = fdt;
1879 };
1880
1881 module = {
1882 name = xnu;
1883 x86 = loader/xnu_resume.c;
1884 x86 = loader/i386/xnu.c;
1885 x86 = loader/xnu.c;
1886
1887 /* Code is pretty generic but relies on RNG which
1888 is available only on few platforms. It's not a
1889 big deal as xnu needs ACPI anyway and we have
1890 RNG on all platforms with ACPI.
1891 */
1892 enable = i386_multiboot;
1893 enable = i386_coreboot;
1894 enable = i386_pc;
1895 enable = i386_efi;
1896 enable = x86_64_efi;
1897 };
1898
1899 module = {
1900 name = random;
1901 x86 = lib/i386/random.c;
1902 common = lib/random.c;
1903
1904 i386_multiboot = kern/i386/tsc_pmtimer.c;
1905 i386_coreboot = kern/i386/tsc_pmtimer.c;
1906 i386_pc = kern/i386/tsc_pmtimer.c;
1907
1908 enable = i386_multiboot;
1909 enable = i386_coreboot;
1910 enable = i386_pc;
1911 enable = i386_efi;
1912 enable = x86_64_efi;
1913 };
1914
1915 module = {
1916 name = macho;
1917
1918 common = loader/macho.c;
1919 common = loader/macho32.c;
1920 common = loader/macho64.c;
1921 common = loader/lzss.c;
1922 extra_dist = loader/machoXX.c;
1923 };
1924
1925 module = {
1926 name = appleldr;
1927 common = loader/efi/appleloader.c;
1928 enable = i386_efi;
1929 enable = x86_64_efi;
1930 };
1931
1932 module = {
1933 name = chain;
1934 efi = loader/efi/chainloader.c;
1935 i386_pc = loader/i386/pc/chainloader.c;
1936 i386_coreboot = loader/i386/coreboot/chainloader.c;
1937 i386_coreboot = lib/LzmaDec.c;
1938 enable = i386_pc;
1939 enable = i386_coreboot;
1940 enable = efi;
1941 };
1942
1943 module = {
1944 name = mmap;
1945 common = mmap/mmap.c;
1946 x86 = mmap/i386/uppermem.c;
1947 x86 = mmap/i386/mmap.c;
1948 i386_xen_pvh = mmap/i386/uppermem.c;
1949 i386_xen_pvh = mmap/i386/mmap.c;
1950
1951 i386_pc = mmap/i386/pc/mmap.c;
1952 i386_pc = mmap/i386/pc/mmap_helper.S;
1953
1954 efi = mmap/efi/mmap.c;
1955
1956 mips = mmap/mips/uppermem.c;
1957
1958 enable = x86;
1959 enable = i386_xen_pvh;
1960 enable = ia64_efi;
1961 enable = arm_efi;
1962 enable = arm64_efi;
1963 enable = riscv32_efi;
1964 enable = riscv64_efi;
1965 enable = mips;
1966 enable = mips64_efi;
1967 };
1968
1969 module = {
1970 name = normal;
1971 common = normal/main.c;
1972 common = normal/cmdline.c;
1973 common = normal/dyncmd.c;
1974 common = normal/auth.c;
1975 common = normal/autofs.c;
1976 common = normal/color.c;
1977 common = normal/completion.c;
1978 common = normal/datetime.c;
1979 common = normal/menu.c;
1980 common = normal/menu_entry.c;
1981 common = normal/menu_text.c;
1982 common = normal/misc.c;
1983 common = normal/crypto.c;
1984 common = normal/term.c;
1985 common = normal/context.c;
1986 common = normal/charset.c;
1987 common = lib/getline.c;
1988
1989 common = script/main.c;
1990 common = script/script.c;
1991 common = script/execute.c;
1992 common = script/function.c;
1993 common = script/lexer.c;
1994 common = script/argv.c;
1995
1996 common = commands/menuentry.c;
1997
1998 common = unidata.c;
1999 common_nodist = grub_script.tab.c;
2000 common_nodist = grub_script.yy.c;
2001 common_nodist = grub_script.tab.h;
2002 common_nodist = grub_script.yy.h;
2003
2004 extra_dist = script/yylex.l;
2005 extra_dist = script/parser.y;
2006
2007 cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls';
2008 cppflags = '$(CPPFLAGS_POSIX)';
2009 };
2010
2011 module = {
2012 name = part_acorn;
2013 common = partmap/acorn.c;
2014 };
2015
2016 module = {
2017 name = part_amiga;
2018 common = partmap/amiga.c;
2019 };
2020
2021 module = {
2022 name = part_apple;
2023 common = partmap/apple.c;
2024 };
2025
2026 module = {
2027 name = part_gpt;
2028 common = partmap/gpt.c;
2029 };
2030
2031 module = {
2032 name = part_msdos;
2033 common = partmap/msdos.c;
2034 };
2035
2036 module = {
2037 name = part_sun;
2038 common = partmap/sun.c;
2039 };
2040
2041 module = {
2042 name = part_plan;
2043 common = partmap/plan.c;
2044 };
2045
2046 module = {
2047 name = part_dvh;
2048 common = partmap/dvh.c;
2049 };
2050
2051 module = {
2052 name = part_bsd;
2053 common = partmap/bsdlabel.c;
2054 };
2055
2056 module = {
2057 name = part_sunpc;
2058 common = partmap/sunpc.c;
2059 };
2060
2061 module = {
2062 name = part_dfly;
2063 common = partmap/dfly.c;
2064 };
2065
2066 module = {
2067 name = msdospart;
2068 common = parttool/msdospart.c;
2069 };
2070
2071 module = {
2072 name = at_keyboard;
2073 common = term/at_keyboard.c;
2074 common = term/ps2.c;
2075 enable = x86;
2076 };
2077
2078 module = {
2079 name = gfxterm;
2080 common = term/gfxterm.c;
2081 enable = videomodules;
2082 };
2083
2084 module = {
2085 name = gfxterm_background;
2086 common = term/gfxterm_background.c;
2087 };
2088
2089 module = {
2090 name = serial;
2091 common = term/serial.c;
2092 x86 = term/ns8250.c;
2093 ieee1275 = term/ieee1275/serial.c;
2094 mips_arc = term/arc/serial.c;
2095 efi = term/efi/serial.c;
2096
2097 enable = terminfomodule;
2098 enable = ieee1275;
2099 enable = mips_arc;
2100 };
2101
2102 module = {
2103 name = sendkey;
2104 i386_pc = commands/i386/pc/sendkey.c;
2105 enable = i386_pc;
2106 };
2107
2108 module = {
2109 name = terminfo;
2110 common = term/terminfo.c;
2111 common = term/tparm.c;
2112 enable = terminfomodule;
2113 };
2114
2115 module = {
2116 name = usb_keyboard;
2117 common = term/usb_keyboard.c;
2118 enable = usb;
2119 };
2120
2121 module = {
2122 name = vga;
2123 common = video/i386/pc/vga.c;
2124 enable = i386_pc;
2125 };
2126
2127 module = {
2128 name = vga_text;
2129 common = term/i386/pc/vga_text.c;
2130 enable = i386_pc;
2131 };
2132
2133 module = {
2134 name = mda_text;
2135 common = term/i386/pc/mda_text.c;
2136 enable = i386_pc;
2137 enable = i386_coreboot_multiboot_qemu;
2138 };
2139
2140 module = {
2141 name = video_cirrus;
2142 x86 = video/cirrus.c;
2143 enable = x86;
2144 };
2145
2146 module = {
2147 name = video_bochs;
2148 x86 = video/bochs.c;
2149 enable = x86;
2150 };
2151
2152 module = {
2153 name = functional_test;
2154 common = tests/lib/functional_test.c;
2155 common = tests/lib/test.c;
2156 common = tests/checksums.h;
2157 common = tests/video_checksum.c;
2158 common = tests/fake_input.c;
2159 common = video/capture.c;
2160 };
2161
2162 module = {
2163 name = exfctest;
2164 common = tests/example_functional_test.c;
2165 };
2166
2167 module = {
2168 name = strtoull_test;
2169 common = tests/strtoull_test.c;
2170 };
2171
2172 module = {
2173 name = setjmp_test;
2174 common = tests/setjmp_test.c;
2175 };
2176
2177 module = {
2178 name = signature_test;
2179 common = tests/signature_test.c;
2180 common = tests/signatures.h;
2181 };
2182
2183 module = {
2184 name = sleep_test;
2185 common = tests/sleep_test.c;
2186 };
2187
2188 module = {
2189 name = xnu_uuid_test;
2190 common = tests/xnu_uuid_test.c;
2191 };
2192
2193 module = {
2194 name = pbkdf2_test;
2195 common = tests/pbkdf2_test.c;
2196 };
2197
2198 module = {
2199 name = legacy_password_test;
2200 common = tests/legacy_password_test.c;
2201 enable = i386_pc;
2202 enable = i386_xen_pvh;
2203 enable = i386_efi;
2204 enable = x86_64_efi;
2205 enable = emu;
2206 enable = xen;
2207 };
2208
2209 module = {
2210 name = div;
2211 common = lib/division.c;
2212 enable = no_softdiv;
2213 };
2214
2215 module = {
2216 name = div_test;
2217 common = tests/div_test.c;
2218 };
2219
2220 module = {
2221 name = mul_test;
2222 common = tests/mul_test.c;
2223 };
2224
2225 module = {
2226 name = shift_test;
2227 common = tests/shift_test.c;
2228 };
2229
2230 module = {
2231 name = cmp_test;
2232 common = tests/cmp_test.c;
2233 };
2234
2235 module = {
2236 name = ctz_test;
2237 common = tests/ctz_test.c;
2238 };
2239
2240 module = {
2241 name = bswap_test;
2242 common = tests/bswap_test.c;
2243 };
2244
2245 module = {
2246 name = videotest_checksum;
2247 common = tests/videotest_checksum.c;
2248 };
2249
2250 module = {
2251 name = gfxterm_menu;
2252 common = tests/gfxterm_menu.c;
2253 };
2254
2255 module = {
2256 name = cmdline_cat_test;
2257 common = tests/cmdline_cat_test.c;
2258 };
2259
2260 module = {
2261 name = bitmap;
2262 common = video/bitmap.c;
2263 };
2264
2265 module = {
2266 name = bitmap_scale;
2267 common = video/bitmap_scale.c;
2268 };
2269
2270 module = {
2271 name = efi_gop;
2272 efi = video/efi_gop.c;
2273 enable = efi;
2274 };
2275
2276 module = {
2277 name = efi_uga;
2278 efi = video/efi_uga.c;
2279 enable = i386_efi;
2280 enable = x86_64_efi;
2281 };
2282
2283 module = {
2284 name = jpeg;
2285 common = video/readers/jpeg.c;
2286 };
2287
2288 module = {
2289 name = png;
2290 common = video/readers/png.c;
2291 };
2292
2293 module = {
2294 name = tga;
2295 common = video/readers/tga.c;
2296 };
2297
2298 module = {
2299 name = vbe;
2300 common = video/i386/pc/vbe.c;
2301 enable = i386_pc;
2302 };
2303
2304 module = {
2305 name = video_fb;
2306 common = video/fb/video_fb.c;
2307 common = video/fb/fbblit.c;
2308 common = video/fb/fbfill.c;
2309 common = video/fb/fbutil.c;
2310 enable = videomodules;
2311 };
2312
2313 module = {
2314 name = video;
2315 common = video/video.c;
2316 enable = videomodules;
2317 };
2318
2319 module = {
2320 name = video_colors;
2321 common = video/colors.c;
2322 };
2323
2324 module = {
2325 name = ieee1275_fb;
2326 ieee1275 = video/ieee1275.c;
2327 enable = powerpc_ieee1275;
2328 };
2329
2330 module = {
2331 name = sdl;
2332 emu = video/emu/sdl.c;
2333 enable = emu;
2334 condition = COND_GRUB_EMU_SDL;
2335 };
2336
2337 module = {
2338 name = datehook;
2339 common = hook/datehook.c;
2340 };
2341
2342 module = {
2343 name = net;
2344 common = net/net.c;
2345 common = net/dns.c;
2346 common = net/bootp.c;
2347 common = net/ip.c;
2348 common = net/udp.c;
2349 common = net/tcp.c;
2350 common = net/icmp.c;
2351 common = net/icmp6.c;
2352 common = net/ethernet.c;
2353 common = net/arp.c;
2354 common = net/netbuff.c;
2355 };
2356
2357 module = {
2358 name = tftp;
2359 common = net/tftp.c;
2360 };
2361
2362 module = {
2363 name = http;
2364 common = net/http.c;
2365 };
2366
2367 module = {
2368 name = ofnet;
2369 common = net/drivers/ieee1275/ofnet.c;
2370 enable = ieee1275;
2371 };
2372
2373 module = {
2374 name = ubootnet;
2375 common = net/drivers/uboot/ubootnet.c;
2376 enable = uboot;
2377 };
2378
2379 module = {
2380 name = efinet;
2381 common = net/drivers/efi/efinet.c;
2382 enable = efi;
2383 };
2384
2385 module = {
2386 name = emunet;
2387 emu = net/drivers/emu/emunet.c;
2388 enable = emu;
2389 };
2390
2391 module = {
2392 name = legacycfg;
2393 common = commands/legacycfg.c;
2394 common = lib/legacy_parse.c;
2395 emu = lib/i386/pc/vesa_modes_table.c;
2396 i386_efi = lib/i386/pc/vesa_modes_table.c;
2397 x86_64_efi = lib/i386/pc/vesa_modes_table.c;
2398 xen = lib/i386/pc/vesa_modes_table.c;
2399
2400 enable = i386_pc;
2401 enable = i386_xen_pvh;
2402 enable = i386_efi;
2403 enable = x86_64_efi;
2404 enable = emu;
2405 enable = xen;
2406 };
2407
2408 module = {
2409 name = syslinuxcfg;
2410 common = lib/syslinux_parse.c;
2411 common = commands/syslinuxcfg.c;
2412 };
2413
2414 module = {
2415 name = test_blockarg;
2416 common = tests/test_blockarg.c;
2417 };
2418
2419 module = {
2420 name = xzio;
2421 common = io/xzio.c;
2422 common = lib/xzembed/xz_dec_bcj.c;
2423 common = lib/xzembed/xz_dec_lzma2.c;
2424 common = lib/xzembed/xz_dec_stream.c;
2425 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed';
2426 cflags='-Wno-unreachable-code';
2427 };
2428
2429 module = {
2430 name = lzopio;
2431 common = io/lzopio.c;
2432 common = lib/minilzo/minilzo.c;
2433 cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error';
2434 cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H';
2435 };
2436
2437 module = {
2438 name = testload;
2439 common = commands/testload.c;
2440 };
2441
2442 module = {
2443 name = backtrace;
2444 x86 = lib/i386/backtrace.c;
2445 i386_xen_pvh = lib/i386/backtrace.c;
2446 i386_xen = lib/i386/backtrace.c;
2447 x86_64_xen = lib/i386/backtrace.c;
2448 common = lib/backtrace.c;
2449 enable = x86;
2450 enable = i386_xen_pvh;
2451 enable = i386_xen;
2452 enable = x86_64_xen;
2453 };
2454
2455 module = {
2456 name = lsapm;
2457 common = commands/i386/pc/lsapm.c;
2458 enable = i386_pc;
2459 };
2460
2461 module = {
2462 name = keylayouts;
2463 common = commands/keylayouts.c;
2464 enable = x86;
2465 };
2466
2467 module = {
2468 name = priority_queue;
2469 common = lib/priority_queue.c;
2470 };
2471
2472 module = {
2473 name = time;
2474 common = commands/time.c;
2475 };
2476
2477 module = {
2478 name = cacheinfo;
2479 common = commands/cacheinfo.c;
2480 condition = COND_ENABLE_CACHE_STATS;
2481 };
2482
2483 module = {
2484 name = boottime;
2485 common = commands/boottime.c;
2486 condition = COND_ENABLE_BOOT_TIME_STATS;
2487 };
2488
2489 module = {
2490 name = adler32;
2491 common = lib/adler32.c;
2492 };
2493
2494 module = {
2495 name = crc64;
2496 common = lib/crc64.c;
2497 };
2498
2499 module = {
2500 name = mpi;
2501 common = lib/libgcrypt-grub/mpi/mpiutil.c;
2502 common = lib/libgcrypt-grub/mpi/mpi-bit.c;
2503 common = lib/libgcrypt-grub/mpi/mpi-add.c;
2504 common = lib/libgcrypt-grub/mpi/mpi-mul.c;
2505 common = lib/libgcrypt-grub/mpi/mpi-mod.c;
2506 common = lib/libgcrypt-grub/mpi/mpi-gcd.c;
2507 common = lib/libgcrypt-grub/mpi/mpi-div.c;
2508 common = lib/libgcrypt-grub/mpi/mpi-cmp.c;
2509 common = lib/libgcrypt-grub/mpi/mpi-inv.c;
2510 common = lib/libgcrypt-grub/mpi/mpi-pow.c;
2511 common = lib/libgcrypt-grub/mpi/mpi-mpow.c;
2512 common = lib/libgcrypt-grub/mpi/mpih-lshift.c;
2513 common = lib/libgcrypt-grub/mpi/mpih-mul.c;
2514 common = lib/libgcrypt-grub/mpi/mpih-mul1.c;
2515 common = lib/libgcrypt-grub/mpi/mpih-mul2.c;
2516 common = lib/libgcrypt-grub/mpi/mpih-mul3.c;
2517 common = lib/libgcrypt-grub/mpi/mpih-add1.c;
2518 common = lib/libgcrypt-grub/mpi/mpih-sub1.c;
2519 common = lib/libgcrypt-grub/mpi/mpih-div.c;
2520 common = lib/libgcrypt-grub/mpi/mpicoder.c;
2521 common = lib/libgcrypt-grub/mpi/mpih-rshift.c;
2522 common = lib/libgcrypt-grub/mpi/mpi-inline.c;
2523 common = lib/libgcrypt_wrap/mem.c;
2524
2525 cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare';
2526 cppflags = '$(CPPFLAGS_GCRY)';
2527 };
2528
2529 module = {
2530 name = all_video;
2531 common = lib/fake_module.c;
2532 };
2533
2534 module = {
2535 name = gdb;
2536 common = gdb/cstub.c;
2537 common = gdb/gdb.c;
2538 i386 = gdb/i386/idt.c;
2539 i386 = gdb/i386/machdep.S;
2540 i386 = gdb/i386/signal.c;
2541 enable = i386;
2542 };
2543
2544 module = {
2545 name = testspeed;
2546 common = commands/testspeed.c;
2547 };
2548
2549 module = {
2550 name = tpm;
2551 common = commands/tpm.c;
2552 efi = commands/efi/tpm.c;
2553 enable = x86_64_efi;
2554 };
2555
2556 module = {
2557 name = tr;
2558 common = commands/tr.c;
2559 };
2560
2561 module = {
2562 name = progress;
2563 common = lib/progress.c;
2564 };
2565
2566 module = {
2567 name = file;
2568 common = commands/file.c;
2569 common = commands/file32.c;
2570 common = commands/file64.c;
2571 extra_dist = commands/fileXX.c;
2572 common = loader/i386/xen_file.c;
2573 common = loader/i386/xen_file32.c;
2574 common = loader/i386/xen_file64.c;
2575 extra_dist = loader/i386/xen_fileXX.c;
2576 };
2577 module = {
2578 name = rdmsr;
2579 common = commands/i386/rdmsr.c;
2580 enable = x86;
2581 };
2582 module = {
2583 name = wrmsr;
2584 common = commands/i386/wrmsr.c;
2585 enable = x86;
2586 };