2009-03-04 Robert Millan <rmh@aybabtu.com>
Filter /etc/grub.d/10_* so that only add-ons for native kernels are installed. * Makefile.in (host_kernel): New variable. * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in scripts instead of just the windows one. * configure.ac: Initialize and AC_SUBST `host_kernel'.
This commit is contained in:
parent
eabc95fb9a
commit
9304eef146
6 changed files with 42 additions and 7 deletions
|
@ -578,9 +578,9 @@ CLEANFILES += update-grub_lib
|
|||
%: util/grub.d/%.in config.status
|
||||
./config.status --file=$@:$<
|
||||
chmod +x $@
|
||||
grub-mkconfig_SCRIPTS = 00_header 10_linux 10_hurd 10_freebsd 30_os-prober 40_custom
|
||||
ifeq ($(host_os), cygwin)
|
||||
grub-mkconfig_SCRIPTS += 10_windows
|
||||
grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom
|
||||
ifneq (, $(host_kernel))
|
||||
grub-mkconfig_SCRIPTS += 10_$(host_kernel)
|
||||
endif
|
||||
|
||||
CLEANFILES += $(grub-mkconfig_SCRIPTS)
|
||||
|
|
|
@ -145,9 +145,9 @@ CLEANFILES += update-grub_lib
|
|||
%: util/grub.d/%.in config.status
|
||||
./config.status --file=$@:$<
|
||||
chmod +x $@
|
||||
grub-mkconfig_SCRIPTS = 00_header 10_linux 10_hurd 10_freebsd 30_os-prober 40_custom
|
||||
ifeq ($(host_os), cygwin)
|
||||
grub-mkconfig_SCRIPTS += 10_windows
|
||||
grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom
|
||||
ifneq (, $(host_kernel))
|
||||
grub-mkconfig_SCRIPTS += 10_$(host_kernel)
|
||||
endif
|
||||
|
||||
CLEANFILES += $(grub-mkconfig_SCRIPTS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue