[oe-commits] Stefan Schmidt : usb-modeswitch: Patch makefile to use portable install options.
git version control
git at git.openembedded.org
Thu Feb 10 15:47:10 UTC 2011
Module: openembedded.git
Branch: master
Commit: 1379a59cfd339da62374c08092c9769a95fcfaf5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1379a59cfd339da62374c08092c9769a95fcfaf5
Author: Stefan Schmidt <stefan at buglabs.net>
Date: Thu Feb 10 16:44:25 2011 +0100
usb-modeswitch: Patch makefile to use portable install options.
Without this it fails with our install wrapper whcih does only support portable
options.
---
.../usb-modeswitch/fix-install-in-makefile.patch | 21 ++++++++++++++++++++
recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb | 6 +++-
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/recipes/usb-modeswitch/usb-modeswitch/fix-install-in-makefile.patch b/recipes/usb-modeswitch/usb-modeswitch/fix-install-in-makefile.patch
new file mode 100644
index 0000000..1689197
--- /dev/null
+++ b/recipes/usb-modeswitch/usb-modeswitch/fix-install-in-makefile.patch
@@ -0,0 +1,21 @@
+Index: usb-modeswitch-1.1.4/Makefile
+===================================================================
+--- usb-modeswitch-1.1.4.orig/Makefile 2011-02-10 16:23:33.000000000 +0100
++++ usb-modeswitch-1.1.4/Makefile 2011-02-10 16:23:58.000000000 +0100
+@@ -22,11 +22,11 @@
+ $(RM) usb_modeswitch
+
+ install: all
+- install -D --mode=755 usb_modeswitch $(SBINDIR)/usb_modeswitch
+- install -D --mode=755 usb_modeswitch.tcl $(SBINDIR)/usb_modeswitch_dispatcher
+- install -D --mode=755 usb_modeswitch.sh $(UDEVDIR)/usb_modeswitch
+- install -D --mode=644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
+- install -D --mode=644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
++ install -D -m 755 usb_modeswitch $(SBINDIR)/usb_modeswitch
++ install -D -m 755 usb_modeswitch.tcl $(SBINDIR)/usb_modeswitch_dispatcher
++ install -D -m 755 usb_modeswitch.sh $(UDEVDIR)/usb_modeswitch
++ install -D -m 644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
++ install -D -m 644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
+
+
+ uninstall:
diff --git a/recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb b/recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb
index fb39b12..69d40c4 100644
--- a/recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb
+++ b/recipes/usb-modeswitch/usb-modeswitch_1.1.4.bb
@@ -4,9 +4,11 @@ PRIORITY = "required"
LICENSE = "GPLv2"
DEPENDS = "virtual/libusb0"
-PR = "r3"
+PR = "r4"
-SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2"
+SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2 \
+ file://fix-install-in-makefile.patch \
+ "
SRC_URI[md5sum] = "a04db36bd0fc6fb303df7567f677b714"
SRC_URI[sha256sum] = "c20abfdf9d46fb83e1b82f961a9f6ec8064bed3304155b6e1af7cf596845d0d0"
More information about the Openembedded-commits
mailing list