File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 30
30
eval $( make env)
31
31
make info
32
32
33
- set -x
33
+ # set -x
34
34
set -e
35
35
36
36
if [ " $CPU " != or1k -a " $CPU " != " vexriscv" ]; then
@@ -67,7 +67,7 @@ LINUX_BRANCH=${LINUX_BRANCH:-master-litex}
67
67
cd $( dirname $LINUX_SRC )
68
68
echo " Downloading Linux source tree."
69
69
echo " If you already have a local git checkout you can set 'LINUX_GITLOCAL' to speed up this step."
70
- git clone $LINUX_CLONE_FROM $LINUX_SRC
70
+ git clone $LINUX_CLONE_FROM $LINUX_SRC --branch $LINUX_BRANCH
71
71
)
72
72
fi
73
73
@@ -86,8 +86,11 @@ LINUX_BRANCH=${LINUX_BRANCH:-master-litex}
86
86
87
87
# Checkout or1k-linux branch it not already on it
88
88
if [ " $( git rev-parse --abbrev-ref HEAD) " != " $LINUX_BRANCH " ]; then
89
- git checkout $LINUX_BRANCH || \
89
+ if git rev-parse --abbrev-ref $LINUX_BRANCH > /dev/null 2>&1 ; then
90
+ git checkout $LINUX_BRANCH
91
+ else
90
92
git checkout " $CURRENT_LINUX_REMOTE_NAME /$LINUX_BRANCH " -b $LINUX_BRANCH
93
+ fi
91
94
fi
92
95
)
93
96
You can’t perform that action at this time.
0 commit comments