mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.7 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/linux24/config-500.in
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
pkgout; default='' ; list=''
kernels=$( grep KERNEL config/$config/packages | cut -d' ' -f5 | tr '\n' '|' )
while read pkg ver ; do
default=${default:-$pkg} ; [ $pkg = linux24 ] && default=linux24
list="$list $pkg Use_${pkg}_($ver)_as_standard_Kernel"
done < <(grep -E "^X .* (${kernels%|}).* " config/$config/packages | cut -f5,6 -d' ' \
| sed -e 's,\([^-]*\)-[^ ]*,\1,g' | sort -u)
if [ -z "$default" ] ; then
default="none" ; list="none No_Standard_Kernel"
fi
choice ROCKCFG_DEFAULT_KERNEL $default $list
if [ $ROCKCFG_DEFAULT_KERNEL != none ]; then
pkgfilter sed -e "/ linux.*-header / s/^./O/" \
-e "/ $ROCKCFG_DEFAULT_KERNEL-header / s/^./X/"
fi
if [ "$ROCKCFG_PKG_LINUX_CONFIG_STYLE" = none ] ; then
ROCKCFGSET_PKG_LINUX_CUSTCONFIG=1
fi
bool 'Apply custom kernel build configuration settings' \
ROCKCFG_PKG_LINUX_CUSTCONFIG 0
if [ "$ROCKCFG_PKG_LINUX_CUSTCONFIG" = 1 ] ; then
block_begin 3
comment 'The kernel config is strored in:'
comment "config/$config/linux.cfg"
editfile ROCKCFG_PKG_LINUX_CUSTCONFIG_FILE \
config/$config/linux.cfg \
'Linux kernel build config settings'
block_end
else
rm -f config/$config/linux.cfg
fi
choice ROCKCFG_PKG_LINUX_CONFIG_STYLE modules \
none 'Do not perform any automatic kernel configuration' \
nomodules 'Perform normal kernel configuration without modules' \
modules 'Perform normal kernel configuration including modules'
bool 'Build kernel 2.5.x module utils (module-init-tools)' \
ROCKCFG_PKG_LINUX_USE25MODTOOLS 1
if [ $ROCKCFG_PKG_LINUX_USE25MODTOOLS = 0 ] ; then
pkgdisable module-init-tools
fi
menu_end