diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2019-04-23 12:55:35 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-26 11:54:58 +0200 |
commit | 9c71364b63850ab68d53d0f55e71f84da0e33bef (patch) | |
tree | b98e359a8d90fd80d117ebb9a858ad15ec59f844 | |
parent | 977656278d757a24f58fece20d7b09649cc41488 (diff) | |
download | ptxdist-9c71364b63850ab68d53d0f55e71f84da0e33bef.tar.gz ptxdist-9c71364b63850ab68d53d0f55e71f84da0e33bef.tar.xz |
usbip: new package
Build usbip-utils 2.0 from the Kernel v5.0 source tree.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
l--------- | patches/usbip-5.0/autogen.sh | 1 | ||||
-rw-r--r-- | rules/usbip.in | 10 | ||||
-rw-r--r-- | rules/usbip.make | 61 |
3 files changed, 72 insertions, 0 deletions
diff --git a/patches/usbip-5.0/autogen.sh b/patches/usbip-5.0/autogen.sh new file mode 120000 index 000000000..9f8a4cb7d --- /dev/null +++ b/patches/usbip-5.0/autogen.sh @@ -0,0 +1 @@ +../autogen.sh
\ No newline at end of file diff --git a/rules/usbip.in b/rules/usbip.in new file mode 100644 index 000000000..4455ce484 --- /dev/null +++ b/rules/usbip.in @@ -0,0 +1,10 @@ +## SECTION=core + +config USBIP + tristate + select UDEV + select UDEV_LIBUDEV + 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 000000000..59ed365ab --- /dev/null +++ b/rules/usbip.make @@ -0,0 +1,61 @@ +# -*-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 + +# ---------------------------------------------------------------------------- +# 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 |