AutoGen definitions Makefile.tpl;
library = {
- name = libgrub.a;
+ name = libgrubkern.a;
+ cflags = '$(CFLAGS_GNULIB)';
+ cppflags = '$(CPPFLAGS_GNULIB)';
+
+ common = util/misc.c;
+ common = grub-core/kern/command.c;
+ common = grub-core/kern/device.c;
+ common = grub-core/kern/disk.c;
+ common = grub-core/kern/emu/getroot.c;
+ common = grub-core/kern/emu/hostdisk.c;
+ common = grub-core/kern/emu/misc.c;
+ common = grub-core/kern/emu/mm.c;
+ common = grub-core/kern/env.c;
+ common = grub-core/kern/err.c;
+ common = grub-core/kern/file.c;
+ common = grub-core/kern/fs.c;
+ common = grub-core/kern/list.c;
+ common = grub-core/kern/misc.c;
+ common = grub-core/kern/partition.c;
+};
+
+library = {
+ name = libgrubmods.a;
cflags = '$(CFLAGS_GCRY)';
cppflags = '$(CPPFLAGS_GCRY)';
common_nodist = grub_script.yy.h;
common_nodist = grub_script.tab.h;
- common = grub-core/gnulib/error.c;
- common = grub-core/gnulib/fnmatch.c;
- common = grub-core/gnulib/getdelim.c;
- common = grub-core/gnulib/getline.c;
- common = grub-core/gnulib/getopt1.c;
- common = grub-core/gnulib/getopt.c;
- common = grub-core/gnulib/progname.c;
-
- common = util/misc.c;
- common = grub-core/kern/misc.c;
- common = grub-core/kern/emu/mm.c;
- common = grub-core/kern/emu/misc.c;
- common = grub-core/kern/emu/hostfs.c;
- common = grub-core/kern/emu/getroot.c;
- common = grub-core/kern/emu/hostdisk.c;
-
common = grub-core/commands/blocklist.c;
common = grub-core/commands/extcmd.c;
common = grub-core/commands/ls.c;
common = grub-core/disk/dmraid_nvidia.c;
- common = grub-core/disk/host.c;
common = grub-core/disk/loopback.c;
common = grub-core/disk/lvm.c;
common = grub-core/disk/mdraid_linux.c;
+ common = grub-core/disk/mdraid1x_linux.c;
common = grub-core/disk/raid5_recover.c;
common = grub-core/disk/raid6_recover.c;
common = grub-core/disk/raid.c;
common = grub-core/fs/afs.c;
common = grub-core/fs/befs_be.c;
common = grub-core/fs/befs.c;
+ common = grub-core/fs/btrfs.c;
common = grub-core/fs/cpio.c;
common = grub-core/fs/ext2.c;
common = grub-core/fs/fat.c;
common = grub-core/fs/iso9660.c;
common = grub-core/fs/jfs.c;
common = grub-core/fs/minix.c;
+ common = grub-core/fs/minix2.c;
common = grub-core/fs/nilfs2.c;
common = grub-core/fs/ntfs.c;
common = grub-core/fs/ntfscomp.c;
common = grub-core/fs/ufs2.c;
common = grub-core/fs/ufs.c;
common = grub-core/fs/xfs.c;
- common = grub-core/kern/command.c;
- common = grub-core/kern/device.c;
- common = grub-core/kern/disk.c;
- common = grub-core/kern/env.c;
- common = grub-core/kern/err.c;
- common = grub-core/kern/file.c;
- common = grub-core/kern/fs.c;
- common = grub-core/kern/list.c;
- common = grub-core/kern/partition.c;
common = grub-core/lib/arg.c;
- common = grub-core/lib/crc.c;
common = grub-core/lib/crypto.c;
common = grub-core/lib/envblk.c;
common = grub-core/lib/hexdump.c;
common = grub-core/lib/libgcrypt-grub/cipher/sha512.c;
+ common = grub-core/lib/libgcrypt-grub/cipher/crc.c;
common = grub-core/lib/LzFind.c;
common = grub-core/lib/LzmaEnc.c;
common = grub-core/lib/pbkdf2.c;
common = grub-core/partmap/gpt.c;
common = grub-core/partmap/msdos.c;
common = grub-core/partmap/sun.c;
+ common = grub-core/partmap/sunpc.c;
+ common = grub-core/partmap/bsdlabel.c;
common = grub-core/script/function.c;
common = grub-core/script/lexer.c;
common = grub-core/script/main.c;
program = {
name = grub-bin2h;
common = util/bin2h.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
mansection = 1;
};
common = util/resolve.c;
extra_dist = util/grub-mkimagexx.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBLZMA)';
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
};
common = util/grub-mkrelpath.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
common = util/grub-script-check.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
common = util/grub-editenv.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
common = util/grub-mkpasswd-pbkdf2.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
cflags = '$(CFLAGS_GCRY)';
cppflags = '$(CPPFLAGS_GCRY)';
};
mansection = 1;
common = util/grub-pe2elf.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL)';
condition = COND_GRUB_PE2ELF;
};
program = {
name = grub-fstest;
mansection = 1;
+ common_nodist = grub_fstest_init.c;
common = util/grub-fstest.c;
+ common = grub-core/kern/emu/hostfs.c;
+ common = grub-core/disk/host.c;
+
+ cflags = '$(CFLAGS_GCRY)';
+ cppflags = '$(CPPFLAGS_GCRY)';
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
- condition = COND_GRUB_FSTEST;
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
cflags = '$(freetype_cflags)';
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER)';
- ldflags = '$(freetype_libs)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(freetype_libs)';
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
condition = COND_GRUB_MKFONT;
};
sparc64_ieee1275 = util/ieee1275/ofpath.c;
sparc64_ieee1275 = util/ieee1275/devicemap.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
mansection = 8;
common = util/grub-probe.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
};
program = {
name = grub-setup;
installdir = sbin;
mansection = 8;
- i386_pc = util/i386/pc/grub-setup.c;
- i386_pc = util/raid.c;
- i386_pc = util/lvm.c;
+ common = util/grub-setup.c;
+ common = util/raid.c;
+ common = util/lvm.c;
+ common = grub-core/lib/reed_solomon.c;
sparc64_ieee1275 = util/ieee1275/ofpath.c;
- sparc64_ieee1275 = util/sparc64/ieee1275/grub-setup.c;
- sparc64_ieee1275 = util/raid.c;
- sparc64_ieee1275 = util/lvm.c;
- ldadd = libgrub.a;
- ldflags = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
enable = i386_pc;
enable = sparc64_ieee1275;
ieee1275 = util/ieee1275/grub-ofpathname.c;
ieee1275 = util/ieee1275/ofpath.c;
- ldadd = libgrub.a;
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
+
enable = sparc64_ieee1275;
};
+program = {
+ name = grub-mklayout;
+ mansection = 1;
+
+ common = util/grub-mklayout.c;
+
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
+};
+
data = {
common = util/grub.d/README;
installdir = grubconf;
script = {
mansection = 1;
name = grub-mkrescue;
- x86_noieee1275 = util/grub-mkrescue.in;
+ x86 = util/grub-mkrescue.in;
powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
enable = i386_pc;
enable = x86_efi;
enable = i386_qemu;
+ enable = i386_multiboot;
enable = i386_coreboot;
enable = powerpc_ieee1275;
};
installdir = sbin;
name = grub-install;
- mips = util/grub-install.in;
- i386_noefi_noieee1275 = util/grub-install.in;
+ common = util/grub-install.in;
+ enable = noemu;
+};
- x86_efi = util/i386/efi/grub-install.in;
- i386_ieee1275 = util/ieee1275/grub-install.in;
- powerpc_ieee1275 = util/ieee1275/grub-install.in;
+script = {
+ mansection = 8;
+ installdir = sbin;
+ name = grub-mknetdir;
- enable = x86;
- enable = mips;
- enable = powerpc_ieee1275;
+ common = util/grub-mknetdir.in;
};
script = {
installdir = noinst;
};
+script = {
+ name = grub-kbdcomp;
+ common = util/grub-kbdcomp.in;
+};
+
script = {
name = grub-shell;
common = tests/util/grub-shell.in;
common = tests/grub_script_setparams.in;
};
+script = {
+ testcase;
+ name = grub_script_return;
+ common = tests/grub_script_return.in;
+};
+
+script = {
+ testcase;
+ name = grub_cmd_regexp;
+ common = tests/grub_cmd_regexp.in;
+};
+
+script = {
+ testcase;
+ name = grub_script_expansion;
+ common = tests/grub_script_expansion.in;
+};
+
+script = {
+ testcase;
+ name = grub_script_not;
+ common = tests/grub_script_not.in;
+};
+
+script = {
+ testcase;
+ name = partmap_test;
+ common = tests/partmap_test.in;
+};
+
+script = {
+ testcase;
+ name = grub_cmd_echo;
+ common = tests/grub_cmd_echo.in;
+};
+
program = {
testcase;
name = example_unit_test;
common = grub-core/kern/misc.c;
common = grub-core/tests/lib/test.c;
cflags = -Wno-format;
- ldadd = libgrub.a;
- ldflags = '$(LIBDEVMAPPER)';
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldadd = '$(LIBDEVMAPPER)';
+};
+
+program = {
+ name = grub-menulst2cfg;
+ mansection = 1;
+ common = util/grub-menulst2cfg.c;
+ common = grub-core/lib/legacy_parse.c;
+ common = grub-core/lib/i386/pc/vesa_modes_table.c;
+
+ ldadd = libgrubmods.a;
+ ldadd = libgrubkern.a;
+ ldadd = grub-core/gnulib/libgnu.a;
+ ldflags = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
};