Skip to content

Commit a38e1d1

Browse files
committed
Checkout OpenOCD submodules
1 parent 7063654 commit a38e1d1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

build_linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ do
3535

3636
echo "${href} ${tree} ${filename} ${extension} ${repodir}"
3737
rm -rf "${repodir}"
38-
git clone -b "${tree}" --depth=1 -c advice.detachedHead=false "${href}" "${repodir}"
38+
git clone -b "${tree}" --depth=1 -c advice.detachedHead=false "${href}" "${repodir}"
39+
submodules=$(echo "$repo" | jq -r .submodules)
40+
if [[ "$submodules" == "true" ]]; then
41+
git -C "${repodir}" submodule update --init --depth=1
42+
fi
3943
done < <(echo "$repos")
4044

4145

build_macos.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ do
4242

4343
echo "${href} ${tree} ${filename} ${extension} ${repodir}"
4444
rm -rf "${repodir}"
45-
git clone -b "${tree}" --depth=1 -c advice.detachedHead=false "${href}" "${repodir}"
45+
git clone -b "${tree}" --depth=1 -c advice.detachedHead=false "${href}" "${repodir}"
46+
submodules=$(echo "$repo" | jq -r .submodules)
47+
if [[ "$submodules" == "true" ]]; then
48+
git -C "${repodir}" submodule update --init --depth=1
49+
fi
4650
done < <(echo "$repos")
4751

4852

config/repositories.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
{
1212
"href": "https://github.com/P33M/openocd.git",
13-
"tree": "rp2350-v0.12.0"
13+
"tree": "rp2350-v0.12.0",
14+
"submodules": true
1415
},
1516
{
1617
"href": "https://github.com/riscv/riscv-gnu-toolchain.git",

0 commit comments

Comments
 (0)