From: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
To: Simon Glass <sjg@chromium.org>, u-boot@lists.u-boot-project.org
Cc: "Tom Rini" <trini@konsulko.com>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Quentin Schulz" <u-boot@0leil.net>,
"Kever Yang" <kever.yang@rock-chips.com>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Marek Vasut" <marek.vasut+usb@mailbox.org>,
"Jörg Sommer" <joerg@jo-so.de>,
"Carlo Caione" <ccaione@baylibre.com>,
"Alexey Charkov" <alchark@gmail.com>,
"Massimo Pegorer" <massimo.pegorer+oss@gmail.com>
Subject: [PATCH 1/2] arch: arm: rockchip: Skip needless CONFIG_TPL_BUILD check
Date: Tue, 08 Sep 2026 19:04:59 +0200 [thread overview]
Message-ID: <20260908-xpl-v1-1-58e9e5248c29@gmail.com> (raw)
In-Reply-To: <20260908-xpl-v1-0-58e9e5248c29@gmail.com>
Just check that CONFIG_XPL_BUILD is not set to select files for U-Boot
proper build. Indeed, CONFIG_TPL_BUILD being set implies by design that
CONFIG_XPL_BUILD is set too, therefore CONFIG_XPL_BUILD not set implies
that CONFIG_TPL_BUILD is not set either, making its check needless.
Fixes: bef9fdbed2e5 ("arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD")
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
arch/arm/mach-rockchip/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Makefile b/arch/arm/mach-rockchip/Makefile
index d3bc0689f89..8148816c48c 100644
--- a/arch/arm/mach-rockchip/Makefile
+++ b/arch/arm/mach-rockchip/Makefile
@@ -15,7 +15,7 @@ obj-tpl-$(CONFIG_ROCKCHIP_PX30) += px30-board-tpl.o spl_common.o
obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o spl_common.o
-ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_TPL_BUILD),)
+ifeq ($(CONFIG_XPL_BUILD),)
# Always include boot_mode.o, as we bypass it (i.e. turn it off)
# inside of boot_mode.c when CONFIG_ROCKCHIP_BOOT_MODE_REG is 0. This way,
--
2.34.1
next prev parent reply other threads:[~2026-09-08 17:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 17:04 [PATCH 0/2] Avoid needless CONFIG_TPL_BUILD checks for U-Boot proper build Massimo Pegorer
2026-09-08 17:04 ` Massimo Pegorer [this message]
2026-09-08 17:05 ` [PATCH 2/2] drivers: Skip needless CONFIG_TPL_BUILD check Massimo Pegorer
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=20260908-xpl-v1-1-58e9e5248c29@gmail.com \
--to=massimo.pegorer+oss@gmail.com \
--cc=alchark@gmail.com \
--cc=ccaione@baylibre.com \
--cc=ilias.apalodimas@linaro.org \
--cc=joerg@jo-so.de \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=marek.vasut+usb@mailbox.org \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--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.