2010-01-10 15:57:43 +00:00
|
|
|
#
|
2012-04-02 16:25:23 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-08-25 21:53:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-12-06 23:42:37 +00:00
|
|
|
PKG_NAME:=mkimage
|
2012-06-09 18:06:13 +00:00
|
|
|
PKG_VERSION:=2012.04.01
|
2010-01-10 15:57:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
|
2012-06-09 18:06:13 +00:00
|
|
|
PKG_MD5SUM:=192bb231082d9159fb6e16de3039b6b2
|
2010-01-10 15:57:43 +00:00
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
|
2006-08-25 21:53:54 +00:00
|
|
|
|
2007-05-10 07:02:04 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-09-23 08:49:34 +00:00
|
|
|
define Host/Prepare
|
|
|
|
$(Host/Prepare/Default)
|
|
|
|
rm -f \
|
|
|
|
$(HOST_BUILD_DIR)/include/errno.h \
|
|
|
|
$(HOST_BUILD_DIR)/include/malloc.h
|
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2010-03-08 17:17:46 +00:00
|
|
|
rm -f $(HOST_BUILD_DIR)/tools/.depend
|
2010-12-23 00:07:58 +00:00
|
|
|
touch $(HOST_BUILD_DIR)/include/config.h
|
2012-08-12 13:27:49 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" HOSTLDFLAGS="$(HOST_STATIC_LINKING)" tools
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2010-01-10 15:57:43 +00:00
|
|
|
$(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mkimage
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|