fxload requires kernel headers to compile
[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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=fxload
12 PKG_VERSION:=2002_04_11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-hotplug
17 PKG_MD5SUM:=cafd71a5bff0c57bcd248273b2541c05
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) -I$(LINUX_DIR)/include" \
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))