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