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