summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/usb-modeswitch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-01-28 09:30:48 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-01-28 12:20:53 +0100
commit245be9e381d8b259b18b9c0ee6212d65d5db2747 (patch)
treecdab621fdcbb432ef22ffd0a5ed6fb3914e3eb9d /meta-oe/recipes-support/usb-modeswitch
parent2ae5b3ed7e7af636c2ba0fe012041f981df8fb41 (diff)
downloadmeta-openembedded-245be9e381d8b259b18b9c0ee6212d65d5db2747.tar.gz
usb-modeswitch: update to 1.2.2
This is still using the tcl version of the dispatcher, the non-tcl version doesn't crosscompile :( Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-support/usb-modeswitch')
-rw-r--r--meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-usbmodeswitch-leave-stripping-to-packager.patch29
-rw-r--r--meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0002-usb-modeswitch-leave-script-munging-to-recipe.patch45
-rw-r--r--meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.2.2.bb (renamed from meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.1.9.bb)10
3 files changed, 80 insertions, 4 deletions
diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-usbmodeswitch-leave-stripping-to-packager.patch b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-usbmodeswitch-leave-stripping-to-packager.patch
new file mode 100644
index 000000000..063aba503
--- /dev/null
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-usbmodeswitch-leave-stripping-to-packager.patch
@@ -0,0 +1,29 @@
1From 4d3fb03d89f685e1fe1d4b544bcb1be04cbade6f Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sat, 28 Jan 2012 10:16:24 +0100
4Subject: [PATCH] usbmodeswitch: leave stripping to packager
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8
9Upstream-status: Unknown
10
11 Makefile | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14diff --git a/Makefile b/Makefile
15index 2072976..a71780a 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -46,7 +46,7 @@ distclean:
19 cd jim && $(MAKE) distclean
20
21 install-common:
22- install -D -s --mode=755 usb_modeswitch $(SBINDIR)/usb_modeswitch
23+ install -D --mode=755 usb_modeswitch $(SBINDIR)/usb_modeswitch
24 install -D --mode=755 usb_modeswitch.sh $(UDEVDIR)/usb_modeswitch
25 install -D --mode=644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
26 install -D --mode=644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
27--
281.7.2.5
29
diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0002-usb-modeswitch-leave-script-munging-to-recipe.patch b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0002-usb-modeswitch-leave-script-munging-to-recipe.patch
new file mode 100644
index 000000000..d6f2ff29b
--- /dev/null
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0002-usb-modeswitch-leave-script-munging-to-recipe.patch
@@ -0,0 +1,45 @@
1From 86f80442a3fb2b7f9bd1d4ba339fff967c04c3a7 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sat, 28 Jan 2012 12:17:47 +0100
4Subject: [PATCH] usb-modeswitch: leave script munging to recipe
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8
9Upstream-status: Unknown
10
11 Makefile | 13 +------------
12 1 files changed, 1 insertions(+), 12 deletions(-)
13
14diff --git a/Makefile b/Makefile
15index a71780a..a26b8de 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -51,23 +51,12 @@ install-common:
19 install -D --mode=644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
20 install -D --mode=644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
21 install -d $(DESTDIR)/var/lib/usb_modeswitch
22-
23-install-script:
24- @SHELL=`which tclsh 2>/dev/null`; \
25- if [ -z $$SHELL ]; then \
26- SHELL="`which jimsh 2>/dev/null`"; \
27- if [ -z $$SHELL ]; then \
28- echo "Warning: no Tcl interpreter found!"; \
29- SHELL="/usr/bin/tclsh"; \
30- fi \
31- fi ; \
32- sed 's_!/usr/bin/tclsh_!'"$$SHELL"'_' <usb_modeswitch.tcl >usb_modeswitch_dispatcher
33 install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
34
35 install-binary:
36 install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
37
38-install: all install-common install-script
39+install: all install-common
40
41 install-shared: shared install-common install-binary
42
43--
441.7.2.5
45
diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.1.9.bb b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.2.2.bb
index 7a1551e43..2e19370bb 100644
--- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.1.9.bb
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_1.2.2.bb
@@ -5,14 +5,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
5DEPENDS = "virtual/libusb0" 5DEPENDS = "virtual/libusb0"
6 6
7SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2 \ 7SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2 \
8 " 8 file://0001-usbmodeswitch-leave-stripping-to-packager.patch \
9SRC_URI[md5sum] = "76f6978f18cac41f269a346a5d0f1052" 9 file://0002-usb-modeswitch-leave-script-munging-to-recipe.patch"
10SRC_URI[sha256sum] = "cb9794135e28e0a7984aab8e7bcc8c3f8a8f4aa9d2f024fa81b0b2a926fc0219" 10SRC_URI[md5sum] = "4f3d3b9342b59b488089a8a81abda3ae"
11SRC_URI[sha256sum] = "b46b08b0899bbacfe9081ed907f8d0f3fac9e647c4d0f3705c85804cb3a431e0"
11 12
12do_install() { 13do_install() {
13 sed -i 's: -s : :g' Makefile 14 sed 's_!/usr/bin_!'"${bindir}"'_' <usb_modeswitch.tcl >usb_modeswitch_dispatcher
14 oe_runmake install DESTDIR=${D} 15 oe_runmake install DESTDIR=${D}
15} 16}
16 17
17FILES_${PN} = "${bindir} ${sysconfdir} ${base_libdir}/udev/usb_modeswitch ${sbindir}" 18FILES_${PN} = "${bindir} ${sysconfdir} ${base_libdir}/udev/usb_modeswitch ${sbindir}"
19RDEPENDS_${PN} = "tcl"
18RRECOMMENDS_${PN} = "usb-modeswitch-data" 20RRECOMMENDS_${PN} = "usb-modeswitch-data"