# Configure Nerves

# NERVES_SYSTEM is an alias for BR2_EXTERNAL
config NERVES_SYSTEM
	string
	default BR2_EXTERNAL

# NERVES_DEFCONFIG_DIR is the directory that contains
# the active defconfig
config NERVES_DEFCONFIG_DIR
	string
	option env="NERVES_DEFCONFIG_DIR"

config BR2_NERVES_SYSTEM_NAME
	string "Nerves system name"
	default "nerves_system"
	help
	  Specify a name for this system configuration. This name is
	  used in various places to help identify images.

config BR2_NERVES_ADDITIONAL_IMAGE_FILES
	string "Additional files to copy to images directory"
	default ""
	help
	  Specify additional files to copy to the images directory. These
	  will be included in the final system image and can be referenced
	  by fwup during image creation time.

# Load Nerves packages
source "$BR2_EXTERNAL_NERVES_PATH/package/bborg-overlays/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/boardid/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/edk2/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/erlang-relx/Config.in.host"
source "$BR2_EXTERNAL_NERVES_PATH/package/erlinit/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/nbtty/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/nerves-config/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/nerves_heart/Config.in"
source "$BR2_EXTERNAL_NERVES_PATH/package/pigpio/Config.in"

# Load user options
menu "User-provided options"

source "$NERVES_DEFCONFIG_DIR/Config.in"

endmenu
