Skip to content
Snippets Groups Projects
Commit d0f0f57b authored by dam1n19's avatar dam1n19
Browse files

Updated top-repo init flow

parent a4d32e63
No related branches found
No related tags found
No related merge requests found
[submodule "accelerator-wrapper"] [submodule "accelerator-wrapper"]
path = accelerator-wrapper path = accelerator-wrapper
url = git@git.soton.ac.uk:soclabs/accelerator-wrapper.git url = git@git.soton.ac.uk:soclabs/accelerator-wrapper.git
[submodule "nanosoc"] [submodule "nanosoc"]
path = nanosoc path = nanosoc
url = git@git.soton.ac.uk:soclabs/nanosoc.git url = git@git.soton.ac.uk:soclabs/nanosoc.git
[submodule "socsim"] [submodule "socsim"]
path = socsim path = socsim
url = git@git.soton.ac.uk:soclabs/socsim.git url = git@git.soton.ac.uk:soclabs/socsim.git
[submodule "CHIPKIT"] [submodule "CHIPKIT"]
path = CHIPKIT path = CHIPKIT
url = git@git.soton.ac.uk:soclabs/CHIPKIT.git url = git@git.soton.ac.uk:soclabs/CHIPKIT.git
[submodule "secworks-sha256"] [submodule "secworks-sha256"]
path = secworks-sha256 path = secworks-sha256
url = git@git.soton.ac.uk:soclabs/secworks-sha256.git url = git@git.soton.ac.uk:soclabs/secworks-sha256.git
branch = main
[submodule "secworks-sha-256-system-top/accelerator-wrapper"]
branch = main
[submodule "secworks-sha-256-system-top/CHIPKIT"]
branch = main
[submodule "secworks-sha-256-system-top/nanosoc"]
branch = main
[submodule "secworks-sha-256-system-top/socsim"]
branch = main
...@@ -18,9 +18,11 @@ for d in $SOC_TOP_DIR/* ; do ...@@ -18,9 +18,11 @@ for d in $SOC_TOP_DIR/* ; do
echo $d echo $d
if [ -f "$d/set_env.sh" ]; then if [ -f "$d/set_env.sh" ]; then
# If .git file exists - submodule # If .git file exists - submodule
git config -f .gitmodules submodule.$d.branch main # git config -f .gitmodules submodule.$d.branch main
git submodule set-branch --branch main $d
fi fi
fi fi
done done
git submodule update --remote --recursive git submodule update --remote --recursive
git submodule foreach --recursive git checkout main git submodule foreach --recursive git checkout main
\ No newline at end of file git restore $DESIGN_ROOT/.gitmodules
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment