microblaze: Rework TARGET_MICROBLAZE_GENERIC implementation
PATCH 1/1 microblaze: Rework TARGET_MICROBLAZE_GENERIC implementation
As exposed by "make randconfig", some symbols such as XILINX_MICROBLAZE0_PVR can be set without TARGET_MICROBLAZE_GENERIC but have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.
---
Cc: Michal Simek <[email protected]>
--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
arch/microblaze/Kconfig +3 -7
@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL
@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DM - -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"
Signature · 1 line
2.43.0
Michal Simek
AppliedQuoted 32 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 29
Quoted 10 lines
arch/microblaze/Kconfig +2
-2@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DM - -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"
Applied.
M
Quoted 37 lines · Michal Simek
Quoted 34 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DM
Quoted 8 lines
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 29
Quoted 6 lines
arch/microblaze/Kconfig +2
-2- -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"Applied.
Please drop this for now, I need to do a v2 and I've found another randconfig that gives me:
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]
with this applied.
Signature · 1 line
Tom
Quoted 47 lines · Tom Rini
Quoted 37 lines · Michal Simek
Quoted 34 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DMQuoted 8 lines
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 29
Quoted 6 lines
arch/microblaze/Kconfig +2
-2- -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"Applied.
Quoted 7 lines
Please drop this for now, I need to do a v2 and I've found another randconfig that gives me:
WARNING: unmet direct dependencies detected forXILINX_MICROBLAZE0_PVR
Depends on [n]: MICROBLAZE [=y] &&TARGET_MICROBLAZE_GENERIC[=n] Selected by [y]:
-CPU_MICROBLAZE[=y] && CPU [=y] && MICROBLAZE [=y]
I expect this is from cpuinfo driver.
M
Quoted 58 lines · Michal Simek
Quoted 47 lines · Tom Rini
Quoted 37 lines · Michal Simek
Quoted 34 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DMQuoted 8 lines
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 29
Quoted 6 lines
arch/microblaze/Kconfig +2
-2- -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"Applied.
Quoted 7 lines
Please drop this for now, I need to do a v2 and I've found another randconfig that gives me:
WARNING: unmet direct dependencies detected forXILINX_MICROBLAZE0_PVR
Depends on [n]: MICROBLAZE [=y] &&TARGET_MICROBLAZE_GENERIC[=n] Selected by [y]:
-CPU_MICROBLAZE[=y] && CPU [=y] && MICROBLAZE [=y]
Quoted 1 line
I expect this is from cpuinfo driver.
Yes, it is. But it's one of the problems randconfig exposes since it does funny things when generating a valid .config, and seeing what blows up. What I have in progress now is removing TARGET_MICROBLAZE_GENERIC entirely and using MICROBLAZE in the few tests.
Signature · 1 line
Tom
Quoted 59 lines · Tom Rini
Quoted 58 lines · Michal Simek
Quoted 54 lines · Tom Rini
Quoted 37 lines · Michal Simek
Quoted 34 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DMQuoted 8 lines
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 28
Quoted 6 lines
arch/microblaze/Kconfig +2
-2- -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"Applied.
Please drop this for now, I need to do a v2 and I've found another randconfig that gives me:
WARNING: unmet direct dependencies detected forXILINX_MICROBLAZE0_PVR
Depends on [n]: MICROBLAZE [=y] &&TARGET_MICROBLAZE_GENERIC[=n] Selected by [y]:
-CPU_MICROBLAZE[=y] && CPU [=y] && MICROBLAZE [=y]
Quoted 7 lines
Quoted 1 line
I expect this is from cpuinfo driver.
Yes, it is. But it's one of the problems randconfig exposes since it does funny things when generating a valid .config, and seeing what blows up. What I have in progress now is removing
TARGET_MICROBLAZE_GENERICentirely and using MICROBLAZE in the few tests.
it should be fine to mark it as dependency.
M
drivers/cpu/Kconfig +1 -2
@@ -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.
Quoted 79 lines · Michal Simek
Quoted 59 lines · Tom Rini
Quoted 58 lines · Michal Simek
Quoted 54 lines · Tom Rini
Quoted 37 lines · Michal Simek
Quoted 34 lines · Tom Rini
As exposed by "make randconfig", some symbols such as
XILINX_MICROBLAZE0_PVRcan be set withoutTARGET_MICROBLAZE_GENERICbut have a transitive dependency on it. The easiest path of resolution here is that since there is only one valid microblaze "board", rework that symbol to be non-optional.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/Kconfig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)arch/microblaze/Kconfig +1
-5@@ -7,12 +7,8 @@ config SYS_ARCH config STATIC_RELA def_bool y -choice - prompt "Target select" - optional - config TARGET_MICROBLAZE_GENERIC - bool "Support microblaze-generic" + def_bool y select BOARD_LATE_INIT select DM select DM_SERIAL@@ -26,8 +22,8 @@ config TARGET_MICROBLAZE_GENERIC select MTD select SPI imply CMD_DMQuoted 8 lines
arch/microblaze/Kconfig config TARGET_MICROBLAZE_GENERIC · line 28
Quoted 6 lines
arch/microblaze/Kconfig +2
-2- -endchoice + help + Support microblaze-generic source "board/xilinx/Kconfig" source "board/xilinx/microblaze-generic/Kconfig"Applied.
Please drop this for now, I need to do a v2 and I've found another randconfig that gives me:
WARNING: unmet direct dependencies detected forXILINX_MICROBLAZE0_PVR
Depends on [n]: MICROBLAZE [=y] &&TARGET_MICROBLAZE_GENERIC[=n] Selected by [y]:
-CPU_MICROBLAZE[=y] && CPU [=y] && MICROBLAZE [=y]Quoted 7 lines
Quoted 1 line
I expect this is from cpuinfo driver.
Yes, it is. But it's one of the problems randconfig exposes since it does funny things when generating a valid .config, and seeing what blows up. What I have in progress now is removing
TARGET_MICROBLAZE_GENERICentirely and using MICROBLAZE in the few tests.it should be fine to mark it as dependency.
M
drivers/cpu/Kconfig +0
-0
drivers/cpu/Kconfig config CPU_ARMV8 · line 41
Quoted 9 lines
drivers/cpu/Kconfig +1
-2@@ -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.
That's another way to go yes, if you want to post that I'll drop this part of my current WIP branches, thanks!
Signature · 1 line
Tom