From e249f79723c77f5570145a34b08c4ab610296c2a Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Fri, 10 Apr 2026 19:02:03 +0800 Subject: [PATCH] tools/mkimage: disable more unnecessary tools It doesn't make sence to build unused tools. Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22844 Signed-off-by: Nick Hainke --- tools/mkimage/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile index 9a6826b847..d274106d7c 100644 --- a/tools/mkimage/Makefile +++ b/tools/mkimage/Makefile @@ -28,7 +28,11 @@ define Host/Configure 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 + $(HOST_BUILD_DIR)/scripts/config \ + --file $(HOST_BUILD_DIR)/.config \ + --disable TOOLS_KWBIMAGE \ + --disable TOOLS_LIBCRYPTO \ + --disable TOOLS_MKEFICAPSULE endef define Host/Compile