tpm2_key_protector: Enable build for powerpc_ieee1275
[grub.git] / Makefile.util.def
blob038253b37a42221d265c536a8b8fe589e6292a11
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/key_protector.c;
44 common = grub-core/disk/cryptodisk.c;
45 common = grub-core/disk/AFSplitter.c;
46 common = grub-core/lib/pbkdf2.c;
47 common = grub-core/commands/extcmd.c;
48 common = grub-core/lib/arg.c;
49 common = grub-core/disk/ldm.c;
50 common = grub-core/disk/diskfilter.c;
51 common = grub-core/partmap/gpt.c;
52 common = grub-core/partmap/msdos.c;
53 common = grub-core/fs/proc.c;
54 common = grub-core/fs/archelp.c;
57 library = {
58 name = libgrubmods.a;
59 cflags = '-fno-builtin -Wno-undef -Wno-unused-but-set-variable';
60 cppflags = '-I$(srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -I$(srcdir)/grub-core/lib/zstd -DMINILZO_HAVE_CONFIG_H';
62 common_nodist = grub_script.tab.c;
63 common_nodist = grub_script.yy.c;
64 common_nodist = libgrub_a_init.c;
65 common_nodist = grub_script.yy.h;
66 common_nodist = grub_script.tab.h;
68 common = grub-core/commands/blocklist.c;
69 common = grub-core/commands/macbless.c;
70 common = grub-core/commands/xnu_uuid.c;
71 common = grub-core/commands/testload.c;
72 common = grub-core/commands/ls.c;
73 common = grub-core/disk/dmraid_nvidia.c;
74 common = grub-core/disk/loopback.c;
75 common = grub-core/disk/lvm.c;
76 common = grub-core/disk/mdraid_linux.c;
77 common = grub-core/disk/mdraid_linux_be.c;
78 common = grub-core/disk/mdraid1x_linux.c;
79 common = grub-core/disk/raid5_recover.c;
80 common = grub-core/disk/raid6_recover.c;
81 common = grub-core/font/font.c;
82 common = grub-core/gfxmenu/font.c;
83 common = grub-core/normal/charset.c;
84 common = grub-core/video/fb/fbblit.c;
85 common = grub-core/video/fb/fbutil.c;
86 common = grub-core/video/fb/fbfill.c;
87 common = grub-core/video/fb/video_fb.c;
88 common = grub-core/video/video.c;
89 common = grub-core/video/capture.c;
90 common = grub-core/video/colors.c;
91 common = grub-core/unidata.c;
92 common = grub-core/io/bufio.c;
93 common = grub-core/fs/affs.c;
94 common = grub-core/fs/afs.c;
95 common = grub-core/fs/bfs.c;
96 common = grub-core/fs/btrfs.c;
97 common = grub-core/fs/cbfs.c;
98 common = grub-core/fs/cpio.c;
99 common = grub-core/fs/cpio_be.c;
100 common = grub-core/fs/odc.c;
101 common = grub-core/fs/newc.c;
102 common = grub-core/fs/erofs.c;
103 common = grub-core/fs/ext2.c;
104 common = grub-core/fs/fat.c;
105 common = grub-core/fs/exfat.c;
106 common = grub-core/fs/f2fs.c;
107 common = grub-core/fs/fshelp.c;
108 common = grub-core/fs/hfs.c;
109 common = grub-core/fs/hfsplus.c;
110 common = grub-core/fs/hfspluscomp.c;
111 common = grub-core/fs/iso9660.c;
112 common = grub-core/fs/jfs.c;
113 common = grub-core/fs/minix.c;
114 common = grub-core/fs/minix2.c;
115 common = grub-core/fs/minix3.c;
116 common = grub-core/fs/minix_be.c;
117 common = grub-core/fs/minix2_be.c;
118 common = grub-core/fs/minix3_be.c;
119 common = grub-core/fs/nilfs2.c;
120 common = grub-core/fs/ntfs.c;
121 common = grub-core/fs/ntfscomp.c;
122 common = grub-core/fs/reiserfs.c;
123 common = grub-core/fs/romfs.c;
124 common = grub-core/fs/sfs.c;
125 common = grub-core/fs/squash4.c;
126 common = grub-core/fs/tar.c;
127 common = grub-core/fs/udf.c;
128 common = grub-core/fs/ufs2.c;
129 common = grub-core/fs/ufs.c;
130 common = grub-core/fs/ufs_be.c;
131 common = grub-core/fs/xfs.c;
132 common = grub-core/fs/zfs/zfscrypt.c;
133 common = grub-core/fs/zfs/zfs.c;
134 common = grub-core/fs/zfs/zfsinfo.c;
135 common = grub-core/fs/zfs/zfs_lzjb.c;
136 common = grub-core/fs/zfs/zfs_lz4.c;
137 common = grub-core/fs/zfs/zfs_sha256.c;
138 common = grub-core/fs/zfs/zfs_fletcher.c;
139 common = grub-core/lib/envblk.c;
140 common = grub-core/lib/hexdump.c;
141 common = grub-core/lib/LzFind.c;
142 common = grub-core/lib/LzmaEnc.c;
143 common = grub-core/lib/crc.c;
144 common = grub-core/lib/adler32.c;
145 common = grub-core/lib/crc64.c;
146 common = grub-core/lib/datetime.c;
147 common = grub-core/normal/misc.c;
148 common = grub-core/partmap/acorn.c;
149 common = grub-core/partmap/amiga.c;
150 common = grub-core/partmap/apple.c;
151 common = grub-core/partmap/sun.c;
152 common = grub-core/partmap/plan.c;
153 common = grub-core/partmap/dvh.c;
154 common = grub-core/partmap/sunpc.c;
155 common = grub-core/partmap/bsdlabel.c;
156 common = grub-core/partmap/dfly.c;
157 common = grub-core/script/function.c;
158 common = grub-core/script/lexer.c;
159 common = grub-core/script/main.c;
160 common = grub-core/script/script.c;
161 common = grub-core/script/argv.c;
162 common = grub-core/io/gzio.c;
163 common = grub-core/io/xzio.c;
164 common = grub-core/io/lzopio.c;
165 common = grub-core/kern/ia64/dl_helper.c;
166 common = grub-core/kern/arm/dl_helper.c;
167 common = grub-core/kern/arm64/dl_helper.c;
168 common = grub-core/kern/loongarch64/dl_helper.c;
169 common = grub-core/lib/minilzo/minilzo.c;
170 common = grub-core/lib/xzembed/xz_dec_bcj.c;
171 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
172 common = grub-core/lib/xzembed/xz_dec_stream.c;
173 common = grub-core/lib/zstd/debug.c;
174 common = grub-core/lib/zstd/entropy_common.c;
175 common = grub-core/lib/zstd/error_private.c;
176 common = grub-core/lib/zstd/fse_decompress.c;
177 common = grub-core/lib/zstd/huf_decompress.c;
178 common = grub-core/lib/zstd/module.c;
179 common = grub-core/lib/zstd/xxhash.c;
180 common = grub-core/lib/zstd/zstd_common.c;
181 common = grub-core/lib/zstd/zstd_decompress.c;
184 program = {
185 name = grub-mkimage;
186 mansection = 1;
188 common = util/grub-mkimage.c;
189 common = util/mkimage.c;
190 common = util/grub-mkimage32.c;
191 common = util/grub-mkimage64.c;
192 common = util/resolve.c;
193 common = grub-core/kern/emu/argp_common.c;
194 common = grub-core/osdep/init.c;
195 common = grub-core/osdep/config.c;
196 extra_dist = grub-core/osdep/aros/config.c;
197 extra_dist = grub-core/osdep/windows/config.c;
198 extra_dist = grub-core/osdep/unix/config.c;
199 common = util/config.c;
201 extra_dist = util/grub-mkimagexx.c;
203 ldadd = libgrubmods.a;
204 ldadd = libgrubgcry.a;
205 ldadd = libgrubkern.a;
206 ldadd = grub-core/lib/gnulib/libgnu.a;
207 ldadd = '$(LIBLZMA)';
208 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
211 program = {
212 name = grub-protect;
213 mansection = 1;
215 common = grub-core/kern/emu/argp_common.c;
216 common = grub-core/osdep/init.c;
217 common = grub-core/lib/tss2/buffer.c;
218 common = grub-core/lib/tss2/tss2_mu.c;
219 common = grub-core/lib/tss2/tpm2_cmd.c;
220 common = grub-core/commands/tpm2_key_protector/args.c;
221 common = grub-core/commands/tpm2_key_protector/tpm2key_asn1_tab.c;
222 common = util/grub-protect.c;
223 common = util/probe.c;
225 cflags = '-I$(srcdir)/grub-core/lib/tss2 -I$(srcdir)/grub-core/commands/tpm2_key_protector';
227 ldadd = libgrubmods.a;
228 ldadd = libgrubgcry.a;
229 ldadd = libgrubkern.a;
230 ldadd = grub-core/lib/gnulib/libgnu.a;
231 ldadd = '$(LIBTASN1)';
232 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
234 condition = COND_GRUB_PROTECT;
237 program = {
238 name = grub-mkrelpath;
239 mansection = 1;
241 common = util/grub-mkrelpath.c;
242 common = grub-core/kern/emu/argp_common.c;
243 common = grub-core/osdep/init.c;
245 ldadd = libgrubmods.a;
246 ldadd = libgrubgcry.a;
247 ldadd = libgrubkern.a;
248 ldadd = grub-core/lib/gnulib/libgnu.a;
249 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
252 program = {
253 name = grub-script-check;
254 mansection = 1;
256 common = util/grub-script-check.c;
257 common = grub-core/kern/emu/argp_common.c;
258 common = grub-core/osdep/init.c;
260 ldadd = libgrubmods.a;
261 ldadd = libgrubgcry.a;
262 ldadd = libgrubkern.a;
263 ldadd = grub-core/lib/gnulib/libgnu.a;
264 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
267 program = {
268 name = grub-editenv;
269 mansection = 1;
271 common = util/grub-editenv.c;
272 common = util/editenv.c;
273 common = util/grub-install-common.c;
274 common = grub-core/osdep/init.c;
275 common = grub-core/osdep/compress.c;
276 extra_dist = grub-core/osdep/unix/compress.c;
277 extra_dist = grub-core/osdep/basic/compress.c;
278 common = util/mkimage.c;
279 common = util/grub-mkimage32.c;
280 common = util/grub-mkimage64.c;
281 common = grub-core/osdep/config.c;
282 common = util/config.c;
283 common = util/resolve.c;
285 ldadd = '$(LIBLZMA)';
286 ldadd = libgrubmods.a;
287 ldadd = libgrubgcry.a;
288 ldadd = libgrubkern.a;
289 ldadd = grub-core/lib/gnulib/libgnu.a;
290 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
293 program = {
294 name = grub-mkpasswd-pbkdf2;
295 mansection = 1;
297 common = util/grub-mkpasswd-pbkdf2.c;
298 common = grub-core/kern/emu/argp_common.c;
299 common = grub-core/osdep/random.c;
300 common = grub-core/osdep/init.c;
302 ldadd = libgrubmods.a;
303 ldadd = libgrubgcry.a;
304 ldadd = libgrubkern.a;
305 ldadd = grub-core/lib/gnulib/libgnu.a;
306 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
309 program = {
310 name = grub-macho2img;
311 mansection = 1;
312 common = util/grub-macho2img.c;
313 condition = COND_APPLE_LINKER;
316 program = {
317 name = grub-fstest;
318 mansection = 1;
319 common_nodist = grub_fstest_init.c;
320 common = util/grub-fstest.c;
321 common = grub-core/kern/emu/hostfs.c;
322 common = grub-core/disk/host.c;
323 common = grub-core/osdep/init.c;
325 ldadd = libgrubmods.a;
326 ldadd = libgrubgcry.a;
327 ldadd = libgrubkern.a;
328 ldadd = grub-core/lib/gnulib/libgnu.a;
329 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
332 program = {
333 name = grub-mount;
334 mansection = 1;
335 common_nodist = grub_fstest_init.c;
336 common = util/grub-mount.c;
337 common = grub-core/kern/emu/hostfs.c;
338 common = grub-core/disk/host.c;
339 common = grub-core/osdep/init.c;
341 cflags = '$(FUSE_CFLAGS)';
343 ldadd = libgrubmods.a;
344 ldadd = libgrubgcry.a;
345 ldadd = libgrubkern.a;
346 ldadd = grub-core/lib/gnulib/libgnu.a;
347 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) $(FUSE_LIBS)';
348 condition = COND_GRUB_MOUNT;
351 program = {
352 name = grub-mkfont;
353 mansection = 1;
354 common = util/grub-mkfont.c;
355 common = grub-core/kern/emu/argp_common.c;
356 common = grub-core/osdep/init.c;
358 cflags = '$(FREETYPE_CFLAGS)';
359 cppflags = '-DGRUB_MKFONT=1';
361 ldadd = libgrubmods.a;
362 ldadd = libgrubgcry.a;
363 ldadd = libgrubkern.a;
364 ldadd = grub-core/lib/gnulib/libgnu.a;
365 ldadd = '$(FREETYPE_LIBS)';
366 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
367 condition = COND_GRUB_MKFONT;
370 program = {
371 name = grub-probe;
372 installdir = sbin;
373 mansection = 8;
374 common = util/grub-probe.c;
375 common = util/probe.c;
376 common = grub-core/osdep/ofpath.c;
377 common = grub-core/kern/emu/argp_common.c;
378 common = grub-core/osdep/init.c;
380 ldadd = libgrubmods.a;
381 ldadd = libgrubgcry.a;
382 ldadd = libgrubkern.a;
383 ldadd = grub-core/lib/gnulib/libgnu.a;
384 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
387 program = {
388 name = grub-bios-setup;
389 installdir = sbin;
390 mansection = 8;
391 common = util/grub-setup.c;
392 common = util/setup_bios.c;
393 extra_dist = util/setup.c;
394 common = grub-core/kern/emu/argp_common.c;
395 common = grub-core/lib/reed_solomon.c;
396 common = grub-core/osdep/blocklist.c;
397 extra_dist = grub-core/osdep/generic/blocklist.c;
398 extra_dist = grub-core/osdep/linux/blocklist.c;
399 extra_dist = grub-core/osdep/windows/blocklist.c;
400 common = grub-core/osdep/init.c;
402 ldadd = libgrubmods.a;
403 ldadd = libgrubkern.a;
404 ldadd = libgrubgcry.a;
405 ldadd = grub-core/lib/gnulib/libgnu.a;
406 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
407 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
410 program = {
411 name = grub-sparc64-setup;
412 installdir = sbin;
413 mansection = 8;
414 common = util/grub-setup.c;
415 common = util/setup_sparc.c;
416 common = grub-core/kern/emu/argp_common.c;
417 common = grub-core/lib/reed_solomon.c;
418 common = grub-core/osdep/ofpath.c;
419 common = grub-core/osdep/blocklist.c;
420 common = grub-core/osdep/init.c;
422 ldadd = libgrubmods.a;
423 ldadd = libgrubkern.a;
424 ldadd = libgrubgcry.a;
425 ldadd = grub-core/lib/gnulib/libgnu.a;
426 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
427 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
430 program = {
431 name = grub-ofpathname;
432 installdir = sbin;
433 mansection = 8;
434 common = util/ieee1275/grub-ofpathname.c;
435 common = grub-core/osdep/ofpath.c;
436 common = grub-core/osdep/init.c;
438 ldadd = libgrubmods.a;
439 ldadd = libgrubgcry.a;
440 ldadd = libgrubkern.a;
441 ldadd = grub-core/lib/gnulib/libgnu.a;
442 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
445 program = {
446 name = grub-mklayout;
447 mansection = 1;
449 common = util/grub-mklayout.c;
450 common = grub-core/kern/emu/argp_common.c;
451 common = grub-core/osdep/init.c;
453 ldadd = libgrubmods.a;
454 ldadd = libgrubgcry.a;
455 ldadd = libgrubkern.a;
456 ldadd = grub-core/lib/gnulib/libgnu.a;
457 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
460 program = {
461 name = grub-macbless;
462 installdir = sbin;
463 mansection = 8;
464 common = util/grub-macbless.c;
465 common = grub-core/osdep/init.c;
466 common = grub-core/kern/emu/argp_common.c;
468 ldadd = libgrubmods.a;
469 ldadd = libgrubgcry.a;
470 ldadd = libgrubkern.a;
471 ldadd = grub-core/lib/gnulib/libgnu.a;
472 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
475 data = {
476 common = util/grub.d/README;
477 installdir = grubconf;
480 script = {
481 name = '00_header';
482 common = util/grub.d/00_header.in;
483 installdir = grubconf;
486 script = {
487 name = '10_windows';
488 common = util/grub.d/10_windows.in;
489 installdir = grubconf;
490 condition = COND_HOST_WINDOWS;
493 script = {
494 name = '10_hurd';
495 common = util/grub.d/10_hurd.in;
496 installdir = grubconf;
497 condition = COND_HOST_HURD;
500 script = {
501 name = '10_kfreebsd';
502 common = util/grub.d/10_kfreebsd.in;
503 installdir = grubconf;
504 condition = COND_HOST_KFREEBSD;
507 script = {
508 name = '10_illumos';
509 common = util/grub.d/10_illumos.in;
510 installdir = grubconf;
511 condition = COND_HOST_ILLUMOS;
514 script = {
515 name = '10_netbsd';
516 common = util/grub.d/10_netbsd.in;
517 installdir = grubconf;
518 condition = COND_HOST_NETBSD;
521 script = {
522 name = '10_linux';
523 common = util/grub.d/10_linux.in;
524 installdir = grubconf;
525 condition = COND_HOST_LINUX;
528 script = {
529 name = '10_xnu';
530 common = util/grub.d/10_xnu.in;
531 installdir = grubconf;
532 condition = COND_HOST_XNU;
535 script = {
536 name = '20_linux_xen';
537 common = util/grub.d/20_linux_xen.in;
538 installdir = grubconf;
539 condition = COND_HOST_LINUX;
542 script = {
543 name = '25_bli';
544 common = util/grub.d/25_bli.in;
545 installdir = grubconf;
548 script = {
549 name = '30_os-prober';
550 common = util/grub.d/30_os-prober.in;
551 installdir = grubconf;
554 script = {
555 name = '30_uefi-firmware';
556 common = util/grub.d/30_uefi-firmware.in;
557 installdir = grubconf;
560 script = {
561 name = '40_custom';
562 common = util/grub.d/40_custom.in;
563 installdir = grubconf;
566 script = {
567 name = '41_custom';
568 common = util/grub.d/41_custom.in;
569 installdir = grubconf;
572 program = {
573 mansection = 1;
574 name = grub-mkrescue;
576 common = util/grub-mkrescue.c;
577 common = util/render-label.c;
578 common = util/glue-efi.c;
579 common = util/mkimage.c;
580 common = util/grub-mkimage32.c;
581 common = util/grub-mkimage64.c;
582 common = util/grub-install-common.c;
583 common = util/setup_bios.c;
584 common = util/setup_sparc.c;
585 common = grub-core/lib/reed_solomon.c;
586 common = grub-core/osdep/random.c;
587 common = grub-core/osdep/ofpath.c;
588 common = grub-core/osdep/platform.c;
589 common = grub-core/osdep/platform_unix.c;
590 common = grub-core/osdep/compress.c;
591 extra_dist = grub-core/osdep/unix/compress.c;
592 extra_dist = grub-core/osdep/basic/compress.c;
593 common = util/editenv.c;
594 common = grub-core/osdep/blocklist.c;
595 common = grub-core/osdep/config.c;
596 common = util/config.c;
598 common = grub-core/kern/emu/hostfs.c;
599 common = grub-core/disk/host.c;
601 common = util/resolve.c;
603 common = grub-core/kern/emu/argp_common.c;
604 common = grub-core/osdep/init.c;
606 ldadd = '$(LIBLZMA)';
607 ldadd = libgrubmods.a;
608 ldadd = libgrubgcry.a;
609 ldadd = libgrubkern.a;
610 ldadd = grub-core/lib/gnulib/libgnu.a;
611 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
613 condition = COND_HAVE_EXEC;
616 program = {
617 mansection = 1;
618 name = grub-mkstandalone;
619 common = util/grub-mkstandalone.c;
621 common = util/render-label.c;
622 common = util/glue-efi.c;
623 common = util/mkimage.c;
624 common = util/grub-mkimage32.c;
625 common = util/grub-mkimage64.c;
626 common = util/grub-install-common.c;
627 common = util/setup_bios.c;
628 common = util/setup_sparc.c;
629 common = grub-core/lib/reed_solomon.c;
630 common = grub-core/osdep/random.c;
631 common = grub-core/osdep/ofpath.c;
632 common = grub-core/osdep/platform.c;
633 common = grub-core/osdep/platform_unix.c;
634 extra_dist = grub-core/osdep/linux/platform.c;
635 extra_dist = grub-core/osdep/windows/platform.c;
636 extra_dist = grub-core/osdep/basic/platform.c;
637 extra_dist = grub-core/osdep/basic/no_platform.c;
638 extra_dist = grub-core/osdep/unix/platform.c;
639 common = grub-core/osdep/compress.c;
640 common = util/editenv.c;
641 common = grub-core/osdep/blocklist.c;
642 common = grub-core/osdep/config.c;
643 common = util/config.c;
645 common = grub-core/kern/emu/hostfs.c;
646 common = grub-core/disk/host.c;
648 common = util/resolve.c;
650 common = grub-core/kern/emu/argp_common.c;
651 common = grub-core/osdep/init.c;
653 ldadd = '$(LIBLZMA)';
654 ldadd = libgrubmods.a;
655 ldadd = libgrubgcry.a;
656 ldadd = libgrubkern.a;
657 ldadd = grub-core/lib/gnulib/libgnu.a;
658 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
661 program = {
662 mansection = 8;
663 installdir = sbin;
664 name = grub-install;
666 common = util/grub-install.c;
667 common = util/probe.c;
668 common = util/mkimage.c;
669 common = util/grub-mkimage32.c;
670 common = util/grub-mkimage64.c;
671 common = util/grub-install-common.c;
672 common = util/setup_bios.c;
673 common = util/setup_sparc.c;
674 common = grub-core/lib/reed_solomon.c;
675 common = grub-core/osdep/random.c;
676 common = grub-core/osdep/ofpath.c;
677 common = grub-core/osdep/platform.c;
678 common = grub-core/osdep/platform_unix.c;
679 common = grub-core/osdep/compress.c;
680 common = util/editenv.c;
681 common = grub-core/osdep/blocklist.c;
682 common = grub-core/osdep/config.c;
683 common = util/config.c;
684 common = util/render-label.c;
685 common = grub-core/kern/emu/hostfs.c;
686 common = grub-core/disk/host.c;
688 common = util/resolve.c;
689 common = grub-core/kern/emu/argp_common.c;
690 common = grub-core/osdep/init.c;
692 ldadd = '$(LIBLZMA)';
693 ldadd = libgrubmods.a;
694 ldadd = libgrubgcry.a;
695 ldadd = libgrubkern.a;
696 ldadd = grub-core/lib/gnulib/libgnu.a;
697 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
700 program = {
701 mansection = 1;
702 installdir = bin;
703 name = grub-mknetdir;
705 common = util/grub-mknetdir.c;
707 common = util/mkimage.c;
708 common = util/grub-mkimage32.c;
709 common = util/grub-mkimage64.c;
710 common = util/grub-install-common.c;
711 common = util/setup_bios.c;
712 common = util/setup_sparc.c;
713 common = grub-core/lib/reed_solomon.c;
714 common = grub-core/osdep/random.c;
715 common = grub-core/osdep/ofpath.c;
716 common = grub-core/osdep/platform.c;
717 common = grub-core/osdep/platform_unix.c;
718 common = grub-core/osdep/compress.c;
719 common = util/editenv.c;
720 common = grub-core/osdep/blocklist.c;
721 common = grub-core/osdep/config.c;
722 common = util/config.c;
724 common = util/resolve.c;
725 common = grub-core/kern/emu/argp_common.c;
726 common = grub-core/osdep/init.c;
728 ldadd = '$(LIBLZMA)';
729 ldadd = libgrubmods.a;
730 ldadd = libgrubgcry.a;
731 ldadd = libgrubkern.a;
732 ldadd = grub-core/lib/gnulib/libgnu.a;
733 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
736 script = {
737 name = grub-mkconfig;
738 common = util/grub-mkconfig.in;
739 mansection = 8;
740 installdir = sbin;
743 script = {
744 name = grub-set-default;
745 common = util/grub-set-default.in;
746 mansection = 8;
747 installdir = sbin;
750 script = {
751 name = grub-reboot;
752 common = util/grub-reboot.in;
753 mansection = 8;
754 installdir = sbin;
757 script = {
758 name = grub-mkconfig_lib;
759 common = util/grub-mkconfig_lib.in;
760 installdir = noinst;
763 script = {
764 name = grub-kbdcomp;
765 common = util/grub-kbdcomp.in;
766 mansection = 1;
769 script = {
770 name = grub-shell;
771 common = tests/util/grub-shell.in;
772 installdir = noinst;
775 script = {
776 name = grub-shell-tester;
777 common = tests/util/grub-shell-tester.in;
778 installdir = noinst;
781 script = {
782 name = grub-shell-luks-tester;
783 common = tests/util/grub-shell-luks-tester.in;
784 installdir = noinst;
787 script = {
788 name = grub-fs-tester;
789 common = tests/util/grub-fs-tester.in;
790 installdir = noinst;
791 dependencies = 'garbage-gen$(BUILD_EXEEXT)';
794 script = {
795 testcase = native;
796 name = erofs_test;
797 common = tests/erofs_test.in;
800 script = {
801 testcase = native;
802 name = ext234_test;
803 common = tests/ext234_test.in;
806 script = {
807 testcase = native;
808 name = squashfs_test;
809 common = tests/squashfs_test.in;
812 script = {
813 testcase = native;
814 name = iso9660_test;
815 common = tests/iso9660_test.in;
818 script = {
819 testcase = native;
820 name = hfsplus_test;
821 common = tests/hfsplus_test.in;
824 script = {
825 testcase = native;
826 name = ntfs_test;
827 common = tests/ntfs_test.in;
830 script = {
831 testcase = native;
832 name = reiserfs_test;
833 common = tests/reiserfs_test.in;
836 script = {
837 testcase = native;
838 name = fat_test;
839 common = tests/fat_test.in;
842 script = {
843 testcase = native;
844 name = minixfs_test;
845 common = tests/minixfs_test.in;
848 script = {
849 testcase = native;
850 name = xfs_test;
851 common = tests/xfs_test.in;
854 script = {
855 testcase = native;
856 name = f2fs_test;
857 common = tests/f2fs_test.in;
860 script = {
861 testcase = native;
862 name = nilfs2_test;
863 common = tests/nilfs2_test.in;
866 script = {
867 testcase = native;
868 name = romfs_test;
869 common = tests/romfs_test.in;
872 script = {
873 testcase = native;
874 name = exfat_test;
875 common = tests/exfat_test.in;
878 script = {
879 testcase = native;
880 name = tar_test;
881 common = tests/tar_test.in;
884 script = {
885 testcase = native;
886 name = udf_test;
887 common = tests/udf_test.in;
890 script = {
891 testcase = native;
892 name = hfs_test;
893 common = tests/hfs_test.in;
896 script = {
897 testcase = native;
898 name = jfs_test;
899 common = tests/jfs_test.in;
902 script = {
903 testcase = native;
904 name = btrfs_test;
905 common = tests/btrfs_test.in;
908 script = {
909 testcase = native;
910 name = zfs_test;
911 common = tests/zfs_test.in;
914 script = {
915 testcase = native;
916 name = cpio_test;
917 common = tests/cpio_test.in;
920 script = {
921 testcase = native;
922 name = example_scripted_test;
923 common = tests/example_scripted_test.in;
926 script = {
927 testcase = native;
928 name = gettext_strings_test;
929 common = tests/gettext_strings_test.in;
930 extra_dist = po/exclude.pot;
933 script = {
934 testcase = nonnative;
935 name = pata_test;
936 common = tests/pata_test.in;
939 script = {
940 testcase = nonnative;
941 name = ahci_test;
942 common = tests/ahci_test.in;
945 script = {
946 testcase = nonnative;
947 name = uhci_test;
948 common = tests/uhci_test.in;
951 script = {
952 testcase = nonnative;
953 name = ohci_test;
954 common = tests/ohci_test.in;
957 script = {
958 testcase = nonnative;
959 name = ehci_test;
960 common = tests/ehci_test.in;
963 script = {
964 testcase = nonnative;
965 name = example_grub_script_test;
966 common = tests/example_grub_script_test.in;
969 script = {
970 testcase = nonnative;
971 name = grub_script_eval;
972 common = tests/grub_script_eval.in;
975 script = {
976 testcase = nonnative;
977 name = grub_script_test;
978 common = tests/grub_script_test.in;
981 script = {
982 testcase = nonnative;
983 name = grub_script_echo1;
984 common = tests/grub_script_echo1.in;
987 script = {
988 testcase = nonnative;
989 name = grub_script_leading_whitespace;
990 common = tests/grub_script_leading_whitespace.in;
993 script = {
994 testcase = nonnative;
995 name = grub_script_echo_keywords;
996 common = tests/grub_script_echo_keywords.in;
999 script = {
1000 testcase = nonnative;
1001 name = grub_script_vars1;
1002 common = tests/grub_script_vars1.in;
1005 script = {
1006 testcase = nonnative;
1007 name = grub_script_for1;
1008 common = tests/grub_script_for1.in;
1011 script = {
1012 testcase = nonnative;
1013 name = grub_script_while1;
1014 common = tests/grub_script_while1.in;
1017 script = {
1018 testcase = nonnative;
1019 name = grub_script_if;
1020 common = tests/grub_script_if.in;
1023 script = {
1024 testcase = native;
1025 name = grub_script_blanklines;
1026 common = tests/grub_script_blanklines.in;
1029 script = {
1030 testcase = native;
1031 name = grub_script_final_semicolon;
1032 common = tests/grub_script_final_semicolon.in;
1035 script = {
1036 testcase = native;
1037 name = grub_script_dollar;
1038 common = tests/grub_script_dollar.in;
1041 script = {
1042 testcase = nonnative;
1043 name = grub_script_comments;
1044 common = tests/grub_script_comments.in;
1047 script = {
1048 testcase = nonnative;
1049 name = grub_script_functions;
1050 common = tests/grub_script_functions.in;
1053 script = {
1054 testcase = nonnative;
1055 name = grub_script_break;
1056 common = tests/grub_script_break.in;
1059 script = {
1060 testcase = nonnative;
1061 name = grub_script_continue;
1062 common = tests/grub_script_continue.in;
1065 script = {
1066 testcase = nonnative;
1067 name = grub_script_shift;
1068 common = tests/grub_script_shift.in;
1071 script = {
1072 testcase = nonnative;
1073 name = grub_script_blockarg;
1074 common = tests/grub_script_blockarg.in;
1077 script = {
1078 testcase = nonnative;
1079 name = grub_script_setparams;
1080 common = tests/grub_script_setparams.in;
1083 script = {
1084 testcase = nonnative;
1085 name = grub_script_return;
1086 common = tests/grub_script_return.in;
1089 script = {
1090 testcase = nonnative;
1091 name = grub_cmd_cryptomount;
1092 common = tests/grub_cmd_cryptomount.in;
1095 script = {
1096 testcase = nonnative;
1097 name = grub_cmd_regexp;
1098 common = tests/grub_cmd_regexp.in;
1101 script = {
1102 testcase = nonnative;
1103 name = grub_cmd_date;
1104 common = tests/grub_cmd_date.in;
1107 script = {
1108 testcase = nonnative;
1109 name = grub_cmd_set_date;
1110 common = tests/grub_cmd_set_date.in;
1113 script = {
1114 testcase = nonnative;
1115 name = grub_cmd_sleep;
1116 common = tests/grub_cmd_sleep.in;
1119 script = {
1120 testcase = nonnative;
1121 name = grub_script_expansion;
1122 common = tests/grub_script_expansion.in;
1125 script = {
1126 testcase = nonnative;
1127 name = grub_script_not;
1128 common = tests/grub_script_not.in;
1131 script = {
1132 testcase = native;
1133 name = grub_script_no_commands;
1134 common = tests/grub_script_no_commands.in;
1137 script = {
1138 testcase = nonnative;
1139 name = partmap_test;
1140 common = tests/partmap_test.in;
1143 script = {
1144 testcase = nonnative;
1145 name = hddboot_test;
1146 common = tests/hddboot_test.in;
1149 script = {
1150 testcase = nonnative;
1151 name = fddboot_test;
1152 common = tests/fddboot_test.in;
1155 script = {
1156 testcase = nonnative;
1157 name = cdboot_test;
1158 common = tests/cdboot_test.in;
1161 script = {
1162 testcase = nonnative;
1163 name = netboot_test;
1164 common = tests/netboot_test.in;
1167 script = {
1168 testcase = nonnative;
1169 name = serial_test;
1170 common = tests/serial_test.in;
1173 script = {
1174 testcase = nonnative;
1175 name = pseries_test;
1176 common = tests/pseries_test.in;
1179 script = {
1180 testcase = nonnative;
1181 name = core_compress_test;
1182 common = tests/core_compress_test.in;
1185 script = {
1186 testcase = nonnative;
1187 name = xzcompress_test;
1188 common = tests/xzcompress_test.in;
1191 script = {
1192 testcase = nonnative;
1193 name = gzcompress_test;
1194 common = tests/gzcompress_test.in;
1197 script = {
1198 testcase = nonnative;
1199 name = lzocompress_test;
1200 common = tests/lzocompress_test.in;
1203 script = {
1204 testcase = nonnative;
1205 name = grub_cmd_echo;
1206 common = tests/grub_cmd_echo.in;
1209 script = {
1210 testcase = nonnative;
1211 name = help_test;
1212 common = tests/help_test.in;
1215 script = {
1216 testcase = nonnative;
1217 name = grub_script_gettext;
1218 common = tests/grub_script_gettext.in;
1221 script = {
1222 testcase = nonnative;
1223 name = grub_script_escape_comma;
1224 common = tests/grub_script_escape_comma.in;
1227 script = {
1228 testcase = nonnative;
1229 name = grub_script_strcmp;
1230 common = tests/grub_script_strcmp.in;
1233 script = {
1234 testcase = nonnative;
1235 name = test_sha512sum;
1236 common = tests/test_sha512sum.in;
1239 script = {
1240 testcase = nonnative;
1241 name = test_unset;
1242 common = tests/test_unset.in;
1245 script = {
1246 testcase = nonnative;
1247 name = grub_func_test;
1248 common = tests/grub_func_test.in;
1251 script = {
1252 testcase = nonnative;
1253 name = grub_cmd_tr;
1254 common = tests/grub_cmd_tr.in;
1257 script = {
1258 testcase = nonnative;
1259 name = file_filter_test;
1260 common = tests/file_filter_test.in;
1263 script = {
1264 testcase = nonnative;
1265 name = grub_cmd_test;
1266 common = tests/grub_cmd_test.in;
1269 script = {
1270 testcase = native;
1271 name = syslinux_test;
1272 common = tests/syslinux_test.in;
1275 script = {
1276 testcase = native;
1277 name = luks1_test;
1278 common = tests/luks1_test.in;
1281 script = {
1282 testcase = native;
1283 name = luks2_test;
1284 common = tests/luks2_test.in;
1287 script = {
1288 testcase = native;
1289 name = asn1_test;
1290 common = tests/asn1_test.in;
1293 script = {
1294 testcase = native;
1295 name = tpm2_key_protector_test;
1296 common = tests/tpm2_key_protector_test.in;
1299 program = {
1300 testcase = native;
1301 name = example_unit_test;
1302 common = tests/example_unit_test.c;
1303 common = tests/lib/unit_test.c;
1304 common = grub-core/kern/list.c;
1305 common = grub-core/kern/misc.c;
1306 common = grub-core/tests/lib/test.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)';
1314 program = {
1315 testcase = native;
1316 name = printf_test;
1317 common = tests/printf_unit_test.c;
1318 common = tests/lib/unit_test.c;
1319 common = grub-core/kern/list.c;
1320 common = grub-core/kern/misc.c;
1321 common = grub-core/tests/lib/test.c;
1322 ldadd = libgrubmods.a;
1323 ldadd = libgrubgcry.a;
1324 ldadd = libgrubkern.a;
1325 ldadd = grub-core/lib/gnulib/libgnu.a;
1326 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1329 program = {
1330 testcase = native;
1331 name = date_test;
1332 common = tests/date_unit_test.c;
1333 common = tests/lib/unit_test.c;
1334 common = grub-core/kern/list.c;
1335 common = grub-core/kern/misc.c;
1336 common = grub-core/tests/lib/test.c;
1337 ldadd = libgrubmods.a;
1338 ldadd = libgrubgcry.a;
1339 ldadd = libgrubkern.a;
1340 ldadd = grub-core/lib/gnulib/libgnu.a;
1341 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1344 program = {
1345 testcase = native;
1346 name = priority_queue_unit_test;
1347 common = tests/priority_queue_unit_test.cc;
1348 common = tests/lib/unit_test.c;
1349 common = grub-core/kern/list.c;
1350 common = grub-core/kern/misc.c;
1351 common = grub-core/tests/lib/test.c;
1352 common = grub-core/lib/priority_queue.c;
1353 ldadd = libgrubmods.a;
1354 ldadd = libgrubgcry.a;
1355 ldadd = libgrubkern.a;
1356 ldadd = grub-core/lib/gnulib/libgnu.a;
1357 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1358 condition = COND_HAVE_CXX;
1361 program = {
1362 testcase = native;
1363 name = cmp_test;
1364 common = tests/cmp_unit_test.c;
1365 common = tests/lib/unit_test.c;
1366 common = grub-core/kern/list.c;
1367 common = grub-core/kern/misc.c;
1368 common = grub-core/tests/lib/test.c;
1369 ldadd = libgrubmods.a;
1370 ldadd = libgrubgcry.a;
1371 ldadd = libgrubkern.a;
1372 ldadd = grub-core/lib/gnulib/libgnu.a;
1373 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1376 program = {
1377 name = grub-menulst2cfg;
1378 mansection = 1;
1379 common = util/grub-menulst2cfg.c;
1380 common = grub-core/lib/legacy_parse.c;
1381 common = grub-core/lib/i386/pc/vesa_modes_table.c;
1382 common = grub-core/osdep/init.c;
1384 ldadd = libgrubmods.a;
1385 ldadd = libgrubgcry.a;
1386 ldadd = libgrubkern.a;
1387 ldadd = grub-core/lib/gnulib/libgnu.a;
1388 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1391 program = {
1392 name = grub-syslinux2cfg;
1393 mansection = 1;
1394 common = util/grub-syslinux2cfg.c;
1395 common = grub-core/lib/syslinux_parse.c;
1396 common = grub-core/lib/getline.c;
1397 common = grub-core/osdep/init.c;
1398 common = grub-core/kern/emu/hostfs.c;
1399 common = grub-core/disk/host.c;
1400 common = grub-core/kern/emu/argp_common.c;
1402 ldadd = libgrubmods.a;
1403 ldadd = libgrubgcry.a;
1404 ldadd = libgrubkern.a;
1405 ldadd = grub-core/lib/gnulib/libgnu.a;
1406 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1409 program = {
1410 name = grub-glue-efi;
1411 mansection = 1;
1413 common = util/grub-glue-efi.c;
1414 common = util/glue-efi.c;
1415 common = grub-core/kern/emu/argp_common.c;
1416 common = grub-core/osdep/init.c;
1418 ldadd = libgrubmods.a;
1419 ldadd = libgrubgcry.a;
1420 ldadd = libgrubkern.a;
1421 ldadd = grub-core/lib/gnulib/libgnu.a;
1422 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1425 program = {
1426 name = grub-render-label;
1427 mansection = 1;
1429 common = util/grub-render-label.c;
1430 common = util/render-label.c;
1431 common = grub-core/kern/emu/argp_common.c;
1432 common = grub-core/kern/emu/hostfs.c;
1433 common = grub-core/disk/host.c;
1434 common = grub-core/osdep/init.c;
1436 ldadd = libgrubmods.a;
1437 ldadd = libgrubgcry.a;
1438 ldadd = libgrubkern.a;
1439 ldadd = grub-core/lib/gnulib/libgnu.a;
1440 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1443 program = {
1444 name = grub-file;
1445 mansection = 1;
1447 common = util/grub-file.c;
1448 common = util/render-label.c;
1449 common = grub-core/commands/file.c;
1450 common = grub-core/commands/file32.c;
1451 common = grub-core/commands/file64.c;
1452 common = grub-core/loader/i386/xen_file.c;
1453 common = grub-core/loader/i386/xen_file32.c;
1454 common = grub-core/loader/i386/xen_file64.c;
1455 common = grub-core/io/offset.c;
1456 common = grub-core/kern/elf.c;
1457 common = grub-core/loader/lzss.c;
1458 common = grub-core/loader/macho.c;
1459 common = grub-core/loader/macho32.c;
1460 common = grub-core/loader/macho64.c;
1461 common = grub-core/kern/emu/hostfs.c;
1462 common = grub-core/disk/host.c;
1463 common = grub-core/osdep/init.c;
1465 ldadd = libgrubmods.a;
1466 ldadd = libgrubgcry.a;
1467 ldadd = libgrubkern.a;
1468 ldadd = grub-core/lib/gnulib/libgnu.a;
1469 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';