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.

41 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=usb-serial-xr_usb_serial_common
  4. PKG_VERSION:=1a
  5. PKG_RELEASE=1
  6. PKG_LICENSE:=GPLv2
  7. PKG_LICENSE_FILES:=
  8. PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  11. PKG_SOURCE_VERSION:=8c21f4afdfd6acd77b6adad59a4dabe5cbf2b947
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  13. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  14. PKG_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define KernelPackage/usb-serial-xr_usb_serial_common
  17. SECTION:=kernel
  18. CATEGORY:=Kernel modules
  19. SUBMENU:=USB Support
  20. TITLE:=Support for Exar USB to RS-485/RS-422
  21. URL:=https://www.exar.com/content/document.ashx?id=21651
  22. FILES:=$(PKG_BUILD_DIR)/xr_usb_serial_common-1a/xr_usb_serial_common.$(LINUX_KMOD_SUFFIX)
  23. AUTOLOAD:=$(call AutoProbe,xr_usb_serial_common)
  24. DEPENDS+=kmod-usb-serial
  25. endef
  26. define Build/Compile
  27. +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
  28. ARCH="$(LINUX_KARCH)" \
  29. CROSS_COMPILE="$(TARGET_CROSS)" \
  30. SUBDIRS="$(PKG_BUILD_DIR)/xr_usb_serial_common-1a" \
  31. modules
  32. endef
  33. $(eval $(call KernelPackage,usb-serial-xr_usb_serial_common))