summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-03-10 10:26:10 -0600
committerTom Rini <[email protected]>2026-03-25 14:37:06 -0600
commit4ed440e6be80cbbb45e11b01d7cfa5ce3064a2f0 (patch)
tree7e778ec84703839e1914cae25c5706c832aea40e
parente67cf100eead1f918a3ff7a591e15fa0d9804189 (diff)
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. Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--drivers/net/phy/Kconfig1
-rw-r--r--drivers/net/phy/airoha/Kconfig1
-rw-r--r--drivers/net/phy/mediatek/Kconfig1
-rw-r--r--lib/Kconfig8
4 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index 709f1c91eb2..5d2277a4602 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -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
diff --git a/drivers/net/phy/airoha/Kconfig b/drivers/net/phy/airoha/Kconfig
index fcace9a24ac..da8747939e3 100644
--- a/drivers/net/phy/airoha/Kconfig
+++ b/drivers/net/phy/airoha/Kconfig
@@ -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.
diff --git a/drivers/net/phy/mediatek/Kconfig b/drivers/net/phy/mediatek/Kconfig
index 933271f01fa..1ead391c7b6 100644
--- a/drivers/net/phy/mediatek/Kconfig
+++ b/drivers/net/phy/mediatek/Kconfig
@@ -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
diff --git a/lib/Kconfig b/lib/Kconfig
index 931d5206936..e2051987352 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -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.