]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: move rtc-lib.c to lib
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 12 Jun 2021 11:20:07 +0000 (13:20 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jul 2021 20:57:35 +0000 (16:57 -0400)
Function rtc_to_tm() is needed for FAT file system support even if we don't
have a real time clock. So move it from drivers/ to lib/.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/rtc/Makefile
lib/Makefile
lib/rtc-lib.c [moved from drivers/rtc/rtc-lib.c with 100% similarity]

index f668cf9050c27ade6415a84edae5e56880688481..331a49ab599a2b035d083e5dcf34a11eb29e8101 100644 (file)
@@ -7,7 +7,6 @@
 obj-$(CONFIG_$(SPL_TPL_)DM_RTC) += rtc-uclass.o
 
 obj-$(CONFIG_RTC_AT91SAM9_RTT) += at91sam9_rtt.o
-obj-y += rtc-lib.o
 obj-$(CONFIG_RTC_ARMADA38X) += armada38x.o
 obj-$(CONFIG_RTC_DAVINCI) += davinci.o
 obj-$(CONFIG_RTC_DS1302) += ds1302.o
index 881034f4ae32094774c18fce15aa941fea869be4..d8055d36d6e4daa7cb49e49cd8cf465682b28000 100644 (file)
@@ -135,6 +135,7 @@ obj-$(CONFIG_SSCANF) += sscanf.o
 endif
 
 obj-y += date.o
+obj-y += rtc-lib.o
 obj-$(CONFIG_LIB_ELF) += elf.o
 
 #
similarity index 100%
rename from drivers/rtc/rtc-lib.c
rename to lib/rtc-lib.c