diff options
Diffstat (limited to 'sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild')
-rw-r--r-- | sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild b/sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild new file mode 100644 index 0000000..c2f4cc7 --- /dev/null +++ b/sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: sys-kernel/thinkpad-sources/thinkpad-sources-2.6.27.ebuild 2008 11 30 + +ETYPE="sources" +K_WANT_GENPATCHES="base extras" +K_GENPATCHES_VER="6" +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~amd64 ~x86" +IUSE="" +HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.tuxonice.net http://ibm-acpi.sourceforge.net/" + +DESCRIPTION="TuxOnIce + Gentoo patches + Latest THINKPAD-Acpi + PCI-E ASPM + Colored Printk + Libata Powermanagement + Bay Fixes + hdaps + phc + ipw2200 inject" + +#bad, non fixed link +#TUXONICE_VERSION="3.0-rc7a" +TUXONICE_TARGET="2.6.27" +#TUXONICE_SRC="tuxonice-${TUXONICE_VERSION}-for-${TUXONICE_TARGET}" +TUXONICE_SRC="current-tuxonice-${TUXONICE_TARGET}" +TUXONICE_URI="http://www.tuxonice.net/downloads/all/${TUXONICE_SRC}.patch.bz2" + +THINKPAD_ACPI_VERSION="0.21-20081111" +THINKPAD_ACPI_TARGET="2.6.27.5" +THINKPAD_ACPI_SRC="thinkpad-acpi-${THINKPAD_ACPI_VERSION}_v${THINKPAD_ACPI_TARGET}.patch.gz" +THINKPAD_ACPI_URI="mirror://sourceforge/ibm-acpi/${THINKPAD_ACPI_SRC}" + + +UNIPATCH_LIST="" + +MY_PV="${PV}" +UNIPATCH_LIST="${UNIPATCH_LIST} + ${FILESDIR}/${MY_PV}/colored-printk-2.6.26.patch + ${FILESDIR}/${MY_PV}/01-disk-protect-for-2.6.27.2.patch + ${FILESDIR}/${MY_PV}/02-ipw2200-inject-for-2.6.27.patch + ${FILESDIR}/${MY_PV}/linux-phc-0.3.2-kernel-vanilla-2.6.26.patch + ${DISTDIR}/${THINKPAD_ACPI_SRC} + ${DISTDIR}/${TUXONICE_SRC}.patch.bz2 + ${FILESDIR}/${MY_PV}/power-off-unused-ports.patch +" + + +UNIPATCH_STRICTORDER="yes" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${TUXONICE_URI} ${THINKPAD_ACPI_URI} ${IEEE80211_URI} ${HRT_URI}" + + +RDEPEND="${RDEPEND} + >=sys-apps/tuxonice-userui-0.7.2 + >=sys-power/hibernate-script-1.98.1" + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" + einfo "AND send a mail to linux-thinkpad mailinglist," + einfo "so the patch could be retested and rerated" + einfo "In files dir is an example config suitable for T60" + einfo "and hopefully all pci-express driven Thinkpads" + einfo "but at all you should try for all Thinkpads" + einfo "to NOT alter the given storage device controller configuration" + einfo "for powersaving i recommend to append these kernel options:" + einfo "usbcore.autosuspend=1 pcie_aspm.policy=powersave" + einfo "additional powertweaks possible (depending on your hardware):" + einfo "snd_hda_intel.power_save=1" + einfo "echo 7 > /sys/bus/pci/drivers/iwl3945/0000\:03\:00.0/power_level" + einfo "echo min_power > /sys/class/scsi_host/host0/link_power_management_policy" + einfo "echo 5 >/proc/sys/vm/laptop_mode" + einfo "echo 1500 >/proc/sys/vm/dirty_writeback_centisecs" + einfo "echo 1 >/sys/devices/system/cpu/sched_mc_power_savings" +} |