Kconfig.projbuild 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. menu "Example Configuration"
  2. choice EXAMPLE_IP_MODE
  3. prompt "IP Version"
  4. depends on EXAMPLE_SOCKET_IP_INPUT_STRING
  5. help
  6. Example can use either IPV4 or IPV6.
  7. config EXAMPLE_IPV4
  8. bool "IPV4"
  9. config EXAMPLE_IPV6
  10. bool "IPV6"
  11. endchoice
  12. config EXAMPLE_IPV4_ADDR
  13. string "IPV4 Address"
  14. default "192.168.0.165"
  15. depends on EXAMPLE_IPV4
  16. help
  17. The example will connect to this IPV4 address.
  18. config EXAMPLE_IPV6_ADDR
  19. string "IPV6 Address"
  20. default "FE80::30AD:E57B:C212:68AD"
  21. depends on EXAMPLE_IPV6
  22. help
  23. The example will connect to this IPV6 address.
  24. config EXAMPLE_PORT
  25. int "Port"
  26. range 0 65535
  27. default 3333
  28. help
  29. The remote port to which the client example will connect to.
  30. choice EXAMPLE_INTERFACE
  31. prompt "Interface selection"
  32. depends on EXAMPLE_IPV6
  33. help
  34. Example can use either "Auto" or "User specified".
  35. config EXAMPLE_IFACE_AUTO
  36. bool "Auto"
  37. config EXAMPLE_USER_SPECIFIED_IFACE
  38. bool "User specified interface"
  39. endchoice
  40. config EXAMPLE_USER_SPECIFIED_IFACE_NAME
  41. string "User specified interface name"
  42. default "st1"
  43. depends on EXAMPLE_USER_SPECIFIED_IFACE
  44. help
  45. This interface will be used for communication.
  46. choice EXAMPLE_SOCKET_IP_INPUT
  47. prompt "Socket example source"
  48. default EXAMPLE_SOCKET_IP_INPUT_STRING
  49. help
  50. Selects the input source of the IP used in the example.
  51. config EXAMPLE_SOCKET_IP_INPUT_STRING
  52. bool "From string"
  53. config EXAMPLE_SOCKET_IP_INPUT_STDIN
  54. bool "From stdin"
  55. endchoice
  56. endmenu