zephyr/subsys/net/Kconfig.hostname
Ulf Magnusson 1073882998 subsys: kconfig: Remove 'default n' properties and clean up a bit
Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that on any of these symbols though.

Remove some 'default ""' properties on string symbols too.

Also make definitions more consistent by converting some

  config FOO
  	<type>
  	prompt "foo"

definitions to a shorter form:

  config FOO
  	<type> "foo"

This shorthand works for int/hex/string symbols too, not just for bool
symbols.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-07-12 23:13:22 -04:00

37 lines
807 B
Plaintext

# Kconfig - Hostname config
#
# Copyright (c) 2017 Intel Corporation.
#
# SPDX-License-Identifier: Apache-2.0
#
config NET_HOSTNAME_ENABLE
bool "Add hostname to the device"
help
This is used for example in mDNS to respond to <hostname>.local
mDNS queries.
if NET_HOSTNAME_ENABLE
config NET_HOSTNAME
string "The hostname of this device"
default "zephyr"
help
The string should be a valid hostname.
config NET_HOSTNAME_UNIQUE
bool "Make hostname unique"
help
This will append link address to hostname to create a unique
hostname. For example, zephyr00005e005357 could be the hostname
if this setting is enabled.
config NET_DEBUG_HOSTNAME
bool "Debug hostname configuration"
depends on NET_LOG
help
Enables hostname configuration functions to output debug messages
endif