2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://sources.nslu2-linux.org/sources
16 PKG_MD5SUM:=2346dddceeab0e7090109f04d9c3a6be
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/dfu-util
25 TITLE:=OpenMoko device flash utility
26 URL:=http://wiki.openmoko.org/wiki/Dfu-util
27 DEPENDS:=+libusb-compat
30 define Package/dfu-util/description
31 Dfu-util is a program that implements the host side of the USB DFU
32 (Universal Serial Bus Device Firmware Upgrade) protocol.
33 This version is specifically used to flash the FIC Neo 1973 mobile phone.
36 # CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
37 # USB_LIBS="-L $(STAGING_DIR)/usr/lib"
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
43 $(call Build/Configure/Default)
46 define Package/dfu-util/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dfu-util $(1)/usr/bin/
51 $(eval $(call BuildPackage,dfu-util))