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

Changed environment setup script to run subpreo_checkout.py

parent efc3b32e
No related branches found
No related tags found
1 merge request!1Changed set_env flow to source script in soctools and breadcrumb left in...
......@@ -31,7 +31,7 @@ simulate-nanosoc:
script:
- echo "Simulation phase started"
- git submodule foreach --recursive git submodule init
# - git pull --recurse-submodules
- git fetch --recurse-submodules
- source set_env.sh
- sleep 5
tags:
......
......@@ -64,9 +64,10 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
# Source environment variables for all submodules
cd $SOCLABS_DESIGN_ROOT
git submodule update --remote --recursive
python3 $SOCLABS_SOCTOOLS_FLOW_DIR/bin/subrepo_checkout.py -b proj-branch -t $SOCLABS_DESIGN_ROOT
#git submodule foreach --recursive git checkout main # TODO: Bug on this line - need to checkout to correct branch
# Read proj-branch file to find out which branch each subrepo needs to be on
git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $SOCLABS_PROJECT_DIR/$line && git checkout `grep $line $SOCLABS_PROJECT_DIR/proj-branch | awk '{ print $2 }'` && git pull; done
# git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $SOCLABS_PROJECT_DIR/$line && git checkout `grep $line $SOCLABS_PROJECT_DIR/proj-branch | awk '{ print $2 }'` && git pull; done
git restore $SOCLABS_DESIGN_ROOT/.gitmodules
touch $SOCLABS_PROJECT_DIR/.socinit
fi
Subproject commit ddb82138ed9628b4dc011e7a156555fb6c23399a
Subproject commit 3b98954095dd0e7b62f520751fd148a16c9f4d03
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment