Instead of copying the initramfs into the kernel tree, we now sed the kconfig to point CONFIG_INITRAMFS_SOURCE to the generated image

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@647 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Andrew Gaffney 17 years ago
parent 7842579a94
commit 5fcaaea2f8

@ -2,6 +2,11 @@
# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
13 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh,
genkernel:
Instead of copying the initramfs into the kernel tree, we now sed the
kconfig to point CONFIG_INITRAMFS_SOURCE to the generated image
13 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> sparc64/modules_load: 13 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> sparc64/modules_load:
Add scsi_wait_scan to sparc64's MODULES_SCSI Add scsi_wait_scan to sparc64's MODULES_SCSI

@ -494,7 +494,9 @@ create_initramfs() {
if isTrue "${INTEGRATED_INITRAMFS}" if isTrue "${INTEGRATED_INITRAMFS}"
then then
cp ${TMPDIR}/initramfs-${KV} ${KERNEL_DIR}/usr/initramfs_data.cpio.gz # cp ${TMPDIR}/initramfs-${KV} ${KERNEL_DIR}/usr/initramfs_data.cpio.gz
mv ${TMPDIR}/initramfs-${KV} ${TMPDIR}/initramfs-${KV}.cpio.gz
sed -i "s/^.*CONFIG_INITRAMFS_SOURCE=.*$/CONFIG_INITRAMFS_SOURCE=\"${TMPDIR}/initramfs-${KV}.cpio.gz\"/" ${KERNEL_CONFIG}
fi fi
if ! isTrue "${CMD_NOINSTALL}" if ! isTrue "${CMD_NOINSTALL}"

@ -124,7 +124,6 @@ set_kernel_arch
setup_cache_dir setup_cache_dir
dump_debugcache dump_debugcache
NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..."

Loading…
Cancel
Save