]> git.proxmox.com Git - grub2.git/blame - modules.def
fix pkglibrootdir for grub-mkimage
[grub2.git] / modules.def
CommitLineData
8c411768
BC
1AutoGen definitions Makefile.tpl;
2
3library = {
d5c3b7ce 4 name = libgrub.a;
8c411768
BC
5 cflags = '$(CFLAGS_GCRY)';
6 cppflags = '$(CPPFLAGS_GCRY)';
7
8 nodist = grub_script.tab.c;
9 nodist = grub_script.yy.c;
d5c3b7ce 10 nodist = libgrub_a_init.c;
8c411768
BC
11
12 source = grub-core/gnulib/error.c;
13 source = grub-core/gnulib/fnmatch.c;
14 source = grub-core/gnulib/getdelim.c;
15 source = grub-core/gnulib/getline.c;
16 source = grub-core/gnulib/getopt1.c;
17 source = grub-core/gnulib/getopt.c;
18 source = grub-core/gnulib/progname.c;
19
20 source = util/misc.c;
21 source = grub-core/kern/misc.c;
16321bf9 22 source = grub-core/kern/emu/mm.c;
8c411768
BC
23 source = grub-core/kern/emu/misc.c;
24 source = grub-core/kern/emu/hostfs.c;
25 source = grub-core/kern/emu/getroot.c;
26 source = grub-core/kern/emu/hostdisk.c;
27
28 source = grub-core/commands/blocklist.c;
29 source = grub-core/commands/extcmd.c;
30 source = grub-core/commands/ls.c;
31 source = grub-core/disk/dmraid_nvidia.c;
32 source = grub-core/disk/host.c;
33 source = grub-core/disk/loopback.c;
34 source = grub-core/disk/lvm.c;
35 source = grub-core/disk/mdraid_linux.c;
36 source = grub-core/disk/raid5_recover.c;
37 source = grub-core/disk/raid6_recover.c;
38 source = grub-core/disk/raid.c;
39 source = grub-core/fs/affs.c;
40 source = grub-core/fs/afs_be.c;
41 source = grub-core/fs/afs.c;
42 source = grub-core/fs/befs_be.c;
43 source = grub-core/fs/befs.c;
44 source = grub-core/fs/cpio.c;
45 source = grub-core/fs/ext2.c;
46 source = grub-core/fs/fat.c;
47 source = grub-core/fs/fshelp.c;
48 source = grub-core/fs/hfs.c;
49 source = grub-core/fs/hfsplus.c;
50 source = grub-core/fs/iso9660.c;
51 source = grub-core/fs/jfs.c;
52 source = grub-core/fs/minix.c;
53 source = grub-core/fs/nilfs2.c;
54 source = grub-core/fs/ntfs.c;
55 source = grub-core/fs/ntfscomp.c;
56 source = grub-core/fs/reiserfs.c;
57 source = grub-core/fs/sfs.c;
58 source = grub-core/fs/tar.c;
59 source = grub-core/fs/udf.c;
60 source = grub-core/fs/ufs2.c;
61 source = grub-core/fs/ufs.c;
62 source = grub-core/fs/xfs.c;
63 source = grub-core/kern/command.c;
64 source = grub-core/kern/device.c;
65 source = grub-core/kern/disk.c;
66 source = grub-core/kern/env.c;
67 source = grub-core/kern/err.c;
68 source = grub-core/kern/file.c;
69 source = grub-core/kern/fs.c;
70 source = grub-core/kern/handler.c;
71 source = grub-core/kern/list.c;
72 source = grub-core/kern/parser.c;
73 source = grub-core/kern/partition.c;
74 source = grub-core/lib/arg.c;
75 source = grub-core/lib/crc.c;
76 source = grub-core/lib/crypto.c;
77 source = grub-core/lib/envblk.c;
78 source = grub-core/lib/hexdump.c;
79 source = grub-core/lib/libgcrypt-grub/cipher/sha512.c;
80 source = grub-core/lib/LzFind.c;
81 source = grub-core/lib/LzmaEnc.c;
82 source = grub-core/lib/pbkdf2.c;
83 source = grub-core/normal/datetime.c;
84 source = grub-core/normal/misc.c;
85 source = grub-core/partmap/acorn.c;
86 source = grub-core/partmap/amiga.c;
87 source = grub-core/partmap/apple.c;
88 source = grub-core/partmap/gpt.c;
89 source = grub-core/partmap/msdos.c;
90 source = grub-core/partmap/sun.c;
91 source = grub-core/script/function.c;
92 source = grub-core/script/lexer.c;
93 source = grub-core/script/main.c;
94 source = grub-core/script/script.c;
95 common;
96};
97
98program = {
99 name = grub-bin2h;
100 source = util/bin2h.c;
d5c3b7ce 101 ldadd = libgrub.a;
83fb6e1d 102 ldadd = '$(LIBINTL)';
8c411768
BC
103 mansection = 1;
104 common;
105};
106
107program = {
108 name = grub-mkimage;
109 mansection = 1;
110
692d7c28 111 source = util/grub-mkimage.c;
8c411768 112 source = util/resolve.c;
a60f6ee1 113 extra_dist = util/grub-mkimagexx.c;
8c411768 114
d5c3b7ce 115 ldadd = libgrub.a;
83fb6e1d 116 ldadd = '$(LIBINTL)';
8c411768 117
d270972a 118 cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
8c411768
BC
119 common;
120};
121
122program = {
123 name = grub-mkrelpath;
124 mansection = 1;
125
126 source = util/grub-mkrelpath.c;
127
d5c3b7ce 128 ldadd = libgrub.a;
83fb6e1d 129 ldadd = '$(LIBINTL)';
8c411768
BC
130 common;
131};
132
133program = {
134 name = grub-script-check;
135 mansection = 1;
136
137 source = util/grub-script-check.c;
138
d5c3b7ce 139 ldadd = libgrub.a;
83fb6e1d 140 ldadd = '$(LIBINTL)';
8c411768
BC
141 common;
142};
143
144program = {
145 name = grub-editenv;
146 mansection = 1;
147
148 source = util/grub-editenv.c;
149
d5c3b7ce 150 ldadd = libgrub.a;
83fb6e1d 151 ldadd = '$(LIBINTL)';
8c411768
BC
152 common;
153};
154
155program = {
156 name = grub-mkpasswd-pbkdf2;
157 mansection = 1;
158
159 source = util/grub-mkpasswd-pbkdf2.c;
160
d5c3b7ce 161 ldadd = libgrub.a;
83fb6e1d 162 ldadd = '$(LIBINTL)';
8c411768
BC
163 cflags = '$(CFLAGS_GCRY)';
164 cppflags = '$(CPPFLAGS_GCRY)';
165 common;
166};
167
168program = {
169 name = grub-macho2img;
170 mansection = 1;
171 source = util/grub-macho2img.c;
172};
173
174program = {
175 name = grub-pe2elf;
176 mansection = 1;
177 source = util/grub-pe2elf.c;
178
d5c3b7ce 179 ldadd = libgrub.a;
2d465fb0
BC
180 ldadd = '$(LIBINTL)';
181 enable = COND_GRUB_PE2ELF;
182 common;
8c411768
BC
183};
184
185program = {
186 name = grub-fstest;
187 mansection = 1;
188 source = util/grub-fstest.c;
189
d5c3b7ce 190 ldadd = libgrub.a;
83fb6e1d 191 ldadd = '$(LIBINTL)';
8c411768
BC
192 enable = COND_GRUB_FSTEST;
193 common;
194};
195
196program = {
197 name = grub-mkfont;
198 mansection = 1;
199 source = util/grub-mkfont.c;
200
8c411768 201 cflags = '$(freetype_cflags)';
2d465fb0
BC
202
203 ldadd = libgrub.a;
204 ldadd = '$(LIBINTL)';
205 ldadd = '$(freetype_libs)';
206
8c411768
BC
207 common;
208 enable = COND_GRUB_MKFONT;
209};
210
211program = {
212 name = grub-mkdevicemap;
213 installdir = sbin;
214 mansection = 8;
215 source = util/grub-mkdevicemap.c;
216 source = util/deviceiter.c;
217 source = util/devicemap.c;
218
219 sparc64_ieee1275 = util/grub-mkdevicemap.c;
220 sparc64_ieee1275 = util/deviceiter.c;
221 sparc64_ieee1275 = util/ieee1275/ofpath.c;
222 sparc64_ieee1275 = util/ieee1275/devicemap.c;
223
d5c3b7ce 224 ldadd = libgrub.a;
83fb6e1d 225 ldadd = '$(LIBINTL)';
bf14a41c 226 ldadd = '$(LIBUTIL)';
8c411768
BC
227 common;
228};
229
230program = {
231 name = grub-probe;
232 installdir = sbin;
233 mansection = 8;
234 source = util/grub-probe.c;
235
d5c3b7ce 236 ldadd = libgrub.a;
83fb6e1d 237 ldadd = '$(LIBINTL)';
bf14a41c 238 ldadd = '$(LIBUTIL)';
8c411768
BC
239 common;
240};
241
242program = {
243 name = grub-setup;
244 installdir = sbin;
245 mansection = 8;
246 i386_pc = util/i386/pc/grub-setup.c;
247 i386_pc = util/raid.c;
248 i386_pc = util/lvm.c;
249
250 sparc64_ieee1275 = util/ieee1275/ofpath.c;
251 sparc64_ieee1275 = util/sparc64/ieee1275/grub-setup.c;
252 sparc64_ieee1275 = util/raid.c;
253 sparc64_ieee1275 = util/lvm.c;
254
d5c3b7ce 255 ldadd = libgrub.a;
83fb6e1d 256 ldadd = '$(LIBINTL)';
bf14a41c 257 ldadd = '$(LIBUTIL)';
8c411768
BC
258};
259
260program = {
261 name = grub-ofpathname;
262 installdir = sbin;
263 source = util/ieee1275/grub-ofpathname.c;
264 source = util/ieee1275/ofpath.c;
265
d5c3b7ce 266 ldadd = libgrub.a;
8c411768
BC
267 sparc64_ieee1275;
268};
269
270data = {
271 source = util/grub.d/README;
272 installdir = grubconf;
273 common;
274};
275
276script = {
277 name = '00_header';
278 source = util/grub.d/00_header.in;
279 installdir = grubconf;
280 common;
281};
282
283script = {
284 name = '10_windows';
285 source = util/grub.d/10_windows.in;
286 installdir = grubconf;
287};
288
289script = {
290 name = '10_hurd';
291 source = util/grub.d/10_hurd.in;
292 installdir = grubconf;
293};
294
295script = {
296 name = '10_linux';
297 source = util/grub.d/10_linux.in;
298 installdir = grubconf;
299 common;
300};
301
302script = {
303 name = '30_os-prober';
304 source = util/grub.d/30_os-prober.in;
305 installdir = grubconf;
306 common;
307};
308
309script = {
310 name = '40_custom';
311 source = util/grub.d/40_custom.in;
312 installdir = grubconf;
313 common;
314};
315
316script = {
317 mansection = 1;
318 name = grub-mkrescue;
319 source = util/grub-mkrescue.in;
320 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
321 i386_pc;
322 i386_qemu;
323 i386_coreboot;
324};
325
326script = {
327 mansection = 8;
328 installdir = sbin;
329 name = grub-install;
330 source = util/grub-install.in;
331 x86_efi = util/i386/efi/grub-install.in;
332 i386_ieee1275 = util/ieee1275/grub-install.in;
333 powerpc_ieee1275 = util/ieee1275/grub-install.in;
334 mips;
335 i386_pc;
336 i386_qemu;
337 i386_coreboot;
338};
339
340script = {
341 name = grub-mkconfig;
342 source = util/grub-mkconfig.in;
343 mansection = 8;
344 installdir = sbin;
345 common;
346};
347
348script = {
349 name = grub-set-default;
350 source = util/grub-set-default.in;
351 mansection = 8;
352 installdir = sbin;
353 common;
354};
355
356script = {
357 name = grub-reboot;
358 source = util/grub-reboot.in;
359 mansection = 8;
360 installdir = sbin;
361 common;
362};
363
364script = {
365 name = grub-mkconfig_lib;
366 source = util/grub-mkconfig_lib.in;
367 installdir = pkglib;
368 common;
369};
370
371script = {
372 name = update-grub_lib;
373 source = util/update-grub_lib.in;
374 installdir = pkglib;
375 common;
376};
377
378test_script = {
379 name = grub-shell;
380 source = tests/util/grub-shell.in;
381 common;
382};
383
384test_script = {
385 name = grub-shell-tester;
386 source = tests/util/grub-shell-tester.in;
387 common;
388};
389
390test_script = {
391 name = example_scripted_test;
392 source = tests/example_scripted_test.in;
393 common;
394};
395
396test_script = {
397 name = example_grub_script_test;
398 source = tests/example_grub_script_test.in;
399 common;
400};
401
402test_script = {
403 name = grub_script_echo1;
404 source = tests/grub_script_echo1.in;
405 common;
406 enable;
407};
408
409test_script = {
410 name = grub_script_echo_keywords;
411 source = tests/grub_script_echo_keywords.in;
412 common;
413 enable;
414};
415
416test_script = {
417 name = grub_script_vars1;
418 source = tests/grub_script_vars1.in;
419 common;
420 enable;
421};
422
423test_script = {
424 name = grub_script_for1;
425 source = tests/grub_script_for1.in;
426 common;
427 enable;
428};
429
430test_script = {
431 name = grub_script_while1;
432 source = tests/grub_script_while1.in;
433 common;
434 enable;
435};
436
437test_script = {
438 name = grub_script_if;
439 source = tests/grub_script_if.in;
440 common;
441 enable;
442};
443
444test_script = {
445 name = grub_script_blanklines;
446 source = tests/grub_script_blanklines.in;
447 common;
448 enable;
449};
450
451test_script = {
452 name = grub_script_final_semicolon;
453 source = tests/grub_script_final_semicolon.in;
454 common;
455 enable;
456};
457
458test_script = {
459 name = grub_script_dollar;
460 source = tests/grub_script_dollar.in;
461 common;
462 enable;
463};
464
465test_script = {
466 name = grub_script_comments;
467 source = tests/grub_script_comments.in;
468 common;
469 enable;
470};
471
472test_program = {
473 name = example_unit_test;
474 source = tests/example_unit_test.c;
475 source = tests/lib/unit_test.c;
476 source = grub-core/kern/list.c;
477 source = grub-core/kern/misc.c;
478 source = grub-core/tests/lib/test.c;
479 cflags = -Wno-format;
480 common;
481};