mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
dfu-programmer
This commit is contained in:
committed by
Adrien Destugues
parent
22c10b29d2
commit
501cecbc59
71
dev-embedded/dfu-programmer/dfu_programmer-0.6.2.recipe
Normal file
71
dev-embedded/dfu-programmer/dfu_programmer-0.6.2.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="A Device Firmware Update based USB programmer for Atmel chips"
|
||||
DESCRIPTION="
|
||||
dfu-programmer is an implementation of the Device Firmware Upgrade class
|
||||
USB driver that enables firmware upgrades for various USB enabled (with the
|
||||
correct bootloader) Atmel chips. This program was created because the
|
||||
Atmel "FLIP" program for flashing devices does not support flashing via USB
|
||||
on Linux, and because standard DFU loaders do not work for Atmel's chips.
|
||||
|
||||
Check out the Atmel website for more information. They are kind enough to
|
||||
provide generally correct specifications this implementation is based on.
|
||||
|
||||
The project website is http://dfu-programmer.sourceforge.net and you can
|
||||
use that to check for updates.
|
||||
"
|
||||
HOMEPAGE="http://dfu-programmer.sourceforge.net"
|
||||
LICENSE="
|
||||
GNU GPL v2
|
||||
"
|
||||
COPYRIGHT="
|
||||
Weston Schmidt <weston_schmidt@alumni.purdue.edu>
|
||||
"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/0.6.2/dfu-programmer-0.6.2.tar.gz"
|
||||
SOURCE_DIR="dfu-programmer-0.6.2"
|
||||
CHECKSUM_SHA256="0120966a424dd98124962055750e90cbd6c7b6b0fbf5b187bf435daa0a24af65"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PATCHES="dfu-programmer-0.6.2.patch"
|
||||
|
||||
PROVIDES="
|
||||
dfu_programmer = $portVersion
|
||||
cmd:dfu_programmer$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libusb_1.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libusb_1.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:automake
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export PKG_CONFIG_LIBDIR=/system/develop/lib/x86/pkgconfig/
|
||||
sh ./bootstrap.sh
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
From 60be00ed00d8b6c33e8601d3fd2b1bce48c4f197 Mon Sep 17 00:00:00 2001
|
||||
From: Akshay Jaggi <akshay1994.leo@gmail.com>
|
||||
Date: Wed, 25 Jun 2014 20:37:44 +0000
|
||||
Subject: [PATCH] Patch for Build
|
||||
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 58a54f2..a5c8f8a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -5,9 +5,9 @@ AC_PREREQ(2.59)
|
||||
#AC_INIT(dfu-programmer, VERSION, BUG-REPORT-ADDRESS)
|
||||
AC_INIT([dfu-programmer],[0.6.2])
|
||||
AC_CONFIG_AUX_DIR(m4)
|
||||
-AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
||||
+AM_INIT_AUTOMAKE
|
||||
AC_CONFIG_SRCDIR([src/atmel.c])
|
||||
-AM_CONFIG_HEADER([src/config.h])
|
||||
+AC_CONFIG_HEADERS([src/config.h])
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user