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
tree: 310c92aec3c4210d35a545892e9d96774059b465
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-tpm1/
  13. LICENSE
  14. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.