2007-09-26 07:22:26 +00:00
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 6500 2007-03-04 04:19:46Z pavlov $
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := dfu-util
2007-10-06 21:48:30 +00:00
PKG_VERSION := r3095
2007-09-26 07:22:26 +00:00
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://sources.nslu2-linux.org/sources
2007-10-06 21:48:30 +00:00
PKG_MD5SUM := 2346dddceeab0e7090109f04d9c3a6be
2007-09-26 07:22:26 +00:00
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / d f u - u t i l
SECTION:= utils
CATEGORY:= Utilities
TITLE:= OpenMoko device flash utility
URL:= http://wiki.openmoko.org/wiki/Dfu-util
DEPENDS:= +libusb
e n d e f
2007-10-14 04:32:56 +00:00
d e f i n e P a c k a g e / d f u - u t i l / d e s c r i p t i o n
Dfu-util is a program that implements the host side of the USB DFU \ ( Universal Serial Bus Device Firmware Upgrade) protocol. \ This version is specifically used to flash the FIC Neo 1973 mobile phone.
e n d e f
2007-09-26 07:22:26 +00:00
# CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
# USB_LIBS="-L $(STAGING_DIR)/usr/lib"
d e f i n e B u i l d / C o n f i g u r e
( cd $( PKG_BUILD_DIR) ; rm -rf config.{ cache,status} ; \
./autogen.sh \
) ;
$( call Build/Configure/Default)
e n d e f
d e f i n e P a c k a g e / d f u - u t i l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/dfu-util $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,dfu -util ) )