Skip to content

Commit

Permalink
Merge pull request #4 from dogusyuksel/modues-to-script
Browse files Browse the repository at this point in the history
  • Loading branch information
dogusyuksel authored Nov 20, 2024
2 parents 7d8d23b + 15fbc70 commit f6c6945
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rtos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
github-server-url: https://github.com/dogusyuksel/rtos_hal_stm32
lfs: true

- name: Download Repos
- name: Setup Environment
run: |
git submodule update --init --recursive
./setup_environment.sh
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
15 changes: 0 additions & 15 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion docker
Submodule docker deleted from 1c7fc6
47 changes: 47 additions & 0 deletions setup_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

update_repo () {
cd $1
git clean -fd
git checkout *
git pull
cd -
}

if [ ! -d "thirdparty" ]; then
mkdir thirdparty
fi

if [ ! -d "thirdparty/STM32L4XX_HAL" ];
then
git clone https://github.com/STMicroelectronics/stm32l4xx_hal_driver.git thirdparty/STM32L4XX_HAL
else
update_repo "thirdparty/STM32L4XX_HAL"
fi

if [ ! -d "thirdparty/cmsis-header-stm32" ];
then
git clone https://github.com/modm-io/cmsis-header-stm32.git thirdparty/cmsis-header-stm32
else
update_repo "thirdparty/cmsis-header-stm32"
fi

if [ ! -d "thirdparty/CMSIS_5" ]; then
git clone https://github.com/ARM-software/CMSIS_5.git thirdparty/CMSIS_5
else
update_repo "thirdparty/CMSIS_5"
fi

if [ ! -d "thirdparty/FreeRTOS-Kernel" ]; then
git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git thirdparty/FreeRTOS-Kernel
else
update_repo "thirdparty/FreeRTOS-Kernel"
fi

if [ ! -d "docker" ]; then
git clone https://github.com/dogusyuksel/embedded_docker.git docker
else
update_repo "docker"
fi

exit 0
1 change: 0 additions & 1 deletion thirdparty/CMSIS_5
Submodule CMSIS_5 deleted from 31f2c3
1 change: 0 additions & 1 deletion thirdparty/FreeRTOS-Kernel
Submodule FreeRTOS-Kernel deleted from fffed5
1 change: 0 additions & 1 deletion thirdparty/STM32L4XX_HAL
Submodule STM32L4XX_HAL deleted from 41027c
1 change: 0 additions & 1 deletion thirdparty/cmsis-header-stm32
Submodule cmsis-header-stm32 deleted from 0bb080

0 comments on commit f6c6945

Please sign in to comment.