efi: Enable CMOS on x86 EFI platforms
[grub.git] / Makefile.util.def
blob9432365a9df699f0fef5f72ecd0284731f251dd5
1 AutoGen definitions Makefile.tpl;
3 library = {
4 name = libgrubkern.a;
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB) -I$(srcdir)/grub-core/lib/json';
8 common = util/misc.c;
9 common = grub-core/kern/command.c;
10 common = grub-core/kern/device.c;
11 common = grub-core/kern/disk.c;
12 common = grub-core/lib/disk.c;
13 common = util/getroot.c;
14 common = grub-core/osdep/unix/getroot.c;
15 common = grub-core/osdep/getroot.c;
16 common = grub-core/osdep/devmapper/getroot.c;
17 common = grub-core/osdep/relpath.c;
18 extra_dist = grub-core/kern/disk_common.c;
19 extra_dist = grub-core/osdep/unix/relpath.c;
20 extra_dist = grub-core/osdep/aros/relpath.c;
21 extra_dist = grub-core/osdep/windows/relpath.c;
22 common = grub-core/kern/emu/hostdisk.c;
23 common = grub-core/osdep/devmapper/hostdisk.c;
24 common = grub-core/osdep/hostdisk.c;
25 common = grub-core/osdep/unix/hostdisk.c;
26 common = grub-core/osdep/exec.c;
27 common = grub-core/osdep/sleep.c;
28 common = grub-core/osdep/password.c;
29 common = grub-core/kern/emu/misc.c;
30 common = grub-core/kern/emu/mm.c;
31 common = grub-core/kern/env.c;
32 common = grub-core/kern/err.c;
33 common = grub-core/kern/file.c;
34 common = grub-core/kern/fs.c;
35 common = grub-core/kern/list.c;
36 common = grub-core/kern/misc.c;
37 common = grub-core/kern/partition.c;
38 common = grub-core/lib/crypto.c;
39 common = grub-core/lib/json/json.c;
40 common = grub-core/disk/luks.c;
41 common = grub-core/disk/luks2.c;
42 common = grub-core/disk/geli.c;
43 common = grub-core/disk/cryptodisk.c;
44 common = grub-core/disk/AFSplitter.c;
45 common = grub-core/lib/pbkdf2.c;
46 common = grub-core/commands/extcmd.c;
47 common = grub-core/lib/arg.c;
48 common = grub-core/disk/ldm.c;
49 common = grub-core/disk/diskfilter.c;
50 common = grub-core/partmap/gpt.c;
51 common = grub-core/partmap/msdos.c;
52 common = grub-core/fs/proc.c;
53 common = grub-core/fs/archelp.c;
56 library = {
57 name = libgrubmods.a;
58 cflags = '-fno-builtin -Wno-undef -Wno-unused-but-set-variable';
59 cppflags = '-I$(srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -I$(srcdir)/grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H';
61 common_nodist = grub_script.tab.c;
62 common_nodist = grub_script.yy.c;
63 common_nodist = libgrub_a_init.c;
64 common_nodist = grub_script.yy.h;
65 common_nodist = grub_script.tab.h;
67 common = grub-core/commands/blocklist.c;
68 common = grub-core/commands/macbless.c;
69 common = grub-core/commands/xnu_uuid.c;
70 common = grub-core/commands/testload.c;
71 common = grub-core/commands/ls.c;
72 common = grub-core/disk/dmraid_nvidia.c;
73 common = grub-core/disk/loopback.c;
74 common = grub-core/disk/lvm.c;
75 common = grub-core/disk/mdraid_linux.c;
76 common = grub-core/disk/mdraid_linux_be.c;
77 common = grub-core/disk/mdraid1x_linux.c;
78 common = grub-core/disk/raid5_recover.c;
79 common = grub-core/disk/raid6_recover.c;
80 common = grub-core/font/font.c;
81 common = grub-core/gfxmenu/font.c;
82 common = grub-core/normal/charset.c;
83 common = grub-core/video/fb/fbblit.c;
84 common = grub-core/video/fb/fbutil.c;
85 common = grub-core/video/fb/fbfill.c;
86 common = grub-core/video/fb/video_fb.c;
87 common = grub-core/video/video.c;
88 common = grub-core/video/capture.c;
89 common = grub-core/video/colors.c;
90 common = grub-core/unidata.c;
91 common = grub-core/io/bufio.c;
92 common = grub-core/fs/affs.c;
93 common = grub-core/fs/afs.c;
94 common = grub-core/fs/bfs.c;
95 common = grub-core/fs/btrfs.c;
96 common = grub-core/fs/cbfs.c;
97 common = grub-core/fs/cpio.c;
98 common = grub-core/fs/cpio_be.c;
99 common = grub-core/fs/odc.c;
100 common = grub-core/fs/newc.c;
101 common = grub-core/fs/ext2.c;
102 common = grub-core/fs/fat.c;
103 common = grub-core/fs/exfat.c;
104 common = grub-core/fs/f2fs.c;
105 common = grub-core/fs/fshelp.c;
106 common = grub-core/fs/hfs.c;
107 common = grub-core/fs/hfsplus.c;
108 common = grub-core/fs/hfspluscomp.c;
109 common = grub-core/fs/iso9660.c;
110 common = grub-core/fs/jfs.c;
111 common = grub-core/fs/minix.c;
112 common = grub-core/fs/minix2.c;
113 common = grub-core/fs/minix3.c;
114 common = grub-core/fs/minix_be.c;
115 common = grub-core/fs/minix2_be.c;
116 common = grub-core/fs/minix3_be.c;
117 common = grub-core/fs/nilfs2.c;
118 common = grub-core/fs/ntfs.c;
119 common = grub-core/fs/ntfscomp.c;
120 common = grub-core/fs/reiserfs.c;
121 common = grub-core/fs/romfs.c;
122 common = grub-core/fs/sfs.c;
123 common = grub-core/fs/squash4.c;
124 common = grub-core/fs/tar.c;
125 common = grub-core/fs/udf.c;
126 common = grub-core/fs/ufs2.c;
127 common = grub-core/fs/ufs.c;
128 common = grub-core/fs/ufs_be.c;
129 common = grub-core/fs/xfs.c;
130 common = grub-core/fs/zfs/zfscrypt.c;
131 common = grub-core/fs/zfs/zfs.c;
132 common = grub-core/fs/zfs/zfsinfo.c;
133 common = grub-core/fs/zfs/zfs_lzjb.c;
134 common = grub-core/fs/zfs/zfs_lz4.c;
135 common = grub-core/fs/zfs/zfs_sha256.c;
136 common = grub-core/fs/zfs/zfs_fletcher.c;
137 common = grub-core/lib/envblk.c;
138 common = grub-core/lib/hexdump.c;
139 common = grub-core/lib/LzFind.c;
140 common = grub-core/lib/LzmaEnc.c;
141 common = grub-core/lib/crc.c;
142 common = grub-core/lib/adler32.c;
143 common = grub-core/lib/crc64.c;
144 common = grub-core/lib/datetime.c;
145 common = grub-core/normal/misc.c;
146 common = grub-core/partmap/acorn.c;
147 common = grub-core/partmap/amiga.c;
148 common = grub-core/partmap/apple.c;
149 common = grub-core/partmap/sun.c;
150 common = grub-core/partmap/plan.c;
151 common = grub-core/partmap/dvh.c;
152 common = grub-core/partmap/sunpc.c;
153 common = grub-core/partmap/bsdlabel.c;
154 common = grub-core/partmap/dfly.c;
155 common = grub-core/script/function.c;
156 common = grub-core/script/lexer.c;
157 common = grub-core/script/main.c;
158 common = grub-core/script/script.c;
159 common = grub-core/script/argv.c;
160 common = grub-core/io/gzio.c;
161 common = grub-core/io/xzio.c;
162 common = grub-core/io/lzopio.c;
163 common = grub-core/kern/ia64/dl_helper.c;
164 common = grub-core/kern/arm/dl_helper.c;
165 common = grub-core/kern/arm64/dl_helper.c;
166 common = grub-core/kern/loongarch64/dl_helper.c;
167 common = grub-core/lib/minilzo/minilzo.c;
168 common = grub-core/lib/xzembed/xz_dec_bcj.c;
169 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
170 common = grub-core/lib/xzembed/xz_dec_stream.c;
171 common = grub-core/lib/zstd/debug.c;
172 common = grub-core/lib/zstd/entropy_common.c;
173 common = grub-core/lib/zstd/error_private.c;
174 common = grub-core/lib/zstd/fse_decompress.c;
175 common = grub-core/lib/zstd/huf_decompress.c;
176 common = grub-core/lib/zstd/module.c;
177 common = grub-core/lib/zstd/xxhash.c;
178 common = grub-core/lib/zstd/zstd_common.c;
179 common = grub-core/lib/zstd/zstd_decompress.c;
182 program = {
183 name = grub-mkimage;
184 mansection = 1;
186 common = util/grub-mkimage.c;
187 common = util/mkimage.c;
188 common = util/grub-mkimage32.c;
189 common = util/grub-mkimage64.c;
190 common = util/resolve.c;
191 common = grub-core/kern/emu/argp_common.c;
192 common = grub-core/osdep/init.c;
193 common = grub-core/osdep/config.c;
194 extra_dist = grub-core/osdep/aros/config.c;
195 extra_dist = grub-core/osdep/windows/config.c;
196 extra_dist = grub-core/osdep/unix/config.c;
197 common = util/config.c;
199 extra_dist = util/grub-mkimagexx.c;
201 ldadd = libgrubmods.a;
202 ldadd = libgrubgcry.a;
203 ldadd = libgrubkern.a;
204 ldadd = grub-core/lib/gnulib/libgnu.a;
205 ldadd = '$(LIBLZMA)';
206 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
209 program = {
210 name = grub-mkrelpath;
211 mansection = 1;
213 common = util/grub-mkrelpath.c;
214 common = grub-core/kern/emu/argp_common.c;
215 common = grub-core/osdep/init.c;
217 ldadd = libgrubmods.a;
218 ldadd = libgrubgcry.a;
219 ldadd = libgrubkern.a;
220 ldadd = grub-core/lib/gnulib/libgnu.a;
221 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
224 program = {
225 name = grub-script-check;
226 mansection = 1;
228 common = util/grub-script-check.c;
229 common = grub-core/kern/emu/argp_common.c;
230 common = grub-core/osdep/init.c;
232 ldadd = libgrubmods.a;
233 ldadd = libgrubgcry.a;
234 ldadd = libgrubkern.a;
235 ldadd = grub-core/lib/gnulib/libgnu.a;
236 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
239 program = {
240 name = grub-editenv;
241 mansection = 1;
243 common = util/grub-editenv.c;
244 common = util/editenv.c;
245 common = util/grub-install-common.c;
246 common = grub-core/osdep/init.c;
247 common = grub-core/osdep/compress.c;
248 extra_dist = grub-core/osdep/unix/compress.c;
249 extra_dist = grub-core/osdep/basic/compress.c;
250 common = util/mkimage.c;
251 common = util/grub-mkimage32.c;
252 common = util/grub-mkimage64.c;
253 common = grub-core/osdep/config.c;
254 common = util/config.c;
255 common = util/resolve.c;
257 ldadd = '$(LIBLZMA)';
258 ldadd = libgrubmods.a;
259 ldadd = libgrubgcry.a;
260 ldadd = libgrubkern.a;
261 ldadd = grub-core/lib/gnulib/libgnu.a;
262 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
265 program = {
266 name = grub-mkpasswd-pbkdf2;
267 mansection = 1;
269 common = util/grub-mkpasswd-pbkdf2.c;
270 common = grub-core/kern/emu/argp_common.c;
271 common = grub-core/osdep/random.c;
272 common = grub-core/osdep/init.c;
274 ldadd = libgrubmods.a;
275 ldadd = libgrubgcry.a;
276 ldadd = libgrubkern.a;
277 ldadd = grub-core/lib/gnulib/libgnu.a;
278 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
281 program = {
282 name = grub-macho2img;
283 mansection = 1;
284 common = util/grub-macho2img.c;
285 condition = COND_APPLE_LINKER;
288 program = {
289 name = grub-fstest;
290 mansection = 1;
291 common_nodist = grub_fstest_init.c;
292 common = util/grub-fstest.c;
293 common = grub-core/kern/emu/hostfs.c;
294 common = grub-core/disk/host.c;
295 common = grub-core/osdep/init.c;
297 ldadd = libgrubmods.a;
298 ldadd = libgrubgcry.a;
299 ldadd = libgrubkern.a;
300 ldadd = grub-core/lib/gnulib/libgnu.a;
301 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
304 program = {
305 name = grub-mount;
306 mansection = 1;
307 common_nodist = grub_fstest_init.c;
308 common = util/grub-mount.c;
309 common = grub-core/kern/emu/hostfs.c;
310 common = grub-core/disk/host.c;
311 common = grub-core/osdep/init.c;
313 cflags = '$(FUSE_CFLAGS)';
315 ldadd = libgrubmods.a;
316 ldadd = libgrubgcry.a;
317 ldadd = libgrubkern.a;
318 ldadd = grub-core/lib/gnulib/libgnu.a;
319 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) $(FUSE_LIBS)';
320 condition = COND_GRUB_MOUNT;
323 program = {
324 name = grub-mkfont;
325 mansection = 1;
326 common = util/grub-mkfont.c;
327 common = grub-core/kern/emu/argp_common.c;
328 common = grub-core/osdep/init.c;
330 cflags = '$(FREETYPE_CFLAGS)';
331 cppflags = '-DGRUB_MKFONT=1';
333 ldadd = libgrubmods.a;
334 ldadd = libgrubgcry.a;
335 ldadd = libgrubkern.a;
336 ldadd = grub-core/lib/gnulib/libgnu.a;
337 ldadd = '$(FREETYPE_LIBS)';
338 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
339 condition = COND_GRUB_MKFONT;
342 program = {
343 name = grub-probe;
344 installdir = sbin;
345 mansection = 8;
346 common = util/grub-probe.c;
347 common = util/probe.c;
348 common = grub-core/osdep/ofpath.c;
349 common = grub-core/kern/emu/argp_common.c;
350 common = grub-core/osdep/init.c;
352 ldadd = libgrubmods.a;
353 ldadd = libgrubgcry.a;
354 ldadd = libgrubkern.a;
355 ldadd = grub-core/lib/gnulib/libgnu.a;
356 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
359 program = {
360 name = grub-bios-setup;
361 installdir = sbin;
362 mansection = 8;
363 common = util/grub-setup.c;
364 common = util/setup_bios.c;
365 extra_dist = util/setup.c;
366 common = grub-core/kern/emu/argp_common.c;
367 common = grub-core/lib/reed_solomon.c;
368 common = grub-core/osdep/blocklist.c;
369 extra_dist = grub-core/osdep/generic/blocklist.c;
370 extra_dist = grub-core/osdep/linux/blocklist.c;
371 extra_dist = grub-core/osdep/windows/blocklist.c;
372 common = grub-core/osdep/init.c;
374 ldadd = libgrubmods.a;
375 ldadd = libgrubkern.a;
376 ldadd = libgrubgcry.a;
377 ldadd = grub-core/lib/gnulib/libgnu.a;
378 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
379 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
382 program = {
383 name = grub-sparc64-setup;
384 installdir = sbin;
385 mansection = 8;
386 common = util/grub-setup.c;
387 common = util/setup_sparc.c;
388 common = grub-core/kern/emu/argp_common.c;
389 common = grub-core/lib/reed_solomon.c;
390 common = grub-core/osdep/ofpath.c;
391 common = grub-core/osdep/blocklist.c;
392 common = grub-core/osdep/init.c;
394 ldadd = libgrubmods.a;
395 ldadd = libgrubkern.a;
396 ldadd = libgrubgcry.a;
397 ldadd = grub-core/lib/gnulib/libgnu.a;
398 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
399 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
402 program = {
403 name = grub-ofpathname;
404 installdir = sbin;
405 mansection = 8;
406 common = util/ieee1275/grub-ofpathname.c;
407 common = grub-core/osdep/ofpath.c;
408 common = grub-core/osdep/init.c;
410 ldadd = libgrubmods.a;
411 ldadd = libgrubgcry.a;
412 ldadd = libgrubkern.a;
413 ldadd = grub-core/lib/gnulib/libgnu.a;
414 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
417 program = {
418 name = grub-mklayout;
419 mansection = 1;
421 common = util/grub-mklayout.c;
422 common = grub-core/kern/emu/argp_common.c;
423 common = grub-core/osdep/init.c;
425 ldadd = libgrubmods.a;
426 ldadd = libgrubgcry.a;
427 ldadd = libgrubkern.a;
428 ldadd = grub-core/lib/gnulib/libgnu.a;
429 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
432 program = {
433 name = grub-macbless;
434 installdir = sbin;
435 mansection = 8;
436 common = util/grub-macbless.c;
437 common = grub-core/osdep/init.c;
438 common = grub-core/kern/emu/argp_common.c;
440 ldadd = libgrubmods.a;
441 ldadd = libgrubgcry.a;
442 ldadd = libgrubkern.a;
443 ldadd = grub-core/lib/gnulib/libgnu.a;
444 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
447 data = {
448 common = util/grub.d/README;
449 installdir = grubconf;
452 script = {
453 name = '00_header';
454 common = util/grub.d/00_header.in;
455 installdir = grubconf;
458 script = {
459 name = '10_windows';
460 common = util/grub.d/10_windows.in;
461 installdir = grubconf;
462 condition = COND_HOST_WINDOWS;
465 script = {
466 name = '10_hurd';
467 common = util/grub.d/10_hurd.in;
468 installdir = grubconf;
469 condition = COND_HOST_HURD;
472 script = {
473 name = '10_kfreebsd';
474 common = util/grub.d/10_kfreebsd.in;
475 installdir = grubconf;
476 condition = COND_HOST_KFREEBSD;
479 script = {
480 name = '10_illumos';
481 common = util/grub.d/10_illumos.in;
482 installdir = grubconf;
483 condition = COND_HOST_ILLUMOS;
486 script = {
487 name = '10_netbsd';
488 common = util/grub.d/10_netbsd.in;
489 installdir = grubconf;
490 condition = COND_HOST_NETBSD;
493 script = {
494 name = '10_linux';
495 common = util/grub.d/10_linux.in;
496 installdir = grubconf;
497 condition = COND_HOST_LINUX;
500 script = {
501 name = '10_xnu';
502 common = util/grub.d/10_xnu.in;
503 installdir = grubconf;
504 condition = COND_HOST_XNU;
507 script = {
508 name = '20_linux_xen';
509 common = util/grub.d/20_linux_xen.in;
510 installdir = grubconf;
511 condition = COND_HOST_LINUX;
514 script = {
515 name = '25_bli';
516 common = util/grub.d/25_bli.in;
517 installdir = grubconf;
520 script = {
521 name = '30_os-prober';
522 common = util/grub.d/30_os-prober.in;
523 installdir = grubconf;
526 script = {
527 name = '30_uefi-firmware';
528 common = util/grub.d/30_uefi-firmware.in;
529 installdir = grubconf;
532 script = {
533 name = '40_custom';
534 common = util/grub.d/40_custom.in;
535 installdir = grubconf;
538 script = {
539 name = '41_custom';
540 common = util/grub.d/41_custom.in;
541 installdir = grubconf;
544 program = {
545 mansection = 1;
546 name = grub-mkrescue;
548 common = util/grub-mkrescue.c;
549 common = util/render-label.c;
550 common = util/glue-efi.c;
551 common = util/mkimage.c;
552 common = util/grub-mkimage32.c;
553 common = util/grub-mkimage64.c;
554 common = util/grub-install-common.c;
555 common = util/setup_bios.c;
556 common = util/setup_sparc.c;
557 common = grub-core/lib/reed_solomon.c;
558 common = grub-core/osdep/random.c;
559 common = grub-core/osdep/ofpath.c;
560 common = grub-core/osdep/platform.c;
561 common = grub-core/osdep/platform_unix.c;
562 common = grub-core/osdep/compress.c;
563 extra_dist = grub-core/osdep/unix/compress.c;
564 extra_dist = grub-core/osdep/basic/compress.c;
565 common = util/editenv.c;
566 common = grub-core/osdep/blocklist.c;
567 common = grub-core/osdep/config.c;
568 common = util/config.c;
570 common = grub-core/kern/emu/hostfs.c;
571 common = grub-core/disk/host.c;
573 common = util/resolve.c;
575 common = grub-core/kern/emu/argp_common.c;
576 common = grub-core/osdep/init.c;
578 ldadd = '$(LIBLZMA)';
579 ldadd = libgrubmods.a;
580 ldadd = libgrubgcry.a;
581 ldadd = libgrubkern.a;
582 ldadd = grub-core/lib/gnulib/libgnu.a;
583 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
585 condition = COND_HAVE_EXEC;
588 program = {
589 mansection = 1;
590 name = grub-mkstandalone;
591 common = util/grub-mkstandalone.c;
593 common = util/render-label.c;
594 common = util/glue-efi.c;
595 common = util/mkimage.c;
596 common = util/grub-mkimage32.c;
597 common = util/grub-mkimage64.c;
598 common = util/grub-install-common.c;
599 common = util/setup_bios.c;
600 common = util/setup_sparc.c;
601 common = grub-core/lib/reed_solomon.c;
602 common = grub-core/osdep/random.c;
603 common = grub-core/osdep/ofpath.c;
604 common = grub-core/osdep/platform.c;
605 common = grub-core/osdep/platform_unix.c;
606 extra_dist = grub-core/osdep/linux/platform.c;
607 extra_dist = grub-core/osdep/windows/platform.c;
608 extra_dist = grub-core/osdep/basic/platform.c;
609 extra_dist = grub-core/osdep/basic/no_platform.c;
610 extra_dist = grub-core/osdep/unix/platform.c;
611 common = grub-core/osdep/compress.c;
612 common = util/editenv.c;
613 common = grub-core/osdep/blocklist.c;
614 common = grub-core/osdep/config.c;
615 common = util/config.c;
617 common = grub-core/kern/emu/hostfs.c;
618 common = grub-core/disk/host.c;
620 common = util/resolve.c;
622 common = grub-core/kern/emu/argp_common.c;
623 common = grub-core/osdep/init.c;
625 ldadd = '$(LIBLZMA)';
626 ldadd = libgrubmods.a;
627 ldadd = libgrubgcry.a;
628 ldadd = libgrubkern.a;
629 ldadd = grub-core/lib/gnulib/libgnu.a;
630 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
633 program = {
634 mansection = 8;
635 installdir = sbin;
636 name = grub-install;
638 common = util/grub-install.c;
639 common = util/probe.c;
640 common = util/mkimage.c;
641 common = util/grub-mkimage32.c;
642 common = util/grub-mkimage64.c;
643 common = util/grub-install-common.c;
644 common = util/setup_bios.c;
645 common = util/setup_sparc.c;
646 common = grub-core/lib/reed_solomon.c;
647 common = grub-core/osdep/random.c;
648 common = grub-core/osdep/ofpath.c;
649 common = grub-core/osdep/platform.c;
650 common = grub-core/osdep/platform_unix.c;
651 common = grub-core/osdep/compress.c;
652 common = util/editenv.c;
653 common = grub-core/osdep/blocklist.c;
654 common = grub-core/osdep/config.c;
655 common = util/config.c;
656 common = util/render-label.c;
657 common = grub-core/kern/emu/hostfs.c;
658 common = grub-core/disk/host.c;
660 common = util/resolve.c;
661 common = grub-core/kern/emu/argp_common.c;
662 common = grub-core/osdep/init.c;
664 ldadd = '$(LIBLZMA)';
665 ldadd = libgrubmods.a;
666 ldadd = libgrubgcry.a;
667 ldadd = libgrubkern.a;
668 ldadd = grub-core/lib/gnulib/libgnu.a;
669 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
672 program = {
673 mansection = 1;
674 installdir = bin;
675 name = grub-mknetdir;
677 common = util/grub-mknetdir.c;
679 common = util/mkimage.c;
680 common = util/grub-mkimage32.c;
681 common = util/grub-mkimage64.c;
682 common = util/grub-install-common.c;
683 common = util/setup_bios.c;
684 common = util/setup_sparc.c;
685 common = grub-core/lib/reed_solomon.c;
686 common = grub-core/osdep/random.c;
687 common = grub-core/osdep/ofpath.c;
688 common = grub-core/osdep/platform.c;
689 common = grub-core/osdep/platform_unix.c;
690 common = grub-core/osdep/compress.c;
691 common = util/editenv.c;
692 common = grub-core/osdep/blocklist.c;
693 common = grub-core/osdep/config.c;
694 common = util/config.c;
696 common = util/resolve.c;
697 common = grub-core/kern/emu/argp_common.c;
698 common = grub-core/osdep/init.c;
700 ldadd = '$(LIBLZMA)';
701 ldadd = libgrubmods.a;
702 ldadd = libgrubgcry.a;
703 ldadd = libgrubkern.a;
704 ldadd = grub-core/lib/gnulib/libgnu.a;
705 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
708 script = {
709 name = grub-mkconfig;
710 common = util/grub-mkconfig.in;
711 mansection = 8;
712 installdir = sbin;
715 script = {
716 name = grub-set-default;
717 common = util/grub-set-default.in;
718 mansection = 8;
719 installdir = sbin;
722 script = {
723 name = grub-reboot;
724 common = util/grub-reboot.in;
725 mansection = 8;
726 installdir = sbin;
729 script = {
730 name = grub-mkconfig_lib;
731 common = util/grub-mkconfig_lib.in;
732 installdir = noinst;
735 script = {
736 name = grub-kbdcomp;
737 common = util/grub-kbdcomp.in;
738 mansection = 1;
741 script = {
742 name = grub-shell;
743 common = tests/util/grub-shell.in;
744 installdir = noinst;
747 script = {
748 name = grub-shell-tester;
749 common = tests/util/grub-shell-tester.in;
750 installdir = noinst;
753 script = {
754 name = grub-shell-luks-tester;
755 common = tests/util/grub-shell-luks-tester.in;
756 installdir = noinst;
759 script = {
760 name = grub-fs-tester;
761 common = tests/util/grub-fs-tester.in;
762 installdir = noinst;
763 dependencies = 'garbage-gen$(BUILD_EXEEXT)';
766 script = {
767 testcase = native;
768 name = ext234_test;
769 common = tests/ext234_test.in;
772 script = {
773 testcase = native;
774 name = squashfs_test;
775 common = tests/squashfs_test.in;
778 script = {
779 testcase = native;
780 name = iso9660_test;
781 common = tests/iso9660_test.in;
784 script = {
785 testcase = native;
786 name = hfsplus_test;
787 common = tests/hfsplus_test.in;
790 script = {
791 testcase = native;
792 name = ntfs_test;
793 common = tests/ntfs_test.in;
796 script = {
797 testcase = native;
798 name = reiserfs_test;
799 common = tests/reiserfs_test.in;
802 script = {
803 testcase = native;
804 name = fat_test;
805 common = tests/fat_test.in;
808 script = {
809 testcase = native;
810 name = minixfs_test;
811 common = tests/minixfs_test.in;
814 script = {
815 testcase = native;
816 name = xfs_test;
817 common = tests/xfs_test.in;
820 script = {
821 testcase = native;
822 name = f2fs_test;
823 common = tests/f2fs_test.in;
826 script = {
827 testcase = native;
828 name = nilfs2_test;
829 common = tests/nilfs2_test.in;
832 script = {
833 testcase = native;
834 name = romfs_test;
835 common = tests/romfs_test.in;
838 script = {
839 testcase = native;
840 name = exfat_test;
841 common = tests/exfat_test.in;
844 script = {
845 testcase = native;
846 name = tar_test;
847 common = tests/tar_test.in;
850 script = {
851 testcase = native;
852 name = udf_test;
853 common = tests/udf_test.in;
856 script = {
857 testcase = native;
858 name = hfs_test;
859 common = tests/hfs_test.in;
862 script = {
863 testcase = native;
864 name = jfs_test;
865 common = tests/jfs_test.in;
868 script = {
869 testcase = native;
870 name = btrfs_test;
871 common = tests/btrfs_test.in;
874 script = {
875 testcase = native;
876 name = zfs_test;
877 common = tests/zfs_test.in;
880 script = {
881 testcase = native;
882 name = cpio_test;
883 common = tests/cpio_test.in;
886 script = {
887 testcase = native;
888 name = example_scripted_test;
889 common = tests/example_scripted_test.in;
892 script = {
893 testcase = native;
894 name = gettext_strings_test;
895 common = tests/gettext_strings_test.in;
896 extra_dist = po/exclude.pot;
899 script = {
900 testcase = nonnative;
901 name = pata_test;
902 common = tests/pata_test.in;
905 script = {
906 testcase = nonnative;
907 name = ahci_test;
908 common = tests/ahci_test.in;
911 script = {
912 testcase = nonnative;
913 name = uhci_test;
914 common = tests/uhci_test.in;
917 script = {
918 testcase = nonnative;
919 name = ohci_test;
920 common = tests/ohci_test.in;
923 script = {
924 testcase = nonnative;
925 name = ehci_test;
926 common = tests/ehci_test.in;
929 script = {
930 testcase = nonnative;
931 name = example_grub_script_test;
932 common = tests/example_grub_script_test.in;
935 script = {
936 testcase = nonnative;
937 name = grub_script_eval;
938 common = tests/grub_script_eval.in;
941 script = {
942 testcase = nonnative;
943 name = grub_script_test;
944 common = tests/grub_script_test.in;
947 script = {
948 testcase = nonnative;
949 name = grub_script_echo1;
950 common = tests/grub_script_echo1.in;
953 script = {
954 testcase = nonnative;
955 name = grub_script_leading_whitespace;
956 common = tests/grub_script_leading_whitespace.in;
959 script = {
960 testcase = nonnative;
961 name = grub_script_echo_keywords;
962 common = tests/grub_script_echo_keywords.in;
965 script = {
966 testcase = nonnative;
967 name = grub_script_vars1;
968 common = tests/grub_script_vars1.in;
971 script = {
972 testcase = nonnative;
973 name = grub_script_for1;
974 common = tests/grub_script_for1.in;
977 script = {
978 testcase = nonnative;
979 name = grub_script_while1;
980 common = tests/grub_script_while1.in;
983 script = {
984 testcase = nonnative;
985 name = grub_script_if;
986 common = tests/grub_script_if.in;
989 script = {
990 testcase = native;
991 name = grub_script_blanklines;
992 common = tests/grub_script_blanklines.in;
995 script = {
996 testcase = native;
997 name = grub_script_final_semicolon;
998 common = tests/grub_script_final_semicolon.in;
1001 script = {
1002 testcase = native;
1003 name = grub_script_dollar;
1004 common = tests/grub_script_dollar.in;
1007 script = {
1008 testcase = nonnative;
1009 name = grub_script_comments;
1010 common = tests/grub_script_comments.in;
1013 script = {
1014 testcase = nonnative;
1015 name = grub_script_functions;
1016 common = tests/grub_script_functions.in;
1019 script = {
1020 testcase = nonnative;
1021 name = grub_script_break;
1022 common = tests/grub_script_break.in;
1025 script = {
1026 testcase = nonnative;
1027 name = grub_script_continue;
1028 common = tests/grub_script_continue.in;
1031 script = {
1032 testcase = nonnative;
1033 name = grub_script_shift;
1034 common = tests/grub_script_shift.in;
1037 script = {
1038 testcase = nonnative;
1039 name = grub_script_blockarg;
1040 common = tests/grub_script_blockarg.in;
1043 script = {
1044 testcase = nonnative;
1045 name = grub_script_setparams;
1046 common = tests/grub_script_setparams.in;
1049 script = {
1050 testcase = nonnative;
1051 name = grub_script_return;
1052 common = tests/grub_script_return.in;
1055 script = {
1056 testcase = nonnative;
1057 name = grub_cmd_cryptomount;
1058 common = tests/grub_cmd_cryptomount.in;
1061 script = {
1062 testcase = nonnative;
1063 name = grub_cmd_regexp;
1064 common = tests/grub_cmd_regexp.in;
1067 script = {
1068 testcase = nonnative;
1069 name = grub_cmd_date;
1070 common = tests/grub_cmd_date.in;
1073 script = {
1074 testcase = nonnative;
1075 name = grub_cmd_set_date;
1076 common = tests/grub_cmd_set_date.in;
1079 script = {
1080 testcase = nonnative;
1081 name = grub_cmd_sleep;
1082 common = tests/grub_cmd_sleep.in;
1085 script = {
1086 testcase = nonnative;
1087 name = grub_script_expansion;
1088 common = tests/grub_script_expansion.in;
1091 script = {
1092 testcase = nonnative;
1093 name = grub_script_not;
1094 common = tests/grub_script_not.in;
1097 script = {
1098 testcase = native;
1099 name = grub_script_no_commands;
1100 common = tests/grub_script_no_commands.in;
1103 script = {
1104 testcase = nonnative;
1105 name = partmap_test;
1106 common = tests/partmap_test.in;
1109 script = {
1110 testcase = nonnative;
1111 name = hddboot_test;
1112 common = tests/hddboot_test.in;
1115 script = {
1116 testcase = nonnative;
1117 name = fddboot_test;
1118 common = tests/fddboot_test.in;
1121 script = {
1122 testcase = nonnative;
1123 name = cdboot_test;
1124 common = tests/cdboot_test.in;
1127 script = {
1128 testcase = nonnative;
1129 name = netboot_test;
1130 common = tests/netboot_test.in;
1133 script = {
1134 testcase = nonnative;
1135 name = serial_test;
1136 common = tests/serial_test.in;
1139 script = {
1140 testcase = nonnative;
1141 name = pseries_test;
1142 common = tests/pseries_test.in;
1145 script = {
1146 testcase = nonnative;
1147 name = core_compress_test;
1148 common = tests/core_compress_test.in;
1151 script = {
1152 testcase = nonnative;
1153 name = xzcompress_test;
1154 common = tests/xzcompress_test.in;
1157 script = {
1158 testcase = nonnative;
1159 name = gzcompress_test;
1160 common = tests/gzcompress_test.in;
1163 script = {
1164 testcase = nonnative;
1165 name = lzocompress_test;
1166 common = tests/lzocompress_test.in;
1169 script = {
1170 testcase = nonnative;
1171 name = grub_cmd_echo;
1172 common = tests/grub_cmd_echo.in;
1175 script = {
1176 testcase = nonnative;
1177 name = help_test;
1178 common = tests/help_test.in;
1181 script = {
1182 testcase = nonnative;
1183 name = grub_script_gettext;
1184 common = tests/grub_script_gettext.in;
1187 script = {
1188 testcase = nonnative;
1189 name = grub_script_escape_comma;
1190 common = tests/grub_script_escape_comma.in;
1193 script = {
1194 testcase = nonnative;
1195 name = grub_script_strcmp;
1196 common = tests/grub_script_strcmp.in;
1199 script = {
1200 testcase = nonnative;
1201 name = test_sha512sum;
1202 common = tests/test_sha512sum.in;
1205 script = {
1206 testcase = nonnative;
1207 name = test_unset;
1208 common = tests/test_unset.in;
1211 script = {
1212 testcase = nonnative;
1213 name = grub_func_test;
1214 common = tests/grub_func_test.in;
1217 script = {
1218 testcase = nonnative;
1219 name = grub_cmd_tr;
1220 common = tests/grub_cmd_tr.in;
1223 script = {
1224 testcase = nonnative;
1225 name = file_filter_test;
1226 common = tests/file_filter_test.in;
1229 script = {
1230 testcase = nonnative;
1231 name = grub_cmd_test;
1232 common = tests/grub_cmd_test.in;
1235 script = {
1236 testcase = native;
1237 name = syslinux_test;
1238 common = tests/syslinux_test.in;
1241 script = {
1242 testcase = native;
1243 name = luks1_test;
1244 common = tests/luks1_test.in;
1247 script = {
1248 testcase = native;
1249 name = luks2_test;
1250 common = tests/luks2_test.in;
1253 program = {
1254 testcase = native;
1255 name = example_unit_test;
1256 common = tests/example_unit_test.c;
1257 common = tests/lib/unit_test.c;
1258 common = grub-core/kern/list.c;
1259 common = grub-core/kern/misc.c;
1260 common = grub-core/tests/lib/test.c;
1261 ldadd = libgrubmods.a;
1262 ldadd = libgrubgcry.a;
1263 ldadd = libgrubkern.a;
1264 ldadd = grub-core/lib/gnulib/libgnu.a;
1265 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1268 program = {
1269 testcase = native;
1270 name = printf_test;
1271 common = tests/printf_unit_test.c;
1272 common = tests/lib/unit_test.c;
1273 common = grub-core/kern/list.c;
1274 common = grub-core/kern/misc.c;
1275 common = grub-core/tests/lib/test.c;
1276 ldadd = libgrubmods.a;
1277 ldadd = libgrubgcry.a;
1278 ldadd = libgrubkern.a;
1279 ldadd = grub-core/lib/gnulib/libgnu.a;
1280 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1283 program = {
1284 testcase = native;
1285 name = date_test;
1286 common = tests/date_unit_test.c;
1287 common = tests/lib/unit_test.c;
1288 common = grub-core/kern/list.c;
1289 common = grub-core/kern/misc.c;
1290 common = grub-core/tests/lib/test.c;
1291 ldadd = libgrubmods.a;
1292 ldadd = libgrubgcry.a;
1293 ldadd = libgrubkern.a;
1294 ldadd = grub-core/lib/gnulib/libgnu.a;
1295 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1298 program = {
1299 testcase = native;
1300 name = priority_queue_unit_test;
1301 common = tests/priority_queue_unit_test.cc;
1302 common = tests/lib/unit_test.c;
1303 common = grub-core/kern/list.c;
1304 common = grub-core/kern/misc.c;
1305 common = grub-core/tests/lib/test.c;
1306 common = grub-core/lib/priority_queue.c;
1307 ldadd = libgrubmods.a;
1308 ldadd = libgrubgcry.a;
1309 ldadd = libgrubkern.a;
1310 ldadd = grub-core/lib/gnulib/libgnu.a;
1311 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1312 condition = COND_HAVE_CXX;
1315 program = {
1316 testcase = native;
1317 name = cmp_test;
1318 common = tests/cmp_unit_test.c;
1319 common = tests/lib/unit_test.c;
1320 common = grub-core/kern/list.c;
1321 common = grub-core/kern/misc.c;
1322 common = grub-core/tests/lib/test.c;
1323 ldadd = libgrubmods.a;
1324 ldadd = libgrubgcry.a;
1325 ldadd = libgrubkern.a;
1326 ldadd = grub-core/lib/gnulib/libgnu.a;
1327 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1330 program = {
1331 name = grub-menulst2cfg;
1332 mansection = 1;
1333 common = util/grub-menulst2cfg.c;
1334 common = grub-core/lib/legacy_parse.c;
1335 common = grub-core/lib/i386/pc/vesa_modes_table.c;
1336 common = grub-core/osdep/init.c;
1338 ldadd = libgrubmods.a;
1339 ldadd = libgrubgcry.a;
1340 ldadd = libgrubkern.a;
1341 ldadd = grub-core/lib/gnulib/libgnu.a;
1342 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1345 program = {
1346 name = grub-syslinux2cfg;
1347 mansection = 1;
1348 common = util/grub-syslinux2cfg.c;
1349 common = grub-core/lib/syslinux_parse.c;
1350 common = grub-core/lib/getline.c;
1351 common = grub-core/osdep/init.c;
1352 common = grub-core/kern/emu/hostfs.c;
1353 common = grub-core/disk/host.c;
1354 common = grub-core/kern/emu/argp_common.c;
1356 ldadd = libgrubmods.a;
1357 ldadd = libgrubgcry.a;
1358 ldadd = libgrubkern.a;
1359 ldadd = grub-core/lib/gnulib/libgnu.a;
1360 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1363 program = {
1364 name = grub-glue-efi;
1365 mansection = 1;
1367 common = util/grub-glue-efi.c;
1368 common = util/glue-efi.c;
1369 common = grub-core/kern/emu/argp_common.c;
1370 common = grub-core/osdep/init.c;
1372 ldadd = libgrubmods.a;
1373 ldadd = libgrubgcry.a;
1374 ldadd = libgrubkern.a;
1375 ldadd = grub-core/lib/gnulib/libgnu.a;
1376 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1379 program = {
1380 name = grub-render-label;
1381 mansection = 1;
1383 common = util/grub-render-label.c;
1384 common = util/render-label.c;
1385 common = grub-core/kern/emu/argp_common.c;
1386 common = grub-core/kern/emu/hostfs.c;
1387 common = grub-core/disk/host.c;
1388 common = grub-core/osdep/init.c;
1390 ldadd = libgrubmods.a;
1391 ldadd = libgrubgcry.a;
1392 ldadd = libgrubkern.a;
1393 ldadd = grub-core/lib/gnulib/libgnu.a;
1394 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1397 program = {
1398 name = grub-file;
1399 mansection = 1;
1401 common = util/grub-file.c;
1402 common = util/render-label.c;
1403 common = grub-core/commands/file.c;
1404 common = grub-core/commands/file32.c;
1405 common = grub-core/commands/file64.c;
1406 common = grub-core/loader/i386/xen_file.c;
1407 common = grub-core/loader/i386/xen_file32.c;
1408 common = grub-core/loader/i386/xen_file64.c;
1409 common = grub-core/io/offset.c;
1410 common = grub-core/kern/elf.c;
1411 common = grub-core/loader/lzss.c;
1412 common = grub-core/loader/macho.c;
1413 common = grub-core/loader/macho32.c;
1414 common = grub-core/loader/macho64.c;
1415 common = grub-core/kern/emu/hostfs.c;
1416 common = grub-core/disk/host.c;
1417 common = grub-core/osdep/init.c;
1419 ldadd = libgrubmods.a;
1420 ldadd = libgrubgcry.a;
1421 ldadd = libgrubkern.a;
1422 ldadd = grub-core/lib/gnulib/libgnu.a;
1423 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';