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
15
configure
vendored
15
configure
vendored
|
@ -664,6 +664,7 @@ target
|
|||
target_cpu
|
||||
target_vendor
|
||||
target_os
|
||||
host_kernel
|
||||
platform
|
||||
CMP
|
||||
YACC
|
||||
|
@ -2006,6 +2007,17 @@ case "$host_os" in
|
|||
mingw32) host_os=cygwin ;;
|
||||
esac
|
||||
|
||||
# This normalizes the names, and creates a new variable ("host_kernel")
|
||||
# while at it, since the mapping is not always 1:1 (e.g. different OSes
|
||||
# using the same kernel type).
|
||||
case "$host_os" in
|
||||
gnu*) host_kernel=hurd ;;
|
||||
linux*) host_kernel=linux ;;
|
||||
freebsd* | kfreebsd*-gnu) host_kernel=freebsd ;;
|
||||
cygwin) host_kernel=windows ;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -9528,6 +9540,7 @@ target!$target$ac_delim
|
|||
target_cpu!$target_cpu$ac_delim
|
||||
target_vendor!$target_vendor$ac_delim
|
||||
target_os!$target_os$ac_delim
|
||||
host_kernel!$host_kernel$ac_delim
|
||||
platform!$platform$ac_delim
|
||||
CMP!$CMP$ac_delim
|
||||
YACC!$YACC$ac_delim
|
||||
|
@ -9577,7 +9590,7 @@ LIBOBJS!$LIBOBJS$ac_delim
|
|||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||
break
|
||||
elif $ac_last_try; then
|
||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue