actions.py 711 B

123456789101112131415161718192021222324
  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. from pisi.actionsapi import get
  9. from pisi.actionsapi import shelltools
  10. WorkDir = get.ARCH()
  11. KDIR = kerneltools.getKernelVersion()
  12. def build():
  13. shelltools.system("sed -e '/BRCM_WLAN_IFNAME/s:eth:wlan:' \
  14. -i src/wl/sys/wl_linux.c")
  15. autotools.make("Werror=0 -C /lib/modules/%s/build M=%s modules" % (KDIR, get.curDIR()))
  16. def install():
  17. pisitools.insinto("/lib/modules/%s/extra" % KDIR, "wl.ko")
  18. pisitools.dodoc("lib/LICENSE.txt")