Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part (UPDATED)

2012-07-27 Thread Florian Fainelli
On Thursday 26 April 2012 10:01:36 Abaakouk Mehdi wrote:
 
 Update: md5sum of usb.ids have been updated.
 
 After kernel 2.6.39, usbip kernel and userspace are in kernel tree
 The new kernel modules names have already been updated in openwrt for
 kernel  2.6.39
 
 This patch, allow to build the new corresponding usbip userspace tool
 when of the device use a kernel  2.6.39
 And continue to build version 0.1.7 for older version.
 
 Fix #10992
 
 Signed-off-by: Mehdi Abaakouk sil...@sileht.net
 

Applied in r32887, thanks Mehdi!
--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part (UPDATED)

2012-07-27 Thread Mehdi Abaakouk
Thanks a lots !

On Fri, Jul 27, 2012 at 01:47:23PM +0200, Florian Fainelli wrote:
 On Thursday 26 April 2012 10:01:36 Abaakouk Mehdi wrote:
  
  Update: md5sum of usb.ids have been updated.
  
  After kernel 2.6.39, usbip kernel and userspace are in kernel tree
  The new kernel modules names have already been updated in openwrt for
  kernel  2.6.39
  
  This patch, allow to build the new corresponding usbip userspace tool
  when of the device use a kernel  2.6.39
  And continue to build version 0.1.7 for older version.
  
  Fix #10992
  
  Signed-off-by: Mehdi Abaakouk sil...@sileht.net
  
 
 Applied in r32887, thanks Mehdi!
 --
 Florian

-- 
Mehdi Abaakouk
mail: sil...@sileht.net
irc: sileht
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part

2012-06-04 Thread Abaakouk Mehdi

Hi developers,

I use usbip, and it is actually broken in the current version of 
openwrt.
And so I need compile openwrt for my TP-WR703N only for this patch, 
it's a bit annoying.

I will appreciate If my patch would be committed,

Thanks in advance, regards,

Mehdi ABAAKOUK
sil...@sileht.net

Le 16.04.2012 18:04, Abaakouk Mehdi a écrit :

 Message original 
Objet: Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match
kernel part
Date: 16.04.2012 17:01
De: Abaakouk Mehdi sil...@sileht.net
À: Florian Fainelli flor...@openwrt.org

Hi Florian,

Le 16.04.2012 16:30, Florian Fainelli a écrit :

Hi Mehdi,

Le 04/13/12 21:36, Abaakouk Mehdi a écrit :

After kernel 2.6.39, usbip kernel and userspace are in kernel tree
The new kernel modules names have already been updated in openwrt 
for

kernel  2.6.39

This patch, allow to build the new corresponding usbip userspace 
tool

when of the device use a kernel  2.6.39
And continue to build version 0.1.7 for older version.


Thanks for fixing this, I have a device on which I also need to get
usbip working, so I will take this patch and try it out.


Me too for a TP-WR703N, I have run some test successfully with a 
printer

connect on it and a cups server installed on a other machine running
debian wheezy



Fix #10992

Signed-off-by: Mehdi Abaakouk sil...@sileht.net

...

+
+# Since kernel 2.6.39.1 userspace tools are inside the kernel tree
+# Package Automatic match version in kernel
+# MD5SUM is not useful kernel package already check it
+
+PKG_VERSION:=$(shell sed -n -e
'/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp'
$(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)




We will run this command every time the Makefile is invoked, why do
you need to do that?


The PKG_VERSION depends on the kernel tree.
I don't known how do that without list all the possibilities
(ie: kernel 3.2 have usbip 1.0.0, kernel 3.3 have usbip 1.1.1, )

But this need can be generated one time when the targeted kernel is 
selected,

but i don't known how I can do that in the makefile.



+PKG_SOURCE:=
+PKG_SOURCE_URL:=
+PKG_MD5SUM:=unknown
+PATCH_DIR:=./patches-$(PKG_VERSION)
+
+define prepare_source_directory
+ rm -rf $(PKG_BUILD_DIR)
+ $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace 
$(PKG_BUILD_DIR)

...




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part (UPDATED)

2012-04-26 Thread Abaakouk Mehdi


Update: md5sum of usb.ids have been updated.

After kernel 2.6.39, usbip kernel and userspace are in kernel tree
The new kernel modules names have already been updated in openwrt for
kernel  2.6.39

This patch, allow to build the new corresponding usbip userspace tool
when of the device use a kernel  2.6.39
And continue to build version 0.1.7 for older version.

Fix #10992

Signed-off-by: Mehdi Abaakouk sil...@sileht.net

Index: net/usbip/Makefile
===
--- net/usbip/Makefile  (revision 31360)
+++ net/usbip/Makefile  (working copy)
@@ -9,13 +9,35 @@
 include $(INCLUDE_DIR)/kernel.mk

 PKG_NAME:=usbip
-PKG_VERSION:=0.1.7
 PKG_RELEASE:=2

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

+
+PKG_VERSION:=0.1.7
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/usbip
 PKG_MD5SUM:=d1094b6d4449787864f8be001639232c

+else
+
+# Since kernel 2.6.39.1 userspace tools are inside the kernel tree
+# Package Automatic match version in kernel
+# MD5SUM is not useful kernel package already check it
+
+PKG_VERSION:=$(shell  sed -n -e 
'/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp' 
$(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)

+PKG_SOURCE:=
+PKG_SOURCE_URL:=
+PKG_MD5SUM:=unknown
+PATCH_DIR:=./patches-$(PKG_VERSION)
+
+define prepare_source_directory
+   rm -rf $(PKG_BUILD_DIR)
+   $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace $(PKG_BUILD_DIR)
+endef
+Hooks/Prepare/Pre += prepare_source_directory
+
+endif
+
 PKG_BUILD_DEPENDS:=glib2 sysfsutils
 PKG_FIXUP:=libtool autoreconf
 PKG_INSTALL:=1
@@ -51,7 +73,11 @@
 define Package/usbip-server
 $(call Package/usbip/Default)
   TITLE+= (server)
+ ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

   DEPENDS+= usbip +glib2 +kmod-usbip-server
+ else
+  DEPENDS+= usbip usbip-client +glib2 +kmod-usbip-server
+ endif
 endef

 define KernelPackage/usbip/Default
@@ -100,12 +126,30 @@

 include $(INCLUDE_DIR)/kernel-defaults.mk

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

 CONFIGURE_PATH:=./src
 MAKE_PATH:=./src
 LIBTOOL_PATHS:=./src
+else
+define Build/Configure
+   (cd $(PKG_BUILD_DIR); ./autogen.sh );
+   $(call Build/Configure/Default)
+endef
+CONFIGURE_PATH:=.
+MAKE_PATH:=.
+LIBTOOL_PATHS:=.
+MAKE_FLAGS+=CFLAGS=-Wno-implicit-function-declaration
+endif

 CFLAGS+=$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include

+define Download/usb.ids
+  URL:=http://www.linux-usb.org/
+  FILE:=usb.ids
+  MD5SUM:=b759fa4a38d6ef65f9b753239bedb6b1
+endef
+$(eval $(call Download,usb.ids))
+
 define Build/Compile/kmod
$(MAKE) $(KERNEL_MAKEOPTS) \
SUBDIRS=$(LINUX_DIR)/drivers/staging/usbip \
@@ -123,6 +167,7 @@
 $(call Build/Compile/kmod)
 endef

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

 define Package/usbip/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
@@ -132,7 +177,7 @@
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/usbip/usb.ids \
$(1)/usr/share/usbip/
-endef
+endif

 define Package/usbip-client/install
$(INSTALL_DIR) $(1)/usr/bin
@@ -140,7 +185,6 @@
$(PKG_INSTALL_DIR)/usr/bin/usbip \
$(1)/usr/bin/
 endef
-
 define Package/usbip-server/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) \
@@ -150,7 +194,32 @@
$(PKG_INSTALL_DIR)/usr/bin/bind_driver \
$(1)/usr/bin/usbip_bind_driver
 endef
+else
+define Package/usbip/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/libusbip.so.* \
+   $(1)/usr/lib/
+   $(INSTALL_DIR) $(1)/usr/share/hwdata
+   $(CP) \
+   $(DL_DIR)/usb.ids \
+   $(1)/usr/share/hwdata/
+endef

+define Package/usbip-client/install
+   $(INSTALL_DIR) $(1)/usr/sbin
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/sbin/usbip \
+   $(1)/usr/sbin/
+endef
+define Package/usbip-server/install
+   $(INSTALL_DIR) $(1)/usr/sbin
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/sbin/usbipd \
+   $(1)/usr/sbin/
+endef
+endif
+
 $(eval $(call BuildPackage,usbip))
 $(eval $(call BuildPackage,usbip-client))
 $(eval $(call BuildPackage,usbip-server))

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part

2012-04-16 Thread Florian Fainelli

Hi Mehdi,

Le 04/13/12 21:36, Abaakouk Mehdi a écrit :

After kernel 2.6.39, usbip kernel and userspace are in kernel tree
The new kernel modules names have already been updated in openwrt for
kernel  2.6.39

This patch, allow to build the new corresponding usbip userspace tool
when of the device use a kernel  2.6.39
And continue to build version 0.1.7 for older version.


Thanks for fixing this, I have a device on which I also need to get 
usbip working, so I will take this patch and try it out.




Fix #10992

Signed-off-by: Mehdi Abaakouk sil...@sileht.net

Index: net/usbip/Makefile
===
--- net/usbip/Makefile (révision 31217)
+++ net/usbip/Makefile (copie de travail)
@@ -9,13 +9,35 @@
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=usbip
-PKG_VERSION:=0.1.7
PKG_RELEASE:=2

+ifeq ($(strip $(call
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)
+
+PKG_VERSION:=0.1.7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/usbip
PKG_MD5SUM:=d1094b6d4449787864f8be001639232c

+else
+
+# Since kernel 2.6.39.1 userspace tools are inside the kernel tree
+# Package Automatic match version in kernel
+# MD5SUM is not useful kernel package already check it
+
+PKG_VERSION:=$(shell sed -n -e
'/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp'
$(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)


We will run this command everytime the Makefile is invoked, why do you 
need to do that?



+PKG_SOURCE:=
+PKG_SOURCE_URL:=
+PKG_MD5SUM:=unknown
+PATCH_DIR:=./patches-$(PKG_VERSION)
+
+define prepare_source_directory
+ rm -rf $(PKG_BUILD_DIR)
+ $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace $(PKG_BUILD_DIR)
+endef
+Hooks/Prepare/Pre += prepare_source_directory
+
+endif
+
PKG_BUILD_DEPENDS:=glib2 sysfsutils
PKG_FIXUP:=libtool autoreconf
PKG_INSTALL:=1
@@ -51,7 +73,11 @@
define Package/usbip-server
$(call Package/usbip/Default)
TITLE+= (server)
+ ifeq ($(strip $(call
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)
DEPENDS+= usbip +glib2 +kmod-usbip-server
+ else
+ DEPENDS+= usbip usbip-client +glib2 +kmod-usbip-server
+ endif
endef


So the server also has the usbip-client package as a dependency starting 
with 2.6.39 and onwards?




define KernelPackage/usbip/Default
@@ -100,12 +126,30 @@

include $(INCLUDE_DIR)/kernel-defaults.mk

+ifeq ($(strip $(call
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)
CONFIGURE_PATH:=./src
MAKE_PATH:=./src
LIBTOOL_PATHS:=./src
+else
+define Build/Configure
+ (cd $(PKG_BUILD_DIR); ./autogen.sh );
+ $(call Build/Configure/Default)
+endef
+CONFIGURE_PATH:=.
+MAKE_PATH:=.
+LIBTOOL_PATHS:=.
+MAKE_FLAGS+=CFLAGS=-Wno-implicit-function-declaration
+endif

CFLAGS+=$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include

+define Download/usb.ids
+ URL:=http://www.linux-usb.org/
+ FILE:=usb.ids
+ MD5SUM:=01a93bd6c8cce28fa70a2c4504fb0041
+endef
+$(eval $(call Download,usb.ids))
+
define Build/Compile/kmod
$(MAKE) $(KERNEL_MAKEOPTS) \
SUBDIRS=$(LINUX_DIR)/drivers/staging/usbip \
@@ -123,6 +167,7 @@
$(call Build/Compile/kmod)
endef

+ifeq ($(strip $(call
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)
define Package/usbip/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
@@ -132,7 +177,7 @@
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/usbip/usb.ids \
$(1)/usr/share/usbip/
-endef
+endif

define Package/usbip-client/install
$(INSTALL_DIR) $(1)/usr/bin
@@ -140,7 +185,6 @@
$(PKG_INSTALL_DIR)/usr/bin/usbip \
$(1)/usr/bin/
endef
-
define Package/usbip-server/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) \
@@ -150,7 +194,32 @@
$(PKG_INSTALL_DIR)/usr/bin/bind_driver \
$(1)/usr/bin/usbip_bind_driver
endef
+else
+define Package/usbip/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/lib/libusbip.so.* \
+ $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/share/hwdata
+ $(CP) \
+ $(DL_DIR)/usb.ids \
+ $(1)/usr/share/hwdata/
+endef

+define Package/usbip-client/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/sbin/usbip \
+ $(1)/usr/sbin/
+endef
+define Package/usbip-server/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) \
+ $(PKG_INSTALL_DIR)/usr/sbin/usbipd \
+ $(1)/usr/sbin/
+endef
+endif
+
$(eval $(call BuildPackage,usbip))
$(eval $(call BuildPackage,usbip-client))
$(eval $(call BuildPackage,usbip-server))



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part

2012-04-16 Thread Abaakouk Mehdi

 Message original 
Objet: Re: [OpenWrt-Devel] [PATCH] usbip: update userspace to match 
kernel part

Date: 16.04.2012 17:01
De: Abaakouk Mehdi sil...@sileht.net
À: Florian Fainelli flor...@openwrt.org

Hi Florian,

Le 16.04.2012 16:30, Florian Fainelli a écrit :

Hi Mehdi,

Le 04/13/12 21:36, Abaakouk Mehdi a écrit :

After kernel 2.6.39, usbip kernel and userspace are in kernel tree
The new kernel modules names have already been updated in openwrt 
for

kernel  2.6.39

This patch, allow to build the new corresponding usbip userspace 
tool

when of the device use a kernel  2.6.39
And continue to build version 0.1.7 for older version.


Thanks for fixing this, I have a device on which I also need to get
usbip working, so I will take this patch and try it out.


Me too for a TP-WR703N, I have run some test successfully with a 
printer

connect on it and a cups server installed on a other machine running
debian wheezy



Fix #10992

Signed-off-by: Mehdi Abaakouk sil...@sileht.net

...

+
+# Since kernel 2.6.39.1 userspace tools are inside the kernel tree
+# Package Automatic match version in kernel
+# MD5SUM is not useful kernel package already check it
+
+PKG_VERSION:=$(shell sed -n -e
'/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp'
$(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)




We will run this command every time the Makefile is invoked, why do
you need to do that?


The PKG_VERSION depends on the kernel tree.
I don't known how do that without list all the possibilities
(ie: kernel 3.2 have usbip 1.0.0, kernel 3.3 have usbip 1.1.1, )

But this need can be generated one time when the targeted kernel is 
selected,

but i don't known how I can do that in the makefile.



+PKG_SOURCE:=
+PKG_SOURCE_URL:=
+PKG_MD5SUM:=unknown
+PATCH_DIR:=./patches-$(PKG_VERSION)
+
+define prepare_source_directory
+ rm -rf $(PKG_BUILD_DIR)
+ $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace 
$(PKG_BUILD_DIR)

...




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] usbip: update userspace to match kernel part

2012-04-13 Thread Abaakouk Mehdi

After kernel 2.6.39, usbip kernel and userspace are in kernel tree
The new kernel modules names have already been updated in openwrt for 
kernel  2.6.39


This patch, allow to build the new corresponding usbip userspace tool 
when of the device use a kernel  2.6.39

And continue to build version 0.1.7 for older version.

Fix #10992

Signed-off-by: Mehdi Abaakouk sil...@sileht.net

Index: net/usbip/Makefile
===
--- net/usbip/Makefile  (révision 31217)
+++ net/usbip/Makefile  (copie de travail)
@@ -9,13 +9,35 @@
 include $(INCLUDE_DIR)/kernel.mk

 PKG_NAME:=usbip
-PKG_VERSION:=0.1.7
 PKG_RELEASE:=2

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

+
+PKG_VERSION:=0.1.7
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/usbip
 PKG_MD5SUM:=d1094b6d4449787864f8be001639232c

+else
+
+# Since kernel 2.6.39.1 userspace tools are inside the kernel tree
+# Package Automatic match version in kernel
+# MD5SUM is not useful kernel package already check it
+
+PKG_VERSION:=$(shell  sed -n -e 
'/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp' 
$(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)

+PKG_SOURCE:=
+PKG_SOURCE_URL:=
+PKG_MD5SUM:=unknown
+PATCH_DIR:=./patches-$(PKG_VERSION)
+
+define prepare_source_directory
+   rm -rf $(PKG_BUILD_DIR)
+   $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace $(PKG_BUILD_DIR)
+endef
+Hooks/Prepare/Pre += prepare_source_directory
+
+endif
+
 PKG_BUILD_DEPENDS:=glib2 sysfsutils
 PKG_FIXUP:=libtool autoreconf
 PKG_INSTALL:=1
@@ -51,7 +73,11 @@
 define Package/usbip-server
 $(call Package/usbip/Default)
   TITLE+= (server)
+ ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

   DEPENDS+= usbip +glib2 +kmod-usbip-server
+ else
+  DEPENDS+= usbip usbip-client +glib2 +kmod-usbip-server
+ endif
 endef

 define KernelPackage/usbip/Default
@@ -100,12 +126,30 @@

 include $(INCLUDE_DIR)/kernel-defaults.mk

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

 CONFIGURE_PATH:=./src
 MAKE_PATH:=./src
 LIBTOOL_PATHS:=./src
+else
+define Build/Configure
+   (cd $(PKG_BUILD_DIR); ./autogen.sh );
+   $(call Build/Configure/Default)
+endef
+CONFIGURE_PATH:=.
+MAKE_PATH:=.
+LIBTOOL_PATHS:=.
+MAKE_FLAGS+=CFLAGS=-Wno-implicit-function-declaration
+endif

 CFLAGS+=$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include

+define Download/usb.ids
+  URL:=http://www.linux-usb.org/
+  FILE:=usb.ids
+  MD5SUM:=01a93bd6c8cce28fa70a2c4504fb0041
+endef
+$(eval $(call Download,usb.ids))
+
 define Build/Compile/kmod
$(MAKE) $(KERNEL_MAKEOPTS) \
SUBDIRS=$(LINUX_DIR)/drivers/staging/usbip \
@@ -123,6 +167,7 @@
 $(call Build/Compile/kmod)
 endef

+ifeq ($(strip $(call 
CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.39)),1)

 define Package/usbip/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
@@ -132,7 +177,7 @@
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/usbip/usb.ids \
$(1)/usr/share/usbip/
-endef
+endif

 define Package/usbip-client/install
$(INSTALL_DIR) $(1)/usr/bin
@@ -140,7 +185,6 @@
$(PKG_INSTALL_DIR)/usr/bin/usbip \
$(1)/usr/bin/
 endef
-
 define Package/usbip-server/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) \
@@ -150,7 +194,32 @@
$(PKG_INSTALL_DIR)/usr/bin/bind_driver \
$(1)/usr/bin/usbip_bind_driver
 endef
+else
+define Package/usbip/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/libusbip.so.* \
+   $(1)/usr/lib/
+   $(INSTALL_DIR) $(1)/usr/share/hwdata
+   $(CP) \
+   $(DL_DIR)/usb.ids \
+   $(1)/usr/share/hwdata/
+endef

+define Package/usbip-client/install
+   $(INSTALL_DIR) $(1)/usr/sbin
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/sbin/usbip \
+   $(1)/usr/sbin/
+endef
+define Package/usbip-server/install
+   $(INSTALL_DIR) $(1)/usr/sbin
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/sbin/usbipd \
+   $(1)/usr/sbin/
+endef
+endif
+
 $(eval $(call BuildPackage,usbip))
 $(eval $(call BuildPackage,usbip-client))
 $(eval $(call BuildPackage,usbip-server))


--
Mehdi ABAAKOUK
sil...@sileht.net


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel