summaryrefslogtreecommitdiffstats
path: root/rules/usbip.make
blob: 9d76ec5788be7bf10c1e3ed539989ce244f990d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*-makefile-*-
#
# Copyright (C) 2019 by Philipp Zabel <p.zabel@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_USBIP) += usbip

#
# Paths and names
#
USBIP_VERSION	:= 5.8
USBIP		:= usbip-$(USBIP_VERSION)
USBIP_MD5	:= 0e5c4c15266218ef26c50fac0016095b
USBIP_SUFFIX	:= tar.xz
USBIP_URL	:= https://www.kernel.org/pub/linux/kernel/v5.x/linux-$(USBIP_VERSION).$(USBIP_SUFFIX)
USBIP_SOURCE	:= $(SRCDIR)/linux-$(USBIP_VERSION).$(USBIP_SUFFIX)
USBIP_SUBDIR	:= tools/usb/usbip
USBIP_DIR	:= $(BUILDDIR)/$(USBIP)
USBIP_LICENSE	:= GPL-2.0-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

USBIP_CONF_TOOL	:= autoconf
USBIP_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--without-tcp-wrappers \
	--with-usbids-dir=/usr/share/ \
	--with-fortify

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/usbip.targetinstall:
	@$(call targetinfo)

	@$(call install_init, usbip)
	@$(call install_fixup, usbip, PRIORITY, optional)
	@$(call install_fixup, usbip, SECTION, base)
	@$(call install_fixup, usbip, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
	@$(call install_fixup, usbip, DESCRIPTION, USB/IP system for sharing USB devices over the network)

	@$(call install_copy, usbip, 0, 0, 0755, -, /usr/sbin/usbip)
	@$(call install_copy, usbip, 0, 0, 0755, -, /usr/sbin/usbipd)
	@$(call install_lib, usbip, 0, 0, 0644, libusbip)

	@$(call install_finish, usbip)

	@$(call touch)

# vim: syntax=make