Restructure sources
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 5m29s
Check code formatting / Check-C-Format (push) Successful in 9s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s

The python and C modules that are supposed to be built into the firmware
image (i.e. those that are in manifest.py or in USER_C_MODULES) have
been moved to the software/modules directory.

The software/src directory should now only contain python scripts and
other files that should be installed to the Picos flash filesystem. The
idea is that these should be those scripts that implement the
application behaviour, as these are the ones that a user who does not
want to build the whole firmware themself wants to modify.
This commit is contained in:
2025-04-01 20:47:48 +02:00
parent 8a8cb85c39
commit 7f8282315e
32 changed files with 5 additions and 5 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ hardware/tonberry-pico/tonberry-pico-backups/
software/build software/build
compile_commands.json compile_commands.json
.dir-locals.el .dir-locals.el
.cache

View File

@@ -50,7 +50,7 @@ add_test(NAME generate-xml-report
set_tests_properties(clean-reports PROPERTIES FIXTURES_SETUP "Report") set_tests_properties(clean-reports PROPERTIES FIXTURES_SETUP "Report")
set_tests_properties(generate-xml-report PROPERTIES FIXTURES_CLEANUP "Report") set_tests_properties(generate-xml-report PROPERTIES FIXTURES_CLEANUP "Report")
add_subdirectory(src/audiocore) add_subdirectory(modules/audiocore)
add_custom_target(check-format add_custom_target(check-format
find . -iname '*.[ch]' -exec clang-format -Werror --dry-run {} + find . -iname '*.[ch]' -exec clang-format -Werror --dry-run {} +

View File

@@ -5,7 +5,7 @@ require("bundle-networking")
# Bluetooth # Bluetooth
require("aioble") require("aioble")
module("rp2_neopixel.py", "../../src") module("rp2_neopixel.py", "../../modules")
require("sdcard") require("sdcard")
require("aiorepl") require("aiorepl")
@@ -14,5 +14,4 @@ module("mfrc522.py", "../../lib/micropython-mfrc522/")
module("microdot.py", "../../lib/microdot/src/microdot/") module("microdot.py", "../../lib/microdot/src/microdot/")
# TonberryPico modules # TonberryPico modules
module("audiocore.py", "../../src/audiocore") module("audiocore.py", "../../modules/audiocore")
package("nfc", base_path="../../src/")

View File

@@ -8,7 +8,7 @@ set -eu
make -C mpy-cross -j "$(nproc)" make -C mpy-cross -j "$(nproc)"
make -C ports/rp2 BOARD=TONBERRY_RPI_PICO_W BOARD_DIR="$TOPDIR"/boards/RPI_PICO_W clean make -C ports/rp2 BOARD=TONBERRY_RPI_PICO_W BOARD_DIR="$TOPDIR"/boards/RPI_PICO_W clean
make -C ports/rp2 BOARD=TONBERRY_RPI_PICO_W BOARD_DIR="$TOPDIR"/boards/RPI_PICO_W \ make -C ports/rp2 BOARD=TONBERRY_RPI_PICO_W BOARD_DIR="$TOPDIR"/boards/RPI_PICO_W \
USER_C_MODULES="$TOPDIR"/src/micropython.cmake -j "$(nproc)" USER_C_MODULES="$TOPDIR"/modules/micropython.cmake -j "$(nproc)"
) )
( cd tools/mklittlefs ( cd tools/mklittlefs