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.
7 # $Id: Makefile 6500 2007-03-04 04:19:46Z pavlov $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://sources.nslu2-linux.org
/sources
17 PKG_MD5SUM
:=f83f744e259785ac9ad1becc7a9c990d
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/dfu-util
27 TITLE
:=OpenMoko device flash utility
29 Dfu-util is a program that implements the host side of the USB DFU \
30 (Universal Serial Bus Device Firmware Upgrade
) protocol. \
31 This version is specifically used to flash the FIC Neo
1973 mobile phone.
32 URL
:=http
://wiki.openmoko.org
/wiki
/Dfu-util
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
))