1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit linux-info linux-mod
9 DESCRIPTION="Processor Hardwae Control for Intel CPUs"
10 HOMEPAGE="http://www.linux-phc.org/"
11 SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=87 -> ${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
18 S="${WORKDIR}/${P%.*}-${P##*.}"
20 CONFIG_CHECK="!CONFIG_X86_ACPI_CPUFREQ"
21 ERROR_CONFIG_X86_ACPI_CPUFREQ="CONFIG_X86_ACPI_CPUFREQ has to be set to Module or Not set to enable the replacement of acpi-cpufreq with phc-intel."
23 MODULE_NAMES="phc-intel(misc:)"
24 BUILD_PARAMS="KERNELSRC=\"${KERNEL_DIR}\""
25 BUILD_TARGETS="prepare all"
28 if kernel_is -ge 2 6 33 ; then
29 sed -i -e "s:include/linux/utsrelease.h:include/generated/utsrelease.h:" Makefile || die