X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=tools%2Fmkimage%2FMakefile;h=2de13ab77b1456ec057913b282cbde24e0523789;hb=25d8cb275e1f16bb80c6d05dcf6d73d8d6882053;hp=48cf04547a6f29da480140d9f5433aadb46e3722;hpb=3d501f9403ab6ceb80cb6fac9d64f13306c1e6cd;p=openwrt%2Fstaging%2Fflorian.git diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile index 48cf04547a..2de13ab77b 100644 --- a/tools/mkimage/Makefile +++ b/tools/mkimage/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -7,21 +7,34 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mkimage -PKG_VERSION:=2010.12 +PKG_VERSION:=2014.10 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot -PKG_MD5SUM:=9024bbceabd176ae1d52df6db2e84bda +PKG_SOURCE_URL:=\ + http://mirror2.openwrt.org/sources \ + ftp://ftp.denx.de/pub/u-boot +PKG_MD5SUM:=3ddcaee2f05b7c464778112ec83664b5 PKG_CAT:=bzcat HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION) include $(INCLUDE_DIR)/host-build.mk -define Host/Compile - rm -f $(HOST_BUILD_DIR)/tools/.depend +define Host/Prepare + $(Host/Prepare/Default) + rm -f \ + $(HOST_BUILD_DIR)/include/errno.h \ + $(HOST_BUILD_DIR)/include/malloc.h \ + $(HOST_BUILD_DIR)/tools/.depend + touch $(HOST_BUILD_DIR)/include/config.mk touch $(HOST_BUILD_DIR)/include/config.h - $(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" tools +endef + +define Host/Compile + $(MAKE) -C $(HOST_BUILD_DIR) defconfig + $(MAKE) -C $(HOST_BUILD_DIR) \ + HOSTLDFLAGS="$(HOST_STATIC_LINKING)" \ + tools-only endef define Host/Install