24ebf26035b05452acef2314ef06b123348e99e8
[feed/packages.git] / libs / xr_usb_serial_common / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/kernel.mk
3
4 PKG_NAME:=usb-serial-xr_usb_serial_common
5 PKG_SOURCE_DATE:=2023-03-21
6 PKG_SOURCE_VERSION:=90ad530166f096347a5a57b6f9eb21c422a40fd9
7 PKG_RELEASE:=1
8
9 PKG_SOURCE_PROTO:=git
10 PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
11 PKG_MIRROR_HASH:=0cea56120542d3d546028d17389a3419ca930448005a9208728c40583ccf027d
12
13 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
14 PKG_LICENSE:=GPL-2.0-or-later
15 PKG_LICENSE_FILES:=LICENSE
16 PKG_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define KernelPackage/usb-serial-xr_usb_serial_common
21 SECTION:=kernel
22 CATEGORY:=Kernel modules
23 SUBMENU:=USB Support
24 TITLE:=Support for Exar USB to RS-485/RS-422
25 URL:=https://www.exar.com/content/document.ashx?id=21651
26 FILES:=$(PKG_BUILD_DIR)/xr_usb_serial_common-1a/xr_usb_serial_common.$(LINUX_KMOD_SUFFIX)
27 AUTOLOAD:=$(call AutoProbe,xr_usb_serial_common)
28 DEPENDS+=kmod-usb-serial
29 endef
30
31 define Build/Compile
32 +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
33 ARCH="$(LINUX_KARCH)" \
34 CROSS_COMPILE="$(TARGET_CROSS)" \
35 M="$(PKG_BUILD_DIR)/xr_usb_serial_common-1a" \
36 modules
37 endef
38
39 $(eval $(call KernelPackage,usb-serial-xr_usb_serial_common))