lkml.org 
[lkml]   [2011]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 14/14] package: Makefile: add USB/IP userspace utilities
Date
From: matt mooney <mfm@muteddisk.com>

Add usbip-src-pkg target to generate a tarball of the userspace source.

Signed-off-by: matt mooney <mfm@muteddisk.com>
---
scripts/package/Makefile | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index a834b93..c736a12 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -134,6 +134,19 @@ $(error unknown target $@)))) \
perf-%pkg: FORCE
$(call cmd,perf_tar)

+# usbip-src-pkg - generate a source tarball of USB/IP userspace utilities
+# ---------------------------------------------------------------------------
+usbip-pkg := usbip-$(KERNELVERSION)
+usbip-userspace := $(srctree)/drivers/staging/usbip/userspace
+
+quiet_cmd_usbip_pkg = TAR $(usbip-pkg)
+ cmd_usbip_pkg = \
+ tar czfP $(usbip-pkg).tar.gz $(usbip-userspace) \
+ --transform="s:$(usbip-userspace):$(usbip-pkg):"
+
+usbip-src-pkg: FORCE
+ $(call cmd,usbip_pkg)
+
# Help text displayed when executing 'make help'
# ---------------------------------------------------------------------------
help: FORCE
@@ -148,4 +161,4 @@ help: FORCE
@echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball'
@echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball'
@echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball'
-
+ @echo ' usbip-src-pkg - Build source tarball of USB/IP userspace utilities'
--
1.7.5.1


\
 
 \ /
  Last update: 2011-05-14 13:01    [W:0.101 / U:4.508 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site