37f2ca460338b601962718a8a8cb9a3da9f9cfb2
[openwrt/svn-archive/archive.git] / utils / fxload / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fxload
11 PKG_VERSION:=2002_04_11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/linux-hotplug
16 PKG_MD5SUM:=cafd71a5bff0c57bcd248273b2541c05
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fxload
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=@USB_SUPPORT +udev
26 TITLE:=Downloading firmware into EZ-USB microcontrollers
27 URL:=http://linux-hotplug.sourceforge.net/
28 endef
29
30 define Build/Compile
31 $(call Build/Compile/Default, \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 )
34 endef
35
36 define Package/fxload/install
37 $(INSTALL_DIR) $(1)/sbin
38 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
39 $(INSTALL_DIR) $(1)/usr/share/usb
40 $(CP) $(PKG_BUILD_DIR)/a3load.hex $(1)/usr/share/usb
41 endef
42
43 $(eval $(call BuildPackage,fxload))