brcm47xx: add switch configuration for WNR3500L
[openwrt/openwrt.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:=2019.07
11
12 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=http://ftp.denx.de/pub/u-boot
14 PKG_HASH:=bff4fa77e8da17521c030ca4c5b947a056c1b1be4d3e6ee8637020b8d50251d0
15
16 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define Host/Prepare
21 $(Host/Prepare/Default)
22 mkdir -p $(HOST_BUILD_DIR)/include/config
23 touch $(HOST_BUILD_DIR)/include/config/auto.conf
24 endef
25
26 define Host/Compile
27 $(MAKE) -C $(HOST_BUILD_DIR) \
28 HOSTCFLAGS="$(HOST_CFLAGS)" \
29 HOSTLDFLAGS="$(HOST_LDFLAGS)" \
30 no-dot-config-targets=tools-only \
31 CONFIG_MKIMAGE_DTC_PATH=dtc \
32 CONFIG_FIT=y \
33 CONFIG_FIT_SIGNATURE=y \
34 CONFIG_FIT_SIGNATURE_MAX_SIZE=0x10000000 \
35 tools-only
36 endef
37
38 define Host/Install
39 $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
40 $(CP) $(HOST_BUILD_DIR)/tools/mkenvimage $(STAGING_DIR_HOST)/bin/
41 endef
42
43 define Host/Clean
44 rm -f $(STAGING_DIR_HOST)/bin/mkimage
45 rm -f $(STAGING_DIR_HOST)/bin/mkenvimage
46 endef
47
48 $(eval $(call HostBuild))