procd: make mDNS TXT record parsing more solid
[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:=2022.01
11
12 PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:= \
14 https://mirror.cyberbits.eu/u-boot \
15 https://ftp.denx.de/pub/u-boot \
16 ftp://ftp.denx.de/pub/u-boot
17 PKG_HASH:=81b4543227db228c03f8a1bf5ddbc813b0bb8f6555ce46064ef721a6fc680413
18
19 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 define Host/Compile
24 $(MAKE) -C $(HOST_BUILD_DIR) \
25 HOSTCFLAGS="$(HOST_CFLAGS)" \
26 HOSTLDFLAGS="$(HOST_LDFLAGS)" \
27 PKG_CONFIG_EXTRAARGS="--static" \
28 V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1) \
29 NO_SDL=1 \
30 tools-only_config \
31 tools-only
32 endef
33
34 define Host/Install
35 $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
36 $(CP) $(HOST_BUILD_DIR)/tools/mkenvimage $(STAGING_DIR_HOST)/bin/
37 endef
38
39 define Host/Clean
40 rm -f $(STAGING_DIR_HOST)/bin/mkimage
41 rm -f $(STAGING_DIR_HOST)/bin/mkenvimage
42 endef
43
44 $(eval $(call HostBuild))