Add a FreeBSD option that enables the API and the data cache command
as both are needed to boot the FreeBSD loader.

Signed-off-by: Emmanuel Vadot <m...@bidouilliste.com>
---
 common/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index c50d6ebb2a..acf20ade1d 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -502,4 +502,15 @@ config HASH
 
 endmenu
 
+config DISTRO_FREEBSD
+       bool "Enable FreeBSD boot"
+       select API if !ARM64
+       select CMD_CACHE
+       default n
+       help
+         This options adds boot configuration that can run the FreeBSD
+         loader. When enabled the distro_bootcmd will be expanded to
+         include scan_dev_for_freebsd which search for the FreeBSD loader
+         and if found run it.
+
 source "common/spl/Kconfig"
-- 
2.15.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to