Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:=0.1.20130818
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=https://github.com/lowlander/dmx_usb_module.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=ee99ca7edbd9e093480ad63341ac007394047bde
  17. PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com>
  18. PKG_LICENSE:=GPL-2.0
  19. include $(INCLUDE_DIR)/package.mk
  20. define KernelPackage/usb-serial-dmx_usb_module
  21. SECTION:=kernel
  22. CATEGORY:=Kernel modules
  23. SUBMENU:=USB Support
  24. TITLE:=Support for FTDI RS485 based DMX modules
  25. URL:=http://www.erwinrol.com/open-dmx-usb-linux-driver/
  26. FILES:=$(PKG_BUILD_DIR)/dmx_usb.$(LINUX_KMOD_SUFFIX)
  27. AUTOLOAD:=$(call AutoProbe,dmx_usb)
  28. DEPENDS+=kmod-usb-serial
  29. endef
  30. define KernelPackage/usb-serial-dmx_usb_module/description
  31. Open DMX USB is an open USB to DMX dongle hardware design developed by Enttec.
  32. The Open in Open DMX USB refers to the fact that everybody is free to use the
  33. design and produce its own USB DMX Dongle without paying any licenses.
  34. endef
  35. DMX_MAKE_OPTS:= -C $(PKG_BUILD_DIR) \
  36. PATH="$(TARGET_PATH)" \
  37. ARCH="$(LINUX_KARCH)" \
  38. CROSS_COMPILE="$(TARGET_CROSS)" \
  39. TARGET="$(HAL_TARGET)" \
  40. TOOLPREFIX="$(KERNEL_CROSS)" \
  41. TOOLPATH="$(KERNEL_CROSS)" \
  42. KERNELPATH="$(LINUX_DIR)" \
  43. LDOPTS=" "
  44. define Build/Compile
  45. $(MAKE) $(DMX_MAKE_OPTS) M=$(PKG_BUILD_DIR)
  46. endef
  47. $(eval $(call KernelPackage,usb-serial-dmx_usb_module))