[package] also install rbash (#6927)
[openwrt/svn-archive/archive.git] / utils / avrusbboot / Makefile
1 #
2 # Copyright (C) 2008-2009 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:=avrusbboot
11 PKG_VERSION:=2006-06-25
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.fischl.de/avrusbboot/
16 PKG_MD5SUM:=3e2f5e2c257918410a66c3463f583fdf
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/avrusbboot
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+libusb +uclibcxx +libgcc
26 TITLE:=USB bootloader for Atmel AVR controllers
27 URL:=http://www.fischl.de/avrusbboot/
28 endef
29
30 define Package/avrusbboot/description
31 AVRUSBBoot is a bootloader for the Atmel AVR controllers.
32 It uses a firmware-only USB driver to transfer binary data
33 from the PC to the flash of the controller. Once the AVR
34 is flashed with the bootloader, no other ISP programmer is
35 needed; then the microcontroller can be reprogrammed over USB.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR)/software \
43 CXX="$(TARGET_CROSS)g++ $(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++ $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++" \
44 LFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -luClibc++ -lc -lusb $(LIBGCC_S)" \
45 all
46 endef
47
48 define Package/avrusbboot/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/software/avrusbboot $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,avrusbboot))