074e0e598751cfd0efd287a6faef49f27ddc1a37
[openwrt/svn-archive/archive.git] / 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 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fxload
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=@USB_SUPPORT +udev
27 TITLE:=Downloading firmware into EZ-USB microcontrollers
28 URL:=http://linux-hotplug.sourceforge.net/
29 endef
30
31 define Build/Compile
32 $(call Build/Compile/Default, \
33 CFLAGS="$(TARGET_CFLAGS)" \
34 )
35 endef
36
37 define Package/fxload/install
38 $(INSTALL_DIR) $(1)/sbin
39 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
40 $(INSTALL_DIR) $(1)/usr/share/usb
41 $(CP) $(PKG_BUILD_DIR)/a3load.hex $(1)/usr/share/usb
42 endef
43
44 $(eval $(call BuildPackage,fxload))