tinyusb
tinyusb copied to clipboard
Maybe remove mcu driver submodules and use some setup script
Is your feature request related to a problem? Please describe.
Due to the wide range support of MCUs and the mcu sdk is often large enough. git submodule init --recursive
which is convenient for most user project had a hard time with tinyusb. Maybe we should use an setup script to download mcu driver instead of git submodule instead.
we could make use of the build system for this, meson supports something like this directly for example #1423, since its only really used for the examples it makes sense to have it a bit less tightly coupled
yeah, a build management (meson) can be useful way to manage multiple repos. Though I still want to have an simple python script with list of repos and commit hash since not everyone want to install an build management.
Well the only requirement for meson would be python, so if you're going with a python script it's not much different, but I hear you, that is also a good option
"Automatically retrieving deps for the examples" seems to already work via the DEPS_SUBMODULES
make
var. So removing submodules in place of a script that retrieves dependencies (possibly with a manual override?) probably won't be that invasive of a change for building examples.
@cr1901 right, i am planning to have an simple python script that take argument from DEPS_SUBMODULES
and clone it accordingly.