diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-04-15 18:46:20 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-15 16:07:46 -0400 |
commit | 76dd7efd5de98bca4b4742e0d61cd38fd2a70fce (patch) | |
tree | 5eb0ceffaf2141dbb57b547d49b958ae76493e4a | |
parent | 4ff752eedbf9fcc10e3c38ed1c521acb6889cbe6 (diff) | |
download | u-boot-76dd7efd5de98bca4b4742e0d61cd38fd2a70fce.tar.gz |
lib: date functions in SPL
Date functions are only needed in SPL if SPL contains RTC drivers.
Fixes: 05429b6cf5b3 ("rtc: move date.c from drivers/rtc/ to lib/")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | lib/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index 5d4bb3232c..dbea69f52c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -116,13 +116,14 @@ else obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o endif obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o +obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += date.o else # Main U-Boot always uses the full printf support obj-y += vsprintf.o strto.o obj-$(CONFIG_OID_REGISTRY) += oid_registry.o +obj-y += date.o endif -obj-y += date.o obj-$(CONFIG_LIB_ELF) += elf.o # |