Makefile 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2006 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:=mkelfimage
  9. PKG_VERSION:=2.7
  10. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  11. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/m/mkelfimage/
  12. PKG_MD5SUM:=e505cb87e9c0cdc44cf03d2c4ea8c74b
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/mkelfimage
  15. SECTION:=base
  16. CATEGORY:=Base system
  17. TITLE:=mkelfimage
  18. HIDDEN:=1
  19. DEPENDS:=@i386
  20. DEFAULT:=y if TARGET_x86
  21. endef
  22. CONFIGURE_VARS += AS="$(TARGET_CROSS)as"
  23. MAKE_FLAGS += HOST_CC="$(HOSTCC)" DEFS="-I$(STAGING_DIR_HOST)/include"
  24. define Build/InstallDev
  25. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  26. $(INSTALL_BIN) $(PKG_BUILD_DIR)/objdir/sbin/mkelfImage $(STAGING_DIR_HOST)/bin
  27. endef
  28. $(eval $(call BuildPackage,mkelfimage))