@@ -, +, @@ --- ChangeLog | 6 ++++++ gen_arch.sh | 2 +- gen_determineargs.sh | 1 + genkernel.conf | 5 +++++ 4 files changed, 13 insertions(+), 1 deletions(-) --- a/ChangeLog +++ a/ChangeLog @@ -2,6 +2,12 @@ # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 24 Jul 2007; Robin H. Johnson gen_arch.sh, + gen_determineargs.sh, genkernel.conf: + Add support for custom %%ARCH%%/config.sh files, for usage with crazy + sub-architectures. This is useful for some MIPS machines that might need the + vmlinux.ecoff file for netboot instead of the zImage or raw vmlinux file. + 24 Jul 2007; Robin H. Johnson gen_determineargs.sh, genkernel, genkernel.conf: Add customized modules_load support. This allows users to specify exactly --- a/gen_arch.sh +++ a/gen_arch.sh @@ -39,6 +39,6 @@ get_official_arch() { UTILS_ARCH='sparc' fi - ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh" + ARCH_CONFIG=`arch_replace "${ARCH_CONFIG}"` [ -f "${ARCH_CONFIG}" ] || gen_die "${ARCH} not yet supported by genkernel. Please add the arch-specific config file, ${ARCH_CONFIG}" } --- a/gen_determineargs.sh +++ a/gen_determineargs.sh @@ -215,6 +215,7 @@ determine_real_args() { DEFAULT_KERNEL_CONFIG=`arch_replace "${DEFAULT_KERNEL_CONFIG}"` MODULES_CONFIG=`arch_replace "${MODULES_CONFIG}"` + ARCH_CONFIG=`arch_replace "${ARCH_CONFIG}"` BUSYBOX_CONFIG=`arch_replace "${BUSYBOX_CONFIG}"` BUSYBOX_BINCACHE=`arch_replace "${BUSYBOX_BINCACHE}"` MODULE_INIT_TOOLS_BINCACHE=`arch_replace "${MODULE_INIT_TOOLS_BINCACHE}"` --- a/genkernel.conf +++ a/genkernel.conf @@ -80,6 +80,11 @@ DEFAULT_KERNEL_SOURCE="/usr/src/linux" # %%ARCH%%/kernel-config-${VER}.${PAT} !) # DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config" +# Configuration file for your architecture. +# You should probably not change this unless you +# have some bizzare sub-arch. +ARCH_CONFIG="${GK_SHARE}/%%ARCH%%/config.sh" + # Configuration file for busybox BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config" # BusyBox Version --