summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-09-29 19:49:28 -0600
committerTom Rini <trini@konsulko.com>2024-10-11 11:44:47 -0600
commit47bd48048fb1f0e8004456c69fa4acc98bbbb7df (patch)
treec3147323ea55794bd1c14d81d2cf5cfb65a303d0
parent09eaa406f6d98681912ae3a34ea559e8237fec86 (diff)
serial: Make use of the SERIAL define
This is always enabled for U-Boot proper, so simplify the condition in the common Makefile. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/common/Makefile b/common/Makefile
index d871113cbb9..c52d4c39f6b 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -65,15 +65,7 @@ obj-$(CONFIG_DDR_SPD) += ddr_spd.o
obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
obj-$(CONFIG_HWCONFIG) += hwconfig.o
obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
-ifdef CONFIG_SPL_BUILD
-ifdef CONFIG_TPL_BUILD
-obj-$(CONFIG_TPL_SERIAL) += console.o
-else
-obj-$(CONFIG_SPL_SERIAL) += console.o
-endif
-else
-obj-y += console.o
-endif # CONFIG_SPL_BUILD
+obj-$(CONFIG_$(SPL_TPL_)SERIAL) += console.o
obj-$(CONFIG_CROS_EC) += cros_ec.o
obj-y += dlmalloc.o