diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b63a9a031..f90a6843d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: submodules: 'false' - name: Checkout Submodules in lib - run: git submodule update --init --recursive lib + run: git submodule update --init lib - name: Build run: python3 tools/build_family.py ${{ matrix.family }} diff --git a/.gitmodules b/.gitmodules index 209b6ea95..664e32c59 100644 --- a/.gitmodules +++ b/.gitmodules @@ -100,9 +100,6 @@ [submodule "hw/mcu/st/stm32l5xx_hal_driver"] path = hw/mcu/st/stm32l5xx_hal_driver url = https://github.com/STMicroelectronics/stm32l5xx_hal_driver.git -[submodule "lib/CMSIS_5"] - path = lib/CMSIS_5 - url = https://github.com/ARM-software/CMSIS_5.git [submodule "lib/sct_neopixel"] path = lib/sct_neopixel url = https://github.com/gsteiert/sct_neopixel diff --git a/docs/getting_started.md b/docs/getting_started.md index dfdf02562..870491fe2 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -39,13 +39,13 @@ $ git clone https://github.com/hathach/tinyusb tinyusb $ cd tinyusb ``` -TinyUSB examples includes external repos aka submodules to provide low-level MCU peripheral's driver as well as external libraries such as FreeRTOS to compile with. Therefore we will firstly fetch those mcu driver repo by running this command in the top folder repo +Some TinyUSB examples also requires external submodule libraries in `/lib` such as FreeRTOS, Lightweight IP to build. Run following command to fetch them ``` -$ git submodule update --init --recursive +$ git submodule update --init lib ``` -It will takes a bit of time due to the number of supported MCUs, luckily we only need to do this once. Or if you only want to test with a specific mcu, you could only fetch its driver submodule. +In addition, MCU driver submodule is also needed to provide low-level MCU peripheral's driver. Luckily, it will be fetched if needed when you run the `make` to build your board. ### Build diff --git a/lib/CMSIS_5 b/lib/CMSIS_5 deleted file mode 160000 index b7b26f50d..000000000 --- a/lib/CMSIS_5 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b7b26f50d00072812aec8453f643e24bafedccb5