mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] usbip: new package
@ 2019-04-23 10:55 Philipp Zabel
  0 siblings, 0 replies; only message in thread
From: Philipp Zabel @ 2019-04-23 10:55 UTC (permalink / raw)
  To: ptxdist

Build usbip-utils 2.0 from the Kernel v5.0 source tree.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 rules/usbip.in   |  8 ++++++
 rules/usbip.make | 71 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 rules/usbip.in
 create mode 100644 rules/usbip.make

diff --git a/rules/usbip.in b/rules/usbip.in
new file mode 100644
index 000000000000..97cd81b489da
--- /dev/null
+++ b/rules/usbip.in
@@ -0,0 +1,8 @@
+## SECTION=core
+
+config USBIP
+	tristate
+	prompt "usbip"
+	help
+	  USB/IP system for sharing USB devices over the network.
+	  Contains 'usbipd' server and 'usbip' client tool.
diff --git a/rules/usbip.make b/rules/usbip.make
new file mode 100644
index 000000000000..225536a1e0a7
--- /dev/null
+++ b/rules/usbip.make
@@ -0,0 +1,71 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# 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.0
+USBIP		:= usbip-$(USBIP_VERSION)
+USBIP_MD5	:= 7381ce8aac80a01448e065ce795c19c0
+USBIP_SUFFIX	:= tar.xz
+USBIP_URL	:= $(call kernel-url, USBIP)
+USBIP_SOURCE	:= $(SRCDIR)/linux-$(USBIP_VERSION).$(USBIP_SUFFIX)
+USBIP_SUBDIR	:= tools/usb/usbip
+USBIP_DIR	:= $(BUILDDIR)/$(USBIP)
+USBIP_LICENSE	:= GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Extract (just create the 'configure' script on demand)
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/usbip.extract.post: $(STATEDIR)/autogen-tools
+	@$(call targetinfo)
+	@cd $(USBIP_DIR)/$(USBIP_SUBDIR) && [ -f configure ] || sh autogen.sh
+	@$(call world/patchin/post, USBIP)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+USBIP_CONF_TOOL	:= autoconf
+USBIP_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--without-tcp-wrappers \
+	--with-usbids-dir=/usr/share/hwdata/ \
+	--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
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-23 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-23 10:55 [ptxdist] [PATCH] usbip: new package Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox