mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
rtc: compile date.c if DM_RTC
rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if we don't want or need this command. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
323a73adc9
commit
8cffb50ab3
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
#include <errno.h>
|
||||
#include <rtc.h>
|
||||
|
||||
#if defined(CONFIG_CMD_DATE) || defined(CONFIG_TIMESTAMP)
|
||||
#if defined(CONFIG_CMD_DATE) || defined(CONFIG_DM_RTC) || \
|
||||
defined(CONFIG_TIMESTAMP)
|
||||
|
||||
#define FEBRUARY 2
|
||||
#define STARTOFTIME 1970
|
||||
|
|
Loading…
Add table
Reference in a new issue