diff mbox series

[18/19] boot: Imply CRC8 with VBE

Message ID 20240829145802.1827952-19-sjg@chromium.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series vbe: Series part E | expand

Commit Message

Simon Glass Aug. 29, 2024, 2:58 p.m. UTC
VBE uses a crc8 checksum to verify that the nvdata is valid, so make
sure it is available if VBE is enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

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

Comments

Tom Rini Aug. 29, 2024, 5:31 p.m. UTC | #1
On Thu, Aug 29, 2024 at 08:58:01AM -0600, Simon Glass wrote:
> VBE uses a crc8 checksum to verify that the nvdata is valid, so make
> sure it is available if VBE is enabled.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  boot/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/boot/Kconfig b/boot/Kconfig
> index afe04c7327a..49e99e5e155 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -716,6 +716,8 @@ config SPL_BOOTMETH_VBE_REQUEST
>  config BOOTMETH_VBE_SIMPLE
>  	bool "Bootdev support for VBE 'simple' method"
>  	default y
> +	imply SPL_CRC8
> +	imply VPL_CRC8
>  	help
>  	  Enables support for VBE 'simple' boot. This allows updating a single
>  	  firmware image in boot media such as MMC. It does not support any sort

I really worry the lack of "if SPL" / "if VPL" here leads to Kconfig
warnings that CI doesn't pick up.
diff mbox series

Patch

diff --git a/boot/Kconfig b/boot/Kconfig
index afe04c7327a..49e99e5e155 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -716,6 +716,8 @@  config SPL_BOOTMETH_VBE_REQUEST
 config BOOTMETH_VBE_SIMPLE
 	bool "Bootdev support for VBE 'simple' method"
 	default y
+	imply SPL_CRC8
+	imply VPL_CRC8
 	help
 	  Enables support for VBE 'simple' boot. This allows updating a single
 	  firmware image in boot media such as MMC. It does not support any sort