diff options
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch | 49 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch | 20 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util-native_0.7.bb (renamed from meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb) | 2 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util.inc | 9 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch | 38 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch | 67 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util/configure.patch | 12 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb | 10 | ||||
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb | 12 |
9 files changed, 117 insertions, 102 deletions
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch b/meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch deleted file mode 100644 index 9ffc5821c8..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From b379db29534ce6fa2e185f559e817398b3feb9ea Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin JaMa Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Thu, 11 Aug 2011 11:19:52 +0200 | ||
4 | Subject: [PATCH] Revert "Makefile.am: Drop static dfu-util" | ||
5 | |||
6 | This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071. | ||
7 | |||
8 | Conflicts: | ||
9 | |||
10 | src/Makefile.am | ||
11 | |||
12 | Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | src/Makefile.am | 15 ++++++++++++++- | ||
15 | 1 files changed, 14 insertions(+), 1 deletions(-) | ||
16 | |||
17 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
18 | index 0674413..ed87891 100644 | ||
19 | --- a/src/Makefile.am | ||
20 | +++ b/src/Makefile.am | ||
21 | @@ -1,6 +1,6 @@ | ||
22 | AM_CFLAGS = -Wall | ||
23 | |||
24 | -bin_PROGRAMS = dfu-util | ||
25 | +bin_PROGRAMS = dfu-util dfu-util_static | ||
26 | dfu_util_SOURCES = main.c \ | ||
27 | dfu_load.c \ | ||
28 | dfu_load.h \ | ||
29 | @@ -11,3 +11,17 @@ dfu_util_SOURCES = main.c \ | ||
30 | dfu_file.h \ | ||
31 | quirks.c \ | ||
32 | quirks.h | ||
33 | + | ||
34 | +dfu_util_static_SOURCES = main.c \ | ||
35 | + dfu_load.c \ | ||
36 | + dfu_load.h \ | ||
37 | + dfu.c \ | ||
38 | + dfu.h \ | ||
39 | + usb_dfu.h \ | ||
40 | + dfu_file.c \ | ||
41 | + dfu_file.h \ | ||
42 | + quirks.c \ | ||
43 | + quirks.h | ||
44 | + | ||
45 | +dfu_util_static_LDFLAGS = -static | ||
46 | +dfu_util_static_LDADD = -lusb-1.0 -lrt -lpthread | ||
47 | -- | ||
48 | 1.7.6 | ||
49 | |||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch b/meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch deleted file mode 100644 index e4f943e5e3..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | Index: dfu-util-0.4/configure.ac | ||
2 | =================================================================== | ||
3 | --- dfu-util-0.4.orig/configure.ac 2011-08-10 22:22:30.000000000 +0200 | ||
4 | +++ dfu-util-0.4/configure.ac 2011-08-10 22:22:57.000000000 +0200 | ||
5 | @@ -18,14 +18,12 @@ | ||
6 | # Checks for libraries. | ||
7 | PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,, | ||
8 | AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***])) | ||
9 | -AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb) | ||
10 | - | ||
11 | LIBS="$LIBS $USB_LIBS" | ||
12 | CFLAGS="$CFLAGS $USB_CFLAGS" | ||
13 | |||
14 | # Checks for header files. | ||
15 | AC_HEADER_STDC | ||
16 | -AC_CHECK_HEADERS([stdlib.h string.h stdio.h usbpath.h]) | ||
17 | +AC_CHECK_HEADERS([stdlib.h string.h stdio.h]) | ||
18 | |||
19 | # Checks for typedefs, structures, and compiler characteristics. | ||
20 | AC_C_CONST | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.7.bb index ce6e566fa7..8be9d850e0 100644 --- a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb +++ b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.7.bb | |||
@@ -6,7 +6,7 @@ do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" | |||
6 | DEPENDS = "libusb1-native" | 6 | DEPENDS = "libusb1-native" |
7 | 7 | ||
8 | FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:" | 8 | FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:" |
9 | SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch" | 9 | SRC_URI += "file://0002-Revert-Makefile.am-Drop-static-dfu-util.patch" |
10 | 10 | ||
11 | do_deploy() { | 11 | do_deploy() { |
12 | install -d ${DEPLOY_DIR_TOOLS} | 12 | install -d ${DEPLOY_DIR_TOOLS} |
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util.inc b/meta-oe/recipes-support/dfu-util/dfu-util.inc deleted file mode 100644 index 892acad05c..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util.inc +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | DESCRIPTION = "USB Device Firmware Upgrade utility" | ||
2 | SECTION = "devel" | ||
3 | AUTHOR = "Harald Welte <laforge@openmoko.org>" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | SRC_URI = "http://dfu-util.gnumonks.org/releases/dfu-util-${PV}.tar.gz" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
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 new file mode 100644 index 0000000000..a583c333d7 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 63f6f6882f3813ab22c62806feeab942579a2acf Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sun, 3 Aug 2014 17:50:06 +0200 | ||
4 | Subject: [PATCH 1/2] configure.ac: Don't check for usbpath | ||
5 | |||
6 | * otherwise it fails to build with -lusb | ||
7 | | main.o: In function `resolve_device_path': | ||
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 | ||
10 | |||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 3 +-- | ||
14 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index 700b556..fb58473 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -22,14 +22,13 @@ AS_IF([test x$native_libusb = xno], [ | ||
21 | PKG_CHECK_MODULES([USB], [libusb-1.0 >= 1.0.0],, | ||
22 | AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***])) | ||
23 | ]) | ||
24 | -AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb) | ||
25 | |||
26 | LIBS="$LIBS $USB_LIBS" | ||
27 | CFLAGS="$CFLAGS $USB_CFLAGS" | ||
28 | |||
29 | # Checks for header files. | ||
30 | AC_HEADER_STDC | ||
31 | -AC_CHECK_HEADERS([usbpath.h windows.h]) | ||
32 | +AC_CHECK_HEADERS([windows.h]) | ||
33 | |||
34 | # Checks for typedefs, structures, and compiler characteristics. | ||
35 | AC_C_CONST | ||
36 | -- | ||
37 | 2.0.2 | ||
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 new file mode 100644 index 0000000000..de17808e12 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | From 440a026379ff111aaa8314db1c29ffae8f482824 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin JaMa Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Thu, 11 Aug 2011 11:19:52 +0200 | ||
4 | Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util" | ||
5 | |||
6 | This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071. | ||
7 | |||
8 | Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com> | ||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | configure.ac | 2 +- | ||
12 | src/Makefile.am | 20 +++++++++++++++++++- | ||
13 | 2 files changed, 20 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index fb58473..09b9e5a 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -23,7 +23,7 @@ AS_IF([test x$native_libusb = xno], [ | ||
20 | AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***])) | ||
21 | ]) | ||
22 | |||
23 | -LIBS="$LIBS $USB_LIBS" | ||
24 | +LIBS="$LIBS $USB_LIBS -lpthread" | ||
25 | CFLAGS="$CFLAGS $USB_CFLAGS" | ||
26 | |||
27 | # Checks for header files. | ||
28 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
29 | index 99df307..28d53f7 100644 | ||
30 | --- a/src/Makefile.am | ||
31 | +++ b/src/Makefile.am | ||
32 | @@ -1,6 +1,6 @@ | ||
33 | AM_CFLAGS = -Wall | ||
34 | |||
35 | -bin_PROGRAMS = dfu-util dfu-suffix | ||
36 | +bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix | ||
37 | dfu_util_SOURCES = main.c \ | ||
38 | portable.h \ | ||
39 | dfu_load.c \ | ||
40 | @@ -17,6 +17,24 @@ dfu_util_SOURCES = main.c \ | ||
41 | quirks.c \ | ||
42 | quirks.h | ||
43 | |||
44 | +dfu_util_static_SOURCES = main.c \ | ||
45 | + portable.h \ | ||
46 | + dfu_load.c \ | ||
47 | + dfu_load.h \ | ||
48 | + dfuse.c \ | ||
49 | + dfuse.h \ | ||
50 | + dfuse_mem.c \ | ||
51 | + dfuse_mem.h \ | ||
52 | + dfu.c \ | ||
53 | + dfu.h \ | ||
54 | + usb_dfu.h \ | ||
55 | + dfu_file.c \ | ||
56 | + dfu_file.h \ | ||
57 | + quirks.c \ | ||
58 | + quirks.h | ||
59 | + | ||
60 | +dfu_util_static_LDFLAGS = -static | ||
61 | + | ||
62 | dfu_suffix_SOURCES = suffix.c \ | ||
63 | dfu_file.h \ | ||
64 | dfu_file.c \ | ||
65 | -- | ||
66 | 2.0.2 | ||
67 | |||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util/configure.patch b/meta-oe/recipes-support/dfu-util/dfu-util/configure.patch deleted file mode 100644 index c83d510c17..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util/configure.patch +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | diff -uNr dfu-util-0.4.orig/configure.ac dfu-util-0.4/configure.ac | ||
2 | --- dfu-util-0.4.orig/configure.ac 2014-07-18 08:18:45.407552416 +0200 | ||
3 | +++ dfu-util-0.4/configure.ac 2014-07-18 20:05:11.934894143 +0200 | ||
4 | @@ -4,7 +4,7 @@ | ||
5 | AC_PREREQ(2.59) | ||
6 | AC_INIT([dfu-util],[0.4]) | ||
7 | AC_CONFIG_AUX_DIR(m4) | ||
8 | -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | ||
9 | +AM_INIT_AUTOMAKE([foreign]) | ||
10 | AM_CONFIG_HEADER([config.h]) | ||
11 | |||
12 | # Test for new silent rules and enable only if they are available | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb b/meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb deleted file mode 100644 index 9f55a8695b..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require dfu-util.inc | ||
2 | |||
3 | DEPENDS = "libusb1" | ||
4 | |||
5 | SRC_URI += "file://no-usbpath.patch \ | ||
6 | file://configure.patch \ | ||
7 | " | ||
8 | |||
9 | SRC_URI[md5sum] = "2cf466fabb881e8598fa02f286d3242c" | ||
10 | SRC_URI[sha256sum] = "f60fea987aa06ee03da22a656d1d113ac224458ec4442bcf1764a62f0930bd07" | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb b/meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb index c4c030d6e6..aa2b84db78 100644 --- a/meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb +++ b/meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb | |||
@@ -1,4 +1,14 @@ | |||
1 | require dfu-util.inc | 1 | DESCRIPTION = "USB Device Firmware Upgrade utility" |
2 | SECTION = "devel" | ||
3 | AUTHOR = "Harald Welte <laforge@openmoko.org>" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | SRC_URI = "http://${BPN}.gnumonks.org/releases/${BP}.tar.gz \ | ||
8 | file://0001-configure.ac-Don-t-check-for-usbpath.patch \ | ||
9 | " | ||
10 | |||
11 | inherit autotools pkgconfig | ||
2 | 12 | ||
3 | DEPENDS = "libusb1" | 13 | DEPENDS = "libusb1" |
4 | 14 | ||