ttf-console: Add Megapede ttf-console adapter
TTF-console is a new console provider implemented in
Megapede-console-relay to support multi-node serial console streaming
leverage obmc-console
Add The Megapede ttf-console adapter script ttf-console.sh
and the ttf-console.bbclass to help each platform onboarding ttf-console
Platform inherit ttf-console and define ttf_console_list() python
function in platform obmc-console_%.bbappend.
obmc-console recipe will
1. Install the ttf-console.sh to /usr/libexec
2. Generate the ttf-console.list to /usr/libexec use the console mapping
information provided by ttf_console_list()
All build sccuess:
http://fusion2/ci/kokoro/prod:gbmc%2Ffirmware-build%2Ffirmware%2Fgerrit/activity/7838bceb-8280-4faa-b9f6-81eee624d164/summary
Tested:
build obmc-console package for platform with ttf-console enabled
```
❯ tree image
image
...
├── libexec
│ ├── readonly-obmc-console-client
│ ├── ttf-console.list
│ └── ttf-console.sh
└── sbin
└── obmc-console-server
❯ cat image/usr/libexec/ttf-console.list
declare -A console_map=(
["host-compute-node-1"]="/etc/obmc-console/server.ttyS2.conf"
["host-compute-node-2"]="/etc/obmc-console/server.ttyS1.conf"
)
```
Google-Bug-Id: 339717081
Change-Id: Id7ffecbeb0dab62b8d1b727281d047ada14fc289
Signed-off-by: Dan Zhang <zhdaniel@google.com>
(cherry picked from commit ea69bd53773007f24d3af3df47749d41a39f778c)
3 files changed