From ba80c413a1bd74365c35df98023808292ea5b38b Mon Sep 17 00:00:00 2001 From: Xiaok <3795104+luxiaok@users.noreply.github.com> Date: Thu, 19 Jun 2025 15:30:01 +0800 Subject: [PATCH] u-boot.mk: add support for config customization --- include/u-boot.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/u-boot.mk b/include/u-boot.mk index d824d97ff..280c6e35a 100644 --- a/include/u-boot.mk +++ b/include/u-boot.mk @@ -83,6 +83,9 @@ endef define Build/Configure/U-Boot +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config + $(if $(strip $(UBOOT_CUSTOMIZE_CONFIG)), + $(PKG_BUILD_DIR)/scripts/config --file $(PKG_BUILD_DIR)/.config $(UBOOT_CUSTOMIZE_CONFIG) + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) oldconfig) endef DTC=$(wildcard $(LINUX_DIR)/scripts/dtc/dtc)