Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
d12dbe12
Commit
d12dbe12
authored
Aug 04, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. switch to branch 2. disable git pull if hash is not empty
parent
62a7bdf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
setup.sh
setup.sh
+30
-9
No files found.
setup.sh
View file @
d12dbe12
...
@@ -101,14 +101,23 @@ cloneandcheckout () {
...
@@ -101,14 +101,23 @@ cloneandcheckout () {
git checkout
$4
git checkout
$4
cd
..
cd
..
else
else
echo
" Already cloned - running git pull"
if
[
!
-z
$4
]
;
then
echo
" Already cloned - checked out at
$3
$4
"
else
echo
" Already cloned - check out branch then git pull"
cd
$2
cd
$2
git checkout
$3
git pull
git pull
cd
..
cd
..
fi
fi
fi
}
}
echo
"Step 1: Clone kernel project"
echo
"Step 1: Clone kernel project
"
cloneandcheckout
$E393_LINUX_ADDR
$E393_LINUX_ROOT
$E393_LINUX_BRANCH
$E393_LINUX_HASH
cloneandcheckout
$E393_LINUX_ADDR
$E393_LINUX_ROOT
$E393_LINUX_BRANCH
$E393_LINUX_HASH
if
[
!
-f
$E393_LINUX_ROOT
/.project
]
;
then
if
[
!
-f
$E393_LINUX_ROOT
/.project
]
;
then
echo
" Copying up files for Eclipse project"
echo
" Copying up files for Eclipse project"
...
@@ -120,7 +129,10 @@ fi
...
@@ -120,7 +129,10 @@ fi
echo
"Step 2: Clone fpga projects"
echo
"
Step 2: Clone fpga projects
"
if
[
!
-d
$E393_FPGADIR
]
;
then
if
[
!
-d
$E393_FPGADIR
]
;
then
echo
" Creating
$E393_FPGADIR
"
echo
" Creating
$E393_FPGADIR
"
mkdir
$E393_FPGADIR
mkdir
$E393_FPGADIR
...
@@ -147,7 +159,10 @@ cd ..
...
@@ -147,7 +159,10 @@ cd ..
echo
"Step 3: Clone applications and libraries projects"
echo
"
Step 3: Clone applications and libraries projects
"
if
[
!
-d
$E393_ROOTFSDIR
]
;
then
if
[
!
-d
$E393_ROOTFSDIR
]
;
then
echo
" Creating
$E393_ROOTFSDIR
"
echo
" Creating
$E393_ROOTFSDIR
"
mkdir
$E393_ROOTFSDIR
mkdir
$E393_ROOTFSDIR
...
@@ -163,7 +178,10 @@ cd ..
...
@@ -163,7 +178,10 @@ cd ..
echo
"Step 4: Extra meta layers"
echo
"
Step 4: Extra meta layers
"
if
[
!
-d
$E393_METADIR
]
;
then
if
[
!
-d
$E393_METADIR
]
;
then
echo
" Creating
$ELPHEL393_METADIR
"
echo
" Creating
$ELPHEL393_METADIR
"
mkdir
$E393_METADIR
mkdir
$E393_METADIR
...
@@ -185,7 +203,10 @@ cd ..
...
@@ -185,7 +203,10 @@ cd ..
echo
"Step 5: Poky"
echo
"
Step 5: Poky
"
cloneandcheckout
$POKYADDR
$POKYROOT
$POKYBRANCH
$POKYHASH
cloneandcheckout
$POKYADDR
$POKYROOT
$POKYBRANCH
$POKYHASH
CURRENT_PATH1
=
$(
dirname
$(
readlink
-f
"
$0
"
))
CURRENT_PATH1
=
$(
dirname
$(
readlink
-f
"
$0
"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment