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
79112f8d
Commit
79112f8d
authored
Dec 07, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into rocko
parents
a6e52b99
b2cf77b9
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
284 additions
and
109 deletions
+284
-109
.gitignore
.gitignore
+5
-1
com.elphel.vdt.veditor.prefs
...lipse.core.runtime/.settings/com.elphel.vdt.veditor.prefs
+15
-0
run_bitbake.sh
scripts/run_bitbake.sh
+11
-2
used_files.py
scripts/used_files.py
+218
-102
setup_eclipse.py
setup_eclipse.py
+29
-4
setup_eclipse_fpga_paths.xml
setup_eclipse_fpga_paths.xml
+6
-0
No files found.
.gitignore
View file @
79112f8d
attic/*
.directory
fpga-elphel
linux-elphel
meta
poky
...
...
@@ -8,3 +7,8 @@ rootfs-elphel
tools
bootable-images
projects.json
/scripts/.project
/scripts/.pydevproject
/scripts/.settings
/fpga-elphel
!/fpga-elphel/eclipse_workspace_setup
fpga-elphel/eclipse_workspace_setup/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.elphel.vdt.veditor.prefs
0 → 100644
View file @
79112f8d
ClearProblemsOnToolStart.Enable=true
Color.Default=00,00,00
Color.DisabledCode=230,230,230
Debug.Closure=false
Debug.Disabled=false
Debug.Launching=false
Debug.Other=false
Debug.Parsing=false
Debug.Preprocessor=false
Debug.ToolsSequence=false
DisabledCode.Enable=true
Parser.MinReparse=945
Parser.OnType=false
Style.indentSize=4
eclipse.preferences.version=1
scripts/run_bitbake.sh
View file @
79112f8d
#!/bin/bash
#ls -all
args
=
"
$@
"
arg0
=
$0
#echo "arg0=" $arg0
#echo "args=" $args
while
((
"$#"
))
;
do
shift
done
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
#DIR0="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR
=
$(
dirname
$(
dirname
$(
dirname
$(
realpath
$(
dirname
$(
dirname
$arg0
))
/sysroots
))))
echo
"DIR="
$DIR
echo
"Launching bitbake
$args
"
cd
$DIR
/../../poky
#cd $DIR0/../../poky
cd
$DIR
.
./oe-init-build-env
bitbake
$args
|
sed
-u
's@| @@'
exit
0
scripts/used_files.py
View file @
79112f8d
This diff is collapsed.
Click to expand it.
setup_eclipse.py
View file @
79112f8d
...
...
@@ -34,9 +34,16 @@ import sys
import
subprocess
import
datetime
import
xml.etree.ElementTree
#import shutil
from
distutils.dir_util
import
copy_tree
#import distutils
def
main
():
workspace
=
'../workspace-elphel393'
workspace_fpga
=
'../workspace-elphel393_fpga'
project_paths
=
"./setup_eclipse_paths.xml"
project_paths_fpga
=
"./setup_eclipse_fpga_paths.xml"
fpga_to_workspace
=
"fpga-elphel/eclipse_workspace_setup"
continue_setup
=
False
# True # disable later
argv
=
sys
.
argv
print
(
argv
)
...
...
@@ -46,7 +53,7 @@ def main():
should have CDT and EGit plugins installed.
USAGE:
%
s eclipse-home [[path-to-workspace] project-paths]
First (mandatory) argument of this program (eclipse-home) is the full path to Eclipse instal
al
tion
First (mandatory) argument of this program (eclipse-home) is the full path to Eclipse instal
la
tion
(directory that has eclipse executable and eclipse.ini files).
Second (optional) argument (path-to-workspace) is the path to workspace. If not specified,
then ../workspace_elphel393 will be used.
...
...
@@ -55,7 +62,7 @@ USAGE:
The program will not overwrite or modify any existing workspace.
"""
%
(
argv
[
0
],))
return
return
0
eclipse_home
=
argv
[
1
]
if
(
len
(
argv
)
>
3
):
...
...
@@ -69,7 +76,10 @@ The program will not overwrite or modify any existing workspace.
if
(
len
(
argv
)
>
2
):
workspace
=
argv
[
2
]
fpga
=
"fpga"
in
workspace
if
fpga
:
print
(
"Processing FPGA projects"
)
project_paths
=
project_paths_fpga
workspace
=
os
.
path
.
abspath
(
workspace
)
need_import
=
True
if
os
.
path
.
exists
(
workspace
):
...
...
@@ -100,6 +110,18 @@ The program will not overwrite or modify any existing workspace.
if
return_code
>
0
:
print
(
"Can not continuie on error"
)
return
1
if
fpga
:
# project_paths = project_paths_fpga
print
(
"Copying VDT settings ("
,
fpga_to_workspace
,
") to workspace ("
,
workspace
,
")"
)
# shutil.copytree(fpga_to_workspace+"/.metadata", workspace+"/.metadata")
# distutils.dir_util.copy_tree(fpga_to_workspace,workspace)
copy_tree
(
fpga_to_workspace
,
workspace
)
'''
cp -r elphel393/fpga-elphel/eclipse_workspace_setup/.metadata ./workspace-elphel393-fpga-03
'''
#creating workspace/.metadata/.plugins/org.eclipse.core_runtime/.settings/org.eclipse.egit.core.prefs
egit_prefs_path
=
os
.
path
.
join
(
workspace
,
".metadata"
,
".plugins"
,
"org.eclipse.core.runtime"
,
".settings"
,
"org.eclipse.egit.core.prefs"
)
egit_prefs
=
"GitRepositoriesView.GitDirectories="
...
...
@@ -172,3 +194,6 @@ The program will not overwrite or modify any existing workspace.
if
__name__
==
"__main__"
:
sys
.
exit
(
main
())
"""
eyesis@eyesis-SH87R:~/nc393/elphel393$ ./setup_eclipse.py /home/eyesis/eclipse/jee-oxygen/eclipse/ ../workspace-elphel393-fpga setup_eclipse_fpga_paths.xml
"""
\ No newline at end of file
setup_eclipse_fpga_paths.xml
0 → 100644
View file @
79112f8d
<?xml version="1.0" encoding="UTF-8"?>
<project_paths>
<path>
fpga-elphel/x393
</path>
<path>
fpga-elphel/x393_sata
</path>
<path>
fpga-elphel/x359
</path>
</project_paths>
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