- 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:
parent
0b75432b55
commit
1a1be68aee
3
cpupower-3.14.tar.bz2
Normal file
3
cpupower-3.14.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:73a55c6cf0701186077c087f456ddd664b6c4601532d68f4bca63eb8eab418ee
|
||||||
|
size 71414
|
@ -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
|
Fri Mar 28 19:05:46 UTC 2014 - trenn@suse.de
|
||||||
|
|
||||||
|
@ -17,13 +17,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: cpupower
|
Name: cpupower
|
||||||
Url: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
|
Url: http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
|
||||||
# Use this as version when things are in mainline kernel
|
# Use this as version when things are in mainline kernel
|
||||||
%define version %(rpm -q --qf '%{VERSION}' kernel-source)
|
%define version %(rpm -q --qf '%{VERSION}' kernel-source)
|
||||||
Version: 3.13
|
Version: 3.13
|
||||||
Release: 0
|
Release: 0
|
||||||
%define tsversion 3.13
|
%define tsversion 3.14
|
||||||
Summary: Tools to determine and set CPU Power related Settings
|
Summary: Tools to determine and set CPU Power related Settings
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: System/Base
|
Group: System/Base
|
||||||
@ -33,6 +34,7 @@ Source2: cpupower_export_tarball_from_git.sh
|
|||||||
Patch1: cpupower_disable_by_latency.patch
|
Patch1: cpupower_disable_by_latency.patch
|
||||||
Patch2: add_idle_manpages_in_Makefile.patch
|
Patch2: add_idle_manpages_in_Makefile.patch
|
||||||
Patch20: turbostat_fix_man_perm.patch
|
Patch20: turbostat_fix_man_perm.patch
|
||||||
|
Patch21: make_header_file_passable_from_outside.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: gettext-tools
|
BuildRequires: gettext-tools
|
||||||
BuildRequires: pciutils
|
BuildRequires: pciutils
|
||||||
@ -81,6 +83,7 @@ powersave module.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
cd ../turbostat-%{tsversion}
|
cd ../turbostat-%{tsversion}
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
|
%patch21 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This package failed when testing with -Wl,-as-needed being default.
|
# This package failed when testing with -Wl,-as-needed being default.
|
||||||
@ -92,7 +95,7 @@ make $CONF %{?_smp_mflags}
|
|||||||
|
|
||||||
%ifarch ix86 x86_64
|
%ifarch ix86 x86_64
|
||||||
cd ../turbostat-%{tsversion}
|
cd ../turbostat-%{tsversion}
|
||||||
make %{?_smp_mflags}
|
CFLAGS="%optflags -I. -DMSRHEADER=\"<asm/msr-index.h>\"" make %{?_smp_mflags}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
@ -60,7 +60,7 @@ set -x
|
|||||||
git archive --format=tar $GIT_TAG tools/power/x86/turbostat |tar -x
|
git archive --format=tar $GIT_TAG tools/power/x86/turbostat |tar -x
|
||||||
mv tools/power/x86/turbostat turbostat${VERSION}
|
mv tools/power/x86/turbostat turbostat${VERSION}
|
||||||
mkdir turbostat${VERSION}/asm
|
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}
|
tar -cvjf turbostat${VERSION}.tar.bz2 turbostat${VERSION}
|
||||||
popd
|
popd
|
||||||
mv "$DIR/cpupower${VERSION}".tar.bz2 .
|
mv "$DIR/cpupower${VERSION}".tar.bz2 .
|
||||||
|
12
make_header_file_passable_from_outside.patch
Normal file
12
make_header_file_passable_from_outside.patch
Normal 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)
|
@ -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
3
turbostat-3.14.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:25252937e79be9ce2c8f05ffad9f9502b78559df34d54d54f54c4a1d76ac8b17
|
||||||
|
size 21870
|
Loading…
Reference in New Issue
Block a user