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.

39 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_SOURCE_DATE:=2022-03-30
  5. PKG_SOURCE_VERSION:=ecc6ebe0141b97942d774e6c6be37a330cc11a74
  6. PKG_RELEASE:=$(AUTORELEASE)
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
  9. PKG_MIRROR_HASH:=487c4259211411d3c435284016f90c6770539c0a6f904f3327f18381a33c23e3
  10. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define KernelPackage/usb-serial-xr_usb_serial_common
  16. SECTION:=kernel
  17. CATEGORY:=Kernel modules
  18. SUBMENU:=USB Support
  19. TITLE:=Support for Exar USB to RS-485/RS-422
  20. URL:=https://www.exar.com/content/document.ashx?id=21651
  21. FILES:=$(PKG_BUILD_DIR)/xr_usb_serial_common-1a/xr_usb_serial_common.$(LINUX_KMOD_SUFFIX)
  22. AUTOLOAD:=$(call AutoProbe,xr_usb_serial_common)
  23. DEPENDS+=kmod-usb-serial
  24. endef
  25. define Build/Compile
  26. +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
  27. ARCH="$(LINUX_KARCH)" \
  28. CROSS_COMPILE="$(TARGET_CROSS)" \
  29. M="$(PKG_BUILD_DIR)/xr_usb_serial_common-1a" \
  30. modules
  31. endef
  32. $(eval $(call KernelPackage,usb-serial-xr_usb_serial_common))