diff options
| author | Simon Glass <[email protected]> | 2023-08-14 16:40:28 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-08-25 13:54:33 -0400 |
| commit | d5737b3f6a0239caf2dd5578a4bc8ebfccfdee3b (patch) | |
| tree | e386f9e48e4b11213c1ae52634ed066f44e121af /doc/develop | |
| parent | 8d0f890a0b9b0f7bf0b529f18f81a45ec6f64eb1 (diff) | |
expo: Tidy up the expo.py tool and usage
Tidy up this tool a little:
- define which arguments are needed
- split the enum values out into a header file
- warn if no enum values are found
- display the dtc error if something goes wrong
- avoid a Python traceback on error
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc/develop')
| -rw-r--r-- | doc/develop/expo.rst | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/doc/develop/expo.rst b/doc/develop/expo.rst index 2ac4af232da..0643283ae48 100644 --- a/doc/develop/expo.rst +++ b/doc/develop/expo.rst @@ -367,22 +367,27 @@ strings are provided inline in the nodes where they are used. :: - #define ID_PROMPT 1 - #define ID_SCENE1 2 - #define ID_SCENE1_TITLE 3 - - #define ID_CPU_SPEED 4 - #define ID_CPU_SPEED_TITLE 5 - #define ID_CPU_SPEED_1 6 - #define ID_CPU_SPEED_2 7 - #define ID_CPU_SPEED_3 8 - - #define ID_POWER_LOSS 9 - #define ID_AC_OFF 10 - #define ID_AC_ON 11 - #define ID_AC_MEMORY 12 - - #define ID_DYNAMIC_START 13 + /* this comment is parsed by the expo.py tool to insert the values below + + enum { + ZERO, + ID_PROMPT, + ID_SCENE1, + ID_SCENE1_TITLE, + + ID_CPU_SPEED, + ID_CPU_SPEED_TITLE, + ID_CPU_SPEED_1, + ID_CPU_SPEED_2, + ID_CPU_SPEED_3, + + ID_POWER_LOSS, + ID_AC_OFF, + ID_AC_ON, + ID_AC_MEMORY, + + ID_DYNAMIC_START, + */ &cedit { dynamic-start = <ID_DYNAMIC_START>; |
