# Copyright 2005 Radoslaw Stachowiak unmerge) cp ${S}/.config ${S}/.config.rs } pkg_postinst() { postinst_sources # symlink means build kernel and install if use symlink then einfo einfo "building kernel $KV_FULL (please wait..)" einfo cd /usr/src/linux-$KV_FULL || return # this cp is needed because at replace (merge/unmerge) its being deleted cp .config.rs .config # this is stupid patch for gentoo-sources mistake # sed -i -e "s:KERN_ERROR:KERN_ERR:" drivers/pcmcia/yenta_socket.c unset ARCH make || return make modules_install || return cp System.map /boot/System.map-${KV_FULL} cp arch/i386/boot/bzImage /boot/vmlinuz-${KV_FULL} cp .config /boot/config-${KV_FULL} ewarn ewarn "Kernel compiled and installed, please run 'grubi' to put it into grub.conf" ewarn 'Please do: emerge -av $(equery b /lib/modules | sed -e "s:^:>=:")' ewarn fi } pkg_postrm() { postrm_sources # dont need this because we store it in /boot rm -f /usr/src/linux-${KV_FULL}.config.gz } pkg_config() { einfo "Default settings (if not modifed by use flags):" einfo " * HIGHMEM is enabled up to 4GB" einfo " * 4KSTACKS is enabled" einfo " * PREEMPT is NOT enabled (server preemption model)" einfo " * SMP is NOT enabled" einfo " * PENTIUM3 is default target" }