]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fw_loader: Introduce SUPPORTS_FW_LOADER symbol
authorTom Rini <trini@konsulko.com>
Tue, 10 Mar 2026 16:26:10 +0000 (10:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 25 Mar 2026 20:37:06 +0000 (14:37 -0600)
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 <trini@konsulko.com>
drivers/net/phy/Kconfig
drivers/net/phy/airoha/Kconfig
drivers/net/phy/mediatek/Kconfig
lib/Kconfig

index 709f1c91eb2dee42e57963f0a3bca6f0eaba4cca..5d2277a4602e540d52a0fd1744eb22c23df78e40 100644 (file)
@@ -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
index fcace9a24ac9809b1c3a2bbd26d611584a3973c5..da8747939e316564219672949fbc2ada67a72337 100644 (file)
@@ -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.
index 933271f01faf156b69e65d565352a269f7d8dab4..1ead391c7b6c37f1e72c76ca3c48bd534ecd8261 100644 (file)
@@ -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
index 931d5206936ab00276820371d426e429d87d8d64..e20519873524455f548d72064ed2f5ba4e597da1 100644 (file)
@@ -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.