Skip to content

Commit

Permalink
dfu-util: update to working recipe from trunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkomandy committed Nov 11, 2016
1 parent 04587e5 commit 750ed73
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 15 deletions.
Expand Up @@ -5,38 +5,37 @@ firmware to/from devices connected over USB. It ranges from small devices like \
micro-controller boards to mobile phones. Using dfu-util you can download \
firmware to your DFU-enabled device or upload firmware from it. dfu-util has \
been tested with the Openmoko Neo1973 and Freerunner and many other devices."
HOMEPAGE="http://dfu-util.gnumonks.org"
ARCHITECTURES="x86_gcc2"
REVISION="1"
LICENSE="GNU GPL v2"
HOMEPAGE="http://dfu-util.sourceforge.net"
COPYRIGHT="2010-2012 Stefan Schmidt"

SRC_URI="${HOMEPAGE}/releases/dfu-util-$portVersion.tar.gz"
CHECKSUM_SHA256="f52a2a5489fbf9f3204a6ada05e0b47ee322e19d81c712e0c58a332d80ec3eab"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="${HOMEPAGE}/releases/dfu-util-$portVersion.tar.gz"
CHECKSUM_SHA256="55cbde9be12a212bd84bce9d1e63941d9a16139ed0d4912401367eba1502f058"
SOURCE_DIR="dfu-util-$portVersion"
PATCHES="dfu_util-$portVersion.patchset"

ARCHITECTURES="x86_gcc2"

PROVIDES="
dfu_util = $portVersion
cmd:dfu_suffix
cmd:dfu_util
"

"
REQUIRES="
haiku >= $haikuVersion
haiku
lib:libusb_1.0
"
"

BUILD_REQUIRES="
devel:libusb_1.0
"

"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
haiku_devel
cmd:awk
cmd:gcc
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
"

BUILD()
{
Expand Down
32 changes: 32 additions & 0 deletions app-mobilephone/dfu-util/patches/dfu_util-0.8.patchset
@@ -0,0 +1,32 @@
From 816414b551b15fe63bdbe06d58eaf1a6f2719ccb Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 27 Nov 2014 16:58:10 +0000
Subject: remove unrecognized gcc option


diff --git a/src/Makefile.am b/src/Makefile.am
index 70179c4..bc6ccf6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -Wall -Wextra
+AM_CFLAGS = -Wall

bin_PROGRAMS = dfu-util dfu-suffix dfu-prefix
dfu_util_SOURCES = main.c \
diff --git a/src/Makefile.in b/src/Makefile.in
index 1542812..597e0d8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -198,7 +198,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = -Wall -Wextra
+AM_CFLAGS = -Wall
dfu_util_SOURCES = main.c \
portable.h \
dfu_load.c \
--
1.8.3.4

0 comments on commit 750ed73

Please sign in to comment.