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.

55 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=dmx_usb_module
  10. PKG_VERSION:=19.12.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/lowlander/dmx_usb_module/tar.gz/V$(PKG_VERSION)?
  14. PKG_HASH:=fabeb5500b55197338dda45d07374e5edc837bc18df3ac3114b442fe47cf1b68
  15. PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com>
  16. PKG_LICENSE:=GPL-2.0-only
  17. include $(INCLUDE_DIR)/package.mk
  18. define KernelPackage/usb-serial-dmx_usb_module
  19. SECTION:=kernel
  20. CATEGORY:=Kernel modules
  21. SUBMENU:=USB Support
  22. TITLE:=Support for FTDI RS485 based DMX modules
  23. URL:=http://www.erwinrol.com/open-dmx-usb-linux-driver/
  24. FILES:=$(PKG_BUILD_DIR)/dmx_usb.$(LINUX_KMOD_SUFFIX)
  25. AUTOLOAD:=$(call AutoProbe,dmx_usb)
  26. DEPENDS+=kmod-usb-serial
  27. endef
  28. define KernelPackage/usb-serial-dmx_usb_module/description
  29. Open DMX USB is an open USB to DMX dongle hardware design developed by Enttec.
  30. The Open in Open DMX USB refers to the fact that everybody is free to use the
  31. design and produce its own USB DMX Dongle without paying any licenses.
  32. endef
  33. DMX_MAKE_OPTS:= -C $(PKG_BUILD_DIR) \
  34. PATH="$(TARGET_PATH)" \
  35. ARCH="$(LINUX_KARCH)" \
  36. CROSS_COMPILE="$(TARGET_CROSS)" \
  37. TARGET="$(HAL_TARGET)" \
  38. TOOLPREFIX="$(KERNEL_CROSS)" \
  39. TOOLPATH="$(KERNEL_CROSS)" \
  40. KERNELPATH="$(LINUX_DIR)" \
  41. LDOPTS=" "
  42. define Build/Compile
  43. $(MAKE) $(DMX_MAKE_OPTS) M=$(PKG_BUILD_DIR)
  44. endef
  45. $(eval $(call KernelPackage,usb-serial-dmx_usb_module))