Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
0a6f2c5b
Commit
0a6f2c5b
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "lrdp-v2: README: ramparse.py: add more help about python2.7"
parents
7ba460e4
fefcd717
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linux-ramdump-parser-v2/README
+11
-0
11 additions, 0 deletions
linux-ramdump-parser-v2/README
linux-ramdump-parser-v2/ramparse.py
+12
-1
12 additions, 1 deletion
linux-ramdump-parser-v2/ramparse.py
with
23 additions
and
1 deletion
linux-ramdump-parser-v2/README
+
11
−
0
View file @
0a6f2c5b
...
@@ -49,6 +49,17 @@ Python 2.7 is required to run this tool. It can be downloaded and
...
@@ -49,6 +49,17 @@ Python 2.7 is required to run this tool. It can be downloaded and
installed from https://www.python.org/ or through your system's
installed from https://www.python.org/ or through your system's
software package manager.
software package manager.
If you already have python2.7 installed but it's not the default
python2 interpreter on your system (e.g. if python2 points to
python2.6) then you'll need to invoke the script with python2.7
explicitly, for example:
$ python2.7 $(which ramparse.py) ...
instead of:
$ ramparse.py ...
Setting up the toolchains
Setting up the toolchains
-------------------------------
-------------------------------
The parser relies on having access to gdb and nm to work. You will need to
The parser relies on having access to gdb and nm to work. You will need to
...
...
This diff is collapsed.
Click to expand it.
linux-ramdump-parser-v2/ramparse.py
+
12
−
1
View file @
0a6f2c5b
...
@@ -40,12 +40,23 @@ if major != 2:
...
@@ -40,12 +40,23 @@ if major != 2:
if
minor
!=
7
and
'
--force-26
'
not
in
sys
.
argv
:
if
minor
!=
7
and
'
--force-26
'
not
in
sys
.
argv
:
from
textwrap
import
dedent
from
textwrap
import
dedent
print
(
dedent
(
"""
print
(
dedent
(
"""
W
arning
! This script is developed and tested with Python 2.7.
W
ARNING
! This script is developed and tested with Python 2.7.
You might be able to get things working on 2.6 by installing
You might be able to get things working on 2.6 by installing
a few dependencies (most notably, OrderedDict [1])
a few dependencies (most notably, OrderedDict [1])
and then passing --force-26 to bypass this version check, but
and then passing --force-26 to bypass this version check, but
the recommended and supported approach is to install python2.7.
the recommended and supported approach is to install python2.7.
If you already have python2.7 installed but it
'
s not the default
python2 interpreter on your system (e.g. if python2 points to
python2.6) then you
'
ll need to invoke the scripts with python2.7
explicitly, for example:
$ python2.7 $(which ramparse.py) ...
instead of:
$ ramparse.py ...
[1] https://pypi.python.org/pypi/ordereddict
"""
))
[1] https://pypi.python.org/pypi/ordereddict
"""
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
if
'
--force-26
'
in
sys
.
argv
:
if
'
--force-26
'
in
sys
.
argv
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment