Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 54 lines (38 sloc) 1.943 kB
af96aba @circass working well
authored
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 #
4 # Licensed under the GNU General Public License, version 2.
5 # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
6
7 from pisi.actionsapi import kerneltools
8 from pisi.actionsapi import shelltools
9 from pisi.actionsapi import autotools
10 from pisi.actionsapi import pisitools
11 from pisi.actionsapi import get
12
13 NoStrip = ["/lib", "/boot"]
14
15 shelltools.export("KBUILD_BUILD_USER", "pardus")
16 shelltools.export("KBUILD_BUILD_HOST", "buildfarm")
17 shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
18 shelltools.export("HOME", get.workDIR())
19
20 cpupower_arch = get.ARCH().replace("i686", "i386")
21
22 def setup():
23 kerneltools.configure()
24
25 def build():
26 kerneltools.build(debugSymbols=False)
27
28 # When bumping major version build man files and put them into files/man
29 autotools.make("V=1 WERROR=0 -C tools/perf perf HAVE_CPLUS_DEMANGLE=1")
30
31 # Build cpupowertools
32 autotools.make("-C tools/power/cpupower CPUFREQ_BENCH=false")
33 autotools.make("-C tools/power/cpupower/debug/%s centrino-decode powernow-k8-decode" % cpupower_arch)
34
35 def install():
36 kerneltools.install()
37
38 # Install kernel headers needed for out-of-tree module compilation
39 kerneltools.installHeaders()
40
41 kerneltools.installLibcHeaders()
42
43 # Install cpupowertools stuff
44 autotools.install("-C tools/power/cpupower DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))
45
46 pisitools.dobin("tools/power/cpupower/debug/%s/centrino-decode" % cpupower_arch)
47 pisitools.dobin("tools/power/cpupower/debug/%s/powernow-k8-decode" % cpupower_arch)
48
49 # Generate some module lists to use within mkinitramfs
50 shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))
51
52 # Build and install the new 'perf' tool
53 pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Something went wrong with that request. Please try again.