summaryrefslogtreecommitdiff
blob: 560ccbefe599d075847ced10dddea748d6e614e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit linux-info linux-mod

DESCRIPTION="Processor Hardwae Control for Intel CPUs"
HOMEPAGE="http://www.linux-phc.org/"
SRC_URI="http://www.linux-phc.org/forum/download/file.php?id=87 -> ${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S="${WORKDIR}/${P%.*}-${P##*.}"

CONFIG_CHECK="!CONFIG_X86_ACPI_CPUFREQ"
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."

MODULE_NAMES="phc-intel(misc:)"
BUILD_PARAMS="KERNELSRC=\"${KERNEL_DIR}\""
BUILD_TARGETS="prepare all"

src_prepare() {
	if kernel_is -ge 2 6 33 ; then
		sed -i -e "s:include/linux/utsrelease.h:include/generated/utsrelease.h:" Makefile || die
	fi
}