Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B168CC87FCA for ; Thu, 7 Aug 2025 13:15:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 166CA84560; Thu, 7 Aug 2025 15:15:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1754572515; bh=Hobo4mnjzwFXMv8M7gjMtBWB2MMTmNII/qzQby0spns=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=hjCQjtsXJFccaNjBRgkIAl9UTsabkczt3P7c7Z8JpS0+bKr2xBt9E/Z+5PDBKg0yf o1d7O7ccZkdF7hqo64MT1O1upIuUaOyrAeymQzJj7wkgBg5wI3Jt2coxOhg29K3ngT CJkQd/ye45rxvJiRICwfrFMgwptpfoZ38qeKXeVOYRVGKxk45gqNITh0HgH9DKuKfg TiCCaV9asL1vf61XlAM3+4mKWydp+latUbavaFFLM4ycCp1NEXVenBqZ5eh31gcTcR rS+FYCWI5UtfrHbGKt10GIKo2IA258iBjknM/i3YVxrwliyfOPpRysnrQZlXkUJ3gG oCpe+iadEVFRw== Received: by phobos.denx.de (Postfix, from userid 109) id 07486843E2; Thu, 7 Aug 2025 12:24:57 +0200 (CEST) Received: from mx.denx.de (mx.denx.de [IPv6:2a03:4000:64:cc:545d:19ff:fe05:8172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6E03983C53 for ; Thu, 7 Aug 2025 12:24:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pro@denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.b="FeQ9l8qR"; dkim-atps=neutral Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 187D71038C126; Thu, 7 Aug 2025 12:24:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=mx-20241105; t=1754562292; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=Hobo4mnjzwFXMv8M7gjMtBWB2MMTmNII/qzQby0spns=; b=FeQ9l8qRZjnhR7dC9PzuIoIKmJ52M/AAqzvkuaKNB9b+LxQNcOaorAuwziBSUoDwA50F3d UcYBc09NL71/GX+RknhD69omEitys/PxmIVlPVPuok+dJBLgdw3McT9i0gLQWOxhYE6Ll5 gTpLy5SZ/trIuYzXn/xp/NdvIWPPp+IpTrs094gFULdbopDnIrD3fkYe12pC6oHQoFJI0+ uvJ7QJzcHYvhtJ4Mg5rttvDt2ZsIe0jhbF9jtKSGd6rQ1M/7JQFC5u6jIYfsoMssKaw48b kdMO86l9MQCeoMJ5x1wB23isYUyTS5Mt2sGdWqXamKjn2tNEapGAq6WYn9L8ug== From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: Philip Oberfichtner , Andre Przywara , Anshul Dalal , Dario Binacchi , Gary Bisson , Greg Malysa , Heinrich Schuchardt , Ilias Apalodimas , Jerome Forissier , Marek Vasut , Nathan Barrett-Morrison , Oliver Gaskell , Paul Barker , Paul Kocialkowski , Peng Fan , Quentin Schulz , Simon Glass , Tom Rini , Trevor Woerner , Ye Li , "Albert ARIBAUD (3ADEV)" , "Marek Behun" , "Marek Mojik" , Adriano Cordova , Alison Wang , Anatolij Gustschin , Breno Lima , Casey Connolly , David Lechner , Dragan Simic , Ezra Buehler , Fabio Estevam , Francesco Dolcini , Francesco Montefoschi , Heiko Schocher , Heinrich Schuchardt , Ibai Erkiaga , Jason Liu , Lukasz Majewski , Mattijs Korpershoek , Michael Walle , Michal Simek , Otavio Salvador , Pascal Zimmermann , Patrice Chotard , Patrick Delaunay , Patrick Rudolph , Phil Sutter , Raymond Mao , Richard Hu , Sean Anderson , Siddarth Gore , Soeren Moch , Stefan Roese , Tomas Peterka , Tony Dinh , Venkatesh Yadav Abbarapu , u-boot@dh-electronics.com, uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2 0/3] Simplify image size checks Date: Thu, 7 Aug 2025 12:24:33 +0200 Message-Id: <20250807102436.452691-1-pro@denx.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Approved-At: Thu, 07 Aug 2025 15:15:13 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Depends on: - https://patchwork.ozlabs.org/project/uboot/patch/20250807075653.356088-2-pro@denx.de/ - https://patchwork.ozlabs.org/project/uboot/patch/20250807075653.356088-3-pro@denx.de/ This patch series intends to simplify the image size checks, which currently exist in multiple flavours: CONFIG_HAS_BOARD_SIZE_LIMIT CONFIG_BOARD_SIZE_LIMIT CONFIG_UBOOT_WITH_SPL_SIZE_LIMIT CONFIG_SPL_SIZE_LIMIT CONFIG_SPL_SIZE_LIMIT_SUBTRACT_GD CONFIG_SPL_SIZE_LIMIT_SUBTRACT_MALLOC CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK CONFIG_TPL_SIZE_LIMIT CONFIG_VPL_SIZE_LIMIT After this series, we would have - Less code duplication in the toplevel Makefile - Consistent logic for all the different CONFIGS - All related options in one place Changes in v2: - Rebase on current master - Rebase on my pending mips patch series (linked above) - Incorporated Heinrich's Review Philip Oberfichtner (3): Image size checks: Remove HAS_BOARD_SIZE_LIMIT Image size checks: Move all configs in one place Image size checks: Simplify help text Kconfig | 80 ++++++++++++++++--- cmd/Kconfig | 2 +- common/spl/Kconfig | 45 ----------- common/spl/Kconfig.tpl | 7 -- common/spl/Kconfig.vpl | 7 -- configs/bk4r1_defconfig | 1 - configs/chromebook_link_defconfig | 1 - configs/colibri_vf_defconfig | 1 - configs/ea-lpc3250devkitv2_defconfig | 1 - .../gardena-smart-gateway-mt7688_defconfig | 1 - configs/guruplug_defconfig | 1 - configs/imx28_btt3_defconfig | 1 - configs/imx28_xea_defconfig | 1 - configs/legoev3_defconfig | 1 - configs/linkit-smart-7688_defconfig | 1 - configs/lschlv2_defconfig | 1 - configs/lsxhl_defconfig | 1 - configs/lxr2_defconfig | 1 - configs/mx51evk_defconfig | 1 - configs/mx53loco_defconfig | 1 - configs/mx6sabresd_defconfig | 1 - configs/mx7ulp_com_defconfig | 1 - configs/openrd_base_defconfig | 1 - configs/openrd_client_defconfig | 1 - configs/openrd_ultimate_defconfig | 1 - configs/pcm052_defconfig | 1 - configs/pico-dwarf-imx6ul_defconfig | 1 - configs/pico-dwarf-imx7d_defconfig | 1 - configs/pico-hobbit-imx6ul_defconfig | 1 - configs/pico-hobbit-imx7d_defconfig | 1 - configs/pico-imx6_defconfig | 1 - configs/pico-imx6ul_defconfig | 1 - configs/pico-imx7d_bl33_defconfig | 1 - configs/pico-imx7d_defconfig | 1 - configs/pico-nymph-imx7d_defconfig | 1 - configs/pico-pi-imx6ul_defconfig | 1 - configs/pico-pi-imx7d_defconfig | 1 - configs/sheevaplug_defconfig | 1 - configs/stm32mp15_dhsom.config | 1 - configs/tbs2910_defconfig | 1 - configs/turris_1x_nor_defconfig | 1 - configs/turris_1x_sdcard_defconfig | 1 - configs/turris_omnia_defconfig | 1 - configs/udoo_neo_defconfig | 1 - configs/vf610twr_defconfig | 1 - configs/vf610twr_nand_defconfig | 1 - configs/warp7_bl33_defconfig | 1 - configs/warp7_defconfig | 1 - lib/efi_loader/Kconfig | 6 +- 49 files changed, 72 insertions(+), 118 deletions(-) -- 2.39.5