diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-12 13:20:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-14 16:57:35 -0400 |
commit | e94ef5795231a4e769235c34bca93b394323c55a (patch) | |
tree | 87bc48aa500c6618520ff68b2f96e77d969226d4 | |
parent | 7c39799dec2cafbe631a35d2c17d080e73741db5 (diff) |
lib: move rtc-lib.c to lib
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>
-rw-r--r-- | drivers/rtc/Makefile | 1 | ||||
-rw-r--r-- | lib/Makefile | 1 | ||||
-rw-r--r-- | lib/rtc-lib.c (renamed from drivers/rtc/rtc-lib.c) | 0 |
3 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile index f668cf9050..331a49ab59 100644 --- a/drivers/rtc/Makefile +++ b/drivers/rtc/Makefile @@ -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 diff --git a/lib/Makefile b/lib/Makefile index 881034f4ae..d8055d36d6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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 # diff --git a/drivers/rtc/rtc-lib.c b/lib/rtc-lib.c index 1f7bdade29..1f7bdade29 100644 --- a/drivers/rtc/rtc-lib.c +++ b/lib/rtc-lib.c |