]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
22258221483bddd7e14ab717a066dfc3340fa66f
[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-mkdevicemap;
310 installdir = sbin;
311 mansection = 8;
312
313 common = util/grub-mkdevicemap.c;
314 common = util/deviceiter.c;
315 common = util/devicemap.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-probe;
326 installdir = sbin;
327 mansection = 8;
328 common = util/grub-probe.c;
329 common = grub-core/osdep/ofpath.c;
330 common = grub-core/kern/emu/argp_common.c;
331 common = grub-core/osdep/init.c;
332
333 ldadd = libgrubmods.a;
334 ldadd = libgrubgcry.a;
335 ldadd = libgrubkern.a;
336 ldadd = grub-core/gnulib/libgnu.a;
337 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
338 };
339
340 program = {
341 name = grub-bios-setup;
342 installdir = sbin;
343 mansection = 8;
344 common = util/grub-setup.c;
345 common = util/setup_bios.c;
346 extra_dist = util/setup.c;
347 common = grub-core/kern/emu/argp_common.c;
348 common = grub-core/lib/reed_solomon.c;
349 common = grub-core/osdep/blocklist.c;
350 extra_dist = grub-core/osdep/generic/blocklist.c;
351 extra_dist = grub-core/osdep/linux/blocklist.c;
352 extra_dist = grub-core/osdep/windows/blocklist.c;
353 common = grub-core/osdep/init.c;
354
355 ldadd = libgrubmods.a;
356 ldadd = libgrubkern.a;
357 ldadd = libgrubgcry.a;
358 ldadd = grub-core/gnulib/libgnu.a;
359 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
360 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
361 };
362
363 program = {
364 name = grub-sparc64-setup;
365 installdir = sbin;
366 mansection = 8;
367 common = util/grub-setup.c;
368 common = util/setup_sparc.c;
369 common = grub-core/kern/emu/argp_common.c;
370 common = grub-core/lib/reed_solomon.c;
371 common = grub-core/osdep/ofpath.c;
372 common = grub-core/osdep/blocklist.c;
373 common = grub-core/osdep/init.c;
374
375 ldadd = libgrubmods.a;
376 ldadd = libgrubkern.a;
377 ldadd = libgrubgcry.a;
378 ldadd = grub-core/gnulib/libgnu.a;
379 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
380 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
381 };
382
383 program = {
384 name = grub-ofpathname;
385 installdir = sbin;
386 mansection = 8;
387 common = util/ieee1275/grub-ofpathname.c;
388 common = grub-core/osdep/ofpath.c;
389 common = grub-core/osdep/init.c;
390
391 ldadd = libgrubmods.a;
392 ldadd = libgrubgcry.a;
393 ldadd = libgrubkern.a;
394 ldadd = grub-core/gnulib/libgnu.a;
395 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
396 };
397
398 program = {
399 name = grub-mklayout;
400 mansection = 1;
401
402 common = util/grub-mklayout.c;
403 common = grub-core/kern/emu/argp_common.c;
404 common = grub-core/osdep/init.c;
405
406 ldadd = libgrubmods.a;
407 ldadd = libgrubgcry.a;
408 ldadd = libgrubkern.a;
409 ldadd = grub-core/gnulib/libgnu.a;
410 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
411 };
412
413 data = {
414 common = util/grub.d/README;
415 installdir = grubconf;
416 };
417
418 script = {
419 name = '00_header';
420 common = util/grub.d/00_header.in;
421 installdir = grubconf;
422 };
423
424 script = {
425 name = '10_windows';
426 common = util/grub.d/10_windows.in;
427 installdir = grubconf;
428 condition = COND_HOST_WINDOWS;
429 };
430
431 script = {
432 name = '10_hurd';
433 common = util/grub.d/10_hurd.in;
434 installdir = grubconf;
435 condition = COND_HOST_HURD;
436 };
437
438 script = {
439 name = '10_kfreebsd';
440 common = util/grub.d/10_kfreebsd.in;
441 installdir = grubconf;
442 condition = COND_HOST_KFREEBSD;
443 };
444
445 script = {
446 name = '10_illumos';
447 common = util/grub.d/10_illumos.in;
448 installdir = grubconf;
449 condition = COND_HOST_ILLUMOS;
450 };
451
452 script = {
453 name = '10_netbsd';
454 common = util/grub.d/10_netbsd.in;
455 installdir = grubconf;
456 condition = COND_HOST_NETBSD;
457 };
458
459 script = {
460 name = '10_linux';
461 common = util/grub.d/10_linux.in;
462 installdir = grubconf;
463 condition = COND_HOST_LINUX;
464 };
465
466 script = {
467 name = '10_xnu';
468 common = util/grub.d/10_xnu.in;
469 installdir = grubconf;
470 condition = COND_HOST_XNU;
471 };
472
473 script = {
474 name = '20_linux_xen';
475 common = util/grub.d/20_linux_xen.in;
476 installdir = grubconf;
477 condition = COND_HOST_LINUX;
478 };
479
480 script = {
481 name = '30_os-prober';
482 common = util/grub.d/30_os-prober.in;
483 installdir = grubconf;
484 };
485
486 script = {
487 name = '30_uefi-firmware';
488 common = util/grub.d/30_uefi-firmware.in;
489 installdir = grubconf;
490 };
491
492 script = {
493 name = '40_custom';
494 common = util/grub.d/40_custom.in;
495 installdir = grubconf;
496 };
497
498 script = {
499 name = '41_custom';
500 common = util/grub.d/41_custom.in;
501 installdir = grubconf;
502 };
503
504 script = {
505 mansection = 1;
506 name = grub-mkrescue;
507 common = util/grub-install_header;
508 common = util/grub-mkrescue.in;
509 enable = noemu;
510 };
511
512 script = {
513 mansection = 1;
514 name = grub-mkstandalone;
515 common = util/grub-install_header;
516 common = util/grub-mkstandalone.in;
517 };
518
519 script = {
520 mansection = 8;
521 installdir = sbin;
522 name = grub-install;
523
524 common = util/grub-install_header;
525 common = util/grub-install.in;
526 enable = noemu;
527 };
528
529 script = {
530 mansection = 1;
531 installdir = bin;
532 name = grub-mknetdir;
533
534 common = util/grub-install_header;
535 common = util/grub-mknetdir.in;
536 };
537
538 script = {
539 name = grub-mkconfig;
540 common = util/grub-mkconfig.in;
541 mansection = 8;
542 installdir = sbin;
543 };
544
545 script = {
546 name = grub-set-default;
547 common = util/grub-set-default.in;
548 mansection = 8;
549 installdir = sbin;
550 };
551
552 script = {
553 name = grub-reboot;
554 common = util/grub-reboot.in;
555 mansection = 8;
556 installdir = sbin;
557 };
558
559 script = {
560 name = grub-mkconfig_lib;
561 common = util/grub-mkconfig_lib.in;
562 installdir = noinst;
563 };
564
565 script = {
566 name = grub-kbdcomp;
567 common = util/grub-kbdcomp.in;
568 mansection = 1;
569 };
570
571 script = {
572 name = grub-shell;
573 common = tests/util/grub-shell.in;
574 installdir = noinst;
575 };
576
577 script = {
578 name = grub-shell-tester;
579 common = tests/util/grub-shell-tester.in;
580 installdir = noinst;
581 };
582
583 script = {
584 testcase;
585 name = example_scripted_test;
586 common = tests/example_scripted_test.in;
587 };
588
589 script = {
590 testcase;
591 name = gettext_strings_test;
592 common = tests/gettext_strings_test.in;
593 extra_dist = po/exclude.pot;
594 };
595
596 script = {
597 testcase;
598 name = pata_test;
599 common = tests/pata_test.in;
600 };
601
602 script = {
603 testcase;
604 name = ahci_test;
605 common = tests/ahci_test.in;
606 };
607
608 script = {
609 testcase;
610 name = uhci_test;
611 common = tests/uhci_test.in;
612 };
613
614 script = {
615 testcase;
616 name = ohci_test;
617 common = tests/ohci_test.in;
618 };
619
620 script = {
621 testcase;
622 name = ehci_test;
623 common = tests/ehci_test.in;
624 };
625
626 script = {
627 testcase;
628 name = example_grub_script_test;
629 common = tests/example_grub_script_test.in;
630 };
631
632 script = {
633 testcase;
634 name = grub_script_eval;
635 common = tests/grub_script_eval.in;
636 };
637
638 script = {
639 testcase;
640 name = grub_script_test;
641 common = tests/grub_script_test.in;
642 };
643
644 script = {
645 testcase;
646 name = grub_script_echo1;
647 common = tests/grub_script_echo1.in;
648 };
649
650 script = {
651 testcase;
652 name = grub_script_leading_whitespace;
653 common = tests/grub_script_leading_whitespace.in;
654 };
655
656 script = {
657 testcase;
658 name = grub_script_echo_keywords;
659 common = tests/grub_script_echo_keywords.in;
660 };
661
662 script = {
663 testcase;
664 name = grub_script_vars1;
665 common = tests/grub_script_vars1.in;
666 };
667
668 script = {
669 testcase;
670 name = grub_script_for1;
671 common = tests/grub_script_for1.in;
672 };
673
674 script = {
675 testcase;
676 name = grub_script_while1;
677 common = tests/grub_script_while1.in;
678 };
679
680 script = {
681 testcase;
682 name = grub_script_if;
683 common = tests/grub_script_if.in;
684 };
685
686 script = {
687 testcase;
688 name = grub_script_blanklines;
689 common = tests/grub_script_blanklines.in;
690 };
691
692 script = {
693 testcase;
694 name = grub_script_final_semicolon;
695 common = tests/grub_script_final_semicolon.in;
696 };
697
698 script = {
699 testcase;
700 name = grub_script_dollar;
701 common = tests/grub_script_dollar.in;
702 };
703
704 script = {
705 testcase;
706 name = grub_script_comments;
707 common = tests/grub_script_comments.in;
708 };
709
710 script = {
711 testcase;
712 name = grub_script_functions;
713 common = tests/grub_script_functions.in;
714 };
715
716 script = {
717 testcase;
718 name = grub_script_break;
719 common = tests/grub_script_break.in;
720 };
721
722 script = {
723 testcase;
724 name = grub_script_continue;
725 common = tests/grub_script_continue.in;
726 };
727
728 script = {
729 testcase;
730 name = grub_script_shift;
731 common = tests/grub_script_shift.in;
732 };
733
734 script = {
735 testcase;
736 name = grub_script_blockarg;
737 common = tests/grub_script_blockarg.in;
738 };
739
740 script = {
741 testcase;
742 name = grub_script_setparams;
743 common = tests/grub_script_setparams.in;
744 };
745
746 script = {
747 testcase;
748 name = grub_script_return;
749 common = tests/grub_script_return.in;
750 };
751
752 script = {
753 testcase;
754 name = grub_cmd_regexp;
755 common = tests/grub_cmd_regexp.in;
756 };
757
758 script = {
759 testcase;
760 name = grub_cmd_date;
761 common = tests/grub_cmd_date.in;
762 };
763
764 script = {
765 testcase;
766 name = grub_cmd_set_date;
767 common = tests/grub_cmd_set_date.in;
768 };
769
770 script = {
771 testcase;
772 name = grub_cmd_sleep;
773 common = tests/grub_cmd_sleep.in;
774 };
775
776 script = {
777 testcase;
778 name = grub_script_expansion;
779 common = tests/grub_script_expansion.in;
780 };
781
782 script = {
783 testcase;
784 name = grub_script_not;
785 common = tests/grub_script_not.in;
786 };
787
788 script = {
789 testcase;
790 name = grub_script_no_commands;
791 common = tests/grub_script_no_commands.in;
792 };
793
794 script = {
795 testcase;
796 name = partmap_test;
797 common = tests/partmap_test.in;
798 };
799
800 script = {
801 testcase;
802 name = hddboot_test;
803 common = tests/hddboot_test.in;
804 };
805
806 script = {
807 testcase;
808 name = fddboot_test;
809 common = tests/fddboot_test.in;
810 };
811
812 script = {
813 testcase;
814 name = cdboot_test;
815 common = tests/cdboot_test.in;
816 };
817
818 script = {
819 testcase;
820 name = netboot_test;
821 common = tests/netboot_test.in;
822 };
823
824 script = {
825 testcase;
826 name = pseries_test;
827 common = tests/pseries_test.in;
828 };
829
830 script = {
831 testcase;
832 name = core_compress_test;
833 common = tests/core_compress_test.in;
834 };
835
836 script = {
837 testcase;
838 name = xzcompress_test;
839 common = tests/xzcompress_test.in;
840 };
841
842 script = {
843 testcase;
844 name = gzcompress_test;
845 common = tests/gzcompress_test.in;
846 };
847
848 script = {
849 testcase;
850 name = lzocompress_test;
851 common = tests/lzocompress_test.in;
852 };
853
854 script = {
855 testcase;
856 name = grub_cmd_echo;
857 common = tests/grub_cmd_echo.in;
858 };
859
860 script = {
861 testcase;
862 name = help_test;
863 common = tests/help_test.in;
864 };
865
866 script = {
867 testcase;
868 name = grub_script_gettext;
869 common = tests/grub_script_gettext.in;
870 };
871
872 script = {
873 testcase;
874 name = grub_script_escape_comma;
875 common = tests/grub_script_escape_comma.in;
876 };
877
878 script = {
879 testcase;
880 name = grub_script_strcmp;
881 common = tests/grub_script_strcmp.in;
882 };
883
884 script = {
885 testcase;
886 name = test_sha512sum;
887 common = tests/test_sha512sum.in;
888 };
889
890 script = {
891 testcase;
892 name = test_unset;
893 common = tests/test_unset.in;
894 };
895
896 script = {
897 testcase;
898 name = grub_func_test;
899 common = tests/grub_func_test.in;
900 };
901
902 script = {
903 testcase;
904 name = grub_cmd_tr;
905 common = tests/grub_cmd_tr.in;
906 };
907
908 program = {
909 testcase;
910 name = example_unit_test;
911 common = tests/example_unit_test.c;
912 common = tests/lib/unit_test.c;
913 common = grub-core/kern/list.c;
914 common = grub-core/kern/misc.c;
915 common = grub-core/tests/lib/test.c;
916 ldadd = libgrubmods.a;
917 ldadd = libgrubgcry.a;
918 ldadd = libgrubkern.a;
919 ldadd = grub-core/gnulib/libgnu.a;
920 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
921 };
922
923 program = {
924 testcase;
925 name = printf_test;
926 common = tests/printf_unit_test.c;
927 common = tests/lib/unit_test.c;
928 common = grub-core/kern/list.c;
929 common = grub-core/kern/misc.c;
930 common = grub-core/tests/lib/test.c;
931 ldadd = libgrubmods.a;
932 ldadd = libgrubgcry.a;
933 ldadd = libgrubkern.a;
934 ldadd = grub-core/gnulib/libgnu.a;
935 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
936 };
937
938 program = {
939 testcase;
940 name = date_test;
941 common = tests/date_unit_test.c;
942 common = tests/lib/unit_test.c;
943 common = grub-core/kern/list.c;
944 common = grub-core/kern/misc.c;
945 common = grub-core/tests/lib/test.c;
946 ldadd = libgrubmods.a;
947 ldadd = libgrubgcry.a;
948 ldadd = libgrubkern.a;
949 ldadd = grub-core/gnulib/libgnu.a;
950 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
951 };
952
953 program = {
954 testcase;
955 name = priority_queue_unit_test;
956 common = tests/priority_queue_unit_test.cc;
957 common = tests/lib/unit_test.c;
958 common = grub-core/kern/list.c;
959 common = grub-core/kern/misc.c;
960 common = grub-core/tests/lib/test.c;
961 common = grub-core/lib/priority_queue.c;
962 ldadd = libgrubmods.a;
963 ldadd = libgrubgcry.a;
964 ldadd = libgrubkern.a;
965 ldadd = grub-core/gnulib/libgnu.a;
966 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
967 condition = COND_HAVE_CXX;
968 };
969
970 program = {
971 testcase;
972 name = cmp_test;
973 common = tests/cmp_unit_test.c;
974 common = tests/lib/unit_test.c;
975 common = grub-core/kern/list.c;
976 common = grub-core/kern/misc.c;
977 common = grub-core/tests/lib/test.c;
978 ldadd = libgrubmods.a;
979 ldadd = libgrubgcry.a;
980 ldadd = libgrubkern.a;
981 ldadd = grub-core/gnulib/libgnu.a;
982 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
983 };
984
985 program = {
986 name = grub-menulst2cfg;
987 mansection = 1;
988 common = util/grub-menulst2cfg.c;
989 common = grub-core/lib/legacy_parse.c;
990 common = grub-core/lib/i386/pc/vesa_modes_table.c;
991 common = grub-core/osdep/init.c;
992
993 ldadd = libgrubmods.a;
994 ldadd = libgrubgcry.a;
995 ldadd = libgrubkern.a;
996 ldadd = grub-core/gnulib/libgnu.a;
997 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
998 };
999
1000 program = {
1001 name = grub-glue-efi;
1002 mansection = 1;
1003
1004 common = util/grub-glue-efi.c;
1005 common = util/glue-efi.c;
1006 common = grub-core/kern/emu/argp_common.c;
1007 common = grub-core/osdep/init.c;
1008
1009 ldadd = libgrubmods.a;
1010 ldadd = libgrubgcry.a;
1011 ldadd = libgrubkern.a;
1012 ldadd = grub-core/gnulib/libgnu.a;
1013 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1014 };
1015
1016 program = {
1017 name = grub-render-label;
1018 mansection = 1;
1019
1020 common = util/grub-render-label.c;
1021 common = util/render-label.c;
1022 common = grub-core/kern/emu/argp_common.c;
1023 common = grub-core/kern/emu/hostfs.c;
1024 common = grub-core/disk/host.c;
1025 common = grub-core/osdep/init.c;
1026
1027 ldadd = libgrubmods.a;
1028 ldadd = libgrubgcry.a;
1029 ldadd = libgrubkern.a;
1030 ldadd = grub-core/gnulib/libgnu.a;
1031 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1032 };