- Update to latest turbostat version (git 2d6e532279ddf30188d5fbd)

bnc#866862, bnc#869071, bnc#869809
- Adjust MSR include path
  add make_header_file_passable_from_outside.patch

OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=37
This commit is contained in:
Thomas Renninger 2014-03-28 19:37:44 +00:00 committed by Git OBS Bridge
parent 0b75432b55
commit 1a1be68aee
7 changed files with 32 additions and 6 deletions

3
cpupower-3.14.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73a55c6cf0701186077c087f456ddd664b6c4601532d68f4bca63eb8eab418ee
size 71414

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Mar 28 19:35:10 UTC 2014 - trenn@suse.de
- Update to latest turbostat version (git 2d6e532279ddf30188d5fbd)
bnc#866862, bnc#869071, bnc#869809
- Adjust MSR include path
add make_header_file_passable_from_outside.patch
-------------------------------------------------------------------
Fri Mar 28 19:05:46 UTC 2014 - trenn@suse.de

View File

@ -17,13 +17,14 @@
#
Name: cpupower
Url: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
# Use this as version when things are in mainline kernel
%define version %(rpm -q --qf '%{VERSION}' kernel-source)
Version: 3.13
Release: 0
%define tsversion 3.13
%define tsversion 3.14
Summary: Tools to determine and set CPU Power related Settings
License: GPL-2.0
Group: System/Base
@ -33,6 +34,7 @@ Source2: cpupower_export_tarball_from_git.sh
Patch1: cpupower_disable_by_latency.patch
Patch2: add_idle_manpages_in_Makefile.patch
Patch20: turbostat_fix_man_perm.patch
Patch21: make_header_file_passable_from_outside.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gettext-tools
BuildRequires: pciutils
@ -81,6 +83,7 @@ powersave module.
%patch2 -p1
cd ../turbostat-%{tsversion}
%patch20 -p1
%patch21 -p1
%build
# This package failed when testing with -Wl,-as-needed being default.
@ -92,7 +95,7 @@ make $CONF %{?_smp_mflags}
%ifarch ix86 x86_64
cd ../turbostat-%{tsversion}
make %{?_smp_mflags}
CFLAGS="%optflags -I. -DMSRHEADER=\"<asm/msr-index.h>\"" make %{?_smp_mflags}
%endif
%install

View File

@ -60,7 +60,7 @@ set -x
git archive --format=tar $GIT_TAG tools/power/x86/turbostat |tar -x
mv tools/power/x86/turbostat turbostat${VERSION}
mkdir turbostat${VERSION}/asm
cp "${GIT_DIR}"/../arch/x86/include/uapi/asm/msr-index.h turbostat${VERSION}/asm
cp "${GIT_DIR}"/../../../../../arch/x86/include/uapi/asm/msr-index.h turbostat${VERSION}/asm
tar -cvjf turbostat${VERSION}.tar.bz2 turbostat${VERSION}
popd
mv "$DIR/cpupower${VERSION}".tar.bz2 .

View File

@ -0,0 +1,12 @@
Index: turbostat-3.14/Makefile
===================================================================
--- turbostat-3.14.orig/Makefile
+++ turbostat-3.14/Makefile
@@ -5,7 +5,6 @@ DESTDIR :=
turbostat : turbostat.c
CFLAGS += -Wall
-CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/uapi/asm/msr-index.h"'
%: %.c
@mkdir -p $(BUILD_OUTPUT)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98aa5ffa5202cbca1836a69383d44ddba70224459bb40d2fc27ebfc6bafeef1a
size 21380

3
turbostat-3.14.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25252937e79be9ce2c8f05ffad9f9502b78559df34d54d54f54c4a1d76ac8b17
size 21870