]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
picks 10_${host_kernel} script
authorBVK Chaitanya <bvk@dbook>
Sat, 21 Aug 2010 15:33:26 +0000 (21:03 +0530)
committerBVK Chaitanya <bvk@dbook>
Sat, 21 Aug 2010 15:33:26 +0000 (21:03 +0530)
Makefile.util.def
configure.ac

index 04b3d6f1cd47bb3470174f60e5cf6d3e28f8fc8b..2ad7f6a574d82c252832e473cb2faefff067271a 100644 (file)
@@ -203,12 +203,11 @@ program = {
   name = grub-mkdevicemap;
   installdir = sbin;
   mansection = 8;
-  nosparc64 = util/grub-mkdevicemap.c;
-  nosparc64 = util/deviceiter.c;
+
+  common = util/grub-mkdevicemap.c;
+  common = util/deviceiter.c;
   nosparc64 = util/devicemap.c;
 
-  sparc64_ieee1275 = util/grub-mkdevicemap.c;
-  sparc64_ieee1275 = util/deviceiter.c;
   sparc64_ieee1275 = util/ieee1275/ofpath.c;
   sparc64_ieee1275 = util/ieee1275/devicemap.c;
 
@@ -267,24 +266,39 @@ script = {
   installdir = grubconf;
 };
 
-/*
 script = {
   name = '10_windows';
   common = util/grub.d/10_windows.in;
   installdir = grubconf;
+  condition = COND_host_windows;
 };
 
 script = {
   name = '10_hurd';
   common = util/grub.d/10_hurd.in;
   installdir = grubconf;
+  condition = COND_host_hurd;
+};
+
+script = {
+  name = '10_kfreebsd.in';
+  common = util/grub.d/10_kfreebsd.in;
+  installdir = grubconf;
+  condition = COND_host_kfreebsd;
+};
+
+script = {
+  name = '10_netbsd.in';
+  common = util/grub.d/10_netbsd.in;
+  installdir = grubconf;
+  condition = COND_host_netbsd;
 };
-*/
 
 script = {
   name = '10_linux';
   common = util/grub.d/10_linux.in;
   installdir = grubconf;
+  condition = COND_host_linux;
 };
 
 script = {
index c05b506c7f6387f0fbe31d34cc106c566c09ba17..19ea08c9df3dbd89d8c5a1dc65c19c0cfdd3e580 100644 (file)
@@ -873,6 +873,11 @@ AM_CONDITIONAL([COND_mips_yeeloong], [test x$target_cpu = xmips -a x$platform =
 AM_CONDITIONAL([COND_mips_qemu_mips], [test x$target_cpu = xmips -a x$platform = xqemu_mips])
 AM_CONDITIONAL([COND_sparc64_ieee1275], [test x$target_cpu = xsparc64 -a x$platform = xieee1275])
 AM_CONDITIONAL([COND_powerpc_ieee1275], [test x$target_cpu = xpowerpc -a x$platform = xieee1275])
+AM_CONDITIONAL([COND_host_hurd], [test x$host_kernel = xhurd])
+AM_CONDITIONAL([COND_host_linux], [test x$host_kernel = xlinux])
+AM_CONDITIONAL([COND_host_netbsd], [test x$host_kernel = xnetbsd])
+AM_CONDITIONAL([COND_host_windows], [test x$host_kernel = xwindows])
+AM_CONDITIONAL([COND_host_kfreebsd], [test x$host_kernel = xkfreebsd])
 
 AM_CONDITIONAL([COND_MAN_PAGES], [test x$cross_compiling = xno -a x$HELP2MAN != x])
 AM_CONDITIONAL([COND_GRUB_EMU_USB], [test x$enable_grub_emu_usb = xyes])