Skip to contentSkip to conversation

bootstd: Rework BLK dependency

PATCH In review Tom Rini 2 participants 5 messages Apr 23, 2025 – May 6, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 bootstd: Rework BLK dependency

The bootstd code itself does not have any dependency on BLK in order to build. However, in order to minimize size growth of non-migrated platforms, change this from being "default y" to "default y if BLK". This will make it easier to begin migration of platforms which do not have any BLK-class device but do want to use bootstd.

---
Cc: Simon Glass <[email protected]>

---
 boot/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
boot/Kconfig +2 -2
index fb37d912bc95..0e796a71a82c 100644
@@ -427,8 +427,8 @@ config BOOT_DEFAULTS
 
 menuconfig BOOTSTD
 	bool "Standard boot"
-	default y
-	depends on DM && OF_CONTROL && BLK
+	default y if BLK
+	depends on DM && OF_CONTROL
 	help
 	  U-Boot supports a standard way of locating something to boot,
 	  typically an Operating System such as Linux, provided by a distro such
Signature · 1 line
2.43.0
#1 lore raw
Quoted 7 lines · Tom Rini

The bootstd code itself does not have any dependency on BLK in order to build. However, in order to minimize size growth of non-migrated platforms, change this from being "default y" to "default y if BLK". This will make it easier to begin migration of platforms which do not have any BLK-class device but do want to use bootstd.

Quoted 6 lines

---
Cc: Simon Glass <[email protected]>

---
 boot/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for letting this happen.

- Simon

Quoted 19 lines
boot/Kconfig +2 -3
index fb37d912bc95..0e796a71a82c 100644
@@ -427,8 +427,8 @@ config BOOT_DEFAULTS
 
 menuconfig BOOTSTD
        bool "Standard boot"
-       default y
-       depends on DM && OF_CONTROL && BLK
+       default y if BLK
+       depends on DM && OF_CONTROL
        help
          U-Boot supports a standard way of locating something to boot,
          typically an Operating System such as Linux, provided by a distro such
--

2.43.0

author
#2 lore raw
Quoted 8 lines · Simon Glass
Quoted 7 lines · Tom Rini

The bootstd code itself does not have any dependency on BLK in order to build. However, in order to minimize size growth of non-migrated platforms, change this from being "default y" to "default y if BLK". This will make it easier to begin migration of platforms which do not have any BLK-class device but do want to use bootstd.

Quoted 8 lines
Quoted 6 lines

---
Cc: Simon Glass <[email protected]>

---
 boot/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for letting this happen.

It's what I was asking you to do, FWIW. As I was unsure what part of my message was unclear, I just went and did it.

Signature · 1 line
Tom
#3 lore raw

Hi Tom,

Quoted 17 lines · Tom Rini
Quoted 15 lines · Simon Glass
Quoted 13 lines · Tom Rini

The bootstd code itself does not have any dependency on BLK in order to build. However, in order to minimize size growth of non-migrated platforms, change this from being "default y" to "default y if BLK". This will make it easier to begin migration of platforms which do not have any BLK-class device but do want to use bootstd.

---
Cc: Simon Glass <[email protected]>

---
 boot/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line

Thank you for letting this happen.

It's what I was asking you to do, FWIW. As I was unsure what part of my message was unclear, I just went and did it.

OK good. It certainly wasn't clear to me.

Regards,
Simon

author
#4 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini

The bootstd code itself does not have any dependency on BLK in order to build. However, in order to minimize size growth of non-migrated platforms, change this from being "default y" to "default y if BLK". This will make it easier to begin migration of platforms which do not have any BLK-class device but do want to use bootstd.

[...]

Applied to u-boot/master, thanks!

[1/1] bootstd: Rework BLK dependency

      commit: 3b6760ddeb4ef940226921017cd9088c89784b01
Signature · 1 line
Tom