c490fea1361fe14c8e9351ea33c9e148d132ea2b
[openwrt/svn-archive/archive.git] / utils / dfu-util / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 6500 2007-03-04 04:19:46Z pavlov $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dfu-util
12 PKG_VERSION:=r3095
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://sources.nslu2-linux.org/sources
17 PKG_MD5SUM:=2346dddceeab0e7090109f04d9c3a6be
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/dfu-util
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=OpenMoko device flash utility
27 URL:=http://wiki.openmoko.org/wiki/Dfu-util
28 DEPENDS:=+libusb
29 endef
30
31 define Package/dfu-util/description
32 Dfu-util is a program that implements the host side of the USB DFU
33 (Universal Serial Bus Device Firmware Upgrade) protocol.
34 This version is specifically used to flash the FIC Neo 1973 mobile phone.
35 endef
36
37 # CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
38 # USB_LIBS="-L $(STAGING_DIR)/usr/lib"
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
42 ./autogen.sh \
43 );
44 $(call Build/Configure/Default)
45 endef
46
47 define Package/dfu-util/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dfu-util $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,dfu-util))