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