Skip to content

expo: Support a persistent configuration editor

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19expo: Make scene_obj_find() take a const sceneboot/scene.c boot/scene_internal.h+2 -20 replies
2/19abuf: Allow incrementing the sizeinclude/abuf.h lib/abuf.c test/lib/abuf.c+39 -00 replies
3/19expo: Provide a way to iterate through all scene objectsboot/expo.c boot/scene.c boot/scene_internal.h +1 more+100 -00 replies
4/19expo: Refactor menu_build() to return the object createdboot/expo_build.c+8 -70 replies
5/19expo: Split out cedit into its own headerboot/cedit.c cmd/cedit.c include/cedit.h +1 more+38 -240 replies
6/19expo: Move cedit test into its own file and tidytest/boot/Makefile test/boot/cedit.c test/boot/expo.c+54 -430 replies
7/19expo: Add a function to prepare a ceditboot/cedit.c include/cedit.h+41 -60 replies
8/19expo: Tidy up the expo.py tool and usagedoc/develop/expo.rst test/boot/files/expo_ids.h test/boot/files/expo_layout.dts +2 more+65 -460 replies
9/19expo: Add documentation for the configuration editordoc/develop/cedit.rst doc/develop/expo.rst doc/develop/index.rst +1 more+153 -00 replies
10/19expo: Move cedit theme under bootstdarch/sandbox/dts/sandbox.dtsi arch/sandbox/dts/test.dts cmd/cedit.c +1 more+20 -130 replies
11/19doc: Expand documentation for the cedit commanddoc/usage/cmd/cedit.rst+15 -00 replies
12/19expo: Export scene_menuitem_find() for use in internal codeboot/scene_internal.h boot/scene_menu.c+14 -20 replies
13/19expo: cedit: Support writing settings to a fileboot/cedit.c cmd/cedit.c doc/usage/cmd/cedit.rst +2 more+270 -30 replies
14/19expo: cedit: Support reading settings from a fileboot/cedit.c cmd/cedit.c doc/usage/cmd/cedit.rst +2 more+131 -30 replies
15/19expo: cedit: Support writing settings to environment varsboot/cedit.c cmd/cedit.c doc/usage/cmd/cedit.rst +2 more+172 -140 replies
16/19expo: cedit: Support reading settings from environment varsboot/cedit.c cmd/cedit.c doc/usage/cmd/cedit.rst +2 more+105 -10 replies
17/19expo: cedit: Support writing settings to CMOS RAMboot/cedit.c boot/expo_build.c cmd/cedit.c +6 more+266 -30 replies
18/19expo: cedit: Support reading settings from CMOS RAMboot/cedit.c boot/scene_internal.h boot/scene_menu.c +4 more+194 -10 replies
19/19expo: doc: Update documentation for persistent settingsdoc/develop/cedit.rst doc/develop/expo.rst+15 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/19] expo: Support a persistent configuration editor

So far cedit does not support reading and writing the configuration. This series add several features related to this:

First, it adds support for using a file on a filesystem. This is in FDT format and provides enough information to reset the cedit back to the saved settings.

Second, it adds support for using the U-Boot environment. Since the environment is generally saved across reboots, this feature provides an easy way of storing the state on most boards. The variables all have a 'c.' prefix to avoid confusion with other variables.

Finally it adds support for using CMOS RAM. This is commonly used on x86 devices to store BIOS settings. The expo schema provides information on the register layout.

Some other minor tweaks and improvements are included along the way.

Simon Glass (19):
expo: Make scene_obj_find() take a const scene
abuf: Allow incrementing the size
expo: Provide a way to iterate through all scene objects
expo: Refactor menu_build() to return the object created
expo: Split out cedit into its own header
expo: Move cedit test into its own file and tidy
expo: Add a function to prepare a cedit
expo: Tidy up the expo.py tool and usage
expo: Add documentation for the configuration editor
expo: Move cedit theme under bootstd
doc: Expand documentation for the cedit command
expo: Export scene_menuitem_find() for use in internal code
expo: cedit: Support writing settings to a file
expo: cedit: Support reading settings from a file
expo: cedit: Support writing settings to environment vars
expo: cedit: Support reading settings from environment vars
expo: cedit: Support writing settings to CMOS RAM
expo: cedit: Support reading settings from CMOS RAM
expo: doc: Update documentation for persistent settings

 arch/sandbox/dts/sandbox.dtsi   |  12 +-
 arch/sandbox/dts/test.dts       |  12 +-
 boot/cedit.c                    | 569 +++++++++++++++++++++++++++++++-
 boot/expo.c                     |  15 +
 boot/expo_build.c               |  22 +-
 boot/scene.c                    |  18 +-
 boot/scene_internal.h           |  50 ++-
 boot/scene_menu.c               |  20 +-
 cmd/cedit.c                     | 209 +++++++++++-
 doc/develop/cedit.rst           | 169 ++++++++++
 doc/develop/expo.rst            |  48 ++-
 doc/develop/index.rst           |   1 +
 doc/usage/cmd/cedit.rst         | 117 +++++++
 include/abuf.h                  |   9 +
 include/cedit.h                 | 125 +++++++
 include/expo.h                  |  33 +-
 lib/abuf.c                      |   5 +
 test/boot/Makefile              |   1 +
 test/boot/cedit.c               | 198 +++++++++++
 test/boot/expo.c                |  88 ++---
 test/boot/files/expo_ids.h      |  25 ++
 test/boot/files/expo_layout.dts |  28 +-
 test/lib/abuf.c                 |  25 ++
 test/py/tests/test_ut.py        |   4 +-
 tools/expo.py                   |  22 +-
 25 files changed, 1679 insertions(+), 146 deletions(-)
 create mode 100644 doc/develop/cedit.rst
 create mode 100644 include/cedit.h
 create mode 100644 test/boot/cedit.c
 create mode 100644 test/boot/files/expo_ids.h
Signature · 1 line
2.41.0.694.ge786442a9b-goog