Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kernel-bitbake-parser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kernel-bitbake-parser
Commits
7106d817
Commit
7106d817
authored
Apr 21, 2015
by
YuriNenakhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data output order correction
parent
5a668049
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
kbparse.py
kbparse.py
+7
-6
No files found.
kbparse.py
View file @
7106d817
...
...
@@ -97,6 +97,11 @@ for line in sys.stdin:
for
i
in
all_paths
:
if
i
in
srcdir
:
all_paths
.
remove
(
i
)
print
(
" ╔════════════════════╗
\n
║ include paths ║
\n
╚════════════════════╝"
)
for
i
in
inc_paths
:
print
(
"<listOptionValue builtIn=
\"
false
\"
value=
\"
"${workspace_loc:"
+
i
+
"}"
\"
/>"
)
print
(
" ╔════════════════════╗
\n
║ define symbols ║
\n
╚════════════════════╝"
)
xml_defs
=
""
for
i
in
defsyms
:
...
...
@@ -110,10 +115,8 @@ for i in defsyms:
xml_defs
=
xml_defs
[:
-
1
]
print
(
xml_defs
)
print
(
" ╔════════════════════╗
\n
║ include paths ║
\n
╚════════════════════╝"
)
for
i
in
inc_paths
:
print
(
"<listOptionValue builtIn=
\"
false
\"
value=
\"
"${workspace_loc:"
+
i
+
"}"
\"
/>"
)
print
(
" ╔════════════════════╗
\n
║ source paths ║
\n
╚════════════════════╝"
)
xml_src
=
"<entry excluding=
\"
"
all_paths
.
sort
()
for
i
in
range
(
len
(
all_paths
)):
try
:
...
...
@@ -121,8 +124,6 @@ for i in range(len(all_paths)):
all_paths
.
pop
(
i
+
1
)
except
IndexError
:
pass
print
(
" ╔════════════════════╗
\n
║ source paths ║
\n
╚════════════════════╝"
)
xml_src
=
"<entry excluding=
\"
"
for
i
in
all_paths
:
i
=
i
.
replace
(
proj_dir
+
src_dir
+
"/"
,
""
)
xml_src
+=
i
...
...
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