actions.py 446 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt.
  5. from pisi.actionsapi import kerneltools
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. KDIR = kerneltools.getKernelVersion()
  9. def build():
  10. autotools.make("KERN_DIR=/lib/modules/%s/build" % KDIR)
  11. def install():
  12. pisitools.insinto("/lib/modules/%s/extra" % KDIR, "*.ko")