summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/dfu-util
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2016-03-10 11:23:22 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-03-14 12:15:38 +0100
commit708aca79d3f13ca6403f1c05ef4ce995c509112b (patch)
treee918be4b8f0194f47a77ff29357ddd7823ee5622 /meta-oe/recipes-support/dfu-util
parent21f72b1fe09ca919316f8ed8545b9bf88aa83b29 (diff)
downloadmeta-openembedded-708aca79d3f13ca6403f1c05ef4ce995c509112b.tar.gz
dfu-util: fix .patch files
* dfu-util-native was broken since last upgrade in: commit c2652c90f726fa1728307afad73c3051ca7660f5 Author: Li xin <lixin.fnst@cn.fujitsu.com> Date: Sun Jan 3 18:07:17 2016 -0800 dfu-util: 0.7 -> 0.8 Upgrade dfu-util from 0.7 to 0.8. Modify SRC_URI,since the original one can�t be opened. Modify 0001-configure.ac-Don-t-check-for-usbpath.patch,since the datas has been changed. because 0002-Revert-Makefile.am-Drop-static-dfu-util.patch didn't apply anymore. * update 0001-configure.ac-Don-t-check-for-usbpath.patch to keep check for sysexits.h Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/dfu-util')
-rw-r--r--meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch10
-rw-r--r--meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch27
2 files changed, 19 insertions, 18 deletions
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch b/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
index 0d48a764d..bab4a7134 100644
--- a/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
+++ b/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
@@ -1,11 +1,11 @@
1From 63f6f6882f3813ab22c62806feeab942579a2acf Mon Sep 17 00:00:00 2001 1From e1811274b61db0f5ca55c50ec96d799e2d85fa06 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 3 Aug 2014 17:50:06 +0200 3Date: Sun, 3 Aug 2014 17:50:06 +0200
4Subject: [PATCH 1/2] configure.ac: Don't check for usbpath 4Subject: [PATCH 1/2] configure.ac: Don't check for usbpath
5 5
6* otherwise it fails to build with -lusb 6* otherwise it fails to build with -lusb
7 | main.o: In function `resolve_device_path': 7 | main.o: In function `resolve_device_path':
8 | dfu-util/0.8-r0/dfu-util-0.8/src/main.c:371: undefined reference to `usb_path2devnum' 8 | dfu-util/0.7-r0/dfu-util-0.7/src/main.c:371: undefined reference to `usb_path2devnum'
9 | collect2: error: ld returned 1 exit status 9 | collect2: error: ld returned 1 exit status
10 10
11Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 11Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
@@ -14,7 +14,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
14 1 file changed, 1 insertion(+), 2 deletions(-) 14 1 file changed, 1 insertion(+), 2 deletions(-)
15 15
16diff --git a/configure.ac b/configure.ac 16diff --git a/configure.ac b/configure.ac
17index 700b556..fb58473 100644 17index 8622114..a1dcc7a 100644
18--- a/configure.ac 18--- a/configure.ac
19+++ b/configure.ac 19+++ b/configure.ac
20@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [ 20@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [
@@ -29,10 +29,10 @@ index 700b556..fb58473 100644
29 # Checks for header files. 29 # Checks for header files.
30 AC_HEADER_STDC 30 AC_HEADER_STDC
31-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h]) 31-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
32+AC_CHECK_HEADERS([windows.h]) 32+AC_CHECK_HEADERS([windows.h sysexits.h])
33 33
34 # Checks for typedefs, structures, and compiler characteristics. 34 # Checks for typedefs, structures, and compiler characteristics.
35 AC_C_CONST 35 AC_C_CONST
36-- 36--
372.0.2 372.7.2
38 38
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch b/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
index de17808e1..7bd965b0f 100644
--- a/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
+++ b/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
@@ -1,4 +1,4 @@
1From 440a026379ff111aaa8314db1c29ffae8f482824 Mon Sep 17 00:00:00 2001 1From 7d613b28c1b48b5cc3a0882d24e0ac938faff4c2 Mon Sep 17 00:00:00 2001
2From: Martin JaMa Jansa <Martin.Jansa@gmail.com> 2From: Martin JaMa Jansa <Martin.Jansa@gmail.com>
3Date: Thu, 11 Aug 2011 11:19:52 +0200 3Date: Thu, 11 Aug 2011 11:19:52 +0200
4Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util" 4Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util"
@@ -6,17 +6,16 @@ Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util"
6This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071. 6This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071.
7 7
8Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com> 8Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com>
9Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10--- 9---
11 configure.ac | 2 +- 10 configure.ac | 2 +-
12 src/Makefile.am | 20 +++++++++++++++++++- 11 src/Makefile.am | 22 +++++++++++++++++++++-
13 2 files changed, 20 insertions(+), 2 deletions(-) 12 2 files changed, 22 insertions(+), 2 deletions(-)
14 13
15diff --git a/configure.ac b/configure.ac 14diff --git a/configure.ac b/configure.ac
16index fb58473..09b9e5a 100644 15index a1dcc7a..bb71e02 100644
17--- a/configure.ac 16--- a/configure.ac
18+++ b/configure.ac 17+++ b/configure.ac
19@@ -23,7 +23,7 @@ AS_IF([test x$native_libusb = xno], [ 18@@ -21,7 +21,7 @@ AS_IF([test x$native_libusb = xno], [
20 AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***])) 19 AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
21 ]) 20 ])
22 21
@@ -26,18 +25,18 @@ index fb58473..09b9e5a 100644
26 25
27 # Checks for header files. 26 # Checks for header files.
28diff --git a/src/Makefile.am b/src/Makefile.am 27diff --git a/src/Makefile.am b/src/Makefile.am
29index 99df307..28d53f7 100644 28index 70179c4..e8736ee 100644
30--- a/src/Makefile.am 29--- a/src/Makefile.am
31+++ b/src/Makefile.am 30+++ b/src/Makefile.am
32@@ -1,6 +1,6 @@ 31@@ -1,6 +1,6 @@
33 AM_CFLAGS = -Wall 32 AM_CFLAGS = -Wall -Wextra
34 33
35-bin_PROGRAMS = dfu-util dfu-suffix 34-bin_PROGRAMS = dfu-util dfu-suffix dfu-prefix
36+bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix 35+bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix dfu-prefix
37 dfu_util_SOURCES = main.c \ 36 dfu_util_SOURCES = main.c \
38 portable.h \ 37 portable.h \
39 dfu_load.c \ 38 dfu_load.c \
40@@ -17,6 +17,24 @@ dfu_util_SOURCES = main.c \ 39@@ -19,6 +19,26 @@ dfu_util_SOURCES = main.c \
41 quirks.c \ 40 quirks.c \
42 quirks.h 41 quirks.h
43 42
@@ -45,6 +44,8 @@ index 99df307..28d53f7 100644
45+ portable.h \ 44+ portable.h \
46+ dfu_load.c \ 45+ dfu_load.c \
47+ dfu_load.h \ 46+ dfu_load.h \
47+ dfu_util.c \
48+ dfu_util.h \
48+ dfuse.c \ 49+ dfuse.c \
49+ dfuse.h \ 50+ dfuse.h \
50+ dfuse_mem.c \ 51+ dfuse_mem.c \
@@ -61,7 +62,7 @@ index 99df307..28d53f7 100644
61+ 62+
62 dfu_suffix_SOURCES = suffix.c \ 63 dfu_suffix_SOURCES = suffix.c \
63 dfu_file.h \ 64 dfu_file.h \
64 dfu_file.c \ 65 dfu_file.c
65-- 66--
662.0.2 672.7.2
67 68