toradex: tdx-cfg-block: Cleanup interactive cfg block creation
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 21 Jul 2022 13:17:34 +0000 (15:17 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 25 Jul 2022 14:12:00 +0000 (16:12 +0200)
commit8b6dc5d3943c269892acb2a426ad4a46a7f7fc49
tree071f5f21a26cad8f0ded1851a52a481d3f0a4ea7
parentcdc39c6aaea33a9a47657f7798090ca973053a2f
toradex: tdx-cfg-block: Cleanup interactive cfg block creation

Simplify interactive config block creation code, instead of having a
a long list of questions and a complex tree of preprocessor directive to
guess the exact SKU, just ask the user to select it from a list.

The modules list is filtered out to include only SKUs that are supported
by the specific u-boot binary in execution.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/common/tdx-cfg-block.c
board/toradex/common/tdx-cfg-block.h
board/toradex/common/tdx-common.c