From c7f122658871de9fa32d867a98b617e5ea2dab03 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 26 May 2023 10:43:35 +0200 Subject: [PATCH] examples/micropython: add Kconfig config --- examples/micropython/Kconfig | 14 ++++++++++++++ examples/micropython/Makefile | 3 +++ examples/micropython/app.config.test | 1 + 3 files changed, 18 insertions(+) create mode 100644 examples/micropython/Kconfig create mode 100644 examples/micropython/app.config.test diff --git a/examples/micropython/Kconfig b/examples/micropython/Kconfig new file mode 100644 index 0000000000..32980b2927 --- /dev/null +++ b/examples/micropython/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 APPLICATION + bool + default y + depends on TEST_KCONFIG + + select MODULE_PERIPH_ADC if HAS_PERIPH_ADC + select MODULE_PERIPH_SPI if HAS_PERIPH_SPI diff --git a/examples/micropython/Makefile b/examples/micropython/Makefile index 247540cfbe..e5e7829693 100644 --- a/examples/micropython/Makefile +++ b/examples/micropython/Makefile @@ -34,4 +34,7 @@ TESTRUNNER_RESET_AFTER_TERM ?= 1 # failing on native with floating point exception (#15870) TEST_ON_CI_BLACKLIST = native +# avoid running Kconfig by default +SHOULD_RUN_KCONFIG ?= + include $(RIOTBASE)/Makefile.include diff --git a/examples/micropython/app.config.test b/examples/micropython/app.config.test new file mode 100644 index 0000000000..d2c7fc42c9 --- /dev/null +++ b/examples/micropython/app.config.test @@ -0,0 +1 @@ +CONFIG_PACKAGE_MICROPYTHON=y