2 # Copyright (C) 2008-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2006-06-25
14 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.fischl.de/avrusbboot/
16 PKG_MD5SUM:=3e2f5e2c257918410a66c3463f583fdf
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
20 include $(INCLUDE_DIR)/uclibc++.mk
21 include $(INCLUDE_DIR)/package.mk
23 define Package/avrusbboot
26 DEPENDS:=+libusb-compat $(CXX_DEPENDS)
27 TITLE:=USB bootloader for Atmel AVR controllers
28 URL:=http://www.fischl.de/avrusbboot/
31 define Package/avrusbboot/description
32 AVRUSBBoot is a bootloader for the Atmel AVR controllers.
33 It uses a firmware-only USB driver to transfer binary data
34 from the PC to the flash of the controller. Once the AVR
35 is flashed with the bootloader, no other ISP programmer is
36 needed; then the microcontroller can be reprogrammed over USB.
39 define Build/Configure
43 $(MAKE) -C $(PKG_BUILD_DIR)/software \
45 CPPFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -fno-rtti" \
46 LFLAGS="$(TARGET_LDFLAGS) $(TARGET_CFLAGS) -lusb" \
50 define Package/avrusbboot/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/software/avrusbboot $(1)/usr/sbin/
55 $(eval $(call BuildPackage,avrusbboot))