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
b17410fd
Commit
b17410fd
authored
Sep 28, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed stray lines
parent
5bed9d48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
22 deletions
+74
-22
setup.sh
setup.sh
+74
-22
No files found.
setup.sh
View file @
b17410fd
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
E393_METADIR
=
"meta"
E393_METADIR
=
"meta"
E393_FPGADIR
=
"fpga-elphel"
E393_FPGADIR
=
"fpga-elphel"
E393_ROOTFSDIR
=
"rootfs-elphel"
E393_ROOTFSDIR
=
"rootfs-elphel"
E393_TOOLSDIR
=
"tools"
#LINUX ELPHEL
#LINUX ELPHEL
E393_LINUX_ADDR
=
"https://github.com/Elphel/linux-elphel.git"
E393_LINUX_ADDR
=
"https://github.com/Elphel/linux-elphel.git"
...
@@ -23,6 +24,12 @@ E393_SATA_FPGA1_ROOT="x393_sata"
...
@@ -23,6 +24,12 @@ E393_SATA_FPGA1_ROOT="x393_sata"
E393_SATA_FPGA1_BRANCH
=
"master"
E393_SATA_FPGA1_BRANCH
=
"master"
E393_SATA_FPGA1_HASH
=
""
E393_SATA_FPGA1_HASH
=
""
#X359
E393_X359_FPGA1_ADDR
=
"https://github.com/Elphel/x359.git"
E393_X359_FPGA1_ROOT
=
"x359"
E393_X359_FPGA1_BRANCH
=
"master"
E393_X359_FPGA1_HASH
=
""
#POKY
#POKY
POKYADDR
=
"git://git.yoctoproject.org/poky.git"
POKYADDR
=
"git://git.yoctoproject.org/poky.git"
POKYROOT
=
"poky"
POKYROOT
=
"poky"
...
@@ -123,9 +130,23 @@ APPS_ARRAY=(
...
@@ -123,9 +130,23 @@ APPS_ARRAY=(
"elphel-web-hwmon"
"elphel-web-hwmon"
"master"
"master"
""
""
#apps-tempmon
"https://github.com/Elphel/elphel-apps-tempmon.git"
"elphel-apps-tempmon"
"master"
""
#add new app below
#add new app below
)
)
TOOLS_ARRAY
=(
#tools-update
"https://github.com/Elphel/elphel-tools-update.git"
"elphel-tools-update"
"master"
""
#add new tool below
)
if
[
"
$1
"
=
"dev"
]
;
then
if
[
"
$1
"
=
"dev"
]
;
then
E393_LINUX_HASH
=
""
E393_LINUX_HASH
=
""
...
@@ -210,6 +231,8 @@ fi
...
@@ -210,6 +231,8 @@ fi
cloneandcheckout
$E393_SATA_FPGA1_ADDR
$E393_SATA_FPGA1_ROOT
$E393_SATA_FPGA1_BRANCH
$E393_SATA_FPGA1_HASH
cloneandcheckout
$E393_SATA_FPGA1_ADDR
$E393_SATA_FPGA1_ROOT
$E393_SATA_FPGA1_BRANCH
$E393_SATA_FPGA1_HASH
cloneandcheckout
$E393_X359_FPGA1_ADDR
$E393_X359_FPGA1_ROOT
$E393_X359_FPGA1_BRANCH
$E393_X359_FPGA1_HASH
cd
..
cd
..
...
@@ -233,6 +256,19 @@ for elem in $(seq 0 4 $((${#APPS_ARRAY[@]} - 1))); do
...
@@ -233,6 +256,19 @@ for elem in $(seq 0 4 $((${#APPS_ARRAY[@]} - 1))); do
done
done
cd
..
cd
..
if
[
!
-d
$E393_TOOLSDIR
]
;
then
echo
" Creating
$E393_TOOLSDIR
"
mkdir
$E393_TOOLSDIR
else
echo
"
$E393_TOOLSDIR
exists"
fi
cd
$E393_TOOLSDIR
#Clone user space applications
for
elem
in
$(
seq
0 4
$((${#
TOOLS_ARRAY
[@]
}
-
1
)))
;
do
cloneandcheckout
"
${
TOOLS_ARRAY
[
$elem
]
}
"
"
${
TOOLS_ARRAY
[
$elem
+1]
}
"
"
${
TOOLS_ARRAY
[
$elem
+2]
}
"
"
${
TOOLS_ARRAY
[
$elem
+3]
}
"
copy_eclipse_settings
"
${
TOOLS_ARRAY
[
$elem
+1]
}
"
done
cd
..
echo
"
echo
"
...
@@ -312,34 +348,50 @@ echo "Running: . ./oe-init-build-env build. If config files existed they will be
...
@@ -312,34 +348,50 @@ echo "Running: . ./oe-init-build-env build. If config files existed they will be
echo
""
echo
""
echo
"BBLAYERS =
\"
\\
"
>>
$BBLAYERS_CONF
cat
<<
EOT
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH2
/meta
\\
"
>>
$BBLAYERS_CONF
BBLAYERS = " \\
echo
"
$CURRENT_PATH2
/meta-yocto
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH2
/meta \\
echo
"
$CURRENT_PATH2
/meta-yocto-bsp
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH2
/meta-yocto \\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$EZQROOT
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH2
/meta-yocto-bsp \\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$E393ROOT
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$EZQROOT
\\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$XLNXROOT
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$E393ROOT
\\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-oe
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$XLNXROOT
\\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-python
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-oe \\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-networking
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-python \\
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-webserver
\\
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-networking \\
echo
"
\"
"
>>
$BBLAYERS_CONF
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-webserver \\
"
EOT
#distro features: systemd
#distro features: systemd
#echo "DISTRO_FEATURES_append = \" systemd\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_append = \" systemd\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_init_manager = \"systemd\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_init_manager = \"systemd\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_BACKFILL_CONSIDERED = \"sysvinit\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_BACKFILL_CONSIDERED = \"sysvinit\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_initscripts = \"\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_initscripts = \"\"" >> $LOCAL_CONF
# change the MACHINE
echo
"MACHINE ?=
\"
elphel393
\"
"
>>
$LOCAL_CONF
# 1. Elphel's MIRROR website, \n is important
# Elphel's MIRROR website, \n is important
# 2. control init script switches
echo
"MIRRORS =+
\"
http://.*/.* http://mirror.elphel.com/elphel393_mirror/
\\
n
\"
"
>>
$LOCAL_CONF
cat
<<
EOT
>>
$LOCAL_CONF
MACHINE ?= "elphel393"
echo
"REMOTE_USER ?=
\"
root
\"
"
>>
$LOCAL_CONF
MIRRORS =+ "http://.*/.* http://mirror.elphel.com/elphel393_mirror/ \n "
echo
"IDENTITY_FILE ?=
\"
~/.ssh/id_rsa
\"
"
>>
$LOCAL_CONF
REMOTE_USER ?= "root"
echo
"REMOTE_IP ?=
\"
192.168.0.9
\"
"
>>
$LOCAL_CONF
IDENTITY_FILE ?= "~/.ssh/id_rsa"
# control init script progress/stage/level
REMOTE_IP ?= "192.168.0.9"
echo
"INITSTRING ?=
\"
init_elphel393.py
\"
"
>>
$LOCAL_CONF
INITSTRING ?= "init_elphel393.py \"{\\
\\\\"ip\\\\" :1,\\
\\\\"mcntrl\\\\" :1,\\
\\\\"imgsrv\\\\" :1,\\
\\\\"port1\\\\" :1,\\
\\\\"port2\\\\" :1,\\
\\\\"port3\\\\" :1,\\
\\\\"port4\\\\" :1,\\
\\\\"framepars\\\\":1,\\
\\\\"autoexp\\\\" :1,\\
\\\\"autowb\\\\" :1,\\
\\\\"sata\\\\" :1 \\
}\""
MACHINE_DEVICETREE = "elphel393.dts"
EOT
if
[
$MISSING_BBLAYERS_CONF
-eq
0
]
;
then
if
[
$MISSING_BBLAYERS_CONF
-eq
0
]
;
then
echo
"restoring
$BBLAYERS_CONF
"
echo
"restoring
$BBLAYERS_CONF
"
...
...
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