summaryrefslogtreecommitdiff
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-04-24 23:31:08 -0600
committerTom Rini <trini@konsulko.com>2022-04-25 10:00:04 -0400
commita950d31abe980ba40a0a94fbf41136550187f8cd (patch)
tree121c65da447165502e8a210924a5ab02635bfd27 /include/env_callback.h
parent201417d700a2ab09f247c1be9952176970c0f6bd (diff)
downloadu-boot-a950d31abe980ba40a0a94fbf41136550187f8cd.tar.gz
bootstd: Add the bootmeth uclass and helpers
A bootmeth is a method of locating an operating system. For now, just add the uclass itself. Drivers for particular bootmeths are added later. If no bootmeths devices are included in the devicetree, create them automatically. This avoids the need for boilerplate in the devicetree files. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index 05e9516a0f..d5d2b2fcad 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -57,6 +57,12 @@
#define NET_CALLBACKS
#endif
+#ifdef CONFIG_BOOTSTD
+#define BOOTSTD_CALLBACK "bootmeths:bootmeths,"
+#else
+#define BOOTSTD_CALLBACK
+#endif
+
/*
* This list of callback bindings is static, but may be overridden by defining
* a new association in the ".callbacks" environment variable.
@@ -65,6 +71,7 @@
ENV_DOT_ESCAPE ENV_FLAGS_VAR ":flags," \
"baudrate:baudrate," \
NET_CALLBACKS \
+ BOOTSTD_CALLBACK \
"loadaddr:loadaddr," \
SILENT_CALLBACK \
SPLASHIMAGE_CALLBACK \