]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cpu: microblaze: Fix unmet direct dependencies for XILINX_MICROBLAZE0_PVR
authorMichal Simek <michal.simek@amd.com>
Tue, 17 Mar 2026 16:26:22 +0000 (17:26 +0100)
committerMichal Simek <michal.simek@amd.com>
Fri, 27 Mar 2026 13:49:32 +0000 (14:49 +0100)
As exposed by "make randconfig", CPU_MICROBLAZE uses select to
force-enable XILINX_MICROBLAZE0_PVR, but that symbol depends on
TARGET_MICROBLAZE_GENERIC. The select bypasses this dependency chain,
triggering a Kconfig warning:

  WARNING: unmet direct dependencies detected for XILINX_MICROBLAZE0_PVR
    Depends on [n]: MICROBLAZE [=y] && TARGET_MICROBLAZE_GENERIC [=n]
    Selected by [y]:
    - CPU_MICROBLAZE [=y] && CPU [=y] && MICROBLAZE [=y]

Change XILINX_MICROBLAZE0_PVR from select to depends on, so that the
CPU driver is only available when PVR support has been explicitly
enabled.

Fixes: 816226d27efa ("cpu: add CPU driver for microblaze")
Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/61ddd555f58ef5169c48b190423640d949e4aad1.1773764781.git.michal.simek@amd.com
drivers/cpu/Kconfig

index 6a96be94de496871537ad0d08bbc870f3556192f..c805c0bbfa19ec9e1e2394d0a14780feab998af9 100644 (file)
@@ -35,9 +35,8 @@ config CPU_ARMV8
 
 config CPU_MICROBLAZE
        bool "Enable Microblaze CPU driver"
-       depends on CPU && MICROBLAZE
+       depends on CPU && MICROBLAZE && XILINX_MICROBLAZE0_PVR
        select DM_EVENT
-       select XILINX_MICROBLAZE0_PVR
        help
          Support CPU cores for Microblaze architecture.