]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: bootm: Enable more bootm OS methods
authorSimon Glass <sjg@chromium.org>
Sat, 16 Dec 2023 03:14:11 +0000 (20:14 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 21:07:52 +0000 (16:07 -0500)
It is useful for sandbox to build as much code as possible. Enable
support for booting various other operating systems. Add the missing
cache functions.

These operating systems do not actually boot on sandbox, of course.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
configs/sandbox_defconfig

index a1c5c7c4311a0640d2845d1aa0303d0014d9b99b..d134905e3f5f17156eb840be2cd8b1d3bce8138f 100644 (file)
@@ -286,6 +286,14 @@ void sandbox_set_enable_pci_map(int enable)
        enable_pci_map = enable;
 }
 
+void dcache_enable(void)
+{
+}
+
+void dcache_disable(void)
+{
+}
+
 int dcache_status(void)
 {
        return 1;
index af3e7d85be39b8aa36b2fddfa0b8915793d5c0f6..fd9ca24f8dbee508ff9e8ec17529cc7c8b339ad3 100644 (file)
@@ -44,10 +44,11 @@ CONFIG_CMD_CPU=y
 CONFIG_CMD_LICENSE=y
 CONFIG_CMD_BOOTM_PRE_LOAD=y
 CONFIG_CMD_BOOTZ=y
+CONFIG_BOOTM_OPENRTOS=y
+CONFIG_BOOTM_OSE=y
 CONFIG_CMD_BOOTEFI_HELLO=y
 CONFIG_CMD_BOOTMENU=y
 CONFIG_CMD_ABOOTIMG=y
-# CONFIG_CMD_ELF is not set
 CONFIG_CMD_ASKENV=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_ERASEENV=y