[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / tools / mkimage / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=mkimage
10 PKG_VERSION:=2011.12
11
12 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
14 PKG_MD5SUM:=7f29b9f6da44d6e46e988e7561fd1d5f
15 PKG_CAT:=bzcat
16
17 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 define Host/Compile
22 rm -f $(HOST_BUILD_DIR)/tools/.depend
23 touch $(HOST_BUILD_DIR)/include/config.h
24 $(MAKE) -C $(HOST_BUILD_DIR) BUILD_DIR= BIN_FILES-y="mkimage" tools
25 endef
26
27 define Host/Install
28 $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
29 endef
30
31 define Host/Clean
32 rm -f $(STAGING_DIR_HOST)/bin/mkimage
33 endef
34
35 $(eval $(call HostBuild))
This page took 0.054964 seconds and 5 git commands to generate.