Link with libgcc_s it would fail otherwise on x86_64-uclibc (and maybe others)
[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 \ (Universal Serial Bus Device Firmware Upgrade) protocol. \ This version is specifically used to flash the FIC Neo 1973 mobile phone.
33 endef
34
35 # CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
36 # USB_LIBS="-L $(STAGING_DIR)/usr/lib"
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
40 ./autogen.sh \
41 );
42 $(call Build/Configure/Default)
43 endef
44
45 define Package/dfu-util/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dfu-util $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,dfu-util))