PKG_NAME:=avrusbboot
PKG_VERSION:=2006-06-25
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.fischl.de/avrusbboot/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/avrusbboot
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=+libusb +uclibcxx
+ DEPENDS:=+libusb $(CXX_DEPENDS)
TITLE:=USB bootloader for Atmel AVR controllers
URL:=http://www.fischl.de/avrusbboot/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/software \
- CXX="$(TARGET_CROSS)g++ $(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++ $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++" \
- LFLAGS="$(TARGET_LDFLAGS) -nodefaultlibs -lc -luClibc++ -lc -lusb $(LIBGCC_S)" \
+ CXX="$(TARGET_CXX)" \
+ CPPFLAGS="$(TARGET_CPPFLAGS) -fno-rtti" \
+ LFLAGS="$(TARGET_LDFLAGS) -lusb" \
all
endef