diff options
author | Manolis Ragkousis <manolis837@gmail.com> | 2014-09-29 13:27:30 +0300 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-02 10:46:29 +0200 |
commit | 2a9a4fb8b7ae519a7d28a1e6b96e0a0a5aed3201 (patch) | |
tree | 58fb8389281a7348dda06c857fd2e6c74daf279c /gnu/packages/patches | |
parent | 4b91ce2974c9f5b0b63e53fb484146b3a137c643 (diff) | |
download | guix-2a9a4fb8b7ae519a7d28a1e6b96e0a0a5aed3201.tar.gz |
gnu: Add dfu-programmer
* gnu/packages/flashing-tools.scm (dfu-programmer): New variable. * gnu/packages/patches/dfu-programmer-fix-libusb.patch: New patch. * gnu-system.am (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/dfu-programmer-fix-libusb.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/patches/dfu-programmer-fix-libusb.patch b/gnu/packages/patches/dfu-programmer-fix-libusb.patch new file mode 100644 index 0000000000..e9e21f3880 --- /dev/null +++ b/gnu/packages/patches/dfu-programmer-fix-libusb.patch @@ -0,0 +1,57 @@ +Dfu-programmer cannot cannot find libusb. This patch fixes that. + +diff --git a/src/dfu-device.h b/src/dfu-device.h +index bbdfa99..31af0e8 100644 +--- a/src/dfu-device.h ++++ b/src/dfu-device.h +@@ -6,7 +6,7 @@ + #endif + #include <stdint.h> + #ifdef HAVE_LIBUSB_1_0 +-#include <libusb.h> ++#include <libusb-1.0/libusb.h> + #else + #include <usb.h> + #endif + +diff --git a/src/main.c b/src/main.c +index ef2aa16..dcc3636 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -24,7 +24,7 @@ + #include <stdio.h> + #include <string.h> + #ifdef HAVE_LIBUSB_1_0 +-#include <libusb.h> ++#include <libusb-1.0/libusb.h> + #else + #include <usb.h> + #endif + +diff --git a/src/dfu.c b/src/dfu.c +index 7dbcc57..952e896 100644 +--- a/src/dfu.c ++++ b/src/dfu.c +@@ -27,7 +27,7 @@ + #include <stdlib.h> + #include <stddef.h> + #ifdef HAVE_LIBUSB_1_0 +-#include <libusb.h> ++#include <libusb-1.0/libusb.h> + #else + #include <usb.h> + #endif + +diff --git a/src/dfu.h b/src/dfu.h +index 2a159e8..63510f2 100644 +--- a/src/dfu.h ++++ b/src/dfu.h +@@ -25,7 +25,7 @@ + # include <config.h> + #endif + #ifdef HAVE_LIBUSB_1_0 +-#include <libusb.h> ++#include <libusb-1.0/libusb.h> + #else + #include <usb.h> + #endif |