Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=apex
  9. PKG_VERSION:=1.6.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
  13. PKG_MD5SUM:=9606cf2e3fd2c9a86fe0b61388509a30
  14. PKG_TARGETS:=bin
  15. include $(INCLUDE_DIR)/package.mk
  16. export GCC_HONOUR_COPTS=s
  17. define Package/apex
  18. SECTION:=boot
  19. CATEGORY:=Boot Loaders
  20. DEPENDS:=@TARGET_ixp4xx
  21. DEFAULT:=y
  22. TITLE:=Boot loader for NSLU2, FSG3, NAS100D and others
  23. URL:=http://wiki.buici.com/wiki/Apex_Bootloader
  24. endef
  25. define build_apex
  26. $(MAKE) -C $(PKG_BUILD_DIR) \
  27. ARCH=arm \
  28. $(1)_config
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. $(TARGET_CONFIGURE_OPTS) \
  31. KBUILD_HAVE_NLS=no \
  32. ARCH=arm \
  33. clean all
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
  35. endef
  36. define Build/Compile
  37. $(INSTALL_DIR) $(PKG_BUILD_DIR)/out
  38. $(call build_apex,slugos-nslu2-armeb,nslu2-armeb)
  39. $(call build_apex,slugos-nslu2-16mb-armeb,nslu2-16mb-armeb)
  40. $(call build_apex,slugos-fsg3-armeb,fsg3-armeb)
  41. $(call build_apex,slugos-nas100d-armeb,nas100d-armeb)
  42. endef
  43. define Package/apex/install
  44. $(INSTALL_DIR) $(STAGING_DIR)/apex
  45. $(CP) $(PKG_BUILD_DIR)/out/*.bin $(1)/
  46. endef
  47. $(eval $(call BuildPackage,apex))