]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Convert LIB_UUID to Kconfig
authorAdam Ford <aford173@gmail.com>
Tue, 6 Feb 2018 18:14:28 +0000 (12:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 9 Feb 2018 00:08:39 +0000 (19:08 -0500)
config_fallback.h has some logic that checks a variety of options
and selects LIB_UUID if it hasn't already been selected.  This
will all LIB_UUID in Kconfig and select this option for the list
of options to allow us to remove the logic from fallbacks

Signed-off-by: Adam Ford <aford173@gmail.com>
cmd/Kconfig
disk/Kconfig
include/config_fallbacks.h
lib/Kconfig
lib/efi_loader/Kconfig

index 790c40456de53e8ccd40940f3b8dee13e9d6e6cb..4d9ef87e94330cdbb014257d41d408ef8b0a14ee 100644 (file)
@@ -679,6 +679,7 @@ config CMD_GPT
 
 config RANDOM_UUID
        bool "GPT Random UUID generation"
+       select LIB_UUID
        help
          Enable the generation of partitions with random UUIDs if none
          are provided.
@@ -1180,6 +1181,7 @@ config CMD_TERMINAL
 
 config CMD_UUID
        bool "uuid, guid - generation of unique IDs"
+       select LIB_UUID
        help
          This enables two commands:
 
index 0446bb63ca7ee35bcb4cd3d698bfc10b35bddcbe..f3050cfde1381f5a69ea3d61abcf0e50cb678f89 100644 (file)
@@ -72,6 +72,7 @@ config EFI_PARTITION
        depends on PARTITIONS
        default y if DISTRO_DEFAULTS
        default y if TEGRA
+       select LIB_UUID
        help
          Say Y here if you would like to use device under U-Boot which
          were partitioned using EFI GPT.
@@ -115,6 +116,7 @@ config PARTITION_UUIDS
        depends on PARTITIONS
        default y if DISTRO_DEFAULTS
        default y if EFI_PARTITION
+       select LIB_UUID
        help
          Activate the configuration of UUID for partition
 
index c11abe67e5945cbcf5a2e83d529a87add9cf1ee4..70013fe1d076e3adb638c9db9a44f727035a8a00 100644 (file)
 #define HAVE_BLOCK_DEVICE
 #endif
 
-#if (CONFIG_IS_ENABLED(PARTITION_UUIDS) || \
-       CONFIG_IS_ENABLED(EFI_PARTITION) || \
-       CONFIG_IS_ENABLED(EFI_LOADER) || \
-       defined(CONFIG_RANDOM_UUID) || \
-       defined(CONFIG_CMD_UUID) || \
-       defined(CONFIG_BOOTP_PXE)) && \
-       !defined(CONFIG_LIB_UUID)
-#define CONFIG_LIB_UUID
-#endif
-
 /* Console I/O Buffer Size */
 #ifndef CONFIG_SYS_CBSIZE
 #if defined(CONFIG_CMD_KGDB)
index 87db2e396eee374900c268ef61bf06014db63b22..5178e8642e30e3d549c7773b5f47b48fbabcca1b 100644 (file)
@@ -18,6 +18,9 @@ config CC_OPTIMIZE_LIBS_FOR_SPEED
 config HAVE_PRIVATE_LIBGCC
        bool
 
+config LIB_UUID
+       bool
+
 config USE_PRIVATE_LIBGCC
        bool "Use private libgcc"
        depends on HAVE_PRIVATE_LIBGCC
index 827c267b601472fec86dad7548bab651d0181532..5461833aeb2f4f020b687a5f41e64ba34c38c16a 100644 (file)
@@ -6,6 +6,7 @@ config EFI_LOADER
        # We need EFI_STUB_32BIT to be set on x86_32 with EFI_STUB
        depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
        default y
+       select LIB_UUID
        help
          Select this option if you want to run EFI applications (like grub2)
          on top of U-Boot. If this option is enabled, U-Boot will expose EFI