Root/tools/mkimage/Makefile

1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=mkimage
10PKG_VERSION:=2009.11
11
12PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
14PKG_MD5SUM:=d94700614225f53c853dfe714eb5fa47
15PKG_CAT:=bzcat
16
17HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/host-build.mk
20
21define Host/Compile
22    rm -f $(HOST_BUILD_DIR)/tools/.depend
23    touch $(HOST_BUILD_DIR)/include/config.{h,mk} $(HOST_BUILD_DIR)/include/autoconf.mk{.dep,}
24    $(MAKE) -C $(HOST_BUILD_DIR) SUBDIRS=tools BIN_FILES-y="mkimage" tools
25endef
26
27define Host/Install
28    $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
29endef
30
31define Host/Clean
32    rm -f $(STAGING_DIR_HOST)/bin/mkimage
33endef
34
35$(eval $(call HostBuild))
36

Archive Download this file



interactive