Skip to content

Fix choice/endchoice kconfig options

Daniel Gomez kdevops 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5terraform: gce: remove redundant string for cpu and mem choiceterraform/gce/Kconfig+15 -410 replies
2/5terraform: aws: hide AWS availability region optionterraform/aws/Kconfig+9 -270 replies
3/5terraform: aws: hide TERRAFORM_AWS_AMI_OWNER and drop AWS name searchterraform/aws/Kconfig+19 -880 replies
4/5terraform: aws: drop multichoice option for TERRAFORM_AWS_VIRT_TYPEterraform/aws/Kconfig+2 -130 replies
5/5terraform: aws: hide TERRAFORM_AWS_INSTANCE_TYPEterraform/aws/Kconfig+1 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLuis Chamberlain
SeriesA-b T-b
1/5
2/5
3/5
4/5
5/5

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 0/5] Fix choice/endchoice kconfig options

Hi,

As you may know, Jeff Layton found the way to fix the choice/enchoice issue by removing the redundant string the config selected is assigned to [1].

[1] 95f5695f fstests: remove redundant string prompts for fstype

These patches are meant to fix that in the terraform section. While most of the patches are trivial, I'd like to know what you guys think about dropping a choice/endchoice config ("AWS name search") that depends on an previous choice/endchoice option ("AWS AMI owner") but we keep the config that the first multichoice was assigned to (TERRAFORM_AWS_NS).

Hope I explained this correctly. Otherwise, please check patch [2] and ask any question.

[2] terraform: aws: hide TERRAFORM_AWS_AMI_OWNER and drop AWS name search

Patch [3] it's the same but with less choice/endchoice configs and perhaps simpler to see the intention.

[3] terraform: aws: hide AWS availability region option

Note: I did add/merge some spelling corrections. If you think it's too noisy and not appropriate, I can make a separate commit for that.

The other patches remove choice/endchoice if only one option is available as Jeff suggested and/or hide the config by removing the redundant string.

Daniel

Daniel Gomez (5):
terraform: gce: remove redundant string for cpu and mem choice
terraform: aws: hide AWS availability region option
terraform: aws: hide TERRAFORM_AWS_AMI_OWNER and drop AWS name search
terraform: aws: drop multichoice option for TERRAFORM_AWS_VIRT_TYPE
terraform: aws: hide TERRAFORM_AWS_INSTANCE_TYPE

 terraform/aws/Kconfig | 160 ++++++++----------------------------------
 terraform/gce/Kconfig |  56 ++++-----------
 2 files changed, 46 insertions(+), 170 deletions(-)
Signature · 1 line
2.39.2