actions.py 905 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. cpupower_arch = get.ARCH().replace("i686", "i386")
  11. def build():
  12. # Build cpupowertools
  13. shelltools.cd("tools/power/cpupower")
  14. autotools.make("CPUFREQ_BENCH=false")
  15. autotools.make("-C debug/%s centrino-decode powernow-k8-decode" % cpupower_arch)
  16. def install():
  17. # Install cpupowertools stuff
  18. shelltools.cd("tools/power/cpupower")
  19. autotools.install("DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))
  20. pisitools.dobin("debug/%s/centrino-decode" % cpupower_arch)
  21. pisitools.dobin("debug/%s/powernow-k8-decode" % cpupower_arch)