Makefile 839 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2006-2010 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:=mkimage
  9. PKG_VERSION:=2009.11
  10. PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
  12. PKG_MD5SUM:=d94700614225f53c853dfe714eb5fa47
  13. PKG_CAT:=bzcat
  14. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Compile
  17. touch $(HOST_BUILD_DIR)/include/config.{h,mk} $(HOST_BUILD_DIR)/include/autoconf.mk{.dep,}
  18. $(MAKE) -C $(HOST_BUILD_DIR) SUBDIRS=tools BIN_FILES-y="mkimage" tools
  19. endef
  20. define Host/Install
  21. $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
  22. endef
  23. define Host/Clean
  24. rm -f $(STAGING_DIR_HOST)/bin/mkimage
  25. endef
  26. $(eval $(call HostBuild))