-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dogusyuksel/modues-to-script
- Loading branch information
Showing
8 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule docker
deleted from
1c7fc6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule CMSIS_5
deleted from
31f2c3
Submodule FreeRTOS-Kernel
deleted from
fffed5
Submodule STM32L4XX_HAL
deleted from
41027c
Submodule cmsis-header-stm32
deleted from
0bb080