Linux/m68k driver for MNT ZZ9000
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.

33 lines
907 B

  1. obj-m += zz9000.o zz9000_network.o zz9000_usb.o zz9000_graphics.o
  2. zz9000-y := zz9000_core.o
  3. ARCH=$(shell uname -p)
  4. ifneq ($(ARCH),m68k)
  5. export KROOT=/usr/src/linux-source-5.4
  6. MAKEOPTS=ARCH=m68k CROSS_COMPILE=m68k-linux-gnu-
  7. else
  8. export KROOT=/lib/modules/$(shell uname -r)/build
  9. endif
  10. allofit: modules copy
  11. modules:
  12. @$(MAKE) $(MAKEOPTS) -C $(KROOT) M=$(PWD) modules
  13. modules_install:
  14. @$(MAKE) $(MAKEOPTS) -C $(KROOT) M=$(PWD) modules_install
  15. kernel_clean:
  16. @$(MAKE) $(MAKEOPTS) -C $(KROOT) M=$(PWD) clean
  17. clean: kernel_clean
  18. rm -rf Module.symvers modules.order
  19. FILES := Makefile zz9000.h zz9000_core.c zz9000_usb.c zz9000_network.c zz9000_graphics.c
  20. FILES += zz9000.ko zz9000_network.ko zz9000_usb.ko zz9000_graphics.ko
  21. copy:
  22. cp $(FILES) /storage/stepan/amiga-drivers/
  23. @cd /storage/stepan; tar cf ~/amiga.tar amiga-drivers; cd -
  24. @#echo scp $(FILES) root@192.168.0.40:amiga-drivers/