Skip to content

Commit 2176e0f

Browse files
committed
MicroPython: Avoid some duplication in CMake files.
1 parent fc37ef1 commit 2176e0f

9 files changed

+32
-168
lines changed

micropython/modules/badger2040-micropython.cmake

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../")
66
include(pimoroni_i2c/micropython)
77
include(pimoroni_bus/micropython)
88

9-
include(breakout_dotmatrix/micropython)
10-
include(breakout_encoder/micropython)
11-
include(breakout_ioexpander/micropython)
12-
include(breakout_ltr559/micropython)
13-
include(breakout_as7262/micropython)
14-
include(breakout_rgbmatrix5x5/micropython)
15-
include(breakout_matrix11x7/micropython)
16-
include(breakout_msa301/micropython)
17-
include(breakout_pmw3901/micropython)
18-
include(breakout_mics6814/micropython)
19-
include(breakout_potentiometer/micropython)
20-
include(breakout_rtc/micropython)
21-
include(breakout_trackball/micropython)
22-
include(breakout_sgp30/micropython)
23-
include(breakout_bh1745/micropython)
24-
include(breakout_bme68x/micropython)
25-
include(breakout_bme280/micropython)
26-
include(breakout_bmp280/micropython)
27-
include(breakout_icp10125/micropython)
28-
include(breakout_scd41/micropython)
9+
include(micropython-common-breakouts)
2910

3011
include(hershey_fonts/micropython)
3112
include(bitmap_fonts/micropython)

micropython/modules/micropython-badger2040w.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
include(breakout_dotmatrix/micropython)
2+
include(breakout_encoder/micropython)
3+
include(breakout_ioexpander/micropython)
4+
include(breakout_ltr559/micropython)
5+
include(breakout_as7262/micropython)
6+
include(breakout_rgbmatrix5x5/micropython)
7+
include(breakout_matrix11x7/micropython)
8+
include(breakout_msa301/micropython)
9+
include(breakout_pmw3901/micropython)
10+
include(breakout_mics6814/micropython)
11+
include(breakout_potentiometer/micropython)
12+
include(breakout_rtc/micropython)
13+
include(breakout_trackball/micropython)
14+
include(breakout_sgp30/micropython)
15+
include(breakout_bh1745/micropython)
16+
include(breakout_bme68x/micropython)
17+
include(breakout_bme280/micropython)
18+
include(breakout_bmp280/micropython)
19+
include(breakout_icp10125/micropython)
20+
include(breakout_scd41/micropython)
21+
include(breakout_vl53l5cx/micropython)

micropython/modules/micropython-common.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
include(pimoroni_i2c/micropython)
22
include(pimoroni_bus/micropython)
33

4-
include(breakout_dotmatrix/micropython)
5-
include(breakout_encoder/micropython)
6-
include(breakout_ioexpander/micropython)
7-
include(breakout_ltr559/micropython)
8-
include(breakout_as7262/micropython)
9-
include(breakout_rgbmatrix5x5/micropython)
10-
include(breakout_matrix11x7/micropython)
11-
include(breakout_msa301/micropython)
12-
include(breakout_pmw3901/micropython)
13-
include(breakout_mics6814/micropython)
14-
include(breakout_potentiometer/micropython)
15-
include(breakout_rtc/micropython)
16-
include(breakout_trackball/micropython)
17-
include(breakout_sgp30/micropython)
18-
include(breakout_bh1745/micropython)
19-
include(breakout_bme68x/micropython)
20-
include(breakout_bme280/micropython)
21-
include(breakout_bmp280/micropython)
22-
include(breakout_icp10125/micropython)
23-
include(breakout_scd41/micropython)
24-
include(breakout_vl53l5cx/micropython)
4+
include(micropython-common-breakouts)
255

266
include(pico_scroll/micropython)
277
include(pico_rgb_keypad/micropython)

micropython/modules/micropython-picow.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility

micropython/modules/micropython-picow_cosmic_unicorn.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility

micropython/modules/micropython-picow_enviro.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility

micropython/modules/micropython-picow_galactic_unicorn.cmake

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility
@@ -47,6 +27,8 @@ include(adcfft/micropython)
4727
# LEDs & Matrices
4828
include(galactic_unicorn/micropython)
4929

50-
# include(micropython-common)
30+
# ULAB
31+
include(micropython-common-ulab)
32+
enable_ulab()
5133

5234
include(modules_py/modules_py)

micropython/modules/micropython-picow_inky_frame.cmake

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,7 @@ include(jpegdec/micropython)
1818
include(qrcode/micropython/micropython)
1919

2020
# Sensors & Breakouts
21-
include(breakout_dotmatrix/micropython)
22-
include(breakout_encoder/micropython)
23-
include(breakout_ioexpander/micropython)
24-
include(breakout_ltr559/micropython)
25-
include(breakout_as7262/micropython)
26-
include(breakout_rgbmatrix5x5/micropython)
27-
include(breakout_matrix11x7/micropython)
28-
include(breakout_msa301/micropython)
29-
include(breakout_pmw3901/micropython)
30-
include(breakout_mics6814/micropython)
31-
include(breakout_potentiometer/micropython)
32-
include(breakout_rtc/micropython)
33-
include(breakout_trackball/micropython)
34-
include(breakout_sgp30/micropython)
35-
include(breakout_bh1745/micropython)
36-
include(breakout_bme68x/micropython)
37-
include(breakout_bme280/micropython)
38-
include(breakout_bmp280/micropython)
39-
include(breakout_icp10125/micropython)
40-
include(breakout_scd41/micropython)
41-
include(breakout_vl53l5cx/micropython)
21+
include(micropython-common-breakouts)
4222
include(pcf85063a/micropython)
4323

4424
# Utility

0 commit comments

Comments
 (0)