]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Kconfig: Make further use of testing for !COMPILE_TEST
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:51:22 +0000 (14:51 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:12:41 +0000 (16:12 -0600)
We have a large number of library symbols that should not be prompted
for by the user really but rather selected by the platform (or SoC) as
needed. To start with however, make these depend on !COMPILE_TEST.

Signed-off-by: Tom Rini <trini@konsulko.com>
Kconfig
boot/Kconfig
cmd/Kconfig
common/Kconfig
drivers/Kconfig
drivers/block/Kconfig
drivers/dfu/Kconfig
drivers/mtd/Kconfig
dts/Kconfig
lib/Kconfig

diff --git a/Kconfig b/Kconfig
index 70125c4e5a6a3511fc152fb7aa9119372fc8d2b1..b68420022e8abea8e03b57b49923b746ea539667 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -720,6 +720,7 @@ config TPL_SYS_MONITOR_BASE
 
 config DYNAMIC_SYS_CLK_FREQ
        bool "Determine CPU clock frequency at run-time"
+       depends on !COMPILE_TEST
        help
          Implement a get_board_sys_clk function that will determine the CPU
          clock frequency at run time, rather than define it statically.
index dd04736575473488d92f736fcaafe4603b8bfa4f..780889023e1014d1c0d02ef272f542b963e4b894 100644 (file)
@@ -1852,6 +1852,7 @@ config OF_BOARD_SETUP
 
 config OF_BOARD_SETUP_EXTENDED
        bool "Set up latest board-specific details in device tree before boot"
+       depends on !COMPILE_TEST
        imply OF_BOARD_SETUP
        help
          This causes U-Boot to call ft_board_setup_ex() before booting into
@@ -1862,6 +1863,7 @@ config OF_BOARD_SETUP_EXTENDED
 
 config OF_SYSTEM_SETUP
        bool "Set up system-specific details in device tree before boot"
+       depends on !COMPILE_TEST
        help
          This causes U-Boot to call ft_system_setup() before booting into
          the Operating System. This function can set up various
index e0101ca6f8222360be3449388cf9ff691608b830..9a901122e95e03c845dd6cedc0dbb2a8e54124fc 100644 (file)
@@ -1238,6 +1238,7 @@ config CMD_FPGAD
 
 config CMD_FUSE
        bool "fuse - support for the fuse subssystem"
+       depends on !COMPILE_TEST
        help
          (deprecated - needs conversion to driver model)
          This allows reading, sensing, programming or overriding fuses
@@ -1289,6 +1290,7 @@ config CMD_GPT_RENAME
 
 config CMD_IDE
        bool "ide - Support for IDE drivers"
+       depends on !COMPILE_TEST
        select IDE
        help
          Provides an 'ide' command which allows accessing the IDE drive,
@@ -1558,6 +1560,7 @@ config CMD_NVME
 config CMD_ONENAND
        bool "onenand - access to onenand device"
        depends on MTD
+       depends on !COMPILE_TEST
        help
          OneNAND is a brand of NAND ('Not AND' gate) flash which provides
          various useful features. This command allows reading, writing,
@@ -1567,6 +1570,7 @@ config CMD_ONENAND
 config USE_ONENAND_BOARD_INIT
        bool "Call onenand_board_init() in the onenand command"
        depends on CMD_ONENAND
+       depends on !COMPILE_TEST
 
 config CMD_OSD
        bool "osd"
@@ -2891,6 +2895,7 @@ config JFFS2_PART_SIZE
 
 config CMD_MTDPARTS
        bool "MTD partition support"
+       depends on !COMPILE_TEST
        depends on MTD
        select MTD_PARTITIONS
        help
index 66dcc8cde15f3f8eae66e56072605fd9c2e8df13..1c340710a33dd913a82c56e78048aa10081866bc 100644 (file)
@@ -280,6 +280,7 @@ config SYS_CONSOLE_IS_IN_ENV
 
 config SYS_CONSOLE_OVERWRITE_ROUTINE
        bool "Allow board control over console overwriting"
+       depends on !COMPILE_TEST
        help
          If this is enabled, and the board-specific function
          overwrite_console() returns 1, the stdin, stderr and stdout are
@@ -714,6 +715,7 @@ config ARCH_MISC_INIT
 
 config BOARD_EARLY_INIT_F
        bool "Call board-specific init before relocation"
+       depends on !COMPILE_TEST
        help
          Some boards need to perform initialisation as soon as possible
          after boot. With this option, U-Boot calls board_early_init_f()
@@ -723,6 +725,7 @@ config BOARD_EARLY_INIT_F
 
 config BOARD_EARLY_INIT_R
        bool "Call board-specific init after relocation"
+       depends on !COMPILE_TEST
        help
          Some boards need to perform initialisation as directly after
          relocation. With this option, U-Boot calls board_early_init_r()
@@ -730,6 +733,7 @@ config BOARD_EARLY_INIT_R
 
 config BOARD_INIT
        bool "Call board-specific init board_init() during init-calls"
+       depends on !COMPILE_TEST
        default y if ARM || RISCV || SANDBOX
        help
          Some boards need an board_init() function called during the initcall
@@ -737,6 +741,7 @@ config BOARD_INIT
 
 config BOARD_POSTCLK_INIT
        bool "Call board_postclk_init"
+       depends on !COMPILE_TEST
        help
          Some boards need this to initialize select items, after clocks /
          timebase and before env / serial.
@@ -780,6 +785,7 @@ config LAST_STAGE_INIT
 
 config MISC_INIT_R
        bool "Execute Misc Init"
+       depends on !COMPILE_TEST
        default y if ARCH_KEYSTONE || ARCH_SUNXI || MPC85xx
        default y if ARCH_OMAP2PLUS && !AM33XX
        help
@@ -842,6 +848,7 @@ config SYS_EARLY_PCI_INIT
 
 config RESET_PHY_R
        bool "Reset ethernet PHY during init"
+       depends on !COMPILE_TEST
        help
          Implement reset_phy() in board code if required to reset the ethernet
          PHY.
@@ -952,6 +959,7 @@ config TPL_STACKPROTECTOR
 
 config BOARD_RNG_SEED
        bool "Provide /chosen/rng-seed property to the linux kernel"
+       depends on !COMPILE_TEST
        help
          Selecting this option requires the board to define a
          board_rng_seed() function, which should return a buffer
index 0b0c610e6294ab7d05d36058727e1eef765145f2..fe35e07b12402ba44d39e161b63a365e05334507 100644 (file)
@@ -162,6 +162,7 @@ source "drivers/xen/Kconfig"
 
 config PHYS_TO_BUS
        bool "Custom physical to bus address mapping"
+       depends on !COMPILE_TEST
        help
          Some SoCs use a different address map for CPU physical addresses and
          peripheral DMA master accesses. If yours does, select this option in
index c6c148ebd179ae947cf61cec815c859e7c941dbc..185da2b5cfc2d0637036ae3a93ab7f3b1a34c937 100644 (file)
@@ -137,6 +137,7 @@ endif  # EFI_MEDIA
 
 config IDE
        bool "Support IDE controllers"
+       depends on !COMPILE_TEST
        select BLK
        help
          Enables support for IDE (Integrated Drive Electronics) hard drives.
index e33b0056d0bbb71fe2e6dac8e6d090204de3216c..2cf4289b4486b25318d3d950f05870216bd8a3b0 100644 (file)
@@ -98,6 +98,7 @@ config DFU_SCSI
 
 config SET_DFU_ALT_INFO
        bool "Dynamic set of DFU alternate information"
+       depends on !COMPILE_TEST
        help
          This option allows to call the function set_dfu_alt_info to
          dynamically build dfu_alt_info in board.
index e76601a55454cdee11c5f383c305ccbb6afc32ec..4afe769ef3200c0e53a0d8e06868c9e479b9bc64 100644 (file)
@@ -41,6 +41,7 @@ config MTD_BLOCK
 
 config SYS_MTDPARTS_RUNTIME
        bool "Allow MTDPARTS to be configured at runtime"
+       depends on !COMPILE_TEST
        help
          This option allows to call the function board_mtdparts_default to
          dynamically build the variables mtdids and mtdparts at runtime.
index 6a5141b56e97859b9abc9e3880837ed0e174991b..c8bc5232f9b7b739ccaca346630cc77332fd52a8 100644 (file)
@@ -37,6 +37,7 @@ config OF_REAL
 
 config OF_BOARD_FIXUP
        bool "Board-specific manipulation of Device Tree"
+       depends on !COMPILE_TEST
        help
          In certain circumstances it is necessary to be able to modify
          U-Boot's device tree (e.g. to delete device from it). This option
@@ -87,6 +88,7 @@ config OF_LIVE
 
 config OF_UPSTREAM
        bool "Enable use of devicetree imported from Linux kernel release"
+       depends on !COMPILE_TEST
        help
          Traditionally, U-Boot platforms used to have their custom devicetree
          files or copy devicetree files from Linux kernel which are hard to
@@ -306,6 +308,7 @@ config MULTI_DTB_FIT_USER_DEF_ADDR
 
 config DTB_RESELECT
        bool "Support swapping dtbs at a later point in boot"
+       depends on !COMPILE_TEST
        depends on MULTI_DTB_FIT
        help
          It is possible during initial boot you may need to use a generic
index fbc9de90669aa70bee0b0d9bb30c68c26f3281e2..7e48b179f6d3ca88b041b9de551594883ccb9d65 100644 (file)
@@ -1244,6 +1244,7 @@ config SPL_LMB
 config LMB_ARCH_MEM_MAP
        bool "Add an architecture specific memory map"
        depends on LMB
+       depends on !COMPILE_TEST
        default y if FSL_LAYERSCAPE || X86
        help
          Some architectures have special or unique aspects which need