add module-bbswitch and cpupowertools

perf need gtk2-devel is main package
nvidia and fglrx modules need X too
This commit is contained in:
Ertuğrul Erata
2015-06-17 00:17:23 +03:00
parent b1dae3f0fe
commit 4418f00c9b
17 changed files with 871 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
cpupower_arch = get.ARCH().replace("i686", "i386")
def build():
# Build cpupowertools
shelltools.cd("tools/power/cpupower")
autotools.make("CPUFREQ_BENCH=false")
autotools.make("-C debug/%s centrino-decode powernow-k8-decode" % cpupower_arch)
def install():
# Install cpupowertools stuff
shelltools.cd("tools/power/cpupower")
autotools.install("DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))
pisitools.dobin("debug/%s/centrino-decode" % cpupower_arch)
pisitools.dobin("debug/%s/powernow-k8-decode" % cpupower_arch)