lantiq: vgv7519: fix profile, this board have a rt2800-pci board
[openwrt-14.07/.git] / tools / mkimage / Makefile
1 #
2 # Copyright (C) 2006-2014 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:=2014.04
11
12 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
14 PKG_MD5SUM:=6d2116d1385a66e9a59742caa9d62a54
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/Prepare
22         $(Host/Prepare/Default)
23         rm -f \
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.mk
28         touch $(HOST_BUILD_DIR)/include/config.h
29 endef
30
31 define Host/Compile
32         $(MAKE) -C $(HOST_BUILD_DIR) \
33                 HOSTLDFLAGS="$(HOST_STATIC_LINKING)" \
34                 tools-only
35 endef
36
37 define Host/Install
38         $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
39 endef
40
41 define Host/Clean
42         rm -f $(STAGING_DIR_HOST)/bin/mkimage
43 endef
44
45 $(eval $(call HostBuild))