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