diff --git a/makefiles/deprecated_modules.inc.mk b/makefiles/deprecated_modules.inc.mk index 1e6d34065b..525439f3de 100644 --- a/makefiles/deprecated_modules.inc.mk +++ b/makefiles/deprecated_modules.inc.mk @@ -1,6 +1,5 @@ # Add deprecated modules here # Keep this list ALPHABETICALLY SORTED!!!!111elven -DEPRECATED_MODULES += event_thread_lowest DEPRECATED_MODULES += gnrc_netdev_default DEPRECATED_MODULES += gnrc_netif_cmd_lora # use shell_cmd_gnrc_netif_lorawan instead DEPRECATED_MODULES += gnrc_pktbuf_cmd # use shell_cmd_gnrc_pktbuf instead diff --git a/makefiles/pseudomodules.inc.mk b/makefiles/pseudomodules.inc.mk index 24f3228f02..e7ec63fc27 100644 --- a/makefiles/pseudomodules.inc.mk +++ b/makefiles/pseudomodules.inc.mk @@ -61,13 +61,6 @@ PSEUDOMODULES += dns_msg PSEUDOMODULES += ecc_% PSEUDOMODULES += ethos_stdio PSEUDOMODULES += event_% -## @defgroup sys_event_thread_lowest event_thread_lowest -## @ingroup sys_event -## @{ -## @deprecated Use module `event_thread` instead (see @ref event/thread.h); -## Will be removed after 2021.10 release. -PSEUDOMODULES += event_thread_lowest -## @} PSEUDOMODULES += event_timeout PSEUDOMODULES += event_timeout_ztimer PSEUDOMODULES += evtimer_mbox diff --git a/pkg/Kconfig b/pkg/Kconfig index cdb00d2bda..e150bac93e 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -36,6 +36,7 @@ rsource "heatshrink/Kconfig" rsource "jerryscript/Kconfig" rsource "jsmn/Kconfig" rsource "libb2/Kconfig" +rsource "libbase58/Kconfig" rsource "libcose/Kconfig" rsource "libfixmath/Kconfig" rsource "libhydrogen/Kconfig" diff --git a/pkg/libbase58/Kconfig b/pkg/libbase58/Kconfig new file mode 100644 index 0000000000..4ad2e30321 --- /dev/null +++ b/pkg/libbase58/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config PACKAGE_LIBBASE58 + bool "Bitcoin's base58 encoding" + depends on TEST_KCONFIG + + select MODULE_POSIX_HEADERS diff --git a/sys/Kconfig b/sys/Kconfig index 5f986c5c4b..6a505b70e9 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -19,6 +19,7 @@ rsource "bus/Kconfig" rsource "cb_mux/Kconfig" rsource "checksum/Kconfig" rsource "chunked_ringbuffer/Kconfig" +rsource "clif/Kconfig" rsource "color/Kconfig" rsource "crypto/Kconfig" rsource "congure/Kconfig" @@ -72,6 +73,7 @@ choice LOG #modules log_color and log_printfnoformat describe their options endchoice +rsource "coding/Kconfig" rsource "log_color/Kconfig" rsource "log_printfnoformat/Kconfig" rsource "luid/Kconfig" @@ -94,9 +96,11 @@ rsource "rust_riotmodules/Kconfig" rsource "saul_reg/Kconfig" rsource "schedstatistics/Kconfig" rsource "sema/Kconfig" +rsource "sema_inv/Kconfig" rsource "senml/Kconfig" rsource "seq/Kconfig" rsource "shell/Kconfig" +rsource "ssp/Kconfig" rsource "test_utils/Kconfig" rsource "timex/Kconfig" rsource "tiny_strerror/Kconfig" @@ -106,6 +110,8 @@ rsource "tsrb/Kconfig" rsource "uri_parser/Kconfig" rsource "usb/Kconfig" rsource "usb_board_reset/Kconfig" +rsource "ut_process/Kconfig" +rsource "uuid/Kconfig" rsource "vfs/Kconfig" rsource "xtimer/Kconfig" rsource "ztimer/Kconfig" diff --git a/sys/clif/Kconfig b/sys/clif/Kconfig new file mode 100644 index 0000000000..6634c0952c --- /dev/null +++ b/sys/clif/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_CLIF + bool "CoRE Link format encoding and decoding library" + depends on TEST_KCONFIG diff --git a/sys/coding/Kconfig b/sys/coding/Kconfig new file mode 100644 index 0000000000..f2223eff2b --- /dev/null +++ b/sys/coding/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_CODING + bool "Error correction codes" + depends on TEST_KCONFIG + + select MODULE_BITFIELD diff --git a/sys/include/event/thread.h b/sys/include/event/thread.h index 2ce26e44b4..82ea171161 100644 --- a/sys/include/event/thread.h +++ b/sys/include/event/thread.h @@ -42,9 +42,6 @@ * event queue gets its own thread. So higher priority events will always * preempt events of lower priority in this case. * - * Finally, the module [event_thread_lowest](@ref sys_event_thread_lowest) is - * provided for backward compatibility and has no effect. - * * @{ * * @file diff --git a/sys/include/net/netopt.h b/sys/include/net/netopt.h index 561fe19ee6..a2b367b9b6 100644 --- a/sys/include/net/netopt.h +++ b/sys/include/net/netopt.h @@ -652,26 +652,6 @@ typedef enum { */ NETOPT_LORAWAN_PUBLIC_NETWORK, - /** - * @brief (uint8_t) LoRaWAN TX application port - * - LoRaWAN: between 1 and 223 (included) - * - * @deprecated This option is deprecated and will be removed in the - * 2022.01 Release. - * The port is encoded now as a one byte - * destination address in a @ref net_gnrc_netif_hdr snip - * prepended in the packet. - * The user must take care of prepending the required snip - * during transmission. On reception, the - * snip is prepended automatically by the stack and shall be - * consumed by the user. - * During the deprecation period it is required to - * compile with @ref - * CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR - * - */ - NETOPT_LORAWAN_TX_PORT, - /** * @brief (loramac_dr_idx_t) LoRaWAN datarate for second RX window * - LoRaWAN: @ref loramac_dr_idx_t diff --git a/sys/net/crosslayer/netopt/netopt.c b/sys/net/crosslayer/netopt/netopt.c index 22ca26515f..c09b5959e0 100644 --- a/sys/net/crosslayer/netopt/netopt.c +++ b/sys/net/crosslayer/netopt/netopt.c @@ -106,7 +106,6 @@ static const char *_netopt_strmap[] = { [NETOPT_LORAWAN_DR] = "NETOPT_LORAWAN_DR", [NETOPT_LORAWAN_ADR] = "NETOPT_LORAWAN_ADR", [NETOPT_LORAWAN_PUBLIC_NETWORK]= "NETOPT_LORAWAN_PUBLIC_NETWORK", - [NETOPT_LORAWAN_TX_PORT] = "NETOPT_LORAWAN_TX_PORT", [NETOPT_LORAWAN_RX2_DR] = "NETOPT_LORAWAN_RX2_DR", [NETOPT_LORAWAN_RX2_FREQ] = "NETOPT_LORAWAN_RX2_FREQ", [NETOPT_LORAWAN_MAX_RX_ERROR] = "NETOPT_LORAWAN_MAX_RX_ERROR", diff --git a/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c b/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c index 4cbf3f7a66..b151c6c52c 100644 --- a/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c +++ b/sys/net/gnrc/netif/lorawan/gnrc_netif_lorawan.c @@ -506,10 +506,6 @@ static int _set(gnrc_netif_t *netif, const gnrc_netapi_opt_t *opt) } netif->lorawan.datarate = *((uint8_t *)opt->data); break; - case NETOPT_LORAWAN_TX_PORT: - assert(opt->data_len == sizeof(uint8_t)); - netif->lorawan.port = *((uint8_t *)opt->data); - break; case NETOPT_ACK_REQ: assert(opt->data_len == sizeof(netopt_enable_t)); netif->lorawan.ack_req = *((netopt_enable_t *)opt->data); diff --git a/sys/sema_inv/Kconfig b/sys/sema_inv/Kconfig new file mode 100644 index 0000000000..50ac0c0890 --- /dev/null +++ b/sys/sema_inv/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_SEMA_INV + bool "inverse Semaphores" + depends on TEST_KCONFIG + + select MODULE_ATOMIC_UTILS diff --git a/sys/ssp/Kconfig b/sys/ssp/Kconfig new file mode 100644 index 0000000000..aa55cd105e --- /dev/null +++ b/sys/ssp/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_SSP + bool "Stack Smashing Protector (SSP) helper functions" + depends on TEST_KCONFIG + + select HAS_SSP diff --git a/sys/ut_process/Kconfig b/sys/ut_process/Kconfig new file mode 100644 index 0000000000..d7b8bd7b2b --- /dev/null +++ b/sys/ut_process/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_UT_PROCESS + bool "URI template processor" + depends on TEST_KCONFIG + + select MODULE_FMT diff --git a/sys/uuid/Kconfig b/sys/uuid/Kconfig new file mode 100644 index 0000000000..7def459c7a --- /dev/null +++ b/sys/uuid/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_UUID + bool "RFC 4122 compliant UUID's" + depends on TEST_KCONFIG + + select MODULE_HASHES + select MODULE_RANDOM + select MODULE_FMT diff --git a/tests/pkg/libbase58/app.config.test b/tests/pkg/libbase58/app.config.test new file mode 100644 index 0000000000..3e6e71f2b5 --- /dev/null +++ b/tests/pkg/libbase58/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_LIBBASE58=y diff --git a/tests/sys/sema_inv/Makefile b/tests/sys/sema_inv/Makefile index 4b55e60aa6..3cf52ac608 100644 --- a/tests/sys/sema_inv/Makefile +++ b/tests/sys/sema_inv/Makefile @@ -1,6 +1,7 @@ include ../Makefile.sys_common USEMODULE += sema_inv -USEMODULE += xtimer +USEMODULE += ztimer +USEMODULE += ztimer_msec include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/sema_inv/app.config.test b/tests/sys/sema_inv/app.config.test new file mode 100644 index 0000000000..214cd33b44 --- /dev/null +++ b/tests/sys/sema_inv/app.config.test @@ -0,0 +1,3 @@ +CONFIG_MODULE_SEMA_INV=y +CONFIG_MODULE_ZTIMER=y +CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/sys/sema_inv/main.c b/tests/sys/sema_inv/main.c index b9b05ff58c..c213be18d2 100644 --- a/tests/sys/sema_inv/main.c +++ b/tests/sys/sema_inv/main.c @@ -21,7 +21,7 @@ #include #include "sema_inv.h" -#include "xtimer.h" +#include "ztimer.h" char t1_stack[THREAD_STACKSIZE_SMALL]; char t2_stack[THREAD_STACKSIZE_SMALL]; @@ -38,7 +38,7 @@ static void *thread_count(void *arg) printf("THREAD %u start\n", ctx->id); - xtimer_msleep(5); + ztimer_sleep(ZTIMER_MSEC, 5); if (sema_inv_post(ctx->sync)) { printf("THREAD %u woke main thread\n", ctx->id); @@ -53,7 +53,7 @@ static void *thread_bit(void *arg) printf("THREAD %u start\n", ctx->id); - xtimer_msleep(5); + ztimer_sleep(ZTIMER_MSEC, 5); if (sema_inv_post_mask(ctx->sync, 1 << ctx->id)) { printf("THREAD %u woke main thread\n", ctx->id); @@ -86,7 +86,7 @@ static void test_counter_mode(void) puts("thread synced"); /* wait for all threads to terminate, we are going to re-use the stack */ - xtimer_msleep(50); + ztimer_sleep(ZTIMER_MSEC, 50); } static void test_mask_mode(void) @@ -113,7 +113,7 @@ static void test_mask_mode(void) puts("thread synced"); /* wait for all threads to terminate, we are going to re-use the stack */ - xtimer_msleep(50); + ztimer_sleep(ZTIMER_MSEC, 50); } int main(void) diff --git a/tests/sys/ssp/app.config.test b/tests/sys/ssp/app.config.test new file mode 100644 index 0000000000..7a73919bdd --- /dev/null +++ b/tests/sys/ssp/app.config.test @@ -0,0 +1 @@ +CONFIG_MODULE_SSP=y