diff --git a/kernel-2.eclass b/kernel-2.eclass index 22be9ed..dc480fb 100644 --- a/kernel-2.eclass +++ b/kernel-2.eclass @@ -73,7 +73,7 @@ # for additional variables to be added by contacting the current maintainer. # If you do change them, there is a chance that we will not fix resulting bugs. -inherit eutils toolchain-funcs versionator multilib +inherit eutils toolchain-funcs versionator multilib readme.gentoo EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm # Added by Daniel Ostrow @@ -100,6 +100,13 @@ RESTRICT="binchecks strip" # set LINUX_HOSTCFLAGS if not already set : ${LINUX_HOSTCFLAGS:="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include"} +# Kernel upgrade documentation +#============================================================== +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +When you plan to upgrade the kernel, you may be interested in the Gentoo Linux +Kernel Upgrade Guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" + # debugging functions #============================================================== # this function exists only to help debug kernel-2.eclass @@ -781,12 +788,6 @@ postinst_sources() { # Don't forget to make directory for sysfs [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys - echo - elog "If you are upgrading from a previous kernel, you may be interested" - elog "in the following document:" - elog " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" - echo - # if K_EXTRAEINFO is set then lets display it now if [[ -n ${K_EXTRAEINFO} ]]; then echo ${K_EXTRAEINFO} | fmt | @@ -1191,10 +1192,12 @@ kernel-2_src_install() { install_universal [[ ${ETYPE} == headers ]] && install_headers [[ ${ETYPE} == sources ]] && install_sources + readme.gentoo_create_doc } kernel-2_pkg_postinst() { [[ ${ETYPE} == sources ]] && postinst_sources + readme.gentoo_print_elog } kernel-2_pkg_setup() {