diff --git a/boards/common/nrf52/Kconfig b/boards/common/nrf52/Kconfig index aa8c9a660e..e15f88cdc5 100644 --- a/boards/common/nrf52/Kconfig +++ b/boards/common/nrf52/Kconfig @@ -8,4 +8,4 @@ config BOARD_COMMON_NRF52 bool select HAS_PERIPH_RTT select HAS_PERIPH_TIMER - select HAS_RIOTBOOT if !PKG_NORDIC_SOFTDEVICE_BLE + select HAS_RIOTBOOT if !USEPKG_NORDIC_SOFTDEVICE_BLE diff --git a/boards/esp32-olimex-evb/Kconfig b/boards/esp32-olimex-evb/Kconfig index 6f83864e93..39a61985c6 100644 --- a/boards/esp32-olimex-evb/Kconfig +++ b/boards/esp32-olimex-evb/Kconfig @@ -13,7 +13,7 @@ config BOARD_ESP32_OLIMEX_EVB select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROOM_32 select HAS_ARDUINO - select HAS_PERIPH_ADC if MODULE_OLIMEX_ESP32_GATEWAY + select HAS_PERIPH_ADC if USEMODULE_OLIMEX_ESP32_GATEWAY select HAS_PERIPH_I2C select HAS_PERIPH_PWM select HAS_PERIPH_SPI diff --git a/cpu/msp430_common/Kconfig b/cpu/msp430_common/Kconfig index fc60926cd4..9674ae4051 100644 --- a/cpu/msp430_common/Kconfig +++ b/cpu/msp430_common/Kconfig @@ -34,4 +34,4 @@ config HAS_ARCH_MSP430 ## Specific default configuration values config GNRC_PKTBUF_SIZE default 2560 - depends on KCONFIG_MODULE_GNRC_PKTBUF_STATIC + depends on KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC diff --git a/cpu/nrf51/Kconfig b/cpu/nrf51/Kconfig index 2392eb082e..1e34ef971a 100644 --- a/cpu/nrf51/Kconfig +++ b/cpu/nrf51/Kconfig @@ -46,6 +46,6 @@ config HAS_CPU_NRF51 ## Platform-specific defaults config GNRC_PKTBUF_SIZE default 2048 - depends on KCONFIG_MODULE_GNRC_PKTBUF_STATIC + depends on KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC source "$(RIOTCPU)/nrf5x_common/Kconfig" diff --git a/cpu/nrf52/radio/nrf802154/Kconfig b/cpu/nrf52/radio/nrf802154/Kconfig index 69842601ff..770343e6ce 100644 --- a/cpu/nrf52/radio/nrf802154/Kconfig +++ b/cpu/nrf52/radio/nrf802154/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_MODULE_NRF802154 +menuconfig KCONFIG_USEMODULE_NRF802154 bool "Configure nRF802154" - depends on MODULE_NRF802154 + depends on USEMODULE_NRF802154 help Configure nRF802154 module using Kconfig. -if KCONFIG_MODULE_NRF802154 +if KCONFIG_USEMODULE_NRF802154 config NRF802154_CCA_THRESH_DEFAULT hex "Default CCA threshold value" @@ -19,7 +19,7 @@ config NRF802154_CCA_THRESH_DEFAULT help Default CCA threshold value for the CCACTRL register. -endif # KCONFIG_MODULE_NRF802154 +endif # KCONFIG_USEMODULE_NRF802154 ## Related features config HAS_RADIO_NRF802154 diff --git a/cpu/sam0_common/periph/Kconfig b/cpu/sam0_common/periph/Kconfig index f0e0ffe2f9..7f719f6155 100644 --- a/cpu/sam0_common/periph/Kconfig +++ b/cpu/sam0_common/periph/Kconfig @@ -5,7 +5,7 @@ # directory for more details. config WDT_WARNING_PERIOD - depends on HAS_PERIPH_WDT_WARNING_PERIOD && KCONFIG_MODULE_PERIPH_WDT + depends on HAS_PERIPH_WDT_WARNING_PERIOD && KCONFIG_USEMODULE_PERIPH_WDT default 1 config MOD_SAM0_COMMON_PERIPH diff --git a/doc/doxygen/src/kconfig/kconfig.md b/doc/doxygen/src/kconfig/kconfig.md index 65c9696db9..873347d4a8 100644 --- a/doc/doxygen/src/kconfig/kconfig.md +++ b/doc/doxygen/src/kconfig/kconfig.md @@ -454,10 +454,10 @@ reserved for the cases described bellow: | `CPU_FAM_` | Models a family of CPUs | | `CPU_MODEL_` | Models a particular model of CPU | | `HAS_` | Models a [feature](build-system-basics.html#features) | -| `KCONFIG_MODULE_` | Used during transition to enable configuration of a module via Kconfig | -| `KCONFIG_PKG_` | Used during transition to enable configuration of a package via Kconfig | -| `MODULE_` | Models a [RIOT module](creating-modules.html#creating-modules) | -| `PKG_` | Models an [external package](group__pkg.html) | +| `KCONFIG_USEMODULE_` | Used during transition to enable configuration of a module via Kconfig | +| `KCONFIG_USEPKG_` | Used during transition to enable configuration of a package via Kconfig | +| `USEMODULE_` | Models a [RIOT module](creating-modules.html#creating-modules). Generated from `USEMODULE` variable | +| `USEPKG_` | Models an [external package](group__pkg.html). Generated from `USEPKG` variable | --- # Appendixes {#kconfig-appendixes} diff --git a/drivers/ads101x/Kconfig b/drivers/ads101x/Kconfig index 4c4cd61118..c92cb20fbc 100644 --- a/drivers/ads101x/Kconfig +++ b/drivers/ads101x/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_ADS101X +menuconfig KCONFIG_USEMODULE_ADS101X bool "Configure ADS101X driver" - depends on MODULE_ADS101X + depends on USEMODULE_ADS101X help Configure the ADS101X driver using Kconfig. -if KCONFIG_MODULE_ADS101X +if KCONFIG_USEMODULE_ADS101X config ADS101X_I2C_ADDRESS hex "Default I2C address" @@ -21,4 +21,4 @@ config ADS101X_I2C_ADDRESS the state of ADDR Pin. Default value (0x48) corresponds to ADDR pin tied to GND. For more information refer I2C Address Selection in Datasheet. -endif # KCONFIG_MODULE_ADS101X +endif # KCONFIG_USEMODULE_ADS101X diff --git a/drivers/at/Kconfig b/drivers/at/Kconfig index d1925f228d..d01af0e1a4 100644 --- a/drivers/at/Kconfig +++ b/drivers/at/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_AT +menuconfig KCONFIG_USEMODULE_AT bool "Configure AT driver" - depends on MODULE_AT + depends on USEMODULE_AT help Configure the AT driver using Kconfig. -if KCONFIG_MODULE_AT +if KCONFIG_USEMODULE_AT choice bool "End of line character" @@ -53,11 +53,11 @@ config AT_BUF_SIZE_EXP int "Exponent for the buffer size (resulting in the queue size 2^n)" range 0 31 default 7 - depends on MODULE_AT_URC + depends on USEMODULE_AT_URC help Size of buffer used to process unsolicited result code data. (as exponent of 2^n). As the buffer size ALWAYS needs to be power of two, this option represents the exponent of 2^n, which will be used as the size of the buffer. -endif # KCONFIG_MODULE_AT +endif # KCONFIG_USEMODULE_AT diff --git a/drivers/at86rf215/Kconfig b/drivers/at86rf215/Kconfig index 2c6686fe68..ae5c605825 100644 --- a/drivers/at86rf215/Kconfig +++ b/drivers/at86rf215/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_AT86RF215 +menuconfig KCONFIG_USEMODULE_AT86RF215 bool "Configure AT86RF215 driver" - depends on MODULE_AT86RF215 + depends on USEMODULE_AT86RF215 help Configure the AT86RF215 driver using Kconfig. -if KCONFIG_MODULE_AT86RF215 +if KCONFIG_USEMODULE_AT86RF215 config AT86RF215_USE_CLOCK_OUTPUT bool "Enable clock output" @@ -143,4 +143,4 @@ config AT86RF215_DEFAULT_MR_OFDM_MCS endmenu -endif # KCONFIG_MODULE_AT86RF215 +endif # KCONFIG_USEMODULE_AT86RF215 diff --git a/drivers/bmx055/Kconfig b/drivers/bmx055/Kconfig index d9837608fb..049375ec47 100644 --- a/drivers/bmx055/Kconfig +++ b/drivers/bmx055/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_BMX055 +menuconfig KCONFIG_USEMODULE_BMX055 bool "Configure BMX055 driver" - depends on MODULE_BMX055 + depends on USEMODULE_BMX055 help Configure the BMX055 driver using Kconfig. -if KCONFIG_MODULE_BMX055 +if KCONFIG_USEMODULE_BMX055 config BMX055_MAG_ADDR_DEFAULT hex "I2C Address of magnetometer" @@ -39,4 +39,4 @@ config BMX055_GYRO_ADDR_DEFAULT For more information refer to the section 'Inter-Integrated Circuit (I²C)' in the datasheet. -endif # KCONFIG_MODULE_BMX055 +endif # KCONFIG_USEMODULE_BMX055 diff --git a/drivers/cc110x/Kconfig b/drivers/cc110x/Kconfig index a3ad238fd6..3f03abc253 100644 --- a/drivers/cc110x/Kconfig +++ b/drivers/cc110x/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_CC110X +menuconfig KCONFIG_USEMODULE_CC110X bool "Configure CC110X driver" - depends on MODULE_CC110X + depends on USEMODULE_CC110X help Configure the CC110X driver using Kconfig. -if KCONFIG_MODULE_CC110X +if KCONFIG_USEMODULE_CC110X config CC110X_DEFAULT_CHANNEL int "Configure default channel" @@ -21,4 +21,4 @@ config CC110X_DEFAULT_CHANNEL maximum of 8 (0-7) Channels. Default channel is 0. -endif # KCONFIG_MODULE_CC110X +endif # KCONFIG_USEMODULE_CC110X diff --git a/drivers/dose/Kconfig b/drivers/dose/Kconfig index b79622d5c3..feb2a42f3b 100644 --- a/drivers/dose/Kconfig +++ b/drivers/dose/Kconfig @@ -4,14 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_DOSE +menuconfig KCONFIG_USEMODULE_DOSE bool "Configure DOSE driver" - depends on MODULE_DOSE + depends on USEMODULE_DOSE help Configure the Differentially Operated Serial Ethernet (DOSE) driver using Kconfig. -if KCONFIG_MODULE_DOSE +if KCONFIG_USEMODULE_DOSE config DOSE_TIMEOUT_USEC int "Transaction timeout in microseconds [us]" @@ -20,4 +20,4 @@ config DOSE_TIMEOUT_USEC Timeout, in microseconds, to bring the driver back into idle state if the remote side died within a transaction. -endif # KCONFIG_MODULE_DOSE +endif # KCONFIG_USEMODULE_DOSE diff --git a/drivers/fxos8700/Kconfig b/drivers/fxos8700/Kconfig index 36a373e0e4..5967004855 100644 --- a/drivers/fxos8700/Kconfig +++ b/drivers/fxos8700/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_FXOS8700 +menuconfig KCONFIG_USEMODULE_FXOS8700 bool "Configure FXOS8700 driver" - depends on MODULE_FXOS8700 + depends on USEMODULE_FXOS8700 help Configure the FXOS8700 driver using Kconfig. -if KCONFIG_MODULE_FXOS8700 +if KCONFIG_USEMODULE_FXOS8700 config FXOS8700_USE_ACC_RAW_VALUES bool "Enable raw ADC readings" @@ -18,4 +18,4 @@ config FXOS8700_USE_ACC_RAW_VALUES Enable this to return raw ADC readings. By default measurements are converted to mg. -endif # KCONFIG_MODULE_FXOS8700 +endif # KCONFIG_USEMODULE_FXOS8700 diff --git a/drivers/hdc1000/Kconfig b/drivers/hdc1000/Kconfig index ebf42728b7..a55a254ff6 100644 --- a/drivers/hdc1000/Kconfig +++ b/drivers/hdc1000/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_HDC1000 +menuconfig KCONFIG_USEMODULE_HDC1000 bool "Configure HDC1000 driver" - depends on MODULE_HDC1000 + depends on USEMODULE_HDC1000 help Configure the HDC1000 driver using Kconfig. -if KCONFIG_MODULE_HDC1000 +if KCONFIG_USEMODULE_HDC1000 config HDC1000_I2C_ADDRESS hex "I2C default address" @@ -29,4 +29,4 @@ config HDC1000_CONVERSION_TIME conversions (worst case) to allow for timer imprecision: (convert temp + convert hum) * 2 -> (6.5ms + 6.5ms) * 2 := 26ms. -endif # KCONFIG_MODULE_HDC1000 +endif # KCONFIG_USEMODULE_HDC1000 diff --git a/drivers/isl29020/Kconfig b/drivers/isl29020/Kconfig index 76d119e617..48e3624549 100644 --- a/drivers/isl29020/Kconfig +++ b/drivers/isl29020/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_ISL29020 +menuconfig KCONFIG_USEMODULE_ISL29020 bool "Configure ISL29020 driver" - depends on MODULE_ISL29020 + depends on USEMODULE_ISL29020 help Configure the ISL29020 driver using Kconfig. -if KCONFIG_MODULE_ISL29020 +if KCONFIG_USEMODULE_ISL29020 config ISL29020_DEFAULT_ADDRESS hex "Default I2C address" @@ -21,4 +21,4 @@ config ISL29020_DEFAULT_ADDRESS corresponds to A0 connected to GND. For more information refer to the section 'I2C Interface' in the datasheet. -endif # KCONFIG_MODULE_ISL29020 +endif # KCONFIG_USEMODULE_ISL29020 diff --git a/drivers/l3g4200d/Kconfig b/drivers/l3g4200d/Kconfig index d9417d2b55..80583f8e87 100644 --- a/drivers/l3g4200d/Kconfig +++ b/drivers/l3g4200d/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_L3G4200D +menuconfig KCONFIG_USEMODULE_L3G4200D bool "Configure L3G4200D driver" - depends on MODULE_L3G4200D + depends on USEMODULE_L3G4200D help Configure the L3G4200D driver using Kconfig. -if KCONFIG_MODULE_L3G4200D +if KCONFIG_USEMODULE_L3G4200D config L3G4200D_DEFAULT_ADDRESS hex "Default I2C address" @@ -22,4 +22,4 @@ config L3G4200D_DEFAULT_ADDRESS information refer to the section 'I2C Operation' in the datasheet. -endif # KCONFIG_MODULE_L3G4200D +endif # KCONFIG_USEMODULE_L3G4200D diff --git a/drivers/lpsxxx/Kconfig b/drivers/lpsxxx/Kconfig index d7330f86ed..e5e0157bb0 100644 --- a/drivers/lpsxxx/Kconfig +++ b/drivers/lpsxxx/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_LPSXXX +menuconfig KCONFIG_USEMODULE_LPSXXX bool "Configure LPSXXX driver" - depends on MODULE_LPSXXX + depends on USEMODULE_LPSXXX help Configure the LPSXXX driver using Kconfig. -if KCONFIG_MODULE_LPSXXX +if KCONFIG_USEMODULE_LPSXXX config LPSXXX_DEFAULT_ADDRESS hex "Default I2C address" @@ -22,4 +22,4 @@ config LPSXXX_DEFAULT_ADDRESS information refer to the section 'I2C operation' in the datasheet. -endif # KCONFIG_MODULE_LPSXXX +endif # KCONFIG_USEMODULE_LPSXXX diff --git a/drivers/mag3110/Kconfig b/drivers/mag3110/Kconfig index 6e1367993b..0e74d34360 100644 --- a/drivers/mag3110/Kconfig +++ b/drivers/mag3110/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_MAG3110 +menuconfig KCONFIG_USEMODULE_MAG3110 bool "Configure MAG3110 driver" - depends on MODULE_MAG3110 + depends on USEMODULE_MAG3110 help Configure the MAG3110 driver using Kconfig. -if KCONFIG_MODULE_MAG3110 +if KCONFIG_USEMODULE_MAG3110 config MAG3110_I2C_ADDRESS hex "I2C default address" @@ -20,4 +20,4 @@ config MAG3110_I2C_ADDRESS The address depends on part number of MAG3110. For more information refer to the datasheet. -endif # KCONFIG_MODULE_MAG3110 +endif # KCONFIG_USEMODULE_MAG3110 diff --git a/drivers/mma8x5x/Kconfig b/drivers/mma8x5x/Kconfig index aa83d7883a..83a62a9708 100644 --- a/drivers/mma8x5x/Kconfig +++ b/drivers/mma8x5x/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_MMA8X5X +menuconfig KCONFIG_USEMODULE_MMA8X5X bool "Configure MMA8X5X driver" - depends on MODULE_MMA8X5X + depends on USEMODULE_MMA8X5X help Configure the MMA8X5X driver using Kconfig. -if KCONFIG_MODULE_MMA8X5X +if KCONFIG_USEMODULE_MMA8X5X config MMA8X5X_I2C_ADDRESS hex "Default I2C address" @@ -23,4 +23,4 @@ config MMA8X5X_I2C_ADDRESS (MMA8451Q/MMA8452Q/MMA8453Q) Default value corresponds to SA0 connected to VCC. -endif # KCONFIG_MODULE_MMA8X5X +endif # KCONFIG_USEMODULE_MMA8X5X diff --git a/drivers/motor_driver/Kconfig b/drivers/motor_driver/Kconfig index 8741f70d19..63c7dc2fca 100644 --- a/drivers/motor_driver/Kconfig +++ b/drivers/motor_driver/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_MOTOR_DRIVER +menuconfig KCONFIG_USEMODULE_MOTOR_DRIVER bool "Configure the DC Motor driver" - depends on MODULE_MOTOR_DRIVER + depends on USEMODULE_MOTOR_DRIVER help Configure the DC Motor driver using Kconfig. -if KCONFIG_MODULE_MOTOR_DRIVER +if KCONFIG_USEMODULE_MOTOR_DRIVER config MOTOR_DRIVER_MAX int "Maximum number of motors" @@ -20,4 +20,4 @@ config MOTOR_DRIVER_MAX The value should not exceed the number of PWM channels Default value is set to 2. -endif # KCONFIG_MODULE_MOTOR_DRIVER +endif # KCONFIG_USEMODULE_MOTOR_DRIVER diff --git a/drivers/mrf24j40/Kconfig b/drivers/mrf24j40/Kconfig index 11ba46c62a..7202fa9662 100644 --- a/drivers/mrf24j40/Kconfig +++ b/drivers/mrf24j40/Kconfig @@ -4,18 +4,18 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_MRF24J40 +menuconfig KCONFIG_USEMODULE_MRF24J40 bool "Configure MRF24J40 driver" - depends on MODULE_MRF24J40 + depends on USEMODULE_MRF24J40 help Configure the MRF24J40 driver using Kconfig. -if KCONFIG_MODULE_MRF24J40 +if KCONFIG_USEMODULE_MRF24J40 config MRF24J40_USE_EXT_PA_LNA bool "Enable external PA/LNA control" default y - depends on !MODULE_MRF24J40MA + depends on !USEMODULE_MRF24J40MA help Increase RSSI for MRF24J40MC/MD/ME devices. No effect on MRF24J40MA. For more information, please refer to section 4.2 of MRF24J40 datasheet. @@ -27,4 +27,4 @@ config MRF24J40_TEST_SPI_CONNECTION device is connected. Enable this if you want the boot not to hang if the device is not connected / there are SPI errors. -endif # KCONFIG_MODULE_MRF24J40 +endif # KCONFIG_USEMODULE_MRF24J40 diff --git a/drivers/mtd_sdcard/Kconfig b/drivers/mtd_sdcard/Kconfig index 00135ccac9..bcd3d3ea13 100644 --- a/drivers/mtd_sdcard/Kconfig +++ b/drivers/mtd_sdcard/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_MTD_SDCARD +menuconfig KCONFIG_USEMODULE_MTD_SDCARD bool "Configure MTD_SDCARD driver" - depends on MODULE_MTD_SDCARD + depends on USEMODULE_MTD_SDCARD help Configure the MTD_SDCARD driver using Kconfig. -if KCONFIG_MODULE_MTD_SDCARD +if KCONFIG_USEMODULE_MTD_SDCARD config MTD_SDCARD_ERASE bool "Enable SD card erase" @@ -20,4 +20,4 @@ config MTD_SDCARD_ERASE possible to directly write to the card without erasing the sector first hence this feature is disabled by default. -endif # KCONFIG_MODULE_MTD_SDCARD +endif # KCONFIG_USEMODULE_MTD_SDCARD diff --git a/drivers/opt3001/Kconfig b/drivers/opt3001/Kconfig index 8d7d1251e1..aa5622d529 100644 --- a/drivers/opt3001/Kconfig +++ b/drivers/opt3001/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_OPT3001 +menuconfig KCONFIG_USEMODULE_OPT3001 bool "Configure OPT3001 driver" - depends on MODULE_OPT3001 + depends on USEMODULE_OPT3001 help Configure the OPT3001 driver using Kconfig. -if KCONFIG_MODULE_OPT3001 +if KCONFIG_USEMODULE_OPT3001 config OPT3001_I2C_ADDRESS hex "Default I2C address" @@ -38,4 +38,4 @@ config OPT3001_CONVERSION_TIME_800 endchoice -endif # KCONFIG_MODULE_OPT3001 +endif # KCONFIG_USEMODULE_OPT3001 diff --git a/drivers/periph_common/Kconfig b/drivers/periph_common/Kconfig index fbc701845b..23b38224ce 100644 --- a/drivers/periph_common/Kconfig +++ b/drivers/periph_common/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_MODULE_PERIPH_WDT +menuconfig KCONFIG_USEMODULE_PERIPH_WDT bool "Configure Watchdog peripheral" - depends on MODULE_PERIPH_WDT + depends on USEMODULE_PERIPH_WDT help Configure Watchdog peripheral using Kconfig. -if KCONFIG_MODULE_PERIPH_WDT +if KCONFIG_USEMODULE_PERIPH_WDT config WDT_WARNING_PERIOD int "Warning period (in ms)" @@ -18,7 +18,7 @@ config WDT_WARNING_PERIOD help Period in ms before reboot where wdt_cb() is executed. -endif # KCONFIG_MODULE_PERIPH_WDT +endif # KCONFIG_USEMODULE_PERIPH_WDT config HAS_PERIPH_WDT_WARNING_PERIOD bool diff --git a/drivers/pn532/Kconfig b/drivers/pn532/Kconfig index 77d757cbdd..f79537188c 100644 --- a/drivers/pn532/Kconfig +++ b/drivers/pn532/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_PN532 +menuconfig KCONFIG_USEMODULE_PN532 bool "Configure PN532 driver" - depends on MODULE_PN532 + depends on USEMODULE_PN532 help Configure the PN532 driver using Kconfig. -if KCONFIG_MODULE_PN532 +if KCONFIG_USEMODULE_PN532 config PN532_BUFFER_LEN int "Internal buffer size" @@ -20,4 +20,4 @@ config PN532_BUFFER_LEN For large NDEF files, the buffer size may be increased. Otherwise the files may be written in chunks. -endif # KCONFIG_MODULE_PN532 +endif # KCONFIG_USEMODULE_PN532 diff --git a/drivers/rn2xx3/Kconfig b/drivers/rn2xx3/Kconfig index e8c554f371..aeb4c6c3ca 100644 --- a/drivers/rn2xx3/Kconfig +++ b/drivers/rn2xx3/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_RN2XX3 +menuconfig KCONFIG_USEMODULE_RN2XX3 bool "Configure RN2XX3 driver" - depends on MODULE_RN2XX3 + depends on USEMODULE_RN2XX3 help Configure the RN2XX3 driver using Kconfig. -if KCONFIG_MODULE_RN2XX3 +if KCONFIG_USEMODULE_RN2XX3 config RN2XX3_DEFAULT_SLEEP int "Sleep duration in milliseconds [ms]" @@ -20,4 +20,4 @@ config RN2XX3_DEFAULT_SLEEP Set the sleep duration (in ms). The value should be greater than RN2XX3_SLEEP_MIN (100 ms) -endif # KCONFIG_MODULE_RN2XX3 +endif # KCONFIG_USEMODULE_RN2XX3 diff --git a/drivers/slipdev/Kconfig b/drivers/slipdev/Kconfig index 68d0204846..f4320d1c8f 100644 --- a/drivers/slipdev/Kconfig +++ b/drivers/slipdev/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_SLIPDEV +menuconfig KCONFIG_USEMODULE_SLIPDEV bool "Configure SLIPDEV driver" - depends on MODULE_SLIPDEV + depends on USEMODULE_SLIPDEV help Configure the SLIPDEV driver using Kconfig. -if KCONFIG_MODULE_SLIPDEV +if KCONFIG_USEMODULE_SLIPDEV config SLIPDEV_BUFSIZE_EXP int "Buffer size (as exponent of 2^n)" @@ -22,4 +22,4 @@ config SLIPDEV_BUFSIZE_EXP not include full IPv6 MTU. Value represents the exponent n of 2^n. -endif # KCONFIG_MODULE_SLIPDEV +endif # KCONFIG_USEMODULE_SLIPDEV diff --git a/drivers/sps30/Kconfig b/drivers/sps30/Kconfig index 332d97a691..d51373f091 100644 --- a/drivers/sps30/Kconfig +++ b/drivers/sps30/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_SPS30 +menuconfig KCONFIG_USEMODULE_SPS30 bool "Configure SPS30 driver" - depends on MODULE_SPS30 + depends on USEMODULE_SPS30 help Configure the SPS30 driver using Kconfig. -if KCONFIG_MODULE_SPS30 +if KCONFIG_USEMODULE_SPS30 config SPS30_ERROR_RETRY int "Maximum number of error retries" @@ -21,4 +21,4 @@ config SPS30_ERROR_RETRY The value may be increased if the device is connected over suboptimal wiring. -endif # KCONFIG_MODULE_SPS30 +endif # KCONFIG_USEMODULE_SPS30 diff --git a/drivers/tcs37727/Kconfig b/drivers/tcs37727/Kconfig index ab6f2d8167..8d7e3510b9 100644 --- a/drivers/tcs37727/Kconfig +++ b/drivers/tcs37727/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_TCS37727 +menuconfig KCONFIG_USEMODULE_TCS37727 bool "Configure TCS37727 driver" - depends on MODULE_TCS37727 + depends on USEMODULE_TCS37727 help Configure the TCS37727 driver using Kconfig. -if KCONFIG_MODULE_TCS37727 +if KCONFIG_USEMODULE_TCS37727 config TCS37727_ATIME_DEFAULT int "RGBC integration time in microseconds" @@ -21,4 +21,4 @@ config TCS37727_ATIME_DEFAULT of the RGBC reading. Refer to the section "RGBC Time Register" in the datasheet for more information. -endif # KCONFIG_MODULE_TCS37727 +endif # KCONFIG_USEMODULE_TCS37727 diff --git a/drivers/tmp00x/Kconfig b/drivers/tmp00x/Kconfig index ddb0f5be9a..e52d7dfc01 100644 --- a/drivers/tmp00x/Kconfig +++ b/drivers/tmp00x/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_TMP00X +menuconfig KCONFIG_USEMODULE_TMP00X bool "Configure TMP00X driver" - depends on MODULE_TMP00X + depends on USEMODULE_TMP00X help Configure the TMP00X driver using Kconfig. -if KCONFIG_MODULE_TMP00X +if KCONFIG_USEMODULE_TMP00X config TMP00X_I2C_ADDRESS hex "Default I2C Address" @@ -61,4 +61,4 @@ config TMP00X_USE_RAW_VALUES Enable this to return raw ADC readings. By default measurements are converted to Celsius. -endif # KCONFIG_MODULE_TMP00X +endif # KCONFIG_USEMODULE_TMP00X diff --git a/examples/gnrc_border_router/Kconfig b/examples/gnrc_border_router/Kconfig index a45569e9a3..25bacee753 100644 --- a/examples/gnrc_border_router/Kconfig +++ b/examples/gnrc_border_router/Kconfig @@ -1,10 +1,10 @@ -if MODULE_ETHOS +if USEMODULE_ETHOS config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE default y - depends on MODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_MODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_USEMODULE_GNRC_DHCPV6 config GNRC_NETIF_IPV6_ADDRS_NUMOF # CONFIG_GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE=1 requires one more address # for `fe80::2`. default 3 - depends on KCONFIG_MODULE_GNRC_NETIF -endif # MODULE_ETHOS + depends on KCONFIG_USEMODULE_GNRC_NETIF +endif # USEMODULE_ETHOS diff --git a/makefiles/kconfig.mk b/makefiles/kconfig.mk index 25b9040ac2..3e6c2c6988 100644 --- a/makefiles/kconfig.mk +++ b/makefiles/kconfig.mk @@ -93,8 +93,8 @@ BUILDDEPS += $(KCONFIG_GENERATED_AUTOCONF_HEADER_C) $(FIXDEP) # Include configuration header when building CFLAGS += -imacros '$(KCONFIG_GENERATED_AUTOCONF_HEADER_C)' -USEMODULE_W_PREFIX = $(addprefix MODULE_,$(USEMODULE)) -USEPKG_W_PREFIX = $(addprefix PKG_,$(USEPKG)) +USEMODULE_W_PREFIX = $(addprefix USEMODULE_,$(USEMODULE)) +USEPKG_W_PREFIX = $(addprefix USEPKG_,$(USEPKG)) .PHONY: menuconfig @@ -116,7 +116,7 @@ endif ifneq (clean, $(MAKECMDGOALS)) # Build a Kconfig file defining all used modules and packages. This is done by -# defining symbols like 'MODULE_' or PKG_ which +# defining symbols like 'USEMODULE_' or USEPKG_ which # default to 'y'. Then, every module and package Kconfig menu will depend on # that symbol being set to show its options. # Do nothing when testing Kconfig module dependency modelling. diff --git a/pkg/tinydtls/Kconfig b/pkg/tinydtls/Kconfig index 320f990701..14ef675737 100644 --- a/pkg/tinydtls/Kconfig +++ b/pkg/tinydtls/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_PKG_TINYDTLS +menuconfig KCONFIG_USEPKG_TINYDTLS bool "Configure tinydtls" - depends on PKG_TINYDTLS + depends on USEPKG_TINYDTLS help Configure tinydtls package via Kconfig. -if KCONFIG_PKG_TINYDTLS +if KCONFIG_USEPKG_TINYDTLS # TODO change to multiple choice after DTLS application support enabling more than one types of cypher suites choice @@ -48,4 +48,4 @@ config DTLS_HANDSHAKE_MAX help The maximum number of concurrent DTLS handshakes. -endif # KCONFIG_PKG_TINYDTLS +endif # KCONFIG_USEPKG_TINYDTLS diff --git a/pkg/wakaama/Kconfig b/pkg/wakaama/Kconfig index 7ce41dbb8b..1375adae59 100644 --- a/pkg/wakaama/Kconfig +++ b/pkg/wakaama/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_PKG_WAKAAMA +menuconfig KCONFIG_USEPKG_WAKAAMA bool "Configure Wakaama LwM2M" - depends on PKG_WAKAAMA + depends on USEPKG_WAKAAMA help Configure Wakaama package via Kconfig. -if KCONFIG_PKG_WAKAAMA +if KCONFIG_USEPKG_WAKAAMA menu "Remote server" @@ -126,4 +126,4 @@ config LWM2M_TLSF_BUFFER int "Allocation buffer size" default 5120 -endif # KCONFIG_PKG_WAKAAMA +endif # KCONFIG_USEPKG_WAKAAMA diff --git a/sys/net/application_layer/asymcute/Kconfig b/sys/net/application_layer/asymcute/Kconfig index a31d39310b..b969c31eb6 100644 --- a/sys/net/application_layer/asymcute/Kconfig +++ b/sys/net/application_layer/asymcute/Kconfig @@ -4,9 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_ASYMCUTE +menuconfig KCONFIG_USEMODULE_ASYMCUTE bool "Configure Asymcute" - depends on MODULE_ASYMCUTE + depends on USEMODULE_ASYMCUTE help Configure Asymcute using Kconfig.`Asymcute` is a asynchronous MQTT-SN client implementation, aiming at providing the user a high degree of @@ -14,7 +14,7 @@ menuconfig KCONFIG_MODULE_ASYMCUTE any number of concurrent requests to one or more different gateways simultaneously. -if KCONFIG_MODULE_ASYMCUTE +if KCONFIG_USEMODULE_ASYMCUTE config ASYMCUTE_BUFSIZE_EXP int "Exponent for the buffer size (resulting in the buffer size 2^n)" @@ -85,4 +85,4 @@ config ASYMCUTE_N_RETRY information, see MQTT-SN Spec v1.2, section 6.13. For default values, see section 7.2 -> Nretry: 3-5. -endif # KCONFIG_MODULE_ASYMCUTE +endif # KCONFIG_USEMODULE_ASYMCUTE diff --git a/sys/net/application_layer/dhcpv6/Kconfig b/sys/net/application_layer/dhcpv6/Kconfig index 5edf2ccd3f..460f36ac24 100644 --- a/sys/net/application_layer/dhcpv6/Kconfig +++ b/sys/net/application_layer/dhcpv6/Kconfig @@ -4,16 +4,16 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_DHCPV6 +menuconfig KCONFIG_USEMODULE_DHCPV6 bool "Configure DHCPv6" - depends on MODULE_DHCPV6 + depends on USEMODULE_DHCPV6 help Configure DHCPv6 client using Kconfig. -if KCONFIG_MODULE_DHCPV6 +if KCONFIG_USEMODULE_DHCPV6 config DHCPV6_CLIENT_PFX_LEASE_MAX int "Maximum number of prefix leases to be stored" default 1 -endif # KCONFIG_MODULE_DHCPv6 +endif # KCONFIG_USEMODULE_DHCPv6 diff --git a/sys/net/application_layer/gcoap/Kconfig b/sys/net/application_layer/gcoap/Kconfig index 8599ae83c8..4035e46f02 100644 --- a/sys/net/application_layer/gcoap/Kconfig +++ b/sys/net/application_layer/gcoap/Kconfig @@ -4,14 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GCOAP +menuconfig KCONFIG_USEMODULE_GCOAP bool "Configure Gcoap" - depends on MODULE_GCOAP + depends on USEMODULE_GCOAP help Configure Gcoap module using Kconfig. If not set default values and CFLAGS will be used. -if KCONFIG_MODULE_GCOAP +if KCONFIG_USEMODULE_GCOAP config GCOAP_PDU_BUF_SIZE int "Request or response buffer size" @@ -113,4 +113,4 @@ config GCOAP_NO_AUTO_INIT Disable gcoap startup during system auto init. If disabled, gcoap_init() must be called by some other means. -endif # KCONFIG_MODULE_GCOAP +endif # KCONFIG_USEMODULE_GCOAP diff --git a/sys/net/application_layer/nanocoap/Kconfig b/sys/net/application_layer/nanocoap/Kconfig index 9fc35c83af..33fde07fa4 100644 --- a/sys/net/application_layer/nanocoap/Kconfig +++ b/sys/net/application_layer/nanocoap/Kconfig @@ -6,15 +6,15 @@ # # Nanocoap provides CoAP functionalities -config MODULE_NANOCOAP +config USEMODULE_NANOCOAP bool select HAS_PROTOCOL_COAP -menuconfig KCONFIG_MODULE_NANOCOAP +menuconfig KCONFIG_USEMODULE_NANOCOAP bool "Configure Nanocoap module" - depends on MODULE_NANOCOAP + depends on USEMODULE_NANOCOAP -if KCONFIG_MODULE_NANOCOAP +if KCONFIG_USEMODULE_NANOCOAP config NANOCOAP_NOPTS_MAX int "Maximum number of options in a message" @@ -35,4 +35,4 @@ config NANOCOAP_QS_MAX int "Maximum length of a query string written to a message" default 64 -endif # KCONFIG_MODULE_NANOCOAP +endif # KCONFIG_USEMODULE_NANOCOAP diff --git a/sys/net/ble/skald/Kconfig b/sys/net/ble/skald/Kconfig index 709e1713dc..92950a51e1 100644 --- a/sys/net/ble/skald/Kconfig +++ b/sys/net/ble/skald/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_SKALD +menuconfig KCONFIG_USEMODULE_SKALD bool "Configure SKALD" - depends on MODULE_SKALD + depends on USEMODULE_SKALD help Configure Skald, BLE advertising stack, using Kconfig. -if KCONFIG_MODULE_SKALD +if KCONFIG_USEMODULE_SKALD config SKALD_INTERVAL int "Advertising interval in microseconds" @@ -28,4 +28,4 @@ config ADV_CH_38_DISABLE config ADV_CH_39_DISABLE bool "Disable advertising on channel 39" -endif # KCONFIG_MODULE_SKALD +endif # KCONFIG_USEMODULE_SKALD diff --git a/sys/net/credman/Kconfig b/sys/net/credman/Kconfig index 1131c41f12..b5ccfc96be 100644 --- a/sys/net/credman/Kconfig +++ b/sys/net/credman/Kconfig @@ -4,14 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_CREDMAN +menuconfig KCONFIG_USEMODULE_CREDMAN bool "Configure CREDMAN" - depends on MODULE_CREDMAN + depends on USEMODULE_CREDMAN help Configure CREDMAN, Credentials management module for (D)TLS, using Kconfig. -if KCONFIG_MODULE_CREDMAN +if KCONFIG_USEMODULE_CREDMAN config CREDMAN_MAX_CREDENTIALS int "MAX number of credentials in credential pool" @@ -20,4 +20,4 @@ config CREDMAN_MAX_CREDENTIALS Configure 'CONFIG_CREDMAN_MAX_CREDENTIALS', the maximum number of allowed credentials in the credential pool. -endif # KCONFIG_MODULE_CREDMAN +endif # KCONFIG_USEMODULE_CREDMAN diff --git a/sys/net/gnrc/Kconfig b/sys/net/gnrc/Kconfig index 8b4840fe47..000692a752 100644 --- a/sys/net/gnrc/Kconfig +++ b/sys/net/gnrc/Kconfig @@ -5,7 +5,7 @@ # directory for more details. # menu "GNRC Network stack" - depends on MODULE_GNRC + depends on USEMODULE_GNRC rsource "application_layer/dhcpv6/Kconfig" rsource "link_layer/gomach/Kconfig" diff --git a/sys/net/gnrc/application_layer/dhcpv6/Kconfig b/sys/net/gnrc/application_layer/dhcpv6/Kconfig index c6b15a0916..9ea44a0739 100644 --- a/sys/net/gnrc/application_layer/dhcpv6/Kconfig +++ b/sys/net/gnrc/application_layer/dhcpv6/Kconfig @@ -1,12 +1,12 @@ -menuconfig KCONFIG_MODULE_GNRC_DHCPV6 +menuconfig KCONFIG_USEMODULE_GNRC_DHCPV6 bool "Configure GNRC-part of DHCPv6" - depends on MODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6 help Configure GNRC-part of DHCPv6 via Kconfig. -if KCONFIG_MODULE_GNRC_DHCPV6 +if KCONFIG_USEMODULE_GNRC_DHCPV6 -if MODULE_GNRC_DHCPV6_CLIENT_6LBR +if USEMODULE_GNRC_DHCPV6_CLIENT_6LBR config GNRC_DHCPV6_CLIENT_6LBR_UPSTREAM int "Identifier for the upstream interface of the 6LoWPAN border router" default 0 @@ -29,6 +29,6 @@ config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE that the upstream router can set a static route for the delegated prefix via that address. It is recommended to increase at least @ref CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF to that end. -endif # MODULE_GNRC_DHCPV6_CLIENT_6LBR +endif # USEMODULE_GNRC_DHCPV6_CLIENT_6LBR -endif # KCONFIG_MODULE_GNRC_DHCPV6 +endif # KCONFIG_USEMODULE_GNRC_DHCPV6 diff --git a/sys/net/gnrc/link_layer/gomach/Kconfig b/sys/net/gnrc/link_layer/gomach/Kconfig index 255372e64e..b53a48838a 100644 --- a/sys/net/gnrc/link_layer/gomach/Kconfig +++ b/sys/net/gnrc/link_layer/gomach/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_GOMACH +menuconfig KCONFIG_USEMODULE_GNRC_GOMACH bool "Configure GNRC GOMACH" - depends on MODULE_GNRC_GOMACH + depends on USEMODULE_GNRC_GOMACH help Configure the GNRC GOMACH using Kconfig. -if KCONFIG_MODULE_GNRC_GOMACH +if KCONFIG_USEMODULE_GNRC_GOMACH config GNRC_GOMACH_CP_DURATION_US int "Wake-up period (WP) duration in microseconds" @@ -224,4 +224,4 @@ config GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD then we re-initiate the radio, trying to re-calibrate the radio for bringing it back to normal condition. -endif # KCONFIG_MODULE_GNRC_GOMACH +endif # KCONFIG_USEMODULE_GNRC_GOMACH diff --git a/sys/net/gnrc/link_layer/lorawan/Kconfig b/sys/net/gnrc/link_layer/lorawan/Kconfig index b60d17d613..7bc6cae036 100644 --- a/sys/net/gnrc/link_layer/lorawan/Kconfig +++ b/sys/net/gnrc/link_layer/lorawan/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_LORAWAN +menuconfig KCONFIG_USEMODULE_GNRC_LORAWAN bool "Configure GNRC LoRaWAN" - depends on MODULE_GNRC_LORAWAN + depends on USEMODULE_GNRC_LORAWAN help Configure GNRC LoRaWAN module using Kconfig. -if KCONFIG_MODULE_GNRC_LORAWAN +if KCONFIG_USEMODULE_GNRC_LORAWAN config GNRC_LORAWAN_TIMER_DRIFT int "Maximum timer drift" @@ -27,4 +27,4 @@ config GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT default 30 range 0 1024 -endif # KCONFIG_MODULE_GNRC_LORAWAN +endif # KCONFIG_USEMODULE_GNRC_LORAWAN diff --git a/sys/net/gnrc/link_layer/lwmac/Kconfig b/sys/net/gnrc/link_layer/lwmac/Kconfig index 466bcec88a..14fee34781 100644 --- a/sys/net/gnrc/link_layer/lwmac/Kconfig +++ b/sys/net/gnrc/link_layer/lwmac/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_LWMAC +menuconfig KCONFIG_USEMODULE_GNRC_LWMAC bool "Configure GNRC LWMAC" - depends on MODULE_GNRC_LWMAC + depends on USEMODULE_GNRC_LWMAC help Configure the GNRC LWMAC using Kconfig. -if KCONFIG_MODULE_GNRC_LWMAC +if KCONFIG_USEMODULE_GNRC_LWMAC config GNRC_LWMAC_WAKEUP_INTERVAL_US int "Time between consecutive wake-ups in microseconds" @@ -150,4 +150,4 @@ config GNRC_LWMAC_RADIO_REINIT_THRESHOLD then we re-initialize the radio, trying to re-calibrate the radio for bringing it back to normal condition. -endif # KCONFIG_MODULE_GNRC_LWMAC +endif # KCONFIG_USEMODULE_GNRC_LWMAC diff --git a/sys/net/gnrc/link_layer/mac/Kconfig b/sys/net/gnrc/link_layer/mac/Kconfig index d43a32b13b..d507b64622 100644 --- a/sys/net/gnrc/link_layer/mac/Kconfig +++ b/sys/net/gnrc/link_layer/mac/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_MAC +menuconfig KCONFIG_USEMODULE_GNRC_MAC bool "Configure GNRC MAC" - depends on MODULE_GNRC_MAC + depends on USEMODULE_GNRC_MAC help Configure the GNRC MAC using Kconfig. -if KCONFIG_MODULE_GNRC_MAC +if KCONFIG_USEMODULE_GNRC_MAC config GNRC_MAC_RX_QUEUE_SIZE_EXP int "Exponent for the RX queue size (resulting in the queue size 2^n)" @@ -43,4 +43,4 @@ config GNRC_MAC_TX_QUEUE_SIZE_EXP config GNRC_MAC_DISABLE_DUTYCYCLE_RECORD bool "Disable MAC radio duty-cycle recording and displaying" -endif # KCONFIG_MODULE_GNRC_MAC +endif # KCONFIG_USEMODULE_GNRC_MAC diff --git a/sys/net/gnrc/netif/Kconfig b/sys/net/gnrc/netif/Kconfig index c8a6d4409c..c1aa3a4928 100644 --- a/sys/net/gnrc/netif/Kconfig +++ b/sys/net/gnrc/netif/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_NETIF +menuconfig KCONFIG_USEMODULE_GNRC_NETIF bool "Configure GNRC network interface" - depends on MODULE_GNRC_NETIF + depends on USEMODULE_GNRC_NETIF help Configure GNRC network interface using Kconfig. -if KCONFIG_MODULE_GNRC_NETIF +if KCONFIG_USEMODULE_GNRC_NETIF config GNRC_NETIF_MSG_QUEUE_SIZE_EXP int "Exponent for the message queue size for network interface threads (as 2^n)" @@ -42,10 +42,10 @@ config GNRC_NETIF_MIN_WAIT_AFTER_SEND_US config GNRC_NETIF_NONSTANDARD_6LO_MTU bool "Enable usage of non standard MTU for 6LoWPAN network interfaces" - depends on MODULE_GNRC_NETIF_6LO + depends on USEMODULE_GNRC_NETIF_6LO help Enables the usage of non standard MTU for 6LoWPAN network interfaces. This is non compliant with RFC 4944 and might not be supported by other implementations. -endif # KCONFIG_MODULE_GNRC_NETIF +endif # KCONFIG_USEMODULE_GNRC_NETIF diff --git a/sys/net/gnrc/network_layer/ipv6/Kconfig b/sys/net/gnrc/network_layer/ipv6/Kconfig index 13c713b45f..277dd5b145 100644 --- a/sys/net/gnrc/network_layer/ipv6/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/Kconfig @@ -6,13 +6,13 @@ # menu "IPv6" -menuconfig KCONFIG_MODULE_GNRC_IPV6 +menuconfig KCONFIG_USEMODULE_GNRC_IPV6 bool "Configure GNRC IPv6 module" - depends on MODULE_GNRC_IPV6 + depends on USEMODULE_GNRC_IPV6 help Configure GNRC IPv6 module using Kconfig. -if KCONFIG_MODULE_GNRC_IPV6 +if KCONFIG_USEMODULE_GNRC_IPV6 config GNRC_IPV6_MSG_QUEUE_SIZE_EXP int "Exponent for the message queue size used for the IPv6 thread (as 2^n)" @@ -22,7 +22,7 @@ config GNRC_IPV6_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_MODULE_GNRC_IPV6 +endif # KCONFIG_USEMODULE_GNRC_IPV6 rsource "blacklist/Kconfig" rsource "ext/frag/Kconfig" diff --git a/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig b/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig index 215075f517..6e0ae8cc1a 100644 --- a/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig @@ -4,16 +4,16 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_IPV6_BLACKLIST +menuconfig KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST bool "Configure GNRC IPv6 Blacklisting" - depends on MODULE_GNRC_IPV6_BLACKLIST + depends on USEMODULE_GNRC_IPV6_BLACKLIST help Configure GNRC IPv6 Blacklisting module using Kconfig. -if KCONFIG_MODULE_GNRC_IPV6_BLACKLIST +if KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST config GNRC_IPV6_BLACKLIST_SIZE int "Maximum size of the blacklist" default 8 -endif # KCONFIG_MODULE_GNRC_IPV6_BLACKLIST +endif # KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST diff --git a/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig b/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig index b4820917f6..65323f4e85 100644 --- a/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_IPV6_EXT_FRAG +menuconfig KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG bool "Configure GNRC IPv6 fragmentation and reassembly" - depends on MODULE_GNRC_IPV6_EXT_FRAG + depends on USEMODULE_GNRC_IPV6_EXT_FRAG help Configure GNRC IPv6 fragmentation and reassembly via Kconfig. -if KCONFIG_MODULE_GNRC_IPV6_EXT_FRAG +if KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG config GNRC_IPV6_EXT_FRAG_SEND_SIZE int "Number of entries IPv6 in the send buffer" @@ -47,4 +47,4 @@ config GNRC_IPV6_EXT_FRAG_RBUF_DO_NOT_OVERRIDE entry when a fragment for a new datagram is received. When set to 1, no entry will be overwritten (they will still timeout normally) -endif # KCONFIG_MODULE_GNRC_IPV6_EXT_FRAG +endif # KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG diff --git a/sys/net/gnrc/network_layer/ipv6/nib/Kconfig b/sys/net/gnrc/network_layer/ipv6/nib/Kconfig index 050125ceeb..2903a87aa4 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/nib/Kconfig @@ -4,55 +4,55 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_IPV6_NIB +menuconfig KCONFIG_USEMODULE_GNRC_IPV6_NIB bool "Configure GNRC IPv6 NIB" -if KCONFIG_MODULE_GNRC_IPV6_NIB +if KCONFIG_USEMODULE_GNRC_IPV6_NIB config GNRC_IPV6_NIB_6LBR bool "6LoWPAN border router features" - default y if MODULE_GNRC_IPV6_NIB_6LBR + default y if USEMODULE_GNRC_IPV6_NIB_6LBR help Enable 6LoWPAN Border Router (6LBR) features. @see https://tools.ietf.org/html/rfc6775#section-2 config GNRC_IPV6_NIB_6LR bool "6LoWPAN router features" - default y if MODULE_GNRC_IPV6_NIB_6LR || GNRC_IPV6_NIB_6LBR + default y if USEMODULE_GNRC_IPV6_NIB_6LR || GNRC_IPV6_NIB_6LBR help Enable 6LoWPAN Router (6LR) features. @see https://tools.ietf.org/html/rfc6775#section-2 config GNRC_IPV6_NIB_6LN bool "6LoWPAN node features" - default y if MODULE_GNRC_IPV6_NIB_6LN || GNRC_IPV6_NIB_6LR + default y if USEMODULE_GNRC_IPV6_NIB_6LN || GNRC_IPV6_NIB_6LR help Enable 6LoWPAN Node (6LN) features. @see https://tools.ietf.org/html/rfc6775#section-2 config GNRC_IPV6_NIB_ROUTER bool "Router features" - default y if MODULE_GNRC_IPV6_NIB_ROUTER || GNRC_IPV6_NIB_6LR + default y if USEMODULE_GNRC_IPV6_NIB_ROUTER || GNRC_IPV6_NIB_6LR config GNRC_IPV6_NIB_SLAAC bool "Stateless address auto-configuration" - default y if MODULE_GNRC_IPV6_NIB_6LBR - default n if MODULE_GNRC_IPV6_NIB_6LR || MODULE_GNRC_IPV6_NIB_6LN + default y if USEMODULE_GNRC_IPV6_NIB_6LBR + default n if USEMODULE_GNRC_IPV6_NIB_6LR || USEMODULE_GNRC_IPV6_NIB_6LN default y config GNRC_IPV6_NIB_QUEUE_PKT bool "Use packet queue with address resolution" - default n if MODULE_GNRC_IPV6_NIB_6LN || GNRC_IPV6_NIB_6LN + default n if USEMODULE_GNRC_IPV6_NIB_6LN || GNRC_IPV6_NIB_6LN default y config GNRC_IPV6_NIB_ARSM bool "Use classic NDP address resolution state-machine" - default n if MODULE_GNRC_IPV6_NIB_6LN && !GNRC_IPV6_NIB_6LR + default n if USEMODULE_GNRC_IPV6_NIB_6LN && !GNRC_IPV6_NIB_6LR default y config GNRC_IPV6_NIB_DNS bool "Support for DNS configuration options" - default y if MODULE_GNRC_IPV6_NIB_DNS + default y if USEMODULE_GNRC_IPV6_NIB_DNS config GNRC_IPV6_NIB_ADV_ROUTER bool "Activate router advertising at interface start-up" @@ -78,8 +78,8 @@ endif config GNRC_IPV6_NIB_NUMOF int "Number of entries in NIB" - default 16 if MODULE_GNRC_IPV6_NIB_6LBR - default 1 if MODULE_GNRC_IPV6_NIB_6LN && !GNRC_IPV6_NIB_6LR + default 16 if USEMODULE_GNRC_IPV6_NIB_6LBR + default 1 if USEMODULE_GNRC_IPV6_NIB_6LN && !GNRC_IPV6_NIB_6LR default 4 config GNRC_IPV6_NIB_REACH_TIME_RESET @@ -118,4 +118,4 @@ comment "Warning: Behavior for more than 2 Authoritative Border Router entries" comment "is currently not specified or tested." endif -endif # KCONFIG_MODULE_GNRC_IPV6_NIB +endif # KCONFIG_USEMODULE_GNRC_IPV6_NIB diff --git a/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig b/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig index b0a87155ed..a40bc7e917 100644 --- a/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig @@ -4,16 +4,16 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_IPV6_WHITELIST +menuconfig KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST bool "Configure GNRC IPv6 Whitelisting" - depends on MODULE_GNRC_IPV6_WHITELIST + depends on USEMODULE_GNRC_IPV6_WHITELIST help Configure GNRC IPv6 Whitelisting module using Kconfig. -if KCONFIG_MODULE_GNRC_IPV6_WHITELIST +if KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST config GNRC_IPV6_WHITELIST_SIZE int "Maximum size of the whitelist" default 8 -endif # KCONFIG_MODULE_GNRC_IPV6_WHITELIST +endif # KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST diff --git a/sys/net/gnrc/network_layer/sixlowpan/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/Kconfig index 9aa2776697..2a1855e897 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/Kconfig @@ -5,13 +5,13 @@ # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN +menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN bool "Configure GNRC 6LoWPAN" - depends on MODULE_GNRC_SIXLOWPAN + depends on USEMODULE_GNRC_SIXLOWPAN help Configure GNRC 6LoWPAN module using Kconfig. -if KCONFIG_MODULE_GNRC_SIXLOWPAN +if KCONFIG_USEMODULE_GNRC_SIXLOWPAN rsource "frag/Kconfig" rsource "nd/Kconfig" @@ -24,4 +24,4 @@ config GNRC_SIXLOWPAN_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_MODULE_GNRC_SIXLOWPAN +endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/Kconfig index 71ca3f3a3d..71df2bee96 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/Kconfig @@ -5,10 +5,10 @@ # directory for more details. # -if MODULE_GNRC_SIXLOWPAN_FRAG +if USEMODULE_GNRC_SIXLOWPAN_FRAG rsource "fb/Kconfig" rsource "rb/Kconfig" rsource "vrb/Kconfig" -endif # MODULE_GNRC_SIXLOWPAN_FRAG +endif # USEMODULE_GNRC_SIXLOWPAN_FRAG diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig index 5309bc22b9..ec333cd722 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB +menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB bool "Configure GNRC 6LoWPAN Fragmentation buffer" - depends on MODULE_GNRC_SIXLOWPAN_FRAG_FB + depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_FB help Configure GNRC 6LoWPAN Fragmentation buffer using Kconfig. -if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB +if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB config GNRC_SIXLOWPAN_FRAG_FB_SIZE int "Number of datagrams that can be fragmented simultaneously" @@ -19,4 +19,4 @@ config GNRC_SIXLOWPAN_FRAG_FB_SIZE This determines the number of @ref gnrc_sixlowpan_frag_fb_t instances available. -endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_FB +endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig index d693a2dbf3..9070ff076c 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB +menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB bool "Configure GNRC 6LoWPAN Reassembly buffer" - depends on MODULE_GNRC_SIXLOWPAN_FRAG_RB + depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_RB help Configure GNRC 6LoWPAN Reassembly buffer using Kconfig. -if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB +if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB config GNRC_SIXLOWPAN_FRAG_RBUF_SIZE int "Size of the reassembly buffer" @@ -39,4 +39,4 @@ config GNRC_SIXLOWPAN_FRAG_RBUF_DEL_TIMER of a reassembly buffer entry on late arriving link-layer uplicates. -endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_RB +endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig index 6a2d54660b..f0dd171176 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB +menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB bool "Configure GNRC 6LoWPAN Virtual reassembly buffer" - depends on MODULE_GNRC_SIXLOWPAN_FRAG_VRB + depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB help Configure GNRC 6LoWPAN Virtual reassembly buffer module using Kconfig. -if KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB +if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB config GNRC_SIXLOWPAN_FRAG_VRB_SIZE int "Size of the virtual reassembly buffer" @@ -23,4 +23,4 @@ config GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US int "Timeout for a virtual reassembly buffer entry in microseconds" default 3000000 -endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_FRAG_VRB +endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB diff --git a/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig index d948969a18..3d19af8515 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig @@ -4,21 +4,21 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_SIXLOWPAN_ND +menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND bool "Configure GNRC 6LoWPAN Neighbor Discovery" - depends on MODULE_GNRC_SIXLOWPAN_ND + depends on USEMODULE_GNRC_SIXLOWPAN_ND help Configure GNRC 6LoWPAN Neighbor Discovery module using Kconfig. -if KCONFIG_MODULE_GNRC_SIXLOWPAN_ND +if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND config GNRC_SIXLOWPAN_ND_AR_LTIME int "Registration lifetime for the address registration option in minutes" - depends on MODULE_GNRC_IPV6_NIB + depends on USEMODULE_GNRC_IPV6_NIB default 15 help This value should be adapted to the devices power-lifecycle so that it is greater than the time the device spends sleeping. See RFC 6775, section 5.8.1. -endif # KCONFIG_MODULE_GNRC_SIXLOWPAN_ND +endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND diff --git a/sys/net/gnrc/pktbuf/Kconfig b/sys/net/gnrc/pktbuf/Kconfig index 6bffeca63e..6ad325d624 100644 --- a/sys/net/gnrc/pktbuf/Kconfig +++ b/sys/net/gnrc/pktbuf/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_PKTBUF_STATIC +menuconfig KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC bool "Configure the GNRC Packet Buffer" - depends on MODULE_GNRC_PKTBUF_STATIC + depends on USEMODULE_GNRC_PKTBUF_STATIC help Configure the GNRC_PKTBUF using Kconfig. -if KCONFIG_MODULE_GNRC_PKTBUF_STATIC +if KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC config GNRC_PKTBUF_SIZE int "Maximum size of the static packet buffer" @@ -21,4 +21,4 @@ config GNRC_PKTBUF_SIZE packets (2 incoming, 2 outgoing; 2 * 2 * 1280 B = 5 KiB) + Meta-Data (roughly estimated to 1 KiB; might be smaller). -endif # KCONFIG_MODULE_GNRC_PKTBUF_STATIC +endif # KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC diff --git a/sys/net/gnrc/pktdump/Kconfig b/sys/net/gnrc/pktdump/Kconfig index 9086ea3354..6509a293c9 100644 --- a/sys/net/gnrc/pktdump/Kconfig +++ b/sys/net/gnrc/pktdump/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_PKTDUMP +menuconfig KCONFIG_USEMODULE_GNRC_PKTDUMP bool "Configure GNRC Packet Dump" - depends on MODULE_GNRC_PKTDUMP + depends on USEMODULE_GNRC_PKTDUMP help Configure the GNRC_PKTDUMP using Kconfig. -if KCONFIG_MODULE_GNRC_PKTDUMP +if KCONFIG_USEMODULE_GNRC_PKTDUMP config GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP int "Exponent for the queue size (resulting in the queue size 2^n)" @@ -20,4 +20,4 @@ config GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_MODULE_GNRC_PKTDUMP +endif # KCONFIG_USEMODULE_GNRC_PKTDUMP diff --git a/sys/net/gnrc/routing/rpl/Kconfig b/sys/net/gnrc/routing/rpl/Kconfig index ee74cd15ba..8c3a3d944c 100644 --- a/sys/net/gnrc/routing/rpl/Kconfig +++ b/sys/net/gnrc/routing/rpl/Kconfig @@ -5,11 +5,11 @@ # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_RPL +menuconfig KCONFIG_USEMODULE_GNRC_RPL bool "Configure RPL routing protocol" - depends on MODULE_GNRC_RPL + depends on USEMODULE_GNRC_RPL -if KCONFIG_MODULE_GNRC_RPL +if KCONFIG_USEMODULE_GNRC_RPL menu "Trickle parameters" @@ -141,7 +141,7 @@ config GNRC_RPL_PARENT_TIMEOUT_DIS_RETRIES config GNRC_RPL_DEFAULT_NETIF int "Default network interface to run the protocol on" default 0 - depends on MODULE_AUTO_INIT_GNRC_RPL + depends on USEMODULE_AUTO_INIT_GNRC_RPL config GNRC_RPL_MSG_QUEUE_SIZE_EXP int "Exponent for the thread's message queue size (as 2^n)" @@ -151,4 +151,4 @@ config GNRC_RPL_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_MODULE_GNRC_RPL +endif # KCONFIG_USEMODULE_GNRC_RPL diff --git a/sys/net/gnrc/transport_layer/tcp/Kconfig b/sys/net/gnrc/transport_layer/tcp/Kconfig index d3c81d7541..9379662d94 100644 --- a/sys/net/gnrc/transport_layer/tcp/Kconfig +++ b/sys/net/gnrc/transport_layer/tcp/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_GNRC_TCP +menuconfig KCONFIG_USEMODULE_GNRC_TCP bool "Configure GNRC_TCP" - depends on MODULE_GNRC_TCP + depends on USEMODULE_GNRC_TCP help Configure the GNRC_TCP using Kconfig. -if KCONFIG_MODULE_GNRC_TCP +if KCONFIG_USEMODULE_GNRC_TCP config GNRC_TCP_CONNECTION_TIMEOUT_DURATION int "Timeout duration for user calls in microseconds" @@ -28,7 +28,7 @@ config GNRC_TCP_MSL config GNRC_TCP_MSS int "Maximum Segment Size (MSS)" - default 1220 if MODULE_GNRC_IPV6 + default 1220 if USEMODULE_GNRC_IPV6 default 576 config GNRC_TCP_MSS_MULTIPLICATOR @@ -48,7 +48,7 @@ config GNRC_TCP_DEFAULT_WINDOW_EN config GNRC_TCP_DEFAULT_WINDOW int "TCP receive window size" - default 1220 if MODULE_GNRC_IPV6 + default 1220 if USEMODULE_GNRC_IPV6 default 576 depends on GNRC_TCP_DEFAULT_WINDOW_EN help @@ -126,4 +126,4 @@ config GNRC_TCP_EVENTLOOP_MSG_QUEUE_SIZE_SIZE_EXP The number of elements in a message queue must be always a power of two. This value defines the exponent of 2^n. -endif # KCONFIG_MODULE_GNRC_TCP +endif # KCONFIG_USEMODULE_GNRC_TCP diff --git a/sys/net/link_layer/csma_sender/Kconfig b/sys/net/link_layer/csma_sender/Kconfig index 9e68bad78a..115b7179ae 100644 --- a/sys/net/link_layer/csma_sender/Kconfig +++ b/sys/net/link_layer/csma_sender/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_CSMA_SENDER +menuconfig KCONFIG_USEMODULE_CSMA_SENDER bool "Configure CSMA sender" - depends on MODULE_CSMA_SENDER + depends on USEMODULE_CSMA_SENDER help Configure the CSMA_SENDER using Kconfig. -if KCONFIG_MODULE_CSMA_SENDER +if KCONFIG_USEMODULE_CSMA_SENDER config CSMA_SENDER_MIN_BE_DEFAULT int "Exponent for minimum CSMA/CA backoff time" @@ -39,4 +39,4 @@ config CSMA_SENDER_BACKOFF_PERIOD_UNIT Configure 'CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT'. Maximum and Minimum CSMA backoff time depends on unit times the value of this configuration. -endif # KCONFIG_MODULE_CSMA_SENDER +endif # KCONFIG_USEMODULE_CSMA_SENDER diff --git a/sys/net/link_layer/ieee802154/Kconfig b/sys/net/link_layer/ieee802154/Kconfig index 340df72be7..2d530c77d8 100644 --- a/sys/net/link_layer/ieee802154/Kconfig +++ b/sys/net/link_layer/ieee802154/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_MODULE_IEEE802154 +menuconfig KCONFIG_USEMODULE_IEEE802154 bool "Configure IEEE802.15.4" - depends on MODULE_IEEE802154 + depends on USEMODULE_IEEE802154 help Configure IEEE802.15.4 module using Kconfig -if KCONFIG_MODULE_IEEE802154 +if KCONFIG_USEMODULE_IEEE802154 config IEEE802154_DEFAULT_SUBGHZ_CHANNEL int "IEEE802.15.4 default sub-GHZ channel" @@ -33,4 +33,4 @@ if KCONFIG_MODULE_IEEE802154 int "IEEE802.15.4 default TX power (in dBm)" default 0 -endif # KCONFIG_MODULE_IEEE802154 +endif # KCONFIG_USEMODULE_IEEE802154 diff --git a/sys/net/link_layer/l2filter/Kconfig b/sys/net/link_layer/l2filter/Kconfig index 49ecafa63f..c43c123694 100644 --- a/sys/net/link_layer/l2filter/Kconfig +++ b/sys/net/link_layer/l2filter/Kconfig @@ -4,14 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_L2FILTER +menuconfig KCONFIG_USEMODULE_L2FILTER bool "Configure L2filter" - depends on MODULE_L2FILTER + depends on USEMODULE_L2FILTER help Configure L2filter using Kconfig. This module is used for filtering (allowlisting or denylisting) link layer addresses. -if KCONFIG_MODULE_L2FILTER +if KCONFIG_USEMODULE_L2FILTER config L2FILTER_ADDR_MAXLEN int "Maximum length of addresses that can be stored in the filter list" @@ -21,4 +21,4 @@ config L2FILTER_LISTSIZE int "Number of slots in each filter list (filter entries per device)" default 8 -endif # KCONFIG_MODULE_L2FILTER +endif # KCONFIG_USEMODULE_L2FILTER diff --git a/sys/net/netif/Kconfig b/sys/net/netif/Kconfig index fbfc1b9bc4..9477f38ebd 100644 --- a/sys/net/netif/Kconfig +++ b/sys/net/netif/Kconfig @@ -4,16 +4,16 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_NETIF +menuconfig KCONFIG_USEMODULE_NETIF bool "Configure Network Interfaces" - depends on MODULE_NETIF + depends on USEMODULE_NETIF help Configure Network Interfaces (NETIF) using Kconfig. -if KCONFIG_MODULE_NETIF +if KCONFIG_USEMODULE_NETIF config NETIF_NAMELENMAX int "Maximum length for an interface name" default 8 -endif # KCONFIG_MODULE_NETIF +endif # KCONFIG_USEMODULE_NETIF diff --git a/sys/net/sock/Kconfig b/sys/net/sock/Kconfig index 322af662df..e92827496e 100644 --- a/sys/net/sock/Kconfig +++ b/sys/net/sock/Kconfig @@ -4,11 +4,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_SOCK_UTIL +menuconfig KCONFIG_USEMODULE_SOCK_UTIL bool "Configure SOCK utility functions" - depends on MODULE_SOCK_UTIL + depends on USEMODULE_SOCK_UTIL -if KCONFIG_MODULE_SOCK_UTIL +if KCONFIG_USEMODULE_SOCK_UTIL config SOCK_SCHEME_MAXLEN int "Maximum length of the scheme part" @@ -28,4 +28,4 @@ config SOCK_URLPATH_MAXLEN help This value is used in sock_urlsplit(). -endif # KCONFIG_MODULE_SOCK_UTIL +endif # KCONFIG_USEMODULE_SOCK_UTIL diff --git a/sys/usb/Kconfig b/sys/usb/Kconfig index a63fba7464..c7d35e8e27 100644 --- a/sys/usb/Kconfig +++ b/sys/usb/Kconfig @@ -6,7 +6,7 @@ # menuconfig KCONFIG_USB bool "Configure USB" - depends on MODULE_USBUS + depends on USEMODULE_USBUS help Configure the USB peripheral via Kconfig. diff --git a/sys/usb/usbus/Kconfig b/sys/usb/usbus/Kconfig index b28fd6016f..823c195e47 100644 --- a/sys/usb/usbus/Kconfig +++ b/sys/usb/usbus/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_USBUS +menuconfig KCONFIG_USEMODULE_USBUS bool "Configure USB Unified Stack (USBUS)" - depends on MODULE_USBUS + depends on USEMODULE_USBUS help Configure the USBUS module via Kconfig. -if KCONFIG_MODULE_USBUS +if KCONFIG_USEMODULE_USBUS config USBUS_AUTO_ATTACH bool "Auto attach" @@ -44,4 +44,4 @@ endchoice rsource "cdc/Kconfig" -endif # KCONFIG_MODULE_USBUS +endif # KCONFIG_USEMODULE_USBUS diff --git a/sys/usb/usbus/cdc/acm/Kconfig b/sys/usb/usbus/cdc/acm/Kconfig index 0c6c6f1a4d..132fea85eb 100644 --- a/sys/usb/usbus/cdc/acm/Kconfig +++ b/sys/usb/usbus/cdc/acm/Kconfig @@ -4,19 +4,19 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_USBUS_CDC_ACM +menuconfig KCONFIG_USEMODULE_USBUS_CDC_ACM bool "Configure USBUS CDC ACM" - depends on MODULE_USBUS_CDC_ACM + depends on USEMODULE_USBUS_CDC_ACM help Configure the USBUS CDC ACM module via Kconfig. -if KCONFIG_MODULE_USBUS_CDC_ACM +if KCONFIG_USEMODULE_USBUS_CDC_ACM config USBUS_CDC_ACM_STDIO_BUF_SIZE_EXP int "Buffer size for STDIN and STDOUT data (as exponent of 2^n)" default 7 range 0 31 - depends on MODULE_STDIO_CDC_ACM + depends on USEMODULE_STDIO_CDC_ACM help As buffer size ALWAYS needs to be power of two, this changes this option represents the exponent of 2^n, which will be used as the size of the @@ -43,4 +43,4 @@ config USBUS_CDC_ACM_BULK_EP_SIZE_64 endchoice -endif # KCONFIG_MODULE_USBUS_CDC_ACM +endif # KCONFIG_USEMODULE_USBUS_CDC_ACM diff --git a/sys/usb/usbus/cdc/ecm/Kconfig b/sys/usb/usbus/cdc/ecm/Kconfig index 1f4324a06f..9c7ba5fd6e 100644 --- a/sys/usb/usbus/cdc/ecm/Kconfig +++ b/sys/usb/usbus/cdc/ecm/Kconfig @@ -4,13 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_MODULE_USBUS_CDC_ECM +menuconfig KCONFIG_USEMODULE_USBUS_CDC_ECM bool "Configure USBUS CDC ECM" - depends on MODULE_USBUS_CDC_ECM + depends on USEMODULE_USBUS_CDC_ECM help Configure the USBUS CDC ECM module via Kconfig. -if KCONFIG_MODULE_USBUS_CDC_ECM +if KCONFIG_USEMODULE_USBUS_CDC_ECM config USBUS_CDC_ECM_CONFIG_SPEED_IND bool "Configure upload and download speeds independently" @@ -40,4 +40,4 @@ config USBUS_CDC_ECM_CONFIG_SPEED_UPSTREAM This is the link upload speed, defined in bits/second, that the USB peripheral will report to the host. -endif # KCONFIG_MODULE_USBUS_CDC_ECM +endif # KCONFIG_USEMODULE_USBUS_CDC_ECM diff --git a/tests/gnrc_dhcpv6_client_6lbr/Kconfig b/tests/gnrc_dhcpv6_client_6lbr/Kconfig index a45569e9a3..25bacee753 100644 --- a/tests/gnrc_dhcpv6_client_6lbr/Kconfig +++ b/tests/gnrc_dhcpv6_client_6lbr/Kconfig @@ -1,10 +1,10 @@ -if MODULE_ETHOS +if USEMODULE_ETHOS config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE default y - depends on MODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_MODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_USEMODULE_GNRC_DHCPV6 config GNRC_NETIF_IPV6_ADDRS_NUMOF # CONFIG_GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE=1 requires one more address # for `fe80::2`. default 3 - depends on KCONFIG_MODULE_GNRC_NETIF -endif # MODULE_ETHOS + depends on KCONFIG_USEMODULE_GNRC_NETIF +endif # USEMODULE_ETHOS diff --git a/tests/gnrc_ipv6_ext_frag/app.config b/tests/gnrc_ipv6_ext_frag/app.config index 9e2fc064a0..6e9731c822 100644 --- a/tests/gnrc_ipv6_ext_frag/app.config +++ b/tests/gnrc_ipv6_ext_frag/app.config @@ -1,3 +1,3 @@ # This test fails if the pool size is less than 3 -CONFIG_KCONFIG_MODULE_GNRC_IPV6_EXT_FRAG=y +CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG=y CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE=3