mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] usbip: new package
Date: Tue, 23 Apr 2019 12:55:35 +0200	[thread overview]
Message-ID: <20190423105535.761-1-p.zabel@pengutronix.de> (raw)

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

                 reply	other threads:[~2019-04-23 10:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190423105535.761-1-p.zabel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox