* [PATCH 0/6] Rework the BLK symbol usage in Kconfig @ 2024-12-2022:22 Tom Rini 2024-12-2022:22 ` [PATCH 1/6] drivers/mmc/Kconfig: Remove extraneous BLK dependencies Tom Rini ` (6 more replies) 0 siblings, 7 replies; 37+ messages in thread From: Tom Rini @ 2024-12-2022:22 UTC (permalink / raw) To: u-boot
Hey all,
One problem we have today is how the BLK symbol is set and used in Kconfig files. Part of the challenge is that we use it as a gating symbol for"we have a block device" and also for"enable block device library code". What this series does is move to always use "select BLK" by block drivers(a few were and a few others had it the inverse) and then "depends on BLK" for functionality that needs a block device present. The end result of this series is that a number of platforms which had disabled EFI_LOADER now don't ask forit(they have no block device) and espresso7420 has a regression about MMC support fixed.
* Re: [PATCH 3/6] efi_loader: Depend on BLK 2024-12-2022:22 ` [PATCH 3/6] efi_loader: Depend on BLK Tom Rini @ 2024-12-2022:50 ` Heinrich Schuchardt 0 siblings, 0 replies; 37+ messages in thread From: Heinrich Schuchardt @ 2024-12-2022:50 UTC (permalink / raw) To: Tom Rini, u-boot; +Cc: Ilias Apalodimas
Am 20. Dezember 202423:22:19 MEZ schrieb Tom Rini <trini@konsulko.com>: >In reworking the BLK usage in Kconfig, I found there's a few issues with >EFI_LOADER=y and BLK=n. In general, we can easily say that >lib/efi_loader/efi_file.c also should only be built with CONFIG_BLK. >That however leaves the bootmgr code, eficonfig code and then parts of >efi_device_path.c, efi_boottime.c and efi_setup.c which functionally >depend on BLK. While these calls can be if'd out, I'm unsure if the >result is usable. So rather than leave that buildable and imply that it >is, I'm leaving that combination non-buildable and commenting that >EFI_LOADER depends on BLK in the Kconfig currently.
EFI booting using only PXE or HTTP should be possible. But I admit we did not work on support for diskless devices, yet.
> >Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
这样再后续的邮件中就可以带上了Reviewed-by信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
From: Tom Rini @ 2025-01-151:22 UTC (permalink / raw) To: u-boot; +Cc: Heinrich Schuchardt
In reworking the BLK usage in Kconfig, I found there's a few issues with EFI_LOADER=y and BLK=n. In general, we can easily say that lib/efi_loader/efi_file.c also should only be built with CONFIG_BLK. That however leaves the bootmgr code, eficonfig code and then parts of efi_device_path.c, efi_boottime.c and efi_setup.c which functionally depend on BLK. While these calls can be if'd out, I'm unsure if the result is usable. So rather than leave that buildable and imply that it is, I'm leaving that combination non-buildable and commenting that EFI_LOADER depends on BLK in the Kconfig currently.
Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> ---