-
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
sys/arduino: include arduino_sketches in Makefile.dep #14350
Conversation
DIRS += $(SKETCH_MODULE_DIR) | ||
BUILDDEPS += $(SKETCH_GENERATED_FILES) | ||
else | ||
PSEUDOMODULES += $(SKETCH_MODULE) |
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.
why is this needed ?
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.
diff --git a/sys/arduino/Makefile.include b/sys/arduino/Makefile.include
index 5e80e8e2ad..a460bbac13 100644
--- a/sys/arduino/Makefile.include
+++ b/sys/arduino/Makefile.include
@@ -10,8 +10,6 @@ ifneq (,$(SKETCHES))
# Depends on module
DIRS += $(SKETCH_MODULE_DIR)
BUILDDEPS += $(SKETCH_GENERATED_FILES)
-else
- PSEUDOMODULES += $(SKETCH_MODULE)
endif
# include the Arduino headers
USEMODULE=arduino BOARD=nucleo-l152re make -C examples/hello-world/
make: Entering directory '/home/francisco/workspace/RIOT/examples/hello-world'
Building application "hello-world" for "nucleo-l152re" with MCU "stm32".
"make" -C /home/francisco/workspace/RIOT/boards/nucleo-l152re
"make" -C /home/francisco/workspace/RIOT/boards/common/nucleo
"make" -C /home/francisco/workspace/RIOT/core
"make" -C /home/francisco/workspace/RIOT/cpu/stm32
"make" -C /home/francisco/workspace/RIOT/cpu/cortexm_common
"make" -C /home/francisco/workspace/RIOT/cpu/cortexm_common/periph
"make" -C /home/francisco/workspace/RIOT/cpu/stm32/bootloader
"make" -C /home/francisco/workspace/RIOT/cpu/stm32/periph
"make" -C /home/francisco/workspace/RIOT/cpu/stm32/stmclk
"make" -C /home/francisco/workspace/RIOT/cpu/stm32/vectors
"make" -C /home/francisco/workspace/RIOT/drivers
"make" -C /home/francisco/workspace/RIOT/drivers/periph_common
"make" -C /home/francisco/workspace/RIOT/sys
"make" -C /home/francisco/workspace/RIOT/sys/arduino
"make" -C /home/francisco/workspace/RIOT/sys/auto_init
"make" -C /home/francisco/workspace/RIOT/sys/div
"make" -C /home/francisco/workspace/RIOT/sys/newlib_syscalls_default
"make" -C /home/francisco/workspace/RIOT/sys/pm_layered
"make" -C /home/francisco/workspace/RIOT/sys/stdio_uart
"make" -C /home/francisco/workspace/RIOT/sys/xtimer
arm-none-eabi-gcc: error: /home/francisco/workspace/RIOT/examples/hello-world/bin/nucleo-l152re/arduino_sketches.a: No such file or direc
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 want to keep the behaviour as it was before, so no need to manually include the sketch module, if there are any it works, if there are none, it works.
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.
ok, maybe add a comment to explain that ?
With this PR a static check can be added so there are no |
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.
Tested all arduino applications but tests/sys_arduino_analog
on nucleo-l476rg and all work.
I'll ACK once the comment about PSEUDOMODULE is added (you can squash the change directly).
2d7883a
to
e0964a7
Compare
@aabadie added sanity check and rebased to fix conflict. |
e0964a7
to
0610011
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!
Dammit! Shouldn't have merged the other one hahaha. |
You are good for a new CI round :) |
0610011
to
e7a8c58
Compare
Wasting C02 |
Yeah... |
Thanks for the review! |
Contribution description
SKETCH_MODULE
is currently declared inMakefile.include
which lead to its inclusion as a module to also happen there. Strictly speaking it is not needed for #9913 incesys/Makefile.include
is already included afterdependency resolution
, for consistency modules should not be included inMakefile.include
In this PR I though to remove the option of changing
SKETCH_MODULE
name, I'm not sure its useful in any way. But to make the change simpler I just moved it to Makefile.dep.Testing procedure
USEMODULE=arduino BOARD=nucleo-l152re make -C examples/hello-world/
make -C tests/sys_arduino test
passesIssues/PRs references
#9913