make friendly with 2.4

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@5 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Brad House 21 years ago
parent 79912de591
commit b7bfc8cfd1

@ -1,19 +1,27 @@
#!/bin/bash
config_kernel() {
print_info 1 "kernel: configuring source"
determine_config_file() {
if [ "${CMD_KERNEL_CONFIG}" != "" ]
then
KERNEL_CONFIG="${CMD_KERNEL_CONFIG}"
elif [ "${DEFAULT_KERNEL_CONFIG}" != "" ]
elif [ "${DEFAULT_KERNEL_CONFIG}" != "" -a -f "${DEFAULT_KERNEL_CONFIG}" ]
then
KERNEL_CONFIG="${DEFAULT_KERNEL_CONFIG}"
elif [ -f "${GK_SHARE}/${ARCH}/kernel-config-${VER}.${PAT}" ]
then
KERNEL_CONFIG="${GK_SHARE}/${ARCH}/kernel-config-${VER}.${PAT}"
elif [ -f "${GK_SHARE}/${ARCH}/kernel-config" ]
then
KERNEL_CONFIG="${GK_SHARE}/${ARCH}/kernel-config"
else
gen_die "no kernel config specified"
gen_die "no kernel config specified, or file not found"
fi
}
[ ! -f "${KERNEL_CONFIG}" ] && gen_die "kernel config not found at specified location"
config_kernel() {
print_info 1 "kernel: configuring source"
determine_config_file
cd "${KERNEL_DIR}" || gen_die "could not switch to kernel directory"

@ -1,7 +1,8 @@
#!/bin/bash
get_KV() {
local VER
# don't want VER local anymore, used when finding kernelconfig to use
# local VER
# don't want PAT local anymore, used in initrd
# local PAT
local SUB

@ -47,8 +47,8 @@ DEBUGLEVEL=1
# Default location of kernel source
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
# Default kernel config
DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config"
# Default kernel config (only use to override using %%ARCH%%/kernel-config-${VER}.${PAT} !)
# DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config"
# Configuration file for busybox
BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config"

Loading…
Cancel
Save