You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
707B

  1. modname := rtl8812au
  2. DKMS := dkms
  3. modver := 4.3.14
  4. # directory in which generated files are stored
  5. DKMS_DEST := /usr/src/$(modname)-$(modver)
  6. all: install
  7. src_install:
  8. make clean
  9. mkdir -p '$(DKMS_DEST)'
  10. cp -r dkms.conf Kconfig Makefile.dkms Makefile platform core hal include os_dep '$(DKMS_DEST)'
  11. cp Makefile '$(DKMS_DEST)/Makefile'
  12. sed 's/#MODULE_VERSION#/$(modver)/' dkms.conf > '$(DKMS_DEST)/dkms.conf'
  13. build: src_install
  14. $(DKMS) add -m $(modname) -v $(modver) 2>/dev/null || true
  15. $(DKMS) build -m $(modname) -v $(modver)
  16. install: build
  17. $(DKMS) install -m $(modname) -v $(modver)
  18. uninstall:
  19. $(DKMS) remove -m $(modname) -v $(modver) --all
  20. .PHONY: all src_install build install uninstall