From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/2] package: linux-tools: add usbip
Date: Mon, 12 Dec 2016 18:26:36 +0100 [thread overview]
Message-ID: <20161212172636.GB3509@free.fr> (raw)
In-Reply-To: <1481562559-12526-2-git-send-email-tal.shorer@gmail.com>
Tal, All,
On 2016-12-12 19:09 +0200, Tal Shorer spake thusly:
> add the usbip package from the kernel source, allowing users to share
> usb devices over a network connection
Sorry, but I still think a spearate package is better, because we re-use
the autotools infra rather than rewrite it...
See my reply in the previos thread.
Regards,
Yann E. MORIN.
> Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
> ---
> package/linux-tools/Config.in | 7 ++++++
> package/linux-tools/linux-tool-usbip.mk | 42 +++++++++++++++++++++++++++++++++
> 2 files changed, 49 insertions(+)
> create mode 100644 package/linux-tools/linux-tool-usbip.mk
>
> diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
> index db9ed9f..83b5ee0 100644
> --- a/package/linux-tools/Config.in
> +++ b/package/linux-tools/Config.in
> @@ -83,4 +83,11 @@ comment "selftests needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
> depends on BR2_USE_MMU
> depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>
> +config BR2_PACKAGE_LINUX_TOOLS_USBIP
> + bool"usbip"
> + select BR2_PACKAGE_LINUX_TOOLS
> + help
> + usbip is a set of tools that allows machines to share their
> + usb devices over the network, to be driven by a remote client.
> +
> endmenu
> diff --git a/package/linux-tools/linux-tool-usbip.mk b/package/linux-tools/linux-tool-usbip.mk
> new file mode 100644
> index 0000000..1ec01b5
> --- /dev/null
> +++ b/package/linux-tools/linux-tool-usbip.mk
> @@ -0,0 +1,42 @@
> +################################################################################
> +#
> +# usbip
> +#
> +################################################################################
> +
> +LINUX_TOOLS += usbip
> +
> +USBIP_MAKE_OPTS = $(LINUX_MAKE_FLAGS)
> +
> +USBIP_DIR = $(wildcard \
> + $(LINUX_DIR)/tools/usb/usbip \
> + $(LINUX_DIR)/drivers/staging/usbip/userspace)
> +
> +define USBIP_CONFIGURE_CMDS
> + $(Q)if ! [[ -d $(USBIP_DIR) ]] >/dev/null 2>&1 ; then \
> + echo "Your kernel version is too old and does not have usbip." ; \
> + echo "At least kernel 3.0 must be used." ; \
> + exit 1 ; \
> + fi
> + cd $(USBIP_DIR) && $(AUTORECONF) && \
> + $(TARGET_CONFIGURE_OPTS) \
> + $(TARGET_CONFIGURE_ARGS) \
> + ./configure \
> + --target=$(GNU_TARGET_NAME) \
> + --host=$(GNU_TARGET_NAME) \
> + --build=$(GNU_HOST_NAME) \
> + --prefix=$(TARGET_DIR)/usr \
> + $(SHARED_STATIC_LIBS_OPTS)
> +
> +endef
> +
> +define USBIP_BUILD_CMDS
> + $(TARGET_MAKE_ENV) $(MAKE) -C $(USBIP_DIR) $(USBIP_MAKE_OPTS)
> +endef
> +
> +define USBIP_INSTALL_TARGET_CMDS
> + $(TARGET_MAKE_ENV) $(MAKE) -C $(USBIP_DIR) \
> + $(USBIP_MAKE_OPTS) \
> + INSTALL_ROOT=$(TARGET_DIR) \
> + install
> +endef
> --
> 2.7.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2016-12-12 17:26 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 8:37 [Buildroot] [PATCH] usbip: add a new package Tal Shorer
2016-12-10 13:31 ` Thomas Petazzoni
2016-12-10 18:39 ` Tal Shorer
2016-12-11 10:06 ` Yann E. MORIN
2016-12-11 13:56 ` Yann E. MORIN
2016-12-11 17:39 ` Tal Shorer
2016-12-11 17:45 ` Yann E. MORIN
2016-12-11 18:12 ` [Buildroot] [PATCH] pkg-generic: run $(PKG)_PRE_RSYNC_HOOKS before checking for the existence of $(SRCDIR) Tal Shorer
2016-12-11 19:19 ` Yann E. MORIN
2016-12-11 19:44 ` [Buildroot] [PATCH] package/usbip: new package Tal Shorer
2016-12-17 15:00 ` [Buildroot] [PATCH] pkg-generic: run $(PKG)_PRE_RSYNC_HOOKS before checking for the existence of $(SRCDIR) Thomas Petazzoni
2016-12-11 18:31 ` [Buildroot] [PATCH] usbip: add a new package Tal Shorer
2016-12-11 19:24 ` Yann E. MORIN
2016-12-11 19:59 ` Arnout Vandecappelle
2016-12-11 21:40 ` Yann E. MORIN
2016-12-11 21:46 ` Tal Shorer
2016-12-11 22:05 ` Yann E. MORIN
2016-12-11 22:11 ` Tal Shorer
2016-12-11 22:20 ` Yann E. MORIN
2016-12-11 22:30 ` Tal Shorer
2016-12-12 9:40 ` Arnout Vandecappelle
2016-12-12 17:25 ` Yann E. MORIN
2016-12-12 22:17 ` Tal Shorer
2016-12-12 22:21 ` [Buildroot] [PATCH v3] usbip: " Tal Shorer
2016-12-13 17:53 ` Yann E. MORIN
2016-12-14 17:28 ` [Buildroot] [PATCH v4] " Tal Shorer
2016-12-21 22:17 ` Tal Shorer
2016-12-22 20:45 ` Yann E. MORIN
2016-12-23 18:24 ` Yann E. MORIN
2016-12-23 19:10 ` Yann E. MORIN
2016-12-13 17:35 ` [Buildroot] [PATCH] usbip: add a " Yann E. MORIN
2016-12-12 17:09 ` [Buildroot] [PATCH v2 1/2] package: linux-tools: allow tools to define configure hooks Tal Shorer
2016-12-12 17:09 ` [Buildroot] [PATCH v2 2/2] package: linux-tools: add usbip Tal Shorer
2016-12-12 17:26 ` Yann E. MORIN [this message]
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=20161212172636.GB3509@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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