Skip to content

expo: Add an initial configuration editor

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest40 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/40binman: Correct coverage gap in controltools/binman/control.py+1 -10 replies
2/40expo: Correct some header-file commentsboot/scene_internal.h+5 -30 replies
3/40expo: Convert to using a string ID for the scene titleboot/scene.c include/expo.h test/boot/expo.c+17 -200 replies
4/40sandbox: Fix quiting when the LCD window is closedarch/sandbox/cpu/sdl.c+2 -10 replies
5/40test: Restore test behaviour on failureinclude/test/ut.h+18 -180 replies
6/40gpio: Avoid using an invalid ofnodedrivers/gpio/gpio-uclass.c+1 -11 reply
7/40dm: core: Avoid registering an inaccessible treedrivers/core/ofnode.c+9 -00 replies
8/40video: Drop #ifdefs from console_truetypedrivers/video/console_truetype.c+56 -560 replies
9/40video: Provide a way to clear part of the consoledrivers/video/console_truetype.c drivers/video/video-uclass.c include/video.h+71 -690 replies
10/40expo: Store the console in the expoboot/expo.c boot/scene.c include/expo.h+13 -80 replies
11/40expo: Avoid automatically arranging the sceneboot/bootflow_menu.c boot/expo.c boot/scene.c +2 more+21 -180 replies
12/40console: Correct truetype spacing errordrivers/video/console_truetype.c test/dm/video.c+4 -40 replies
13/40expo: Rename exp_set_text_mode()boot/bootflow_menu.c boot/expo.c include/expo.h +1 more+5 -50 replies
14/40fs: Create functions to load and allocate a fileboot/bootmeth-uclass.c fs/fs.c include/fs.h+98 -280 replies
15/40cat: Update command to use fs_load_alloc()cmd/cat.c+17 -300 replies
16/40fdt: Align the start of the livetreeinclude/dm/of.h lib/of_live.c test/dm/ofnode.c+32 -10 replies
17/40fdt: Clarify the fdt pre-relocation warningdrivers/core/ofnode.c+1 -10 replies
18/40fdt: Allow more general use of livetreedrivers/core/ofnode.c include/dm/ofnode.h include/of_live.h +2 more+66 -50 replies
19/40bootstd: Add a separate log category for expoboot/expo.c boot/scene.c boot/scene_menu.c +2 more+8 -10 replies
20/40video: Correct docs for video_index_to_colour()include/video.h+1 -10 replies
21/40video: Allow temporary colour changesdrivers/video/vidconsole-uclass.c include/video_console.h+50 -00 replies
22/40console: Allow measuring the bounding box of textdrivers/video/console_truetype.c drivers/video/vidconsole-uclass.c include/video_console.h+132 -20 replies
23/40expo: Allow setting the start of the dynamic-ID rangeboot/expo.c boot/scene.c doc/develop/expo.rst +1 more+37 -100 replies
24/40video: Use enum with video_index_to_colour()drivers/video/video-uclass.c include/video.h+3 -30 replies
25/40expo: Add width and height to objectsboot/scene.c boot/scene_menu.c include/expo.h +1 more+43 -300 replies
26/40expo: Use flags for objectsboot/scene.c boot/scene_internal.h include/expo.h +1 more+40 -70 replies
27/40expo: Calculate text bounding-box correctlyboot/scene.c+22 -80 replies
28/40expo: Set up the width and height of objectsboot/expo.c boot/scene.c boot/scene_internal.h +4 more+239 -20 replies
29/40expo: Support simple themesboot/expo.c boot/scene.c boot/scene_internal.h +3 more+95 -30 replies
30/40expo: Move menu-item selection into a functionboot/scene_menu.c test/boot/expo.c+55 -140 replies
31/40expo: Support drawing of popup menusboot/scene_menu.c include/expo.h+46 -210 replies
32/40expo: Rename EXPOACT_POINT to EXPOACT_POINT_ITEMboot/scene_menu.c include/expo.h test/boot/expo.c+7 -70 replies
33/40expo: Draw popup menus in both opened and closed statesboot/scene.c boot/scene_internal.h boot/scene_menu.c +1 more+130 -20 replies
34/40expo: Draw the current opened menu on topboot/expo.c boot/scene.c boot/scene_internal.h +1 more+80 -00 replies
35/40expo: Implement the keypress logic for popup menusboot/scene.c boot/scene_menu.c doc/develop/expo.rst +1 more+96 -40 replies
36/40expo: Add spacing around menus and itemsarch/sandbox/dts/test.dts boot/expo.c boot/scene.c +2 more+38 -150 replies
37/40expo: Support building an expo from a description filearch/sandbox/dts/cedit.dtsi arch/sandbox/dts/test.dts boot/Makefile +6 more+870 -70 replies
38/40expo: Add a configuration editorboot/Kconfig boot/Makefile boot/cedit.c +11 more+370 -40 replies
39/40expo: Add tests for the configuration editorarch/sandbox/dts/sandbox.dtsi arch/sandbox/dts/test.dts test/boot/expo.c +3 more+280 -00 replies
40/40RFC: video: Update stb_truetypedrivers/video/console_truetype.c drivers/video/stb_truetype.h test/dm/video.c+2077 -2190 replies

Reviews trailers per patch

1 of 40 patches has a Reviewed-by or Acked-by.

PatchHeiko Schocher
1/40
2/40
3/40
4/40
5/40
6/40R-b
7/40
8/40
9/40
10/40
11/40
12/40
13/40
14/40
15/40
16/40
17/40
18/40
19/40
20/40
21/40
22/40
23/40
24/40
25/40
26/40
27/40
28/40
29/40
30/40
31/40
32/40
33/40
34/40
35/40
36/40
37/40
38/40
39/40
40/40

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/40] expo: Add an initial configuration editor

This series provides a means to edit board configuration in U-Boot in a graphical manner. It supports multiple menu items and allows moving between them and selecting items. The configuration is defined in a data format so that code is not needed in most cases. This allows the board configuration to be provided in the devicetree.

This is still at an early stage, since it only supports menus. Numeric values are not supported. Most importantly it does not yet support loading or saving the configuration selected by the user.

To try it out you can use something like:

./tools/expo.py -e test/boot/files/expo_layout.dts \
-l test/boot/files/expo_layout.dts -o cedit.dtb
./u-boot -Tl -c "cedit load hostfs - cedit.dtb; cedit run"

Use the arrow keys to move between menus, enter to open a menu, escape to exit.

Various minor fixes and improvements are provided in this series:
- Update STB TrueType library to latest
- Support clearing part of the video display
- Support multiple livetrees loaded at runtime
- Support loading and allocating a file
- Support proper measuring of text in expo
- Support simple themes for expo

This series is available at u-boot-dm/cedit-working

Simon Glass (40):
binman: Correct coverage gap in control
expo: Correct some header-file comments
expo: Convert to using a string ID for the scene title
sandbox: Fix quiting when the LCD window is closed
test: Restore test behaviour on failure
gpio: Avoid using an invalid ofnode
dm: core: Avoid registering an inaccessible tree
video: Drop #ifdefs from console_truetype
video: Provide a way to clear part of the console
expo: Store the console in the expo
expo: Avoid automatically arranging the scene
console: Correct truetype spacing error
expo: Rename exp_set_text_mode()
fs: Create functions to load and allocate a file
cat: Update command to use fs_load_alloc()
fdt: Align the start of the livetree
fdt: Clarify the fdt pre-relocation warning
fdt: Allow more general use of livetree
bootstd: Add a separate log category for expo
video: Correct docs for video_index_to_colour()
video: Allow temporary colour changes
console: Allow measuring the bounding box of text
expo: Allow setting the start of the dynamic-ID range
video: Use enum with video_index_to_colour()
expo: Add width and height to objects
expo: Use flags for objects
expo: Calculate text bounding-box correctly
expo: Set up the width and height of objects
expo: Support simple themes
expo: Move menu-item selection into a function
expo: Support drawing of popup menus
expo: Rename EXPOACT_POINT to EXPOACT_POINT_ITEM
expo: Draw popup menus in both opened and closed states
expo: Draw the current opened menu on top
expo: Implement the keypress logic for popup menus
expo: Add spacing around menus and items
expo: Support building an expo from a description file
expo: Add a configuration editor
expo: Add tests for the configuration editor
RFC: video: Update stb_truetype

 arch/sandbox/cpu/sdl.c            |    3 +-
 arch/sandbox/dts/cedit.dtsi       |   64 +
 arch/sandbox/dts/sandbox.dtsi     |    6 +
 arch/sandbox/dts/test.dts         |   13 +
 boot/Kconfig                      |   14 +
 boot/Makefile                     |    3 +-
 boot/bootflow_menu.c              |    6 +-
 boot/bootmeth-uclass.c            |   30 +-
 boot/cedit.c                      |  163 +++
 boot/expo.c                       |  102 +-
 boot/expo_build.c                 |  401 +++++
 boot/scene.c                      |  361 ++++-
 boot/scene_internal.h             |   84 +-
 boot/scene_menu.c                 |  290 +++-
 cmd/Kconfig                       |    9 +
 cmd/Makefile                      |    1 +
 cmd/cat.c                         |   47 +-
 cmd/cedit.c                       |   93 ++
 common/log.c                      |    1 +
 configs/sandbox_defconfig         |    1 +
 doc/develop/expo.rst              |  305 +++-
 doc/usage/cmd/cedit.rst           |   31 +
 doc/usage/index.rst               |    1 +
 drivers/core/ofnode.c             |   27 +-
 drivers/gpio/gpio-uclass.c        |    2 +-
 drivers/video/console_truetype.c  |  259 ++--
 drivers/video/stb_truetype.h      | 2257 ++++++++++++++++++++++++++---
 drivers/video/vidconsole-uclass.c |   42 +
 drivers/video/video-uclass.c      |   54 +-
 fs/fs.c                           |   58 +
 include/dm/of.h                   |    2 +
 include/dm/ofnode.h               |   10 +
 include/expo.h                    |  209 ++-
 include/fs.h                      |   38 +
 include/log.h                     |    2 +
 include/of_live.h                 |   10 +
 include/test/cedit-test.h         |   29 +
 include/test/ut.h                 |   36 +-
 include/video.h                   |   22 +-
 include/video_console.h           |   78 +
 lib/of_live.c                     |   11 +-
 test/boot/expo.c                  |  241 ++-
 test/boot/files/expo_layout.dts   |   84 ++
 test/dm/ofnode.c                  |   45 +
 test/dm/video.c                   |    6 +-
 test/py/tests/test_ut.py          |   10 +
 tools/binman/control.py           |    2 +-
 tools/expo.py                     |  130 ++
 48 files changed, 5110 insertions(+), 583 deletions(-)
 create mode 100644 arch/sandbox/dts/cedit.dtsi
 create mode 100644 boot/cedit.c
 create mode 100644 boot/expo_build.c
 create mode 100644 cmd/cedit.c
 create mode 100644 doc/usage/cmd/cedit.rst
 create mode 100644 include/test/cedit-test.h
 create mode 100644 test/boot/files/expo_layout.dts
 create mode 100755 tools/expo.py
Signature · 1 line
2.41.0.rc0.172.g3f132b7071-goog