Kconfig.projbuild 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. menu "Example Configuration"
  2. comment "Virtual Ethernet Interface Configuration"
  3. config EXAMPLE_ETHERNET_VLAN_ID
  4. int "VLAN identifier"
  5. range 1 4094
  6. default 20
  7. help
  8. Set the VLAN Id to the virtual interface
  9. config EXAMPLE_VLAN_STATIC_IPV4_ADDR
  10. string "IPV4 Address"
  11. default "192.168.20.10"
  12. help
  13. The example will set this IPV4 address to this interface.
  14. config EXAMPLE_VLAN_STATIC_ADDR_MASK
  15. string "Subnet Mask"
  16. default "255.255.255.0"
  17. config EXAMPLE_VLAN_STATIC_ADDR_DEF_GW
  18. string "IPV4 Default Gateway"
  19. default "192.168.20.1"
  20. config EXAMPLE_EXTRA_VLAN_INTERFACE
  21. bool "Additional Vlan Interface"
  22. default n
  23. help
  24. Enables an additional VLAN interface
  25. if EXAMPLE_EXTRA_VLAN_INTERFACE
  26. config EXAMPLE_EXTRA_ETHERNET_VLAN_ID
  27. int "VLAN identifier"
  28. range 1 4094
  29. default 30
  30. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  31. help
  32. Set the VLAN Id to the additional virtual interface
  33. config EXAMPLE_EXTRA_VLAN_STATIC_IPV4_ADDR
  34. string "IPV4 Address"
  35. default "192.168.30.10"
  36. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  37. help
  38. The example will set this IPV4 address to this interface.
  39. config EXAMPLE_EXTRA_VLAN_STATIC_ADDR_MASK
  40. string "Subnet Mask"
  41. default "255.255.255.0"
  42. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  43. config EXAMPLE_EXTRA_VLAN_STATIC_ADDR_DEF_GW
  44. string "IPV4 Default Gateway"
  45. default "192.168.30.1"
  46. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  47. endif #EXAMPLE_EXTRA_VLAN_INTERFACE
  48. choice EXAMPLE_VLAN_DEFAULT_IF
  49. prompt "Choose the default interface"
  50. default EXAMPLE_ETHERNET_DEF_IF
  51. help
  52. Select the interface to be set as default
  53. config EXAMPLE_ETHERNET_DEF_IF
  54. bool
  55. prompt "Internal Ethernet Interface"
  56. config EXAMPLE_VLAN_DEF_IF
  57. bool
  58. prompt "VLAN Interface"
  59. config EXAMPLE_EXTRA_VLAN_DEF_IF
  60. bool
  61. prompt "Additional VLAN Interface"
  62. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  63. endchoice
  64. choice EXAMPLE_VLAN_ENABLE_NAPT_IF
  65. prompt "Select the network interface to enable NAPT on"
  66. default EXAMPLE_VLAN_NAPT_IF
  67. help
  68. Choose the interface on which NAPT will be enabled
  69. config EXAMPLE_ETHERNET_NAPT_IF
  70. bool
  71. prompt "Internal Ethernet Interface"
  72. config EXAMPLE_VLAN_NAPT_IF
  73. bool
  74. prompt "VLAN Interface"
  75. config EXAMPLE_EXTRA_VLAN_NAPT_IF
  76. bool
  77. prompt "Additional VLAN Interface"
  78. depends on EXAMPLE_EXTRA_VLAN_INTERFACE
  79. endchoice
  80. config EXAMPLE_VLAN_PYTEST_PC_IFACE
  81. string
  82. default "eth1"
  83. help
  84. The example will set this IPV4 address to this interface.
  85. This configuration is used in pytest only.
  86. This is a hidden configuration, i.e it will not show up im menuconfig.
  87. endmenu