]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lib: Add an SPL config for LIB_UUID
authorSimon Glass <sjg@chromium.org>
Wed, 22 Feb 2023 16:34:11 +0000 (09:34 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 2 Mar 2023 22:45:58 +0000 (17:45 -0500)
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 <sjg@chromium.org>
disk/Kconfig
lib/Kconfig

index c9b9dbaf1a60d0a0c41951eb046372793c312146..817b7c8c76d58abe997e30b88a286dfc74002d06 100644 (file)
@@ -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"
@@ -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
index 08318843231990d28aaa0447b2d3b1b0a028e3b3..4278b24055467c12c61f01d9dab143ad2e98b538 100644 (file)
@@ -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