]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
Split make_system_path_relative_to_its_root into separate file
[grub2.git] / Makefile.util.def
1 AutoGen definitions Makefile.tpl;
2
3 library = {
4 name = libgrubkern.a;
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB)';
7
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 = util/getroot.c;
13 common = grub-core/osdep/unix/getroot.c;
14 common = grub-core/osdep/getroot.c;
15 common = grub-core/osdep/devmapper/getroot.c;
16 common = grub-core/osdep/relpath.c;
17 extra_dist = grub-core/osdep/unix/relpath.c;
18 extra_dist = grub-core/osdep/aros/relpath.c;
19 extra_dist = grub-core/osdep/windows/relpath.c;
20 common = grub-core/kern/emu/hostdisk.c;
21 common = grub-core/osdep/devmapper/hostdisk.c;
22 common = grub-core/osdep/hostdisk.c;
23 common = grub-core/osdep/unix/hostdisk.c;
24 common = grub-core/osdep/exec.c;
25 common = grub-core/osdep/sleep.c;
26 common = grub-core/osdep/password.c;
27 common = grub-core/kern/emu/misc.c;
28 common = grub-core/kern/emu/mm.c;
29 common = grub-core/kern/env.c;
30 common = grub-core/kern/err.c;
31 common = grub-core/kern/file.c;
32 common = grub-core/kern/fs.c;
33 common = grub-core/kern/list.c;
34 common = grub-core/kern/misc.c;
35 common = grub-core/kern/partition.c;
36 common = grub-core/lib/crypto.c;
37 common = grub-core/disk/luks.c;
38 common = grub-core/disk/geli.c;
39 common = grub-core/disk/cryptodisk.c;
40 common = grub-core/disk/AFSplitter.c;
41 common = grub-core/lib/pbkdf2.c;
42 common = grub-core/commands/extcmd.c;
43 common = grub-core/lib/arg.c;
44 common = grub-core/disk/ldm.c;
45 common = grub-core/disk/diskfilter.c;
46 common = grub-core/partmap/gpt.c;
47 common = grub-core/partmap/msdos.c;
48 common = grub-core/fs/proc.c;
49 };
50
51 library = {
52 name = libgrubmods.a;
53 cflags = '-fno-builtin -Wno-undef';
54 cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
55
56 common_nodist = grub_script.tab.c;
57 common_nodist = grub_script.yy.c;
58 common_nodist = libgrub_a_init.c;
59 common_nodist = grub_script.yy.h;
60 common_nodist = grub_script.tab.h;
61
62 common = grub-core/commands/blocklist.c;
63 common = grub-core/commands/xnu_uuid.c;
64 common = grub-core/commands/testload.c;
65 common = grub-core/commands/ls.c;
66 common = grub-core/disk/dmraid_nvidia.c;
67 common = grub-core/disk/loopback.c;
68 common = grub-core/disk/lvm.c;
69 common = grub-core/disk/mdraid_linux.c;
70 common = grub-core/disk/mdraid_linux_be.c;
71 common = grub-core/disk/mdraid1x_linux.c;
72 common = grub-core/disk/raid5_recover.c;
73 common = grub-core/disk/raid6_recover.c;
74 common = grub-core/font/font.c;
75 common = grub-core/gfxmenu/font.c;
76 common = grub-core/normal/charset.c;
77 common = grub-core/video/fb/fbblit.c;
78 common = grub-core/video/fb/fbutil.c;
79 common = grub-core/video/fb/fbfill.c;
80 common = grub-core/video/fb/video_fb.c;
81 common = grub-core/video/video.c;
82 common = grub-core/video/capture.c;
83 common = grub-core/video/colors.c;
84 common = grub-core/unidata.c;
85 common = grub-core/io/bufio.c;
86 common = grub-core/fs/affs.c;
87 common = grub-core/fs/afs.c;
88 common = grub-core/fs/bfs.c;
89 common = grub-core/fs/btrfs.c;
90 common = grub-core/fs/cbfs.c;
91 common = grub-core/fs/archelp.c;
92 common = grub-core/fs/cpio.c;
93 common = grub-core/fs/cpio_be.c;
94 common = grub-core/fs/odc.c;
95 common = grub-core/fs/newc.c;
96 common = grub-core/fs/ext2.c;
97 common = grub-core/fs/fat.c;
98 common = grub-core/fs/exfat.c;
99 common = grub-core/fs/fshelp.c;
100 common = grub-core/fs/hfs.c;
101 common = grub-core/fs/hfsplus.c;
102 common = grub-core/fs/hfspluscomp.c;
103 common = grub-core/fs/iso9660.c;
104 common = grub-core/fs/jfs.c;
105 common = grub-core/fs/minix.c;
106 common = grub-core/fs/minix2.c;
107 common = grub-core/fs/minix3.c;
108 common = grub-core/fs/minix_be.c;
109 common = grub-core/fs/minix2_be.c;
110 common = grub-core/fs/minix3_be.c;
111 common = grub-core/fs/nilfs2.c;
112 common = grub-core/fs/ntfs.c;
113 common = grub-core/fs/ntfscomp.c;
114 common = grub-core/fs/reiserfs.c;
115 common = grub-core/fs/romfs.c;
116 common = grub-core/fs/sfs.c;
117 common = grub-core/fs/squash4.c;
118 common = grub-core/fs/tar.c;
119 common = grub-core/fs/udf.c;
120 common = grub-core/fs/ufs2.c;
121 common = grub-core/fs/ufs.c;
122 common = grub-core/fs/ufs_be.c;
123 common = grub-core/fs/xfs.c;
124 common = grub-core/fs/zfs/zfscrypt.c;
125 common = grub-core/fs/zfs/zfs.c;
126 common = grub-core/fs/zfs/zfsinfo.c;
127 common = grub-core/fs/zfs/zfs_lzjb.c;
128 common = grub-core/fs/zfs/zfs_lz4.c;
129 common = grub-core/fs/zfs/zfs_sha256.c;
130 common = grub-core/fs/zfs/zfs_fletcher.c;
131 common = grub-core/lib/envblk.c;
132 common = grub-core/lib/hexdump.c;
133 common = grub-core/lib/LzFind.c;
134 common = grub-core/lib/LzmaEnc.c;
135 common = grub-core/lib/crc.c;
136 common = grub-core/lib/adler32.c;
137 common = grub-core/lib/crc64.c;
138 common = grub-core/normal/datetime.c;
139 common = grub-core/normal/misc.c;
140 common = grub-core/partmap/acorn.c;
141 common = grub-core/partmap/amiga.c;
142 common = grub-core/partmap/apple.c;
143 common = grub-core/partmap/sun.c;
144 common = grub-core/partmap/plan.c;
145 common = grub-core/partmap/dvh.c;
146 common = grub-core/partmap/sunpc.c;
147 common = grub-core/partmap/bsdlabel.c;
148 common = grub-core/partmap/dfly.c;
149 common = grub-core/script/function.c;
150 common = grub-core/script/lexer.c;
151 common = grub-core/script/main.c;
152 common = grub-core/script/script.c;
153 common = grub-core/script/argv.c;
154 common = grub-core/io/gzio.c;
155 common = grub-core/io/lzopio.c;
156 common = grub-core/kern/ia64/dl_helper.c;
157 common = grub-core/lib/minilzo/minilzo.c;
158 common = grub-core/lib/xzembed/xz_dec_bcj.c;
159 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
160 common = grub-core/lib/xzembed/xz_dec_stream.c;
161 };
162
163 program = {
164 name = grub-mkimage;
165 mansection = 1;
166
167 common = util/grub-mkimage.c;
168 common = util/mkimage.c;
169 common = util/resolve.c;
170 common = grub-core/kern/emu/argp_common.c;
171 common = grub-core/osdep/init.c;
172
173 common = grub-core/kern/arm/dl_helper.c;
174
175 extra_dist = util/grub-mkimagexx.c;
176
177 ldadd = libgrubmods.a;
178 ldadd = libgrubgcry.a;
179 ldadd = libgrubkern.a;
180 ldadd = grub-core/gnulib/libgnu.a;
181 ldadd = '$(LIBLZMA)';
182 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
183 cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
184 };
185
186 program = {
187 name = grub-mkrelpath;
188 mansection = 1;
189
190 common = util/grub-mkrelpath.c;
191 common = grub-core/kern/emu/argp_common.c;
192 common = grub-core/osdep/init.c;
193
194 ldadd = libgrubmods.a;
195 ldadd = libgrubgcry.a;
196 ldadd = libgrubkern.a;
197 ldadd = grub-core/gnulib/libgnu.a;
198 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
199 };
200
201 program = {
202 name = grub-script-check;
203 mansection = 1;
204
205 common = util/grub-script-check.c;
206 common = grub-core/kern/emu/argp_common.c;
207 common = grub-core/osdep/init.c;
208
209 ldadd = libgrubmods.a;
210 ldadd = libgrubgcry.a;
211 ldadd = libgrubkern.a;
212 ldadd = grub-core/gnulib/libgnu.a;
213 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
214 };
215
216 program = {
217 name = grub-editenv;
218 mansection = 1;
219
220 common = util/grub-editenv.c;
221 common = util/editenv.c;
222 common = grub-core/osdep/init.c;
223
224 ldadd = libgrubmods.a;
225 ldadd = libgrubgcry.a;
226 ldadd = libgrubkern.a;
227 ldadd = grub-core/gnulib/libgnu.a;
228 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
229 };
230
231 program = {
232 name = grub-mkpasswd-pbkdf2;
233 mansection = 1;
234
235 common = util/grub-mkpasswd-pbkdf2.c;
236 common = grub-core/kern/emu/argp_common.c;
237 common = grub-core/osdep/random.c;
238 common = grub-core/osdep/init.c;
239
240 ldadd = libgrubmods.a;
241 ldadd = libgrubgcry.a;
242 ldadd = libgrubkern.a;
243 ldadd = grub-core/gnulib/libgnu.a;
244 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
245 };
246
247 program = {
248 name = grub-macho2img;
249 mansection = 1;
250 common = util/grub-macho2img.c;
251 condition = COND_APPLE_CC;
252 };
253
254 program = {
255 name = grub-fstest;
256 mansection = 1;
257 common_nodist = grub_fstest_init.c;
258 common = util/grub-fstest.c;
259 common = grub-core/kern/emu/hostfs.c;
260 common = grub-core/disk/host.c;
261 common = grub-core/osdep/init.c;
262
263 ldadd = libgrubmods.a;
264 ldadd = libgrubgcry.a;
265 ldadd = libgrubkern.a;
266 ldadd = grub-core/gnulib/libgnu.a;
267 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
268 };
269
270 program = {
271 name = grub-mount;
272 mansection = 1;
273 common_nodist = grub_fstest_init.c;
274 common = util/grub-mount.c;
275 common = grub-core/kern/emu/hostfs.c;
276 common = grub-core/disk/host.c;
277 common = grub-core/osdep/init.c;
278
279 ldadd = libgrubmods.a;
280 ldadd = libgrubgcry.a;
281 ldadd = libgrubkern.a;
282 ldadd = grub-core/gnulib/libgnu.a;
283 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
284 condition = COND_GRUB_MOUNT;
285 };
286
287 program = {
288 name = grub-mkfont;
289 mansection = 1;
290 common = util/grub-mkfont.c;
291 common = grub-core/kern/emu/argp_common.c;
292 common = grub-core/osdep/init.c;
293
294 cflags = '$(freetype_cflags)';
295 cppflags = '-DGRUB_MKFONT=1';
296
297 ldadd = libgrubmods.a;
298 ldadd = libgrubgcry.a;
299 ldadd = libgrubkern.a;
300 ldadd = grub-core/gnulib/libgnu.a;
301 ldadd = '$(freetype_libs)';
302 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
303 condition = COND_GRUB_MKFONT;
304 };
305
306 program = {
307 name = grub-probe;
308 installdir = sbin;
309 mansection = 8;
310 common = util/grub-probe.c;
311 common = grub-core/osdep/ofpath.c;
312 common = grub-core/kern/emu/argp_common.c;
313 common = grub-core/osdep/init.c;
314
315 ldadd = libgrubmods.a;
316 ldadd = libgrubgcry.a;
317 ldadd = libgrubkern.a;
318 ldadd = grub-core/gnulib/libgnu.a;
319 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
320 };
321
322 program = {
323 name = grub-bios-setup;
324 installdir = sbin;
325 mansection = 8;
326 common = util/grub-setup.c;
327 common = util/setup_bios.c;
328 extra_dist = util/setup.c;
329 common = grub-core/kern/emu/argp_common.c;
330 common = grub-core/lib/reed_solomon.c;
331 common = grub-core/osdep/blocklist.c;
332 extra_dist = grub-core/osdep/generic/blocklist.c;
333 extra_dist = grub-core/osdep/linux/blocklist.c;
334 extra_dist = grub-core/osdep/windows/blocklist.c;
335 common = grub-core/osdep/init.c;
336
337 ldadd = libgrubmods.a;
338 ldadd = libgrubkern.a;
339 ldadd = libgrubgcry.a;
340 ldadd = grub-core/gnulib/libgnu.a;
341 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
342 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
343 };
344
345 program = {
346 name = grub-sparc64-setup;
347 installdir = sbin;
348 mansection = 8;
349 common = util/grub-setup.c;
350 common = util/setup_sparc.c;
351 common = grub-core/kern/emu/argp_common.c;
352 common = grub-core/lib/reed_solomon.c;
353 common = grub-core/osdep/ofpath.c;
354 common = grub-core/osdep/blocklist.c;
355 common = grub-core/osdep/init.c;
356
357 ldadd = libgrubmods.a;
358 ldadd = libgrubkern.a;
359 ldadd = libgrubgcry.a;
360 ldadd = grub-core/gnulib/libgnu.a;
361 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
362 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
363 };
364
365 program = {
366 name = grub-ofpathname;
367 installdir = sbin;
368 mansection = 8;
369 common = util/ieee1275/grub-ofpathname.c;
370 common = grub-core/osdep/ofpath.c;
371 common = grub-core/osdep/init.c;
372
373 ldadd = libgrubmods.a;
374 ldadd = libgrubgcry.a;
375 ldadd = libgrubkern.a;
376 ldadd = grub-core/gnulib/libgnu.a;
377 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
378 };
379
380 program = {
381 name = grub-mklayout;
382 mansection = 1;
383
384 common = util/grub-mklayout.c;
385 common = grub-core/kern/emu/argp_common.c;
386 common = grub-core/osdep/init.c;
387
388 ldadd = libgrubmods.a;
389 ldadd = libgrubgcry.a;
390 ldadd = libgrubkern.a;
391 ldadd = grub-core/gnulib/libgnu.a;
392 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
393 };
394
395 data = {
396 common = util/grub.d/README;
397 installdir = grubconf;
398 };
399
400 script = {
401 name = '00_header';
402 common = util/grub.d/00_header.in;
403 installdir = grubconf;
404 };
405
406 script = {
407 name = '10_windows';
408 common = util/grub.d/10_windows.in;
409 installdir = grubconf;
410 condition = COND_HOST_WINDOWS;
411 };
412
413 script = {
414 name = '10_hurd';
415 common = util/grub.d/10_hurd.in;
416 installdir = grubconf;
417 condition = COND_HOST_HURD;
418 };
419
420 script = {
421 name = '10_kfreebsd';
422 common = util/grub.d/10_kfreebsd.in;
423 installdir = grubconf;
424 condition = COND_HOST_KFREEBSD;
425 };
426
427 script = {
428 name = '10_illumos';
429 common = util/grub.d/10_illumos.in;
430 installdir = grubconf;
431 condition = COND_HOST_ILLUMOS;
432 };
433
434 script = {
435 name = '10_netbsd';
436 common = util/grub.d/10_netbsd.in;
437 installdir = grubconf;
438 condition = COND_HOST_NETBSD;
439 };
440
441 script = {
442 name = '10_linux';
443 common = util/grub.d/10_linux.in;
444 installdir = grubconf;
445 condition = COND_HOST_LINUX;
446 };
447
448 script = {
449 name = '10_xnu';
450 common = util/grub.d/10_xnu.in;
451 installdir = grubconf;
452 condition = COND_HOST_XNU;
453 };
454
455 script = {
456 name = '20_linux_xen';
457 common = util/grub.d/20_linux_xen.in;
458 installdir = grubconf;
459 condition = COND_HOST_LINUX;
460 };
461
462 script = {
463 name = '30_os-prober';
464 common = util/grub.d/30_os-prober.in;
465 installdir = grubconf;
466 };
467
468 script = {
469 name = '40_custom';
470 common = util/grub.d/40_custom.in;
471 installdir = grubconf;
472 };
473
474 script = {
475 name = '41_custom';
476 common = util/grub.d/41_custom.in;
477 installdir = grubconf;
478 };
479
480 script = {
481 mansection = 1;
482 name = grub-mkrescue;
483 common = util/grub-install_header;
484 common = util/grub-mkrescue.in;
485 enable = noemu;
486 };
487
488 script = {
489 mansection = 1;
490 name = grub-mkstandalone;
491 common = util/grub-install_header;
492 common = util/grub-mkstandalone.in;
493 };
494
495 script = {
496 mansection = 8;
497 installdir = sbin;
498 name = grub-install;
499
500 common = util/grub-install_header;
501 common = util/grub-install.in;
502 enable = noemu;
503 };
504
505 script = {
506 mansection = 1;
507 installdir = bin;
508 name = grub-mknetdir;
509
510 common = util/grub-install_header;
511 common = util/grub-mknetdir.in;
512 };
513
514 script = {
515 name = grub-mkconfig;
516 common = util/grub-mkconfig.in;
517 mansection = 8;
518 installdir = sbin;
519 };
520
521 script = {
522 name = grub-set-default;
523 common = util/grub-set-default.in;
524 mansection = 8;
525 installdir = sbin;
526 };
527
528 script = {
529 name = grub-reboot;
530 common = util/grub-reboot.in;
531 mansection = 8;
532 installdir = sbin;
533 };
534
535 script = {
536 name = grub-mkconfig_lib;
537 common = util/grub-mkconfig_lib.in;
538 installdir = noinst;
539 };
540
541 script = {
542 name = grub-kbdcomp;
543 common = util/grub-kbdcomp.in;
544 mansection = 1;
545 };
546
547 script = {
548 name = grub-shell;
549 common = tests/util/grub-shell.in;
550 installdir = noinst;
551 };
552
553 script = {
554 name = grub-shell-tester;
555 common = tests/util/grub-shell-tester.in;
556 installdir = noinst;
557 };
558
559 script = {
560 testcase;
561 name = example_scripted_test;
562 common = tests/example_scripted_test.in;
563 };
564
565 script = {
566 testcase;
567 name = gettext_strings_test;
568 common = tests/gettext_strings_test.in;
569 extra_dist = po/exclude.pot;
570 };
571
572 script = {
573 testcase;
574 name = pata_test;
575 common = tests/pata_test.in;
576 };
577
578 script = {
579 testcase;
580 name = ahci_test;
581 common = tests/ahci_test.in;
582 };
583
584 script = {
585 testcase;
586 name = uhci_test;
587 common = tests/uhci_test.in;
588 };
589
590 script = {
591 testcase;
592 name = ohci_test;
593 common = tests/ohci_test.in;
594 };
595
596 script = {
597 testcase;
598 name = ehci_test;
599 common = tests/ehci_test.in;
600 };
601
602 script = {
603 testcase;
604 name = example_grub_script_test;
605 common = tests/example_grub_script_test.in;
606 };
607
608 script = {
609 testcase;
610 name = grub_script_eval;
611 common = tests/grub_script_eval.in;
612 };
613
614 script = {
615 testcase;
616 name = grub_script_test;
617 common = tests/grub_script_test.in;
618 };
619
620 script = {
621 testcase;
622 name = grub_script_echo1;
623 common = tests/grub_script_echo1.in;
624 };
625
626 script = {
627 testcase;
628 name = grub_script_leading_whitespace;
629 common = tests/grub_script_leading_whitespace.in;
630 };
631
632 script = {
633 testcase;
634 name = grub_script_echo_keywords;
635 common = tests/grub_script_echo_keywords.in;
636 };
637
638 script = {
639 testcase;
640 name = grub_script_vars1;
641 common = tests/grub_script_vars1.in;
642 };
643
644 script = {
645 testcase;
646 name = grub_script_for1;
647 common = tests/grub_script_for1.in;
648 };
649
650 script = {
651 testcase;
652 name = grub_script_while1;
653 common = tests/grub_script_while1.in;
654 };
655
656 script = {
657 testcase;
658 name = grub_script_if;
659 common = tests/grub_script_if.in;
660 };
661
662 script = {
663 testcase;
664 name = grub_script_blanklines;
665 common = tests/grub_script_blanklines.in;
666 };
667
668 script = {
669 testcase;
670 name = grub_script_final_semicolon;
671 common = tests/grub_script_final_semicolon.in;
672 };
673
674 script = {
675 testcase;
676 name = grub_script_dollar;
677 common = tests/grub_script_dollar.in;
678 };
679
680 script = {
681 testcase;
682 name = grub_script_comments;
683 common = tests/grub_script_comments.in;
684 };
685
686 script = {
687 testcase;
688 name = grub_script_functions;
689 common = tests/grub_script_functions.in;
690 };
691
692 script = {
693 testcase;
694 name = grub_script_break;
695 common = tests/grub_script_break.in;
696 };
697
698 script = {
699 testcase;
700 name = grub_script_continue;
701 common = tests/grub_script_continue.in;
702 };
703
704 script = {
705 testcase;
706 name = grub_script_shift;
707 common = tests/grub_script_shift.in;
708 };
709
710 script = {
711 testcase;
712 name = grub_script_blockarg;
713 common = tests/grub_script_blockarg.in;
714 };
715
716 script = {
717 testcase;
718 name = grub_script_setparams;
719 common = tests/grub_script_setparams.in;
720 };
721
722 script = {
723 testcase;
724 name = grub_script_return;
725 common = tests/grub_script_return.in;
726 };
727
728 script = {
729 testcase;
730 name = grub_cmd_regexp;
731 common = tests/grub_cmd_regexp.in;
732 };
733
734 script = {
735 testcase;
736 name = grub_cmd_date;
737 common = tests/grub_cmd_date.in;
738 };
739
740 script = {
741 testcase;
742 name = grub_cmd_set_date;
743 common = tests/grub_cmd_set_date.in;
744 };
745
746 script = {
747 testcase;
748 name = grub_cmd_sleep;
749 common = tests/grub_cmd_sleep.in;
750 };
751
752 script = {
753 testcase;
754 name = grub_script_expansion;
755 common = tests/grub_script_expansion.in;
756 };
757
758 script = {
759 testcase;
760 name = grub_script_not;
761 common = tests/grub_script_not.in;
762 };
763
764 script = {
765 testcase;
766 name = grub_script_no_commands;
767 common = tests/grub_script_no_commands.in;
768 };
769
770 script = {
771 testcase;
772 name = partmap_test;
773 common = tests/partmap_test.in;
774 };
775
776 script = {
777 testcase;
778 name = hddboot_test;
779 common = tests/hddboot_test.in;
780 };
781
782 script = {
783 testcase;
784 name = fddboot_test;
785 common = tests/fddboot_test.in;
786 };
787
788 script = {
789 testcase;
790 name = cdboot_test;
791 common = tests/cdboot_test.in;
792 };
793
794 script = {
795 testcase;
796 name = netboot_test;
797 common = tests/netboot_test.in;
798 };
799
800 script = {
801 testcase;
802 name = pseries_test;
803 common = tests/pseries_test.in;
804 };
805
806 script = {
807 testcase;
808 name = core_compress_test;
809 common = tests/core_compress_test.in;
810 };
811
812 script = {
813 testcase;
814 name = xzcompress_test;
815 common = tests/xzcompress_test.in;
816 };
817
818 script = {
819 testcase;
820 name = gzcompress_test;
821 common = tests/gzcompress_test.in;
822 };
823
824 script = {
825 testcase;
826 name = lzocompress_test;
827 common = tests/lzocompress_test.in;
828 };
829
830 script = {
831 testcase;
832 name = grub_cmd_echo;
833 common = tests/grub_cmd_echo.in;
834 };
835
836 script = {
837 testcase;
838 name = help_test;
839 common = tests/help_test.in;
840 };
841
842 script = {
843 testcase;
844 name = grub_script_gettext;
845 common = tests/grub_script_gettext.in;
846 };
847
848 script = {
849 testcase;
850 name = grub_script_escape_comma;
851 common = tests/grub_script_escape_comma.in;
852 };
853
854 script = {
855 testcase;
856 name = grub_script_strcmp;
857 common = tests/grub_script_strcmp.in;
858 };
859
860 script = {
861 testcase;
862 name = grub_func_test;
863 common = tests/grub_func_test.in;
864 };
865
866 script = {
867 testcase;
868 name = grub_cmd_tr;
869 common = tests/grub_cmd_tr.in;
870 };
871
872 program = {
873 testcase;
874 name = example_unit_test;
875 common = tests/example_unit_test.c;
876 common = tests/lib/unit_test.c;
877 common = grub-core/kern/list.c;
878 common = grub-core/kern/misc.c;
879 common = grub-core/tests/lib/test.c;
880 ldadd = libgrubmods.a;
881 ldadd = libgrubgcry.a;
882 ldadd = libgrubkern.a;
883 ldadd = grub-core/gnulib/libgnu.a;
884 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
885 };
886
887 program = {
888 testcase;
889 name = printf_test;
890 common = tests/printf_unit_test.c;
891 common = tests/lib/unit_test.c;
892 common = grub-core/kern/list.c;
893 common = grub-core/kern/misc.c;
894 common = grub-core/tests/lib/test.c;
895 ldadd = libgrubmods.a;
896 ldadd = libgrubgcry.a;
897 ldadd = libgrubkern.a;
898 ldadd = grub-core/gnulib/libgnu.a;
899 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
900 };
901
902 program = {
903 testcase;
904 name = priority_queue_unit_test;
905 common = tests/priority_queue_unit_test.cc;
906 common = tests/lib/unit_test.c;
907 common = grub-core/kern/list.c;
908 common = grub-core/kern/misc.c;
909 common = grub-core/tests/lib/test.c;
910 common = grub-core/lib/priority_queue.c;
911 ldadd = libgrubmods.a;
912 ldadd = libgrubgcry.a;
913 ldadd = libgrubkern.a;
914 ldadd = grub-core/gnulib/libgnu.a;
915 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
916 condition = COND_HAVE_CXX;
917 };
918
919 program = {
920 testcase;
921 name = cmp_test;
922 common = tests/cmp_unit_test.c;
923 common = tests/lib/unit_test.c;
924 common = grub-core/kern/list.c;
925 common = grub-core/kern/misc.c;
926 common = grub-core/tests/lib/test.c;
927 ldadd = libgrubmods.a;
928 ldadd = libgrubgcry.a;
929 ldadd = libgrubkern.a;
930 ldadd = grub-core/gnulib/libgnu.a;
931 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
932 };
933
934 program = {
935 name = grub-menulst2cfg;
936 mansection = 1;
937 common = util/grub-menulst2cfg.c;
938 common = grub-core/lib/legacy_parse.c;
939 common = grub-core/lib/i386/pc/vesa_modes_table.c;
940 common = grub-core/osdep/init.c;
941
942 ldadd = libgrubmods.a;
943 ldadd = libgrubgcry.a;
944 ldadd = libgrubkern.a;
945 ldadd = grub-core/gnulib/libgnu.a;
946 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
947 };
948
949 program = {
950 name = grub-glue-efi;
951 mansection = 1;
952
953 common = util/grub-glue-efi.c;
954 common = util/glue-efi.c;
955 common = grub-core/kern/emu/argp_common.c;
956 common = grub-core/osdep/init.c;
957
958 ldadd = libgrubmods.a;
959 ldadd = libgrubgcry.a;
960 ldadd = libgrubkern.a;
961 ldadd = grub-core/gnulib/libgnu.a;
962 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
963 };
964
965 program = {
966 name = grub-render-label;
967 mansection = 1;
968
969 common = util/grub-render-label.c;
970 common = util/render-label.c;
971 common = grub-core/kern/emu/argp_common.c;
972 common = grub-core/kern/emu/hostfs.c;
973 common = grub-core/disk/host.c;
974 common = grub-core/osdep/init.c;
975
976 ldadd = libgrubmods.a;
977 ldadd = libgrubgcry.a;
978 ldadd = libgrubkern.a;
979 ldadd = grub-core/gnulib/libgnu.a;
980 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
981 };