Skip to contentSkip to conversation

fw_loader: Introduce SUPPORTS_FW_LOADER symbol

PATCH In review Tom Rini 1 participant 2 messages Mar 10 – Mar 25

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 fw_loader: Introduce SUPPORTS_FW_LOADER symbol

The implementation of FW_LOADER requires CMDLINE to be enabled, and expressses this. In order to not have to have every users also depends on CMDLINE introduce SUPPORTS_FW_LOADER. This depends on CMDLINE and ENV_SUPPORT and then we have all users depends on SUPPORTS_FW_LOADER.

---
Cc: Marek Vasut <[email protected]>

---
 drivers/net/phy/Kconfig          | 1 +
 drivers/net/phy/airoha/Kconfig   | 1 +
 drivers/net/phy/mediatek/Kconfig | 1 +
 lib/Kconfig                      | 8 ++++++--
 4 files changed, 9 insertions(+), 2 deletions(-)
drivers/net/phy/Kconfig +1 -0
index 709f1c91eb2d..5d2277a4602e 100644
@@ -91,6 +91,7 @@ menuconfig PHY_AQUANTIA
 config PHY_AQUANTIA_UPLOAD_FW
 	bool "Aquantia firmware loading support"
 	depends on PHY_AQUANTIA
+	depends on SUPPORTS_FW_LOADER
 	select FW_LOADER
 	help
 	  Aquantia PHYs use firmware which can be either loaded automatically
drivers/net/phy/airoha/Kconfig +1 -0
index 999564e48483..259ef6af005a 100644
@@ -5,6 +5,7 @@ menuconfig PHY_AIROHA
 config PHY_AIROHA_EN8811
 	bool "Airoha Ethernet EN8811H support"
 	depends on PHY_AIROHA
+	depends on SUPPORTS_FW_LOADER
 	select FW_LOADER
 	help
 	  AIROHA EN8811H supported.
drivers/net/phy/mediatek/Kconfig +1 -0
index 933271f01faf..1ead391c7b6c 100644
@@ -6,6 +6,7 @@ config MTK_NET_PHYLIB
 config PHY_MEDIATEK_2P5GE
 	bool "MediaTek built-in 2.5Gb ethernet PHYs"
 	depends on OF_CONTROL && (TARGET_MT7987 || TARGET_MT7988)
+	depends on SUPPORTS_FW_LOADER
 	select FW_LOADER
 	select MTK_NET_PHYLIB
 	help
lib/Kconfig +6 -2
index 931d5206936a..e20519873524 100644
@@ -71,10 +71,14 @@ config DYNAMIC_CRC_TABLE
 	  Enable this option to calculate entries for CRC tables at runtime.
 	  This can be helpful when reducing the size of the build image
 
-config FW_LOADER
-	bool "Enable firmware loader using environment script"
+config SUPPORTS_FW_LOADER
+	bool
 	depends on CMDLINE
 	depends on ENV_SUPPORT
+
+config FW_LOADER
+	bool "Enable firmware loader using environment script"
+	depends on SUPPORTS_FW_LOADER
 	help
 	  Enable this option to make firmware loading using user-provided
 	  U-Boot environment script functionality accessible to U-Boot code.
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

The implementation of FW_LOADER requires CMDLINE to be enabled, and expressses this. In order to not have to have every users also depends on CMDLINE introduce SUPPORTS_FW_LOADER. This depends on CMDLINE and ENV_SUPPORT and then we have all users depends on SUPPORTS_FW_LOADER.

Applied to u-boot/next, thanks!

[1/1] fw_loader: Introduce SUPPORTS_FW_LOADER symbol

      commit: 4ed440e6be80cbbb45e11b01d7cfa5ce3064a2f0
Signature · 1 line
Tom