Skip to content

Commit c86413d

Browse files
committed
Fixed modules initialization script path
1 parent aeaf84a commit c86413d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tools/init-submodules.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ set -euo pipefail
33

44
# This script is supposed to be under ${ST-LIB_PATH}/tools/init-submodules.sh
55

6-
cd "${0%/*}/.."
6+
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
7+
STLIB_DIR="$(cd -- "${SCRIPT_DIR}/.." && pwd)"
8+
9+
cd "$STLIB_DIR"
710
git submodule update --init
8-
cd STM32CubeH7
9-
git submodule update --init Drivers/STM32H7xx_HAL_Driver Drivers/CMSIS/Device/ST/STM32H7xx Drivers/BSP/Components/lan8742
11+
cd "$STLIB_DIR/STM32CubeH7"
12+
git submodule update --init \
13+
Drivers/STM32H7xx_HAL_Driver \
14+
Drivers/CMSIS/Device/ST/STM32H7xx \
15+
Drivers/BSP/Components/lan8742
16+

0 commit comments

Comments
 (0)