]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
tools/mkimage: disable more unnecessary tools
authorShiji Yang <yangshiji66@outlook.com>
Fri, 10 Apr 2026 11:02:03 +0000 (19:02 +0800)
committerNick Hainke <vincent@systemli.org>
Sun, 12 Apr 2026 08:28:25 +0000 (10:28 +0200)
It doesn't make sence to build unused tools.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22844
Signed-off-by: Nick Hainke <vincent@systemli.org>
tools/mkimage/Makefile

index 9a6826b847feaf23f05b1df475cc7cc94e6d94e0..d274106d7c4c1e7f90bd10b31206dd124364558a 100644 (file)
@@ -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