
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 --- v2: reformated using 'git format-patch -M' --- drivers/rtc/Makefile | 1 - lib/Makefile | 1 + {drivers/rtc => lib}/rtc-lib.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {drivers/rtc => lib}/rtc-lib.c (100%)
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 b4795a62a0..b7ab1254d8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -133,6 +133,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 similarity index 100% rename from drivers/rtc/rtc-lib.c rename to lib/rtc-lib.c -- 2.30.2