-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/micropython: model in Kconfig #19672
Conversation
7845cee
to
3ea6117
Compare
I can look into that. It seems the package wasn't updated for quite some time. We should also probably upstream the ztimer update... |
3ea6117
to
dfcc054
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the standard is a bit closer to the following diff:
diff --git a/examples/micropython/Kconfig b/examples/micropython/Kconfig
index 6e1b6464e8..32980b2927 100644
--- a/examples/micropython/Kconfig
+++ b/examples/micropython/Kconfig
@@ -5,8 +5,9 @@
# directory for more details.
#
-config APPLICATION_EXAMPLES_MICROPYTHON
- bool "Micropython example application"
+config APPLICATION
+ bool
+ default y
depends on TEST_KCONFIG
select MODULE_PERIPH_ADC if HAS_PERIPH_ADC
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
index f03643a0c9..d2c7fc42c9 100644
--- a/examples/micropython/app.config.test
+++ b/examples/micropython/app.config.test
@@ -1,2 +1 @@
CONFIG_PACKAGE_MICROPYTHON=y
-CONFIG_APPLICATION_EXAMPLES_MICROPYTHON=y
dfcc054
to
c7f1226
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK!
bors merge |
🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
bors merge |
bors cancel |
Canceled. |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Contribution description
For some reason, I had to add a dependency to
periph_spi
. Otherwise, the generated firmware size was bigger with TEST_KCONFIG=1 on native. Not sure why.In general, I think there's room for improvement with the build system integration of micropython, for example to select which feature (uart, spi, timer, etc) to add in the firmware, if that is possible.
Testing procedure
Issues/PRs references
Tick one item in #16875