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.
 
 
 
 
 
 

107 lines
3.1 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/linux/config-500.in
# ROCK Linux is Copyright (C) 1998 - 2006 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 ---
if pkgcheck linux=linux24 X || pkgcheck linux=linux26 X || \
pkgcheck linux=linux24-source X || pkgcheck linux=linux26-source X
then
menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
bool 'Place linux24 sources in /usr/src' \
ROCKCFG_PKG_LINUX_SRC24 0
if [ "$ROCKCFG_PKG_LINUX_SRC24" = 0 ]; then
pkgdisable linux=linux24-source
fi
bool 'Place linux26 sources in /usr/src' \
ROCKCFG_PKG_LINUX_SRC26 1
if [ "$ROCKCFG_PKG_LINUX_SRC26" = 0 ]; then
pkgdisable linux=linux26-source
fi
bool 'Build and install a linux24 kernel' \
ROCKCFG_PKG_LINUX_IMG24 0
if [ "$ROCKCFG_PKG_LINUX_IMG24" = 0 ]; then
pkgdisable linux=linux24
fi
bool 'Build and install a linux26 kernel' \
ROCKCFG_PKG_LINUX_IMG26 1
if [ "$ROCKCFG_PKG_LINUX_IMG26" = 0 ]; then
pkgdisable linux=linux26
fi
case "$ROCKCFG_PKG_LINUX_IMG24$ROCKCFG_PKG_LINUX_IMG26" in
00)
const ROCKCFG_PKG_LINUX_DEFAULT none
;;
01)
const ROCKCFG_PKG_LINUX_DEFAULT linux26
;;
10)
const ROCKCFG_PKG_LINUX_DEFAULT linux24
;;
*)
choice ROCKCFG_PKG_LINUX_DEFAULT linux26 \
linux24 'Use linux kernel 2.4.x as default kernel' \
linux26 'Use linux kernel 2.6.x as default kernel'
;;
esac
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'
if [ "$ROCKCFG_PKG_LINUX_CONFIG_STYLE" = none ] ; then
ROCKCFGSET_PKG_LINUX_CUSTCONFIG=1
fi
bool 'Build kernel 2.6.x module utils (module-init-tools)' \
ROCKCFG_PKG_LINUX_USE26MODTOOLS 1
if [ $ROCKCFG_PKG_LINUX_USE26MODTOOLS = 0 ] ; then
pkgdisable module-init-tools
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 stored in:'
comment "config/$config/linux.cfg"
editfile ROCKCFG_PKG_LINUX_CUSTCONFIG_FILE \
config/$config.$swpid/linux.cfg \
'Linux kernel build config settings'
block_end
else
rm -f config/$config.$swpid/linux.cfg
fi
include "package/*/*/pkg_config_linux.in"
menu_end
fi