sys/arduino: include arduino_sketches in Makefile.dep#14350
sys/arduino: include arduino_sketches in Makefile.dep#14350aabadie merged 2 commits intoRIOT-OS:masterfrom
Conversation
| DIRS += $(SKETCH_MODULE_DIR) | ||
| BUILDDEPS += $(SKETCH_GENERATED_FILES) | ||
| else | ||
| PSEUDOMODULES += $(SKETCH_MODULE) |
There was a problem hiding this comment.
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.
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.
ok, maybe add a comment to explain that ?
|
With this PR a static check can be added so there are no |
aabadie
left a comment
There was a problem hiding this comment.
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
|
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_MODULEis currently declared inMakefile.includewhich lead to its inclusion as a module to also happen there. Strictly speaking it is not needed for #9913 incesys/Makefile.includeis already included afterdependency resolution, for consistency modules should not be included inMakefile.includeIn this PR I though to remove the option of changing
SKETCH_MODULEname, 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 testpassesIssues/PRs references
#9913