expo: Move cedit theme under bootstd
authorSimon Glass <sjg@chromium.org>
Mon, 14 Aug 2023 22:40:30 +0000 (16:40 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 25 Aug 2023 17:54:33 +0000 (13:54 -0400)
This is related to standard boot, so put it under the same node. This may
simplify schema upstreaming later.

Mention themes in the documentation while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dtsi
arch/sandbox/dts/test.dts
cmd/cedit.c
doc/develop/cedit.rst

index 8aaf911..ff7e558 100644 (file)
                stdout-path = "/serial";
        };
 
-       cedit-theme {
-               font-size = <30>;
-               menu-inset = <3>;
-               menuitem-gap-y = <1>;
-       };
-
        alarm_wdt: alarm-wdt {
                compatible = "sandbox,alarm-wdt";
                timeout-sec = <5>;
        bootstd {
                compatible = "u-boot,boot-std";
                filename-prefixes = "./";
+
+               cedit-theme {
+                       font-size = <30>;
+                       menu-inset = <3>;
+                       menuitem-gap-y = <1>;
+               };
        };
 
        buttons {
index f351d5c..084cb88 100644 (file)
                        menuitem-gap-y = <1>;
                };
 
+               cedit-theme {
+                       font-size = <30>;
+                       menu-inset = <3>;
+                       menuitem-gap-y = <1>;
+               };
+
                /*
                 * This is used for the VBE OS-request tests. A FAT filesystem
                 * created in a partition with the VBE information appearing
        cedit: cedit {
        };
 
-       cedit-theme {
-               font-size = <30>;
-               menu-inset = <3>;
-               menuitem-gap-y = <1>;
-       };
-
        fuzzing-engine {
                compatible = "sandbox,fuzzing-engine";
        };
index 5f0e844..e98121b 100644 (file)
@@ -65,7 +65,7 @@ static int do_cedit_run(struct cmd_tbl *cmdtp, int flag, int argc,
                return CMD_RET_FAILURE;
        }
 
-       node = ofnode_path("/cedit-theme");
+       node = ofnode_path("/bootstd/cedit-theme");
        if (ofnode_valid(node)) {
                ret = expo_apply_theme(cur_exp, node);
                if (ret)
index 48262ee..8f0a554 100644 (file)
@@ -145,3 +145,10 @@ Multiple scenes
 Expo supports multiple scenes but has no pre-determined way of moving between
 them. You could use selection of a menu item as a signal to change the scene,
 but this is not currently implemented in the cedit code (see `cedit_run()`).
+
+
+Themes
+------
+
+The configuration editor uses simple expo themes. The theme is read from
+`/bootstd/cedit-theme` in the devicetree.