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