You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
607 B
30 lines
607 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
CONFIG_CHECK="~X86_MSR"
|
|
inherit linux-info toolchain-funcs
|
|
|
|
DESCRIPTION="Utilities allowing the read and write of CPU model-specific registers (MSR)"
|
|
HOMEPAGE="https://01.org/msr-tools"
|
|
SRC_URI="https://01.org/sites/default/files/downloads/${PN}/${P}.zip"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
DEPEND="app-arch/unzip"
|
|
|
|
S=${WORKDIR}/${PN}-master
|
|
|
|
src_compile() {
|
|
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
dosbin rdmsr
|
|
dosbin wrmsr
|
|
}
|