2010-01-10 17:57:43 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-08-26 00:53:54 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-12-07 01:42:37 +02:00
|
|
|
PKG_NAME:=mkimage
|
2010-01-10 17:57:43 +02:00
|
|
|
PKG_VERSION:=2009.11
|
|
|
|
|
|
|
|
PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
|
|
|
|
PKG_MD5SUM:=d94700614225f53c853dfe714eb5fa47
|
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
|
2006-08-26 00:53:54 +03:00
|
|
|
|
2007-05-10 10:02:04 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Compile
|
2010-03-08 19:17:46 +02:00
|
|
|
rm -f $(HOST_BUILD_DIR)/tools/.depend
|
2010-01-10 17:57:43 +02:00
|
|
|
touch $(HOST_BUILD_DIR)/include/config.{h,mk} $(HOST_BUILD_DIR)/include/autoconf.mk{.dep,}
|
2010-11-03 20:26:26 +02:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= SUBDIRS=tools BIN_FILES-y="mkimage" tools
|
2006-08-26 00:53:54 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Install
|
2010-01-10 17:57:43 +02:00
|
|
|
$(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
|
2006-08-26 00:53:54 +03:00
|
|
|
endef
|
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Clean
|
2007-08-07 03:04:25 +03:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mkimage
|
2006-08-26 00:53:54 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|