Skip to content

Enable configuration via build system

Felix Walter requested to merge feature/106-config-via-build-system into master

This moves configuration options previously defined in include/ud3tn/config.h to config.mk and adds some options that were only "documented" in the corresponding commit messages. config.mk.example now serves as a reference for all options that can be set.

See also: #106 (closed)

  • document all current toolchain options in config.mk.example
  • document all current make options in config.mk.example
  • move config.h stuff to dedicated headers and add guards if they are already defined in the build system
DEFAULT_EID
DEFAULT_CLA_OPTIONS
DEFAULT_AAP_NODE
DEFAULT_AAP_SERVICE
DEFAULT_AAP_SOCKET_FILENAME
DEFAULT_BUNDLE_VERSION
DEFAULT_BUNDLE_LIFETIME_S
DEFAULT_LOG_LEVEL
DEFAULT_BPV7_CRC_TYPE
FAILED_FORWARD_POLICY
BUNDLE_QUEUE_LENGTH
AGENT_ID_ECHO_DTN
AGENT_ID_ECHO_IPN
AGENT_ID_CONFIG_DTN
AGENT_ID_CONFIG_IPN
BUNDLE_MAX_SIZE
CONTACT_TX_TASK_QUEUE_LENGTH
CLA_TCP_SINGLE_BACKLOG
CLA_TCP_MULTI_BACKLOG
CLA_TCP_RETRY_INTERVAL_MS
CLA_TCP_MAX_RETRY_ATTEMPTS
CLA_TCP_PARAM_HTAB_SLOT_COUNT
CLA_MTCP_CLOSE_AFTER_CONTACT
CLA_TCPSPP_TIMESTAMP_FORMAT_PREAMBLE
CLA_TCPSPP_TIMESTAMP_USE_P_FIELD
CLA_TCPSPP_USE_CRC
CLA_TCPSPP_SPP_MAX_SIZE
MAX_CONCURRENT_CONTACTS
NODE_HTAB_SLOT_COUNT
ROUTER_MAX_FRAGMENTS
ROUTER_GLOBAL_MBS
FRAGMENT_MIN_PAYLOAD
ROUTER_MIN_CONTACTS_HTAB
CLA_RX_BUFFER_SIZE
APPLICATION_AGENT_BACKLOG
  • add build system logic to make them configurable in config.mk
  • add build system logic to make other special options configurable in config.mk
CLA_RX_READ_TIMEOUT
CLA_TX_RATE_LIMIT
BIBE_CL_DRAFT_1_COMPATIBILITY
  • document in config.mk.example
  • remove config.h
  • define _POSIX_C_SOURCE in posix.mk; remove from common.h
Edited by Felix Walter

Merge request reports