From 6bd6091938cdf03c4145659e090739f33b921977 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 31 Mar 2021 11:09:28 +0200 Subject: [PATCH 1/6] pkg/*/Kconfig: Add simple kconfig pkgs This adds many basic `PACKAGE_*` to Kconfig: - pkg/Kconfig - pkg/c25519/Kconfig - pkg/cayenne-lpp/Kconfig - pkg/cifra/Kconfig - pkg/cn-cbor/Kconfig - pkg/driver_atwinc15x0/Kconfig - pkg/driver_bme680/Kconfig - pkg/emlearn/Kconfig - pkg/gemmlowp/Kconfig - pkg/hacl/Kconfig - pkg/heatshrink/Kconfig - pkg/jsmn/Kconfig - pkg/libb2/Kconfig - pkg/libcose/Kconfig - pkg/libfixmath/Kconfig - pkg/libhydrogen/Kconfig - pkg/lora-serialization/Kconfig - pkg/micro-ecc/Kconfig - pkg/microcoap/Kconfig - pkg/minmea/Kconfig - pkg/monocypher/Kconfig - pkg/nanocbor/Kconfig - pkg/nanopb/Kconfig - pkg/qDSA/Kconfig - pkg/qcbor/Kconfig - pkg/relic/Kconfig - pkg/talking_leds/Kconfig - pkg/tiny-asn1/Kconfig - pkg/tinycbor/Kconfig - pkg/tinycrypt/Kconfig - pkg/tlsf/Kconfig - pkg/tweetnacl/Kconfig - pkg/u8g2/Kconfig - pkg/ubasic/Kconfig - pkg/ucglib/Kconfig - pkg/utensor/Kconfig - pkg/yxml/Kconfig --- pkg/Kconfig | 35 +++++++++++++++++++++++++++++++ pkg/c25519/Kconfig | 17 +++++++++++++++ pkg/cayenne-lpp/Kconfig | 13 ++++++++++++ pkg/cifra/Kconfig | 14 +++++++++++++ pkg/cn-cbor/Kconfig | 14 +++++++++++++ pkg/driver_atwinc15x0/Kconfig | 32 ++++++++++++++++++++++++++++ pkg/driver_bme680/Kconfig | 2 ++ pkg/emlearn/Kconfig | 18 ++++++++++++++++ pkg/gemmlowp/Kconfig | 17 +++++++++++++++ pkg/hacl/Kconfig | 12 +++++++++++ pkg/heatshrink/Kconfig | 13 ++++++++++++ pkg/jsmn/Kconfig | 10 +++++++++ pkg/libb2/Kconfig | 15 ++++++++++++++ pkg/libcose/Kconfig | 38 ++++++++++++++++++++++++++++++++++ pkg/libfixmath/Kconfig | 22 ++++++++++++++++++++ pkg/libhydrogen/Kconfig | 12 +++++++++++ pkg/lora-serialization/Kconfig | 10 +++++++++ pkg/micro-ecc/Kconfig | 17 +++++++++++++++ pkg/microcoap/Kconfig | 12 +++++++++++ pkg/minmea/Kconfig | 10 +++++++++ pkg/monocypher/Kconfig | 22 ++++++++++++++++++++ pkg/nanocbor/Kconfig | 11 ++++++++++ pkg/nanopb/Kconfig | 10 +++++++++ pkg/qDSA/Kconfig | 20 ++++++++++++++++++ pkg/qcbor/Kconfig | 11 ++++++++++ pkg/relic/Kconfig | 12 +++++++++++ pkg/talking_leds/Kconfig | 11 ++++++++++ pkg/tiny-asn1/Kconfig | 10 +++++++++ pkg/tinycbor/Kconfig | 19 +++++++++++++++++ pkg/tinycrypt/Kconfig | 11 ++++++++++ pkg/tlsf/Kconfig | 31 +++++++++++++++++++++++++++ pkg/tweetnacl/Kconfig | 16 ++++++++++++++ pkg/u8g2/Kconfig | 23 ++++++++++++++++++++ pkg/ubasic/Kconfig | 14 +++++++++++++ pkg/ucglib/Kconfig | 23 ++++++++++++++++++++ pkg/utensor/Kconfig | 22 ++++++++++++++++++++ pkg/yxml/Kconfig | 12 +++++++++++ 37 files changed, 611 insertions(+) create mode 100644 pkg/c25519/Kconfig create mode 100644 pkg/cayenne-lpp/Kconfig create mode 100644 pkg/cifra/Kconfig create mode 100644 pkg/cn-cbor/Kconfig create mode 100644 pkg/driver_atwinc15x0/Kconfig create mode 100644 pkg/emlearn/Kconfig create mode 100644 pkg/gemmlowp/Kconfig create mode 100644 pkg/hacl/Kconfig create mode 100644 pkg/heatshrink/Kconfig create mode 100644 pkg/jsmn/Kconfig create mode 100644 pkg/libb2/Kconfig create mode 100644 pkg/libcose/Kconfig create mode 100644 pkg/libfixmath/Kconfig create mode 100644 pkg/libhydrogen/Kconfig create mode 100644 pkg/lora-serialization/Kconfig create mode 100644 pkg/micro-ecc/Kconfig create mode 100644 pkg/microcoap/Kconfig create mode 100644 pkg/minmea/Kconfig create mode 100644 pkg/monocypher/Kconfig create mode 100644 pkg/nanocbor/Kconfig create mode 100644 pkg/nanopb/Kconfig create mode 100644 pkg/qDSA/Kconfig create mode 100644 pkg/qcbor/Kconfig create mode 100644 pkg/relic/Kconfig create mode 100644 pkg/talking_leds/Kconfig create mode 100644 pkg/tiny-asn1/Kconfig create mode 100644 pkg/tinycbor/Kconfig create mode 100644 pkg/tinycrypt/Kconfig create mode 100644 pkg/tlsf/Kconfig create mode 100644 pkg/tweetnacl/Kconfig create mode 100644 pkg/u8g2/Kconfig create mode 100644 pkg/ubasic/Kconfig create mode 100644 pkg/ucglib/Kconfig create mode 100644 pkg/utensor/Kconfig create mode 100644 pkg/yxml/Kconfig diff --git a/pkg/Kconfig b/pkg/Kconfig index 144ddfcf56..52fcc9a86c 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -6,11 +6,46 @@ # menu "Packages" +rsource "c25519/Kconfig" +rsource "cayenne-lpp/Kconfig" +rsource "cifra/Kconfig" +rsource "cn-cbor/Kconfig" +rsource "driver_atwinc15x0/Kconfig" rsource "driver_bme680/Kconfig" rsource "driver_sx126x/Kconfig" +rsource "emlearn/Kconfig" +rsource "gemmlowp/Kconfig" +rsource "hacl/Kconfig" +rsource "heatshrink/Kconfig" +rsource "jsmn/Kconfig" +rsource "libb2/Kconfig" +rsource "libcose/Kconfig" +rsource "libfixmath/Kconfig" +rsource "libhydrogen/Kconfig" +rsource "lora-serialization/Kconfig" +rsource "micro-ecc/Kconfig" +rsource "microcoap/Kconfig" +rsource "minmea/Kconfig" +rsource "monocypher/Kconfig" +rsource "nanocbor/Kconfig" +rsource "nanopb/Kconfig" +rsource "qcbor/Kconfig" +rsource "qDSA/Kconfig" +rsource "relic/Kconfig" rsource "semtech-loramac/Kconfig" +rsource "talking_leds/Kconfig" +rsource "tiny-asn1/Kconfig" +rsource "tinycbor/Kconfig" +rsource "tinycrypt/Kconfig" rsource "tinydtls/Kconfig" +rsource "tlsf/Kconfig" +rsource "tweetnacl/Kconfig" +rsource "u8g2/Kconfig" +rsource "ubasic/Kconfig" +rsource "ucglib/Kconfig" rsource "umorse/Kconfig" +rsource "utensor/Kconfig" rsource "wakaama/Kconfig" +rsource "yxml/Kconfig" endmenu # Packages diff --git a/pkg/c25519/Kconfig b/pkg/c25519/Kconfig new file mode 100644 index 0000000000..93f7582b02 --- /dev/null +++ b/pkg/c25519/Kconfig @@ -0,0 +1,17 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_C25519 + bool "Curve255191 Diffie-Hellman function package" + depends on TEST_KCONFIG + help + This package contains portable public-domain implementations of + Daniel J. Bernstein's Curve255191 Diffie-Hellman function, and + of the Ed25519 signature system. The memory consumption is low + enough that they could be reasonably considered for most + microcontroller applications. In particular, Curve25519 scalar + multiplication uses less than half a kB of peak stack usage. diff --git a/pkg/cayenne-lpp/Kconfig b/pkg/cayenne-lpp/Kconfig new file mode 100644 index 0000000000..a5671b3003 --- /dev/null +++ b/pkg/cayenne-lpp/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_CAYENNE-LPP + bool "Cayenne Low Power Payload package" + depends on TEST_KCONFIG + help + The Cayenne Low Power Payload (LPP) provides a convenient and + easy way to send data over LPWAN networks such as LoRaWAN. diff --git a/pkg/cifra/Kconfig b/pkg/cifra/Kconfig new file mode 100644 index 0000000000..7f1b4400de --- /dev/null +++ b/pkg/cifra/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_CIFRA + bool "Cifra cryptographic primitives" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT + help + Cifra is a collection of cryptographic primitives targeted at + embedded use. diff --git a/pkg/cn-cbor/Kconfig b/pkg/cn-cbor/Kconfig new file mode 100644 index 0000000000..89d0c8af9b --- /dev/null +++ b/pkg/cn-cbor/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_CN-CBOR + bool "Constrained Node CBOR" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT + select MODULE_POSIX_HEADERS + help + A constrained node implementation of CBOR in C. diff --git a/pkg/driver_atwinc15x0/Kconfig b/pkg/driver_atwinc15x0/Kconfig new file mode 100644 index 0000000000..e4ebe1e4fe --- /dev/null +++ b/pkg/driver_atwinc15x0/Kconfig @@ -0,0 +1,32 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_DRIVER_ATWINC15X0 + bool "ATWINC15x0 WiFi driver package" + depends on TEST_KCONFIG + depends on HAS_PERIPH_SPI + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + select MODULE_PERIPH_SPI + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_DRIVER_ATWINC15X0 + select MODULE_DRIVER_ATWINC15X0_COMMON + select MODULE_DRIVER_ATWINC15X0_SPI_FLASH + help + ATWINC15x0 WiFi vendor driver from the Arduino WiFi101 library. + +config MODULE_DRIVER_ATWINC15X0 + bool + depends on TEST_KCONFIG + +config MODULE_DRIVER_ATWINC15X0_COMMON + bool + depends on TEST_KCONFIG + +config MODULE_DRIVER_ATWINC15X0_SPI_FLASH + bool diff --git a/pkg/driver_bme680/Kconfig b/pkg/driver_bme680/Kconfig index f2a97c9198..d3e5d9b212 100644 --- a/pkg/driver_bme680/Kconfig +++ b/pkg/driver_bme680/Kconfig @@ -7,9 +7,11 @@ config PACKAGE_DRIVER_BME680 bool "BME680 sensor driver package" + depends on TEST_KCONFIG select MODULE_DRIVER_BME680_CONTRIB config MODULE_DRIVER_BME680_CONTRIB bool + depends on TEST_KCONFIG help RIOT integration code for the BME680 package. diff --git a/pkg/emlearn/Kconfig b/pkg/emlearn/Kconfig new file mode 100644 index 0000000000..26ac1236b3 --- /dev/null +++ b/pkg/emlearn/Kconfig @@ -0,0 +1,18 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_EMLEARN + bool "Machine Learning inference engine package" + depends on TEST_KCONFIG + depends on !HAS_ARCH_MSP430 + select MODULE_EMLEARN + help + A header only Machine Learning inference engine package. + +config MODULE_EMLEARN + bool + depends on TEST_KCONFIG diff --git a/pkg/gemmlowp/Kconfig b/pkg/gemmlowp/Kconfig new file mode 100644 index 0000000000..377c441a62 --- /dev/null +++ b/pkg/gemmlowp/Kconfig @@ -0,0 +1,17 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_GEMMLOWP + bool "General Matrix Multiplication package" + depends on TEST_KCONFIG + select MODULE_GEMMLOWP + help + A small self-contained low-precision GEMM library. + +config MODULE_GEMMLOWP + bool + depends on TEST_KCONFIG diff --git a/pkg/hacl/Kconfig b/pkg/hacl/Kconfig new file mode 100644 index 0000000000..162edb9b8c --- /dev/null +++ b/pkg/hacl/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_HACL + bool "High Assurance Cryptographic Library package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + depends on HAS_ARCH_32BIT diff --git a/pkg/heatshrink/Kconfig b/pkg/heatshrink/Kconfig new file mode 100644 index 0000000000..4e04a16a8c --- /dev/null +++ b/pkg/heatshrink/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_HEATSHRINK + bool "Lightweight Compression package" + depends on TEST_KCONFIG + help + This package provides a compression library specifically + developed for memory-constrained devices. diff --git a/pkg/jsmn/Kconfig b/pkg/jsmn/Kconfig new file mode 100644 index 0000000000..e4f5a95fae --- /dev/null +++ b/pkg/jsmn/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_JSMN + bool "JSMN JSON Parser package" + depends on TEST_KCONFIG diff --git a/pkg/libb2/Kconfig b/pkg/libb2/Kconfig new file mode 100644 index 0000000000..edc69fbc1b --- /dev/null +++ b/pkg/libb2/Kconfig @@ -0,0 +1,15 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_LIBB2 + bool "BLAKE2 cryptographic hash function package" + depends on TEST_KCONFIG + depends on !HAS_ARCH_8BIT + help + BLAKE2 is a cryptographic hash function specified in RFC 7693. + It claims to be faster than MD5, SHA-1, SHA-2, and SHA-3, yet at + least as secure as the latest standard SHA-3. diff --git a/pkg/libcose/Kconfig b/pkg/libcose/Kconfig new file mode 100644 index 0000000000..48e80253b0 --- /dev/null +++ b/pkg/libcose/Kconfig @@ -0,0 +1,38 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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. +# + +menuconfig PACKAGE_LIBCOSE + bool "LibCose CBOR Object Signing and Encryption package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + select PACKAGE_NANOCBOR + select MODULE_LIBCOSE_CRYPT + help + CBOR Object Signing and Encryption package based on RFC8613. + +if PACKAGE_LIBCOSE + +config MODULE_LIBCOSE_CRYPT_C25519 + bool "COSE use C25519 backend" + depends on TEST_KCONFIG + depends on PACKAGE_C25519 + +config MODULE_LIBCOSE_CRYPT_HACL + bool "COSE use HACL backend" + depends on TEST_KCONFIG + depends on PACKAGE_HACL + +config MODULE_LIBCOSE_CRYPT_MONOCYPHER + bool "COSE use MONOCYPHER backend" + depends on TEST_KCONFIG + depends on PACKAGE_MONOCYPHER + +endif # PACKAGE_LIBCOSE + +config MODULE_LIBCOSE_CRYPT + bool + depends on TEST_KCONFIG diff --git a/pkg/libfixmath/Kconfig b/pkg/libfixmath/Kconfig new file mode 100644 index 0000000000..48eb8b0abe --- /dev/null +++ b/pkg/libfixmath/Kconfig @@ -0,0 +1,22 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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. +# + +menuconfig PACKAGE_LIBFIXMATH + bool "Fixed Point Math package" + depends on TEST_KCONFIG + +if PACKAGE_LIBFIXMATH + +config MODULE_LIBFIXMATH + bool "Fixed Point Math module" + +config MODULE_LIBFIXMATH_UNITTESTS + bool "Fixed Point Math unittests" + depends on !HAS_ARCH_8BIT + depends on !HAS_MSP430 + +endif # PACKAGE_LIBFIXMATH diff --git a/pkg/libhydrogen/Kconfig b/pkg/libhydrogen/Kconfig new file mode 100644 index 0000000000..5bace30062 --- /dev/null +++ b/pkg/libhydrogen/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_LIBHYDROGEN + bool "LibHydrogen Crypto Library package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + depends on HAS_ARCH_32BIT diff --git a/pkg/lora-serialization/Kconfig b/pkg/lora-serialization/Kconfig new file mode 100644 index 0000000000..1b6a6ebb40 --- /dev/null +++ b/pkg/lora-serialization/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_LORA-SERIALIZATION + bool "LoRa Serialization package" + depends on TEST_KCONFIG diff --git a/pkg/micro-ecc/Kconfig b/pkg/micro-ecc/Kconfig new file mode 100644 index 0000000000..318d4ee1e6 --- /dev/null +++ b/pkg/micro-ecc/Kconfig @@ -0,0 +1,17 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_MICRO-ECC + bool "Micro-ECC package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + depends on !HAS_ARCH_16BIT + help + Micro-ECC is based on the Micro-ECC + https://github.com/kmackay/micro-ecc and adds `hwrng_read` as + the default RNG function if it is available on the target + platform. diff --git a/pkg/microcoap/Kconfig b/pkg/microcoap/Kconfig new file mode 100644 index 0000000000..6a3f100f49 --- /dev/null +++ b/pkg/microcoap/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_MICRO_COAP + bool "Micro CoAP package" + depends on TEST_KCONFIG + help + A tiny CoAP server for microcontrollers diff --git a/pkg/minmea/Kconfig b/pkg/minmea/Kconfig new file mode 100644 index 0000000000..69aa658e50 --- /dev/null +++ b/pkg/minmea/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_MINMEA + bool "Minmea GPS Parser package" + depends on TEST_KCONFIG diff --git a/pkg/monocypher/Kconfig b/pkg/monocypher/Kconfig new file mode 100644 index 0000000000..689fbe732f --- /dev/null +++ b/pkg/monocypher/Kconfig @@ -0,0 +1,22 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_MONOCYPHER + bool "Monocypher high performance cryptographic library package" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT + select MODULE_MONOCYPHER_OPTIONAL + help + Provides functions for authenticated encryption, hashing, + password key derivation, key exchange, and public key + signatures. + +config MODULE_MONOCYPHER_OPTIONAL + bool + depends on TEST_KCONFIG + help + SHA-512 & ED25519 diff --git a/pkg/nanocbor/Kconfig b/pkg/nanocbor/Kconfig new file mode 100644 index 0000000000..2c7d7aceb6 --- /dev/null +++ b/pkg/nanocbor/Kconfig @@ -0,0 +1,11 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_NANOCBOR + bool "NANOCBOR encoder and decoder library package" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT diff --git a/pkg/nanopb/Kconfig b/pkg/nanopb/Kconfig new file mode 100644 index 0000000000..c1c8d6667a --- /dev/null +++ b/pkg/nanopb/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_NANOPB + bool "NANOPB Protocol Buffer library package" + depends on TEST_KCONFIG diff --git a/pkg/qDSA/Kconfig b/pkg/qDSA/Kconfig new file mode 100644 index 0000000000..2f4ad5864d --- /dev/null +++ b/pkg/qDSA/Kconfig @@ -0,0 +1,20 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_QDSA + bool "qDSA Digital Signatures package" + depends on TEST_KCONFIG + depends on !HAS_ARCH_16BIT + select MODULE_QDSA_ASM if HAS_ARCH_AVR8 || CPU_CORE_CORTEX_M23 + select MODULE_QDSA_ASM if CPU_CORE_CORTEX_M0 || CPU_CORE_CORTEX_M0PLUS + help + Small and Secure Digital Signatures with Curve-based + Diffie-Hellman Key Pairs. + +config MODULE_QDSA_ASM + bool + depends on TEST_KCONFIG diff --git a/pkg/qcbor/Kconfig b/pkg/qcbor/Kconfig new file mode 100644 index 0000000000..016dbb9264 --- /dev/null +++ b/pkg/qcbor/Kconfig @@ -0,0 +1,11 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_QCBOR + bool "QCBOR CBOR encoder/decoder" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT diff --git a/pkg/relic/Kconfig b/pkg/relic/Kconfig new file mode 100644 index 0000000000..f770e76a6f --- /dev/null +++ b/pkg/relic/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_RELIC + bool "Relic cryptographic toolkit package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + depends on MODULE_PRNG_XORSHIFT diff --git a/pkg/talking_leds/Kconfig b/pkg/talking_leds/Kconfig new file mode 100644 index 0000000000..690ea8bbce --- /dev/null +++ b/pkg/talking_leds/Kconfig @@ -0,0 +1,11 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_TALKING_LEDS + bool "Talking LEDs package" + depends on TEST_KCONFIG + depends on MODULE_ARDUINO diff --git a/pkg/tiny-asn1/Kconfig b/pkg/tiny-asn1/Kconfig new file mode 100644 index 0000000000..702fdb4ff3 --- /dev/null +++ b/pkg/tiny-asn1/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_TINY-ASN1 + bool "ASN.1 decoding/encoding package" + depends on TEST_KCONFIG diff --git a/pkg/tinycbor/Kconfig b/pkg/tinycbor/Kconfig new file mode 100644 index 0000000000..b63d52e830 --- /dev/null +++ b/pkg/tinycbor/Kconfig @@ -0,0 +1,19 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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. +# + +menuconfig PACKAGE_TINYCBOR + bool "Tiny CBOR encode/decoder package" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT + help + TinyCBOR is a CBOR encoder and decoder with a very small + footprint, optimized for very fast operation. + +config MODULE_TINYCBOR_FLOAT + bool "Float support for Tiny CBOR" + depends on TEST_KCONFIG + depends on PACKAGE_TINYCBOR diff --git a/pkg/tinycrypt/Kconfig b/pkg/tinycrypt/Kconfig new file mode 100644 index 0000000000..afbaf3c560 --- /dev/null +++ b/pkg/tinycrypt/Kconfig @@ -0,0 +1,11 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_TINYCRYPT + bool "TinyCrypt crypto library package" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT diff --git a/pkg/tlsf/Kconfig b/pkg/tlsf/Kconfig new file mode 100644 index 0000000000..56392395c2 --- /dev/null +++ b/pkg/tlsf/Kconfig @@ -0,0 +1,31 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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. +# + +menuconfig PACKAGE_TLSF + bool "TLFS malloc/realloc/free/etc package" + depends on TEST_KCONFIG + depends on HAS_ARCH_32BIT + help + TLSF provides an implementation of malloc/realloc/free/etc. + +if PACKAGE_TLSF + +config MODULE_TLSF_MALLOC + bool "TLSF malloc" + depends on MODULE_NEWLIB || BOARD_NATIVE + select MODULE_TLSF_MALLOC_NEWLIB if MODULE_NEWLIB + select MODULE_TLSF_MALLOC_NATIVE if BOARD_NATIVE + +config MODULE_TLSF_MALLOC_NEWLIB + bool + depends on TEST_KCONFIG + +config MODULE_TLSF_MALLOC_NATIVE + bool + depends on TEST_KCONFIG + +endif # PACKAGE_TLSF diff --git a/pkg/tweetnacl/Kconfig b/pkg/tweetnacl/Kconfig new file mode 100644 index 0000000000..2020f66b57 --- /dev/null +++ b/pkg/tweetnacl/Kconfig @@ -0,0 +1,16 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_TWEETNACL + bool "TweetNaCl cryptographic library package" + depends on TEST_KCONFIG + depends on MODULE_RANDOM + depends on !HAS_ARCH_MSP430 + help + TweetNaCl is the world's first auditable high-security + cryptographic library. TweetNaCl fits into just 100 tweets while + supporting all 25 of the C NaCl functions used by applications. diff --git a/pkg/u8g2/Kconfig b/pkg/u8g2/Kconfig new file mode 100644 index 0000000000..27cfebe8e5 --- /dev/null +++ b/pkg/u8g2/Kconfig @@ -0,0 +1,23 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_U8G2 + bool "U8g2 monochrome graphics library for LCDs" + depends on TEST_KCONFIG + depends on HAS_PERIPH_GPIO + select MODULE_PERIPH_GPIO + select MODULE_XTIMER + select MODULE_U8G2_RIOT + select MODULE_U8G2_CSRC + +config MODULE_U8G2_RIOT + bool + depends on TEST_KCONFIG + +config MODULE_U8G2_CSRC + bool + depends on TEST_KCONFIG diff --git a/pkg/ubasic/Kconfig b/pkg/ubasic/Kconfig new file mode 100644 index 0000000000..c505af52e4 --- /dev/null +++ b/pkg/ubasic/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_UBASIC + bool "UBasic Basic interpreter package" + depends on TEST_KCONFIG + depends on !HAS_ARCH_AVR8 + depends on !HAS_ARCH_MSP430 + depends on !HAS_ARCH_MIPS32R2 + depends on !HAS_ARCH_RISCV diff --git a/pkg/ucglib/Kconfig b/pkg/ucglib/Kconfig new file mode 100644 index 0000000000..168d425d24 --- /dev/null +++ b/pkg/ucglib/Kconfig @@ -0,0 +1,23 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_UCGLIB + bool "UcgLib color graphics library for OLED and LCD displays" + depends on TEST_KCONFIG + depends on HAS_PERIPH_GPIO + select MODULE_PERIPH_GPIO + select MODULE_XTIMER + select MODULE_UCGLIB_RIOT + select MODULE_UCGLIB_CSRC + +config MODULE_UCGLIB_RIOT + bool + depends on TEST_KCONFIG + +config MODULE_UCGLIB_CSRC + bool + depends on TEST_KCONFIG diff --git a/pkg/utensor/Kconfig b/pkg/utensor/Kconfig new file mode 100644 index 0000000000..7ba68a952e --- /dev/null +++ b/pkg/utensor/Kconfig @@ -0,0 +1,22 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_UTENSOR + bool "uTensor AI inference based on TensorFlow" + depends on TEST_KCONFIG + depends on HAS_LIBSTDCPP + depends on HAS_CPP + select MODULE_UTENSOR_OPS + select MODULE_UTENSOR_UTIL + +config MODULE_UTENSOR_OPS + bool + depends on TEST_KCONFIG + +config MODULE_UTENSOR_UTIL + bool + depends on TEST_KCONFIG diff --git a/pkg/yxml/Kconfig b/pkg/yxml/Kconfig new file mode 100644 index 0000000000..c809c9ab07 --- /dev/null +++ b/pkg/yxml/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 HAW Hamburg +# +# 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_YXML + bool "yXML parser library" + depends on TEST_KCONFIG + depends on !HAS_ARCH_16BIT + depends on !HAS_ARCH_8BIT From 600e9f4e47d883b730840031e702316996be9b9c Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 31 Mar 2021 16:40:11 +0200 Subject: [PATCH 2/6] tests/pkg*: Add app.config.test to pkg tests This adds app config to the package tests that are available: - tests/pkg_c25519 - tests/pkg_cayenne-lpp - tests/pkg_cifra - tests/pkg_cn-cbor - tests/pkg_emlearn - tests/pkg_hacl - tests/pkg_heatshrink - tests/pkg_jsmn - tests/pkg_libb2 - tests/pkg_libcose - tests/pkg_libfixmath - tests/pkg_libhydrogen - tests/pkg_lora-serialization - tests/pkg_micro-ecc - tests/pkg_minmea - tests/pkg_monocypher - tests/pkg_nanocbor - tests/pkg_nanopb - tests/pkg_qcbor - tests/pkg_qdsa - tests/pkg_relic - tests/pkg_tiny-asn1 - tests/pkg_tinycbor - tests/pkg_tinycrypt - tests/pkg_tweetnacl - tests/pkg_yxml --- tests/pkg_c25519/app.config.test | 7 +++++++ tests/pkg_cayenne-lpp/app.config.test | 1 + tests/pkg_cifra/app.config.test | 7 +++++++ tests/pkg_cn-cbor/app.config.test | 4 ++++ tests/pkg_emlearn/app.config.test | 1 + tests/pkg_hacl/app.config.test | 7 +++++++ tests/pkg_heatshrink/app.config.test | 2 ++ tests/pkg_jsmn/app.config.test | 1 + tests/pkg_libb2/app.config.test | 2 ++ tests/pkg_libcose/app.config.test | 10 ++++++++++ tests/pkg_libfixmath/app.config.test | 2 ++ tests/pkg_libhydrogen/app.config.test | 7 +++++++ tests/pkg_lora-serialization/app.config.test | 1 + tests/pkg_micro-ecc/app.config.test | 7 +++++++ tests/pkg_minmea/app.config.test | 2 ++ tests/pkg_monocypher/app.config.test | 7 +++++++ tests/pkg_nanocbor/app.config.test | 2 ++ tests/pkg_nanopb/app.config.test | 1 + tests/pkg_qcbor/app.config.test | 2 ++ tests/pkg_qdsa/app.config.test | 3 +++ tests/pkg_relic/app.config.test | 4 ++++ tests/pkg_tiny-asn1/app.config.test | 1 + tests/pkg_tinycbor/app.config.test | 4 ++++ tests/pkg_tinycrypt/app.config.test | 2 ++ tests/pkg_tweetnacl/app.config.test | 7 +++++++ tests/pkg_yxml/app.config.test | 2 ++ 26 files changed, 96 insertions(+) create mode 100644 tests/pkg_c25519/app.config.test create mode 100644 tests/pkg_cayenne-lpp/app.config.test create mode 100644 tests/pkg_cifra/app.config.test create mode 100644 tests/pkg_cn-cbor/app.config.test create mode 100644 tests/pkg_emlearn/app.config.test create mode 100644 tests/pkg_hacl/app.config.test create mode 100644 tests/pkg_heatshrink/app.config.test create mode 100644 tests/pkg_jsmn/app.config.test create mode 100644 tests/pkg_libb2/app.config.test create mode 100644 tests/pkg_libcose/app.config.test create mode 100644 tests/pkg_libfixmath/app.config.test create mode 100644 tests/pkg_libhydrogen/app.config.test create mode 100644 tests/pkg_lora-serialization/app.config.test create mode 100644 tests/pkg_micro-ecc/app.config.test create mode 100644 tests/pkg_minmea/app.config.test create mode 100644 tests/pkg_monocypher/app.config.test create mode 100644 tests/pkg_nanocbor/app.config.test create mode 100644 tests/pkg_nanopb/app.config.test create mode 100644 tests/pkg_qcbor/app.config.test create mode 100644 tests/pkg_qdsa/app.config.test create mode 100644 tests/pkg_relic/app.config.test create mode 100644 tests/pkg_tiny-asn1/app.config.test create mode 100644 tests/pkg_tinycbor/app.config.test create mode 100644 tests/pkg_tinycrypt/app.config.test create mode 100644 tests/pkg_tweetnacl/app.config.test create mode 100644 tests/pkg_yxml/app.config.test diff --git a/tests/pkg_c25519/app.config.test b/tests/pkg_c25519/app.config.test new file mode 100644 index 0000000000..0f94096fdb --- /dev/null +++ b/tests/pkg_c25519/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_C25519=y diff --git a/tests/pkg_cayenne-lpp/app.config.test b/tests/pkg_cayenne-lpp/app.config.test new file mode 100644 index 0000000000..839c0acd2b --- /dev/null +++ b/tests/pkg_cayenne-lpp/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_CAYENNE-LPP=y diff --git a/tests/pkg_cifra/app.config.test b/tests/pkg_cifra/app.config.test new file mode 100644 index 0000000000..a7424f5e0e --- /dev/null +++ b/tests/pkg_cifra/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_CIFRA=y diff --git a/tests/pkg_cn-cbor/app.config.test b/tests/pkg_cn-cbor/app.config.test new file mode 100644 index 0000000000..c90691e4c0 --- /dev/null +++ b/tests/pkg_cn-cbor/app.config.test @@ -0,0 +1,4 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_FMT=y +CONFIG_MODULE_MEMARRAY=y +CONFIG_PACKAGE_CN-CBOR=y diff --git a/tests/pkg_emlearn/app.config.test b/tests/pkg_emlearn/app.config.test new file mode 100644 index 0000000000..059be78865 --- /dev/null +++ b/tests/pkg_emlearn/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_EMLEARN=y diff --git a/tests/pkg_hacl/app.config.test b/tests/pkg_hacl/app.config.test new file mode 100644 index 0000000000..46a28b35b8 --- /dev/null +++ b/tests/pkg_hacl/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_HACL=y diff --git a/tests/pkg_heatshrink/app.config.test b/tests/pkg_heatshrink/app.config.test new file mode 100644 index 0000000000..f01506833d --- /dev/null +++ b/tests/pkg_heatshrink/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_HEATSHRINK=y diff --git a/tests/pkg_jsmn/app.config.test b/tests/pkg_jsmn/app.config.test new file mode 100644 index 0000000000..4fcb9eb7ed --- /dev/null +++ b/tests/pkg_jsmn/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_JSMN=y diff --git a/tests/pkg_libb2/app.config.test b/tests/pkg_libb2/app.config.test new file mode 100644 index 0000000000..1296d1304b --- /dev/null +++ b/tests/pkg_libb2/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_LIBB2=y diff --git a/tests/pkg_libcose/app.config.test b/tests/pkg_libcose/app.config.test new file mode 100644 index 0000000000..dd9da05659 --- /dev/null +++ b/tests/pkg_libcose/app.config.test @@ -0,0 +1,10 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_LIBCOSE_CRYPT_HACL=y +CONFIG_MODULE_MEMARRAY=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_MODULE_RANDOM=y +CONFIG_PACKAGE_HACL=y +CONFIG_PACKAGE_LIBCOSE=y diff --git a/tests/pkg_libfixmath/app.config.test b/tests/pkg_libfixmath/app.config.test new file mode 100644 index 0000000000..d30f54adf0 --- /dev/null +++ b/tests/pkg_libfixmath/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_LIBFIXMATH=y +CONFIG_PACKAGE_LIBFIXMATH=y diff --git a/tests/pkg_libhydrogen/app.config.test b/tests/pkg_libhydrogen/app.config.test new file mode 100644 index 0000000000..a1d38ab182 --- /dev/null +++ b/tests/pkg_libhydrogen/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_LIBHYDROGEN=y diff --git a/tests/pkg_lora-serialization/app.config.test b/tests/pkg_lora-serialization/app.config.test new file mode 100644 index 0000000000..729d16d90a --- /dev/null +++ b/tests/pkg_lora-serialization/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_LORA-SERIALIZATION=y diff --git a/tests/pkg_micro-ecc/app.config.test b/tests/pkg_micro-ecc/app.config.test new file mode 100644 index 0000000000..36a8e118e2 --- /dev/null +++ b/tests/pkg_micro-ecc/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_HASHES=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_MICRO-ECC=y diff --git a/tests/pkg_minmea/app.config.test b/tests/pkg_minmea/app.config.test new file mode 100644 index 0000000000..aad61c2533 --- /dev/null +++ b/tests/pkg_minmea/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_FMT=y +CONFIG_PACKAGE_MINMEA=y diff --git a/tests/pkg_monocypher/app.config.test b/tests/pkg_monocypher/app.config.test new file mode 100644 index 0000000000..e799d78cc1 --- /dev/null +++ b/tests/pkg_monocypher/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_MONOCYPHER=y diff --git a/tests/pkg_nanocbor/app.config.test b/tests/pkg_nanocbor/app.config.test new file mode 100644 index 0000000000..7a3a432df4 --- /dev/null +++ b/tests/pkg_nanocbor/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_NANOCBOR=y diff --git a/tests/pkg_nanopb/app.config.test b/tests/pkg_nanopb/app.config.test new file mode 100644 index 0000000000..96b0c8b848 --- /dev/null +++ b/tests/pkg_nanopb/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_NANOPB=y diff --git a/tests/pkg_qcbor/app.config.test b/tests/pkg_qcbor/app.config.test new file mode 100644 index 0000000000..0265c9d654 --- /dev/null +++ b/tests/pkg_qcbor/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_QCBOR=y diff --git a/tests/pkg_qdsa/app.config.test b/tests/pkg_qdsa/app.config.test new file mode 100644 index 0000000000..f76f62ad49 --- /dev/null +++ b/tests/pkg_qdsa/app.config.test @@ -0,0 +1,3 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +CONFIG_PACKAGE_QDSA=y diff --git a/tests/pkg_relic/app.config.test b/tests/pkg_relic/app.config.test new file mode 100644 index 0000000000..22f61fe854 --- /dev/null +++ b/tests/pkg_relic/app.config.test @@ -0,0 +1,4 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +CONFIG_MODULE_PRNG_XORSHIFT=y +CONFIG_PACKAGE_RELIC=y diff --git a/tests/pkg_tiny-asn1/app.config.test b/tests/pkg_tiny-asn1/app.config.test new file mode 100644 index 0000000000..cb1f0d518e --- /dev/null +++ b/tests/pkg_tiny-asn1/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_TINY-ASN1=y diff --git a/tests/pkg_tinycbor/app.config.test b/tests/pkg_tinycbor/app.config.test new file mode 100644 index 0000000000..31860bface --- /dev/null +++ b/tests/pkg_tinycbor/app.config.test @@ -0,0 +1,4 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_FMT=y +CONFIG_MODULE_TINYCBOR_FLOAT=y +CONFIG_PACKAGE_TINYCBOR=y diff --git a/tests/pkg_tinycrypt/app.config.test b/tests/pkg_tinycrypt/app.config.test new file mode 100644 index 0000000000..848f8dbea3 --- /dev/null +++ b/tests/pkg_tinycrypt/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_FMT=y +CONFIG_PACKAGE_TINYCRYPT=y diff --git a/tests/pkg_tweetnacl/app.config.test b/tests/pkg_tweetnacl/app.config.test new file mode 100644 index 0000000000..0d3760bfc4 --- /dev/null +++ b/tests/pkg_tweetnacl/app.config.test @@ -0,0 +1,7 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_RANDOM=y +# Should be autoselecting the MODULE_PRNG_HWRNG if possible +# Since the makefile cannot we have to override until end of migration +# Remove when TEST_KCONFIG is complete +CONFIG_MODULE_PRNG_TINYMT32=y +CONFIG_PACKAGE_TWEETNACL=y diff --git a/tests/pkg_yxml/app.config.test b/tests/pkg_yxml/app.config.test new file mode 100644 index 0000000000..d558bce9d2 --- /dev/null +++ b/tests/pkg_yxml/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_EMBUNIT=y +CONFIG_PACKAGE_YXML=y From 13db748fc808b21c39159d4b6660458322642d78 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 31 Mar 2021 16:40:48 +0200 Subject: [PATCH 3/6] .murdock: Enable pkg kconfig tests --- .murdock | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/.murdock b/.murdock index b7358eb321..4ec20129f6 100755 --- a/.murdock +++ b/.murdock @@ -24,10 +24,48 @@ tests/driver_mq3 tests/driver_my9221 tests/driver_nvram_spi tests/mtd_flashpage tests/mtd_mapper tests/driver_o* tests/driver_p* tests/driver_q* tests/driver_r* tests/driver_s* tests/driver_t* tests/driver_u* tests/driver_v*"} -: ${TEST_KCONFIG_native:="examples/hello-world tests/periph_* tests/sys_crypto -tests/test_tools tests/congure_* tests/prng_* tests/xtimer_* tests/ztimer_* -tests/driver_ws281x tests/posix_sleep tests/pkg_umorse tests/cb_mux* tests/eepreg -tests/shell tests/struct_tm_utility"} +: ${TEST_KCONFIG_native:="examples/hello-world +tests/cb_mux* +tests/congure_* +tests/driver_ws281x +tests/eepreg +tests/periph_* +tests/pkg_c25519 +tests/pkg_cayenne-lpp +tests/pkg_cifra +tests/pkg_cn-cbor +tests/pkg_emlearn +tests/pkg_hacl +tests/pkg_heatshrink +tests/pkg_jsmn +tests/pkg_libb2 +tests/pkg_libcose +tests/pkg_libfixmath +tests/pkg_libhydrogen +tests/pkg_lora-serialization +tests/pkg_micro-ecc +tests/pkg_minmea +tests/pkg_monocypher +tests/pkg_nanocbor +tests/pkg_nanopb +tests/pkg_qDSA +tests/pkg_qcbor +tests/pkg_relic +tests/pkg_tiny-asn1 +tests/pkg_tinycbor +tests/pkg_tinycrypt +tests/pkg_tweetnacl +tests/pkg_umorse +tests/pkg_yxml +tests/posix_sleep +tests/prng_* +tests/shell +tests/struct_tm_utility +tests/sys_crypto +tests/test_tools +tests/xtimer_* +tests/ztimer_* +"} : ${TEST_WITH_CONFIG_SUPPORTED:="examples/suit_update tests/driver_at86rf2xx_aes"} From 450b70e345c951980e3b4e80b92080a75c8648f8 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Thu, 1 Apr 2021 12:28:25 +0200 Subject: [PATCH 4/6] tools/kconfiglib: Allow for - in symbols --- dist/tools/kconfiglib/genconfig.py | 3 ++- dist/tools/kconfiglib/riot_kconfig.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dist/tools/kconfiglib/genconfig.py b/dist/tools/kconfiglib/genconfig.py index 3269b6903a..093d78507a 100755 --- a/dist/tools/kconfiglib/genconfig.py +++ b/dist/tools/kconfiglib/genconfig.py @@ -33,6 +33,7 @@ import logging import os import sys +from riot_kconfig import RiotKconfig import kconfiglib @@ -386,7 +387,7 @@ with error.""") logging.basicConfig(format='[genconfig.py]:%(levelname)s-%(message)s', level=log_level) - kconf = kconfiglib.Kconfig(args.kconfig_filename, warn_to_stderr=False) + kconf = RiotKconfig(args.kconfig_filename, warn_to_stderr=False) merge_configs(kconf, args.config_sources) # HACK: Force all symbols to be evaluated, to catch warnings generated diff --git a/dist/tools/kconfiglib/riot_kconfig.py b/dist/tools/kconfiglib/riot_kconfig.py index 01bb796e30..bf51e0a78e 100644 --- a/dist/tools/kconfiglib/riot_kconfig.py +++ b/dist/tools/kconfiglib/riot_kconfig.py @@ -18,6 +18,16 @@ class RiotKconfig(Kconfig): for marker in doxygen_markers: node.help = node.help.replace(marker, "") + def write_autoconf(self, filename=None, header=None): + """ Override to convert - to _ when writing autoconf.h """ + tmp_unique_defined_syms = self.unique_defined_syms.copy() + for sym in self.unique_defined_syms: + if not sym._write_to_conf: + continue + sym.name = sym.name.replace('-', '_') + super(RiotKconfig, self).write_autoconf(filename, header) + self.unique_defined_syms = tmp_unique_defined_syms + def standard_riot_kconfig(description=None): """ From a3075ec0c4872d1b7f97d53b49c7801bf882f576 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Thu, 1 Apr 2021 12:28:59 +0200 Subject: [PATCH 5/6] makefiles/info: Add make info-packages command --- makefiles/info.inc.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefiles/info.inc.mk b/makefiles/info.inc.mk index ac2cfc4263..6cc73dd304 100644 --- a/makefiles/info.inc.mk +++ b/makefiles/info.inc.mk @@ -203,6 +203,9 @@ info-files: info-modules: @for i in $(sort $(USEMODULE)); do echo $$i; done +info-packages: + @for i in $(sort $(USEPKG)); do echo $$i; done + info-cpu: @echo $(CPU) From 008660fccfd9ea623671b49f3fbbdcb9b8f6b028 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Thu, 8 Apr 2021 12:37:48 +0200 Subject: [PATCH 6/6] sys/random: Fix typo in kconfig --- sys/random/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/random/Kconfig b/sys/random/Kconfig index f8820851ad..f771737ee7 100644 --- a/sys/random/Kconfig +++ b/sys/random/Kconfig @@ -17,7 +17,7 @@ choice RANDOM_IMPLEMENTATION bool "PRNG Implementation" depends on TEST_KCONFIG default MODULE_PRNG_HWRNG if HAS_PERIPH_HWRNG - default MODULE_PRNG_TINYM32 + default MODULE_PRNG_TINYMT32 config MODULE_PRNG_FORTUNA bool "Fortuna" @@ -51,7 +51,7 @@ config MODULE_PRNG_SHA256PRNG select MODULE_PRNG_SHAXPRNG select MODULE_HASHES -config MODULE_PRNG_TINYM32 +config MODULE_PRNG_TINYMT32 bool "Tiny-MT 32" select MODULE_TINYMT32