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