actions.py 503 B

12345678910111213141516171819
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under GNU General Public License, version 3.
  4. # See the file https://www.gnu.org/licenses/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("KERNEL_DIR=/lib/modules/%s/build" % KDIR)
  11. def install():
  12. pisitools.insinto("/lib/modules/%s/extra" % KDIR, "*.ko")
  13. pisitools.dodoc("LICENSE", "README*")