Skip to content

Commit

Permalink
[examples] Add Makefile generator to select examples
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Mar 20, 2021
1 parent 63687f3 commit 1a338af
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/avr/assert/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<module>modm:architecture:delay</module>
<module>modm:build:scons</module>
<module>modm:build:cmake</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/avr/display/dogm128/benchmark/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
<module>modm:processing:timer</module>
<module>modm:ui:display</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/linux/assert/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<module>modm:architecture:assert</module>
<module>modm:debug</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/linux/build_info/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<module>modm:platform:core</module>
<module>modm:debug</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/linux/git/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<module>modm:platform:core</module>
<module>modm:debug</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/nucleo_f103rb/hard_fault/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<module>modm:platform:fault</module>
<module>modm:platform:heap</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/nucleo_f103rb/itm/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
<module>modm:platform:itm</module>
<module>modm:processing:timer</module>
</modules>
Expand Down
1 change: 1 addition & 0 deletions examples/nucleo_f103rb/undefined_irq/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/nucleo_f303k8/rtos/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<module>modm:processing:rtos</module>
<module>modm:platform:heap</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/nucleo_f429zi/cmsis_dsp/dotproduct/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
<module>modm:cmsis:dsp:transform</module>
<module>modm:cmsis:dsp:basic_math</module>
</modules>
Expand Down
1 change: 1 addition & 0 deletions examples/nucleo_f429zi/cmsis_dsp/linear_interp/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</collectors>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
<module>modm:cmsis:dsp:fast_math</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/nucleo_g071rb/custom_allocator/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<module>modm:platform:gpio</module>
<module>modm:architecture:memory</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/rpi/blinky/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
1 change: 1 addition & 0 deletions examples/samd/usbserial/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
<module>modm:tinyusb</module>
<module>modm:processing:timer</module>
<module>modm:io</module>
Expand Down
1 change: 1 addition & 0 deletions examples/stm32f3_discovery/usb_dfu/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</options>
<modules>
<module>modm:build:scons</module>
<module>modm:build:make</module>
<module>modm:tinyusb</module>
<module>modm:processing:timer</module>
<module>modm:io</module>
Expand Down
1 change: 1 addition & 0 deletions examples/stm32f469_discovery/exceptions_rtti/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<modules>
<module>modm:platform:gpio</module>
<module>modm:build:scons</module>
<module>modm:build:make</module>
</modules>
</library>
2 changes: 2 additions & 0 deletions tools/scripts/examples_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def build(project):
commands.append("python3 `which scons` build --cache-show --random")
if ":build:cmake" in project_cfg:
commands.append("make cmake && make build")
if ":build:make" in project_cfg:
commands.append("make build")

rcs = 0
for command in commands:
Expand Down

0 comments on commit 1a338af

Please sign in to comment.