From b0d943a699e75fa420ac0280bdcec3286b609117 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sat, 13 Apr 2024 12:58:31 +0800 Subject: [PATCH] uboot-rockchip: reduce image size for rk33xx For the godd*mn rockchip miniloader. Signed-off-by: Tianling Shen --- package/boot/uboot-rockchip/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile index d1cdf5c348..b6813ce626 100644 --- a/package/boot/uboot-rockchip/Makefile +++ b/package/boot/uboot-rockchip/Makefile @@ -331,7 +331,15 @@ UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes UBOOT_CUSTOMIZE_CONFIG := \ --disable SPL_FIT_SIGNATURE \ --disable TOOLS_MKEFICAPSULE \ - --set-str MKIMAGE_DTC_PATH $(PKG_BUILD_DIR)/scripts/dtc/dtc + --set-str MKIMAGE_DTC_PATH $(PKG_BUILD_DIR)/scripts/dtc/dtc \ + $(if $(TPL),, \ + --disable CONFIG_CMD_DFU \ + --disable CMD_EFIDEBUG \ + --disable CMD_NVEDIT_EFI \ + --disable DFU_MMC \ + --disable EFI_CAPSULE_ON_DISK \ + --disable EFI_CAPSULE_FIRMWARE_RAW \ + ) UBOOT_MAKE_FLAGS += \ BL31=$(STAGING_DIR_IMAGE)/$(ATF) \