diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-support/dfu-util | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/dfu-util')
8 files changed, 147 insertions, 0 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 new file mode 100644 index 0000000000..9ffc5821c8 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch | |||
@@ -0,0 +1,49 @@ | |||
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 new file mode 100644 index 0000000000..e4f943e5e3 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch | |||
@@ -0,0 +1,20 @@ | |||
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.4.bb new file mode 100644 index 0000000000..ce6e566fa7 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | require dfu-util_${PV}.bb | ||
2 | |||
3 | inherit native deploy | ||
4 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" | ||
5 | |||
6 | DEPENDS = "libusb1-native" | ||
7 | |||
8 | FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:" | ||
9 | SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch" | ||
10 | |||
11 | do_deploy() { | ||
12 | install -d ${DEPLOY_DIR_TOOLS} | ||
13 | install -m 0755 src/dfu-util_static ${DEPLOY_DIR_TOOLS}/dfu-util-${PV} | ||
14 | rm -f ${DEPLOY_DIR_TOOLS}/dfu-util | ||
15 | ln -sf ./dfu-util-${PV} ${DEPLOY_DIR_TOOLS}/dfu-util | ||
16 | |||
17 | } | ||
18 | |||
19 | addtask deploy before do_package after do_install | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-native_svn.bb b/meta-oe/recipes-support/dfu-util/dfu-util-native_svn.bb new file mode 100644 index 0000000000..4bed46aa70 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-native_svn.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | require dfu-util_${PV}.bb | ||
2 | |||
3 | inherit native deploy | ||
4 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" | ||
5 | |||
6 | DEPENDS = "libusb-compat usbpath-native" | ||
7 | |||
8 | do_deploy() { | ||
9 | install -d ${DEPLOY_DIR_TOOLS} | ||
10 | install -m 0755 src/dfu-util_static ${DEPLOY_DIR_TOOLS}/dfu-util-${PV} | ||
11 | rm -f ${DEPLOY_DIR_TOOLS}/dfu-util | ||
12 | ln -sf ./dfu-util-${PV} ${DEPLOY_DIR_TOOLS}/dfu-util | ||
13 | |||
14 | } | ||
15 | |||
16 | addtask deploy before do_package after do_install | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util.inc b/meta-oe/recipes-support/dfu-util/dfu-util.inc new file mode 100644 index 0000000000..633b829b2a --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util.inc | |||
@@ -0,0 +1,9 @@ | |||
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 | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_0.1.bb b/meta-oe/recipes-support/dfu-util/dfu-util_0.1.bb new file mode 100644 index 0000000000..b63d74d1ad --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util_0.1.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require dfu-util.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | DEPENDS = "virtual/libusb0 usbpath" | ||
6 | |||
7 | BBCLASSEXTEND = "native" | ||
8 | |||
9 | SRC_URI[md5sum] = "454b931249d29e4a6c2a2ade17858490" | ||
10 | SRC_URI[sha256sum] = "a27cc667be9b158fecf0ed066698e30eca0c0b3cd7a85aad2058d47ffe16f0e1" | ||
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 new file mode 100644 index 0000000000..12d6af6af4 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require dfu-util.inc | ||
2 | |||
3 | DEPENDS = "libusb1" | ||
4 | |||
5 | SRC_URI += "file://no-usbpath.patch" | ||
6 | |||
7 | SRC_URI[md5sum] = "2cf466fabb881e8598fa02f286d3242c" | ||
8 | SRC_URI[sha256sum] = "f60fea987aa06ee03da22a656d1d113ac224458ec4442bcf1764a62f0930bd07" | ||
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_svn.bb b/meta-oe/recipes-support/dfu-util/dfu-util_svn.bb new file mode 100644 index 0000000000..026a904f27 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util_svn.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "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 | SRCREV = "4160" | ||
7 | PV = "0.1+svnr${SRCPV}" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "virtual/libusb0 usbpath" | ||
11 | |||
12 | SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=dfu-util;protocol=http" | ||
13 | S = "${WORKDIR}/dfu-util" | ||
14 | |||
15 | inherit autotools | ||
16 | |||