All of lore.kernel.org
 help / color / mirror / Atom feed
From: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
To: Simon Glass <sjg@chromium.org>,
	u-boot@lists.u-boot-project.org,
	 Quentin Schulz <u-boot@0leil.net>
Cc: Tom Rini <trini@konsulko.com>,
	 Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	 Jonas Karlman <jonas@kwiboo.se>,
	Kever Yang <kever.yang@rock-chips.com>,
	 Johan Jonker <jbx6244@gmail.com>,
	 Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Subject: [PATCH 2/4] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
Date: Fri, 02 Oct 2026 18:35:59 +0200	[thread overview]
Message-ID: <20261002-config-v1-2-11bb20983682@gmail.com> (raw)
In-Reply-To: <20261002-config-v1-0-11bb20983682@gmail.com>

There is no need to define TPL linker script file through TPL_LDSCRIPT
configuration option value when CONFIG_TPL is not selected. Avoid this
useless row in the configuration with no side effect on binary outputs.

Involved boards being built without TPL are a subset of those based on
RK3328 or RK3399. Anyway, keep aligned PX30 Kconfig with this fix, too.

Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
 arch/arm/mach-rockchip/px30/Kconfig   | 2 +-
 arch/arm/mach-rockchip/rk3328/Kconfig | 2 +-
 arch/arm/mach-rockchip/rk3399/Kconfig | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-rockchip/px30/Kconfig b/arch/arm/mach-rockchip/px30/Kconfig
index adba1b49a52..ee36cf213be 100644
--- a/arch/arm/mach-rockchip/px30/Kconfig
+++ b/arch/arm/mach-rockchip/px30/Kconfig
@@ -75,7 +75,7 @@ config SPL_SERIAL
 	default y
 
 config TPL_LDSCRIPT
-	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
 
 config TPL_TEXT_BASE
 	default 0xff0e1000
diff --git a/arch/arm/mach-rockchip/rk3328/Kconfig b/arch/arm/mach-rockchip/rk3328/Kconfig
index ec1dae8d413..032d90927f3 100644
--- a/arch/arm/mach-rockchip/rk3328/Kconfig
+++ b/arch/arm/mach-rockchip/rk3328/Kconfig
@@ -22,7 +22,7 @@ config SYS_SOC
 	default "rk3328"
 
 config TPL_LDSCRIPT
-	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
 
 config TPL_TEXT_BASE
 	default 0xff091000
diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig b/arch/arm/mach-rockchip/rk3399/Kconfig
index d84a9da8ed5..250e3728948 100644
--- a/arch/arm/mach-rockchip/rk3399/Kconfig
+++ b/arch/arm/mach-rockchip/rk3399/Kconfig
@@ -142,7 +142,7 @@ config SYS_SOC
 	default "rk3399"
 
 config TPL_LDSCRIPT
-	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
 
 config TPL_STACK
 	default 0xff8effff

-- 
2.34.1


  parent reply	other threads:[~2026-10-02 16:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 16:35 [PATCH 0/4] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
2026-10-02 16:35 ` [PATCH 1/4] arm: rockchip: rv1126: Remove useless TPL_LDSCRIPT default Massimo Pegorer
2026-10-14  9:18   ` Quentin Schulz
2026-10-02 16:35 ` Massimo Pegorer [this message]
2026-10-14  9:31   ` [PATCH 2/4] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded Quentin Schulz
2026-10-14 18:07     ` Massimo Pegorer
2026-10-02 16:36 ` [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options " Massimo Pegorer
2026-10-04 18:54   ` Jonas Karlman
2026-10-05 11:44     ` Massimo Pegorer
2026-10-13 21:00       ` Jonas Karlman
2026-10-14 18:25         ` Massimo Pegorer
2026-10-14 16:25   ` Quentin Schulz
2026-10-14 18:22     ` Massimo Pegorer
2026-10-02 16:36 ` [PATCH 4/4] arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check Massimo Pegorer
2026-10-04 18:40   ` Jonas Karlman
2026-10-05 11:43     ` Massimo Pegorer
2026-10-14  9:36   ` Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261002-config-v1-2-11bb20983682@gmail.com \
    --to=massimo.pegorer+oss@gmail.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jbx6244@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@0leil.net \
    --cc=u-boot@lists.u-boot-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.