[PATCH 8/9] bootstd: cros: Correct condition for reading the kernel
Simon Glass
sjg at chromium.org
Thu Aug 17 03:51:43 CEST 2023
A typo prevents this code from behaving as it should. The tests pass
because they do not actually read the kernel. Fix the typo.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
boot/bootmeth_cros.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/boot/bootmeth_cros.c b/boot/bootmeth_cros.c
index 20e0b1e89c36..3439d31121b3 100644
--- a/boot/bootmeth_cros.c
+++ b/boot/bootmeth_cros.c
@@ -406,7 +406,7 @@ static int cros_read_file(struct udevice *dev, struct bootflow *bflow,
return -ENOSYS;
}
-#if CONFIG_IS_ENABLED(BOOSTD_FULL)
+#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
static int cros_read_all(struct udevice *dev, struct bootflow *bflow)
{
int ret;
@@ -458,7 +458,7 @@ static struct bootmeth_ops cros_bootmeth_ops = {
.read_bootflow = cros_read_bootflow,
.read_file = cros_read_file,
.boot = cros_boot,
-#if CONFIG_IS_ENABLED(BOOSTD_FULL)
+#if CONFIG_IS_ENABLED(BOOTSTD_FULL)
.read_all = cros_read_all,
#endif /* BOOSTD_FULL */
};
--
2.41.0.694.ge786442a9b-goog
More information about the U-Boot
mailing list