2 # Copyright (C) 2006-2011 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
16 PKG_MD5SUM:=9606cf2e3fd2c9a86fe0b61388509a30
20 PKG_LICENSE_FILES:=COPYING
22 include $(INCLUDE_DIR)/package.mk
24 export GCC_HONOUR_COPTS=s
28 CATEGORY:=Boot Loaders
29 DEPENDS:=@TARGET_ixp4xx
31 TITLE:=Boot loader for NSLU2, FSG3, NAS100D and others
32 URL:=http://wiki.buici.com/wiki/Apex_Bootloader
36 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
48 $(INSTALL_DIR) $(PKG_BUILD_DIR)/out
49 $(call build_apex,slugos-nslu2-armeb,nslu2-armeb)
50 $(call build_apex,slugos-nslu2-16mb-armeb,nslu2-16mb-armeb)
51 $(call build_apex,slugos-fsg3-armeb,fsg3-armeb)
52 $(call build_apex,slugos-nas100d-armeb,nas100d-armeb)
55 define Package/apex/install
56 $(INSTALL_DIR) $(STAGING_DIR)/apex
57 $(CP) $(PKG_BUILD_DIR)/out/*.bin $(1)/
60 $(eval $(call BuildPackage,apex))