Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 5f83f7d8ef
Fetching contributors…

Cannot retrieve contributors at this time

executable file 54 lines (38 sloc) 1.943 kB
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 2.
# See the file
from pisi.actionsapi import kerneltools
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
NoStrip = ["/lib", "/boot"]
shelltools.export("KBUILD_BUILD_USER", "pardus")
shelltools.export("KBUILD_BUILD_HOST", "buildfarm")
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
shelltools.export("HOME", get.workDIR())
cpupower_arch = get.ARCH().replace("i686", "i386")
def setup():
def build():
# When bumping major version build man files and put them into files/man
autotools.make("V=1 WERROR=0 -C tools/perf perf HAVE_CPLUS_DEMANGLE=1")
# Build cpupowertools
autotools.make("-C tools/power/cpupower CPUFREQ_BENCH=false")
autotools.make("-C tools/power/cpupower/debug/%s centrino-decode powernow-k8-decode" % cpupower_arch)
def install():
# Install kernel headers needed for out-of-tree module compilation
# Install cpupowertools stuff
autotools.install("-C tools/power/cpupower DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))
pisitools.dobin("tools/power/cpupower/debug/%s/centrino-decode" % cpupower_arch)
pisitools.dobin("tools/power/cpupower/debug/%s/powernow-k8-decode" % cpupower_arch)
# Generate some module lists to use within mkinitramfs
shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))
# Build and install the new 'perf' tool
pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Jump to Line
Something went wrong with that request. Please try again.