diff mbox series

[v5,22/44] lib: Fix build condition for tiny-printf

Message ID 20230222163425.2043934-23-sjg@chromium.org
State Accepted
Commit 05a8e1a44711263a8fd6c39267e57f3d21480a79
Delegated to: Tom Rini
Headers show
Series More tidy-ups of Kconfig options | expand

Commit Message

Simon Glass Feb. 22, 2023, 4:34 p.m. UTC
This should be checking for any SPL build. Drop the use of SPL_TPL_ since
it is not necessary and will not work with split config.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini March 3, 2023, 11:42 p.m. UTC | #1
On Wed, Feb 22, 2023 at 09:34:03AM -0700, Simon Glass wrote:

> This should be checking for any SPL build. Drop the use of SPL_TPL_ since
> it is not necessary and will not work with split config.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/lib/Makefile b/lib/Makefile
index a282e40258c..10aa7ac0298 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -127,7 +127,7 @@  obj-$(CONFIG_LIB_UUID) += uuid.o
 obj-$(CONFIG_LIB_RAND) += rand.o
 obj-y += panic.o
 
-ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y)
+ifeq ($(CONFIG_SPL_BUILD),y)
 # SPL U-Boot may use full-printf, tiny-printf or none at all
 ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF
 obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o