tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

Maybe remove mcu driver submodules and use some setup script

Open hathach opened this issue 2 years ago • 5 comments

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.

hathach avatar May 16 '22 06:05 hathach

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

perigoso avatar May 19 '22 23:05 perigoso

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.

hathach avatar May 21 '22 06:05 hathach

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

perigoso avatar May 21 '22 10:05 perigoso

"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 avatar May 27 '22 22:05 cr1901

@cr1901 right, i am planning to have an simple python script that take argument from DEPS_SUBMODULES and clone it accordingly.

hathach avatar Jun 02 '22 12:06 hathach