mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: Kconfig entries for GetTime(), SetTime()
The GetTime() and the SetTime() runtime services are not obligatory. So let's make them customizable. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
38b9a79c63
commit
5ec48e38ee
4 changed files with 26 additions and 15 deletions
|
@ -167,7 +167,7 @@ static efi_status_t EFIAPI efi_get_time_boottime(
|
|||
struct efi_time *time,
|
||||
struct efi_time_cap *capabilities)
|
||||
{
|
||||
#ifdef CONFIG_DM_RTC
|
||||
#ifdef CONFIG_EFI_GET_TIME
|
||||
efi_status_t ret = EFI_SUCCESS;
|
||||
struct rtc_time tm;
|
||||
struct udevice *dev;
|
||||
|
@ -214,7 +214,7 @@ out:
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DM_RTC
|
||||
#ifdef CONFIG_EFI_SET_TIME
|
||||
|
||||
/**
|
||||
* efi_validate_time() - checks if timestamp is valid
|
||||
|
@ -252,7 +252,7 @@ static int efi_validate_time(struct efi_time *time)
|
|||
*/
|
||||
static efi_status_t EFIAPI efi_set_time_boottime(struct efi_time *time)
|
||||
{
|
||||
#ifdef CONFIG_DM_RTC
|
||||
#ifdef CONFIG_EFI_SET_TIME
|
||||
efi_status_t ret = EFI_SUCCESS;
|
||||
struct rtc_time tm;
|
||||
struct udevice *dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue