mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
efi_loader: make device path to text protocol customizable
The device path to text protocol is not needed for EBBR compliance. So let's make it a customizable option. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -296,6 +296,7 @@ static char *string16(char *buf, char *end, u16 *s, int field_width,
|
||||
return buf;
|
||||
}
|
||||
|
||||
#if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_TO_TEXT)
|
||||
static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
||||
int precision, int flags)
|
||||
{
|
||||
@@ -314,6 +315,7 @@ static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_NET
|
||||
static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width,
|
||||
@@ -451,7 +453,7 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
||||
|
||||
switch (*fmt) {
|
||||
/* Device paths only exist in the EFI context. */
|
||||
#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD)
|
||||
#if CONFIG_IS_ENABLED(EFI_DEVICE_PATH_TO_TEXT) && !defined(API_BUILD)
|
||||
case 'D':
|
||||
return device_path_string(buf, end, ptr, field_width,
|
||||
precision, flags);
|
||||
|
Reference in New Issue
Block a user