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
904edceb
Commit
904edceb
authored
Nov 25, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitbake string for anything that differs
parent
41e3cb0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
check_versions.py
check_versions.py
+33
-14
No files found.
check_versions.py
View file @
904edceb
...
@@ -96,6 +96,7 @@ def deep_analysis(local,remote):
...
@@ -96,6 +96,7 @@ def deep_analysis(local,remote):
print
(
"
\n
"
+
bcolors
.
BOLDWHITE
+
"{:<24}"
.
format
(
"Project"
)
+
"{:<16}"
.
format
(
"Local GIT"
)
+
"{:<16}"
.
format
(
"Target Version"
)
+
bcolors
.
ENDC
)
print
(
"
\n
"
+
bcolors
.
BOLDWHITE
+
"{:<24}"
.
format
(
"Project"
)
+
"{:<16}"
.
format
(
"Local GIT"
)
+
"{:<16}"
.
format
(
"Target Version"
)
+
bcolors
.
ENDC
)
update_list
=
""
for
pl
,
vl
in
local
:
for
pl
,
vl
in
local
:
recstr
=
"{:<24}"
.
format
(
pl
)
+
"{:<16}"
.
format
(
vl
)
recstr
=
"{:<24}"
.
format
(
pl
)
+
"{:<16}"
.
format
(
vl
)
prfound
=
False
prfound
=
False
...
@@ -107,11 +108,39 @@ def deep_analysis(local,remote):
...
@@ -107,11 +108,39 @@ def deep_analysis(local,remote):
recstr
=
bcolors
.
OKGREEN
+
recstr
+
bcolors
.
ENDC
recstr
=
bcolors
.
OKGREEN
+
recstr
+
bcolors
.
ENDC
else
:
else
:
recstr
=
bcolors
.
FAIL
+
recstr
+
bcolors
.
ENDC
recstr
=
bcolors
.
FAIL
+
recstr
+
bcolors
.
ENDC
pl
=
getname
(
pl
,
""
,
"recipe_to_package"
)
update_list
=
update_list
+
" "
+
pl
if
not
prfound
:
if
not
prfound
:
recstr
=
bcolors
.
WARNING
+
recstr
+
bcolors
.
ENDC
recstr
=
bcolors
.
WARNING
+
recstr
+
bcolors
.
ENDC
pl
=
getname
(
pl
,
""
,
"recipe_to_package"
)
update_list
=
update_list
+
" "
+
pl
print
(
recstr
)
print
(
recstr
)
print
(
""
)
print
(
"
\n
To sync the software on the target run:
\n
bitbake"
+
update_list
+
" -c target_scp -f"
)
# all exceptions in one place
def
getname
(
name
,
project
,
mode
):
global
project_prefix
global
package_prefix
if
mode
==
"project_to_recipe"
:
if
name
.
find
(
project_prefix
)
==
0
:
name
=
name
[
len
(
project_prefix
):]
if
project
.
find
(
package_prefix
)
==
0
:
name
=
package_prefix
+
name
#only exception
if
name
==
"fpga-x393_sata"
:
name
=
"fpga-x393sata"
return
name
elif
mode
==
"recipe_to_package"
:
if
name
==
"linux-elphel"
:
name
=
"linux-xlnx"
elif
name
==
"apps-php-extension"
:
name
=
"php"
return
name
else
:
return
name
usage
=
"""Usage example:
usage
=
"""Usage example:
{0}{1} root@192.168.0.9{2}, where
{0}{1} root@192.168.0.9{2}, where
...
@@ -164,19 +193,9 @@ for p,v in Projects.items():
...
@@ -164,19 +193,9 @@ for p,v in Projects.items():
if
isinstance
(
v
,
dict
):
if
isinstance
(
v
,
dict
):
for
k
,
l
in
v
.
items
():
for
k
,
l
in
v
.
items
():
tmp
=
get_version_from_git
(
p
+
"/"
+
k
,
git_vfile
)
tmp
=
get_version_from_git
(
p
+
"/"
+
k
,
git_vfile
)
if
k
.
find
(
project_prefix
)
==
0
:
name
=
getname
(
k
,
p
,
"project_to_recipe"
)
name
=
k
[
len
(
project_prefix
):]
else
:
name
=
k
if
p
.
find
(
package_prefix
)
==
0
:
name
=
package_prefix
+
name
#only exception
if
name
==
"fpga-x393_sata"
:
name
=
"fpga-x393sata"
local_list
.
append
([
name
.
encode
(
'ascii'
,
'ignore'
),
tmp
])
local_list
.
append
([
name
.
encode
(
'ascii'
,
'ignore'
),
tmp
])
elif
isinstance
(
v
,
list
):
elif
isinstance
(
v
,
list
):
tmp
=
get_version_from_git
(
p
,
git_vfile
)
tmp
=
get_version_from_git
(
p
,
git_vfile
)
local_list
.
append
([
p
.
encode
(
'ascii'
,
'ignore'
),
tmp
])
local_list
.
append
([
p
.
encode
(
'ascii'
,
'ignore'
),
tmp
])
...
...
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