2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
12 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
14 PKG_MD5SUM:=21bf962d69938ed4ed783b792b2b074e
17 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
19 include $(INCLUDE_DIR)/host-build.mk
22 $(Host/Prepare/Default)
24 $(HOST_BUILD_DIR)/include/errno.h \
25 $(HOST_BUILD_DIR)/include/malloc.h \
26 $(HOST_BUILD_DIR)/tools/.depend
27 touch $(HOST_BUILD_DIR)/include/config.h
31 $(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" HOSTLDFLAGS="$(HOST_STATIC_LINKING)" tools
35 $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
39 rm -f $(STAGING_DIR_HOST)/bin/mkimage
42 $(eval $(call HostBuild))