mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
dfu-util: fix .patch files
* dfu-util-native was broken since last upgrade in:
commit c2652c90f7
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>
This commit is contained in:
+5
-5
@@ -1,11 +1,11 @@
|
|||||||
From 63f6f6882f3813ab22c62806feeab942579a2acf Mon Sep 17 00:00:00 2001
|
From e1811274b61db0f5ca55c50ec96d799e2d85fa06 Mon Sep 17 00:00:00 2001
|
||||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||||
Date: Sun, 3 Aug 2014 17:50:06 +0200
|
Date: Sun, 3 Aug 2014 17:50:06 +0200
|
||||||
Subject: [PATCH 1/2] configure.ac: Don't check for usbpath
|
Subject: [PATCH 1/2] configure.ac: Don't check for usbpath
|
||||||
|
|
||||||
* otherwise it fails to build with -lusb
|
* otherwise it fails to build with -lusb
|
||||||
| main.o: In function `resolve_device_path':
|
| main.o: In function `resolve_device_path':
|
||||||
| dfu-util/0.8-r0/dfu-util-0.8/src/main.c:371: undefined reference to `usb_path2devnum'
|
| dfu-util/0.7-r0/dfu-util-0.7/src/main.c:371: undefined reference to `usb_path2devnum'
|
||||||
| collect2: error: ld returned 1 exit status
|
| collect2: error: ld returned 1 exit status
|
||||||
|
|
||||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||||
@@ -14,7 +14,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index 700b556..fb58473 100644
|
index 8622114..a1dcc7a 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [
|
@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [
|
||||||
@@ -29,10 +29,10 @@ index 700b556..fb58473 100644
|
|||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
|
-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
|
||||||
+AC_CHECK_HEADERS([windows.h])
|
+AC_CHECK_HEADERS([windows.h sysexits.h])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
--
|
--
|
||||||
2.0.2
|
2.7.2
|
||||||
|
|
||||||
|
|||||||
+14
-13
@@ -1,4 +1,4 @@
|
|||||||
From 440a026379ff111aaa8314db1c29ffae8f482824 Mon Sep 17 00:00:00 2001
|
From 7d613b28c1b48b5cc3a0882d24e0ac938faff4c2 Mon Sep 17 00:00:00 2001
|
||||||
From: Martin JaMa Jansa <Martin.Jansa@gmail.com>
|
From: Martin JaMa Jansa <Martin.Jansa@gmail.com>
|
||||||
Date: Thu, 11 Aug 2011 11:19:52 +0200
|
Date: Thu, 11 Aug 2011 11:19:52 +0200
|
||||||
Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util"
|
Subject: [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"
|
|||||||
This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071.
|
This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071.
|
||||||
|
|
||||||
Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com>
|
Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com>
|
||||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
||||||
---
|
---
|
||||||
configure.ac | 2 +-
|
configure.ac | 2 +-
|
||||||
src/Makefile.am | 20 +++++++++++++++++++-
|
src/Makefile.am | 22 +++++++++++++++++++++-
|
||||||
2 files changed, 20 insertions(+), 2 deletions(-)
|
2 files changed, 22 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index fb58473..09b9e5a 100644
|
index a1dcc7a..bb71e02 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -23,7 +23,7 @@ AS_IF([test x$native_libusb = xno], [
|
@@ -21,7 +21,7 @@ AS_IF([test x$native_libusb = xno], [
|
||||||
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
|
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -26,18 +25,18 @@ index fb58473..09b9e5a 100644
|
|||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
index 99df307..28d53f7 100644
|
index 70179c4..e8736ee 100644
|
||||||
--- a/src/Makefile.am
|
--- a/src/Makefile.am
|
||||||
+++ b/src/Makefile.am
|
+++ b/src/Makefile.am
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
AM_CFLAGS = -Wall
|
AM_CFLAGS = -Wall -Wextra
|
||||||
|
|
||||||
-bin_PROGRAMS = dfu-util dfu-suffix
|
-bin_PROGRAMS = dfu-util dfu-suffix dfu-prefix
|
||||||
+bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix
|
+bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix dfu-prefix
|
||||||
dfu_util_SOURCES = main.c \
|
dfu_util_SOURCES = main.c \
|
||||||
portable.h \
|
portable.h \
|
||||||
dfu_load.c \
|
dfu_load.c \
|
||||||
@@ -17,6 +17,24 @@ dfu_util_SOURCES = main.c \
|
@@ -19,6 +19,26 @@ dfu_util_SOURCES = main.c \
|
||||||
quirks.c \
|
quirks.c \
|
||||||
quirks.h
|
quirks.h
|
||||||
|
|
||||||
@@ -45,6 +44,8 @@ index 99df307..28d53f7 100644
|
|||||||
+ portable.h \
|
+ portable.h \
|
||||||
+ dfu_load.c \
|
+ dfu_load.c \
|
||||||
+ dfu_load.h \
|
+ dfu_load.h \
|
||||||
|
+ dfu_util.c \
|
||||||
|
+ dfu_util.h \
|
||||||
+ dfuse.c \
|
+ dfuse.c \
|
||||||
+ dfuse.h \
|
+ dfuse.h \
|
||||||
+ dfuse_mem.c \
|
+ dfuse_mem.c \
|
||||||
@@ -61,7 +62,7 @@ index 99df307..28d53f7 100644
|
|||||||
+
|
+
|
||||||
dfu_suffix_SOURCES = suffix.c \
|
dfu_suffix_SOURCES = suffix.c \
|
||||||
dfu_file.h \
|
dfu_file.h \
|
||||||
dfu_file.c \
|
dfu_file.c
|
||||||
--
|
--
|
||||||
2.0.2
|
2.7.2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user