2010-01-10 15:57:43 +00:00
|
|
|
#
|
2014-05-21 09:42:33 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2006-08-25 21:53:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-12-06 23:42:37 +00:00
|
|
|
PKG_NAME:=mkimage
|
2024-04-05 10:18:41 +00:00
|
|
|
PKG_VERSION:=2024.04
|
2010-01-10 15:57:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2
|
2020-04-19 13:07:10 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
https://mirror.cyberbits.eu/u-boot \
|
|
|
|
https://ftp.denx.de/pub/u-boot \
|
|
|
|
ftp://ftp.denx.de/pub/u-boot
|
2024-04-05 10:18:41 +00:00
|
|
|
PKG_HASH:=18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a
|
2010-01-10 15:57:43 +00:00
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION)
|
2006-08-25 21:53:54 +00:00
|
|
|
|
2007-05-10 07:02:04 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2022-08-05 12:06:22 +00:00
|
|
|
define Host/Configure
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
|
|
HOSTCFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
HOSTLDFLAGS="$(HOST_LDFLAGS)" \
|
|
|
|
PKG_CONFIG_EXTRAARGS="--static" \
|
|
|
|
V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1) \
|
|
|
|
tools-only_config
|
|
|
|
|
|
|
|
sed -i 's/CONFIG_TOOLS_MKEFICAPSULE=y/# CONFIG_TOOLS_MKEFICAPSULE is not set/' $(HOST_BUILD_DIR)/.config
|
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2018-04-14 21:00:12 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
|
|
HOSTCFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
HOSTLDFLAGS="$(HOST_LDFLAGS)" \
|
2021-11-01 06:59:21 +00:00
|
|
|
PKG_CONFIG_EXTRAARGS="--static" \
|
2022-02-23 14:51:09 +00:00
|
|
|
V=$(if $(findstring c,$(OPENWRT_VERBOSE)),1) \
|
2018-04-14 21:00:12 +00:00
|
|
|
tools-only
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2010-01-10 15:57:43 +00:00
|
|
|
$(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/
|
2018-02-12 16:42:01 +00:00
|
|
|
$(CP) $(HOST_BUILD_DIR)/tools/mkenvimage $(STAGING_DIR_HOST)/bin/
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mkimage
|
2018-02-12 16:42:01 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mkenvimage
|
2006-08-25 21:53:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|