From patchwork Wed Apr 15 16:46:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 237806 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Wed, 15 Apr 2020 18:46:20 +0200 Subject: [PATCH 2/5] lib: date functions in SPL In-Reply-To: <20200415164623.142908-1-xypron.glpk@gmx.de> References: <20200415164623.142908-1-xypron.glpk@gmx.de> Message-ID: <20200415164623.142908-3-xypron.glpk@gmx.de> 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 --- lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 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 #