Skip to content

Commit

Permalink
lib: Add an SPL config for LIB_UUID
Browse files Browse the repository at this point in the history
This is selected by PARTITION_UUIDS which has a separate option for SPL.
Add an SPL option for LIB_UUID also, so that we can keep them consistent.

Also add one for PARTITION_TYPE_GUID to avoid a build error in part_efi.c
which wants to call a uuid function in SPL.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Mar 2, 2023
1 parent c7d53f0 commit 3b51080
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions disk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ config SPL_PARTITION_UUIDS
bool "Enable support of UUID for partition in SPL"
depends on SPL_PARTITIONS
default y if SPL_EFI_PARTITION
select SPL_LIB_UUID

config PARTITION_TYPE_GUID
bool "Enable support of GUID for partition type"
Expand All @@ -157,4 +158,11 @@ config PARTITION_TYPE_GUID
Activate the configuration of GUID type
for EFI partition

config SPL_PARTITION_TYPE_GUID
bool "Enable support of GUID for partition type (SPL)"
depends on SPL_EFI_PARTITION
help
Activate the configuration of GUID type
for EFI partition

endmenu
4 changes: 4 additions & 0 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ config HAVE_PRIVATE_LIBGCC
config LIB_UUID
bool

config SPL_LIB_UUID
depends on SPL
bool

config SEMIHOSTING
bool "Support semihosting"
depends on ARM || RISCV
Expand Down

0 comments on commit 3b51080

Please sign in to comment.