dfu_util: add recipe for version 0.9.

This commit is contained in:
Jerome Duval
2017-10-13 19:03:43 +02:00
parent cf123ac56c
commit 1f06446ab6
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
SUMMARY="Device Firmware Upgrade Utilities"
DESCRIPTION="dfu-util is a host side implementation of the DFU 1.0 and DFU 1.1 \
specifications of the USB forum. DFU is intended to download and upload \
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.sourceforge.net"
COPYRIGHT="2010-2012 Stefan Schmidt"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="${HOMEPAGE}/releases/dfu-util-$portVersion.tar.gz"
CHECKSUM_SHA256="36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"
SOURCE_DIR="dfu-util-$portVersion"
PATCHES="dfu_util-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 x86_64"
PROVIDES="
dfu_util = $portVersion
cmd:dfu_suffix
cmd:dfu_prefix
cmd:dfu_util
"
REQUIRES="
haiku
lib:libusb_1.0
"
BUILD_REQUIRES="
devel:libusb_1.0
"
BUILD_PREREQUIRES="
haiku_devel
cmd:awk
cmd:gcc
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
CFLAGS=-D_BSD_SOURCE runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -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