Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
fa7e8123
Commit
fa7e8123
authored
Jul 15, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Binwalk start script no longer necessary when binwalk is installed to a custom prefix directory.
parent
01efa841
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
INSTALL
INSTALL
+0
-1
Makefile.in
Makefile.in
+1
-10
binwalk
src/scripts/binwalk
+14
-1
No files found.
INSTALL
View file @
fa7e8123
...
...
@@ -45,7 +45,6 @@ dependencies are available from most Linux package managers:
python-qt4-gl
python-numpy
python-scipy
pyqtgraph-0.9.8 [http://www.pyqtgraph.org/downloads/pyqtgraph-0.9.8.tar.gz]
mtd-utils
zlib1g-dev
liblzma-dev
...
...
Makefile.in
View file @
fa7e8123
...
...
@@ -29,17 +29,8 @@ install: build
build
:
if
[
"
$(BUILD_C_LIBS)
"
-eq
"1"
]
;
then
make
-C
$(SRC_C_DIR)
;
fi
echo
"
$(prefix)
"
>
src/binwalk/config/prefix.conf
$(PYTHON)
./setup.py build
start-script
:
echo
'#\!/bin/sh'
>
$@
echo
"PREFIX=
\"
$(prefix)
\"
"
>>
$@
echo
'PYVERSION=`python --version 2>&1 | cut -d" " -f2 | cut -d"." -f1,2`'
>>
$@
echo
'export PYTHONPATH="$$PREFIX/lib/python$$PYVERSION/site-packages"'
>>
$@
echo
'$$PREFIX/bin/binwalk "$$@"'
>>
$@
chmod +x
$@
deps
:
./deps.sh
...
...
@@ -49,7 +40,7 @@ clean:
distclean
:
clean
if
[
"
$(BUILD_C_LIBS)
"
-eq
"1"
]
;
then
make
-C
$(SRC_C_DIR)
distclean
;
fi
rm
-rf
Makefile config.
*
*
.cache
start-script
rm
-rf
Makefile config.
*
*
.cache
uninstall
:
$(PYTHON)
./setup.py uninstall
--pydir
=
`
find
$(prefix)
/lib
-name
binwalk | head
-1
`
--pybin
=
`
find
$(prefix)
/bin
-name
binwalk | head
-1
`
...
...
src/scripts/binwalk
View file @
fa7e8123
#!/usr/bin/env python
import
sys
import
binwalk
from
threading
import
Thread
try
:
import
binwalk
except
ImportError
:
# If installed to a custom prefix directory, binwalk may not be in
# the default module search path(s). Try to resolve the prefix module
# path and add it to sys.path.
import
os
module_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
"lib"
,
"python
%
d.
%
d"
%
(
sys
.
version_info
[
0
],
sys
.
version_info
[
1
]),
"site-packages"
)
sys
.
path
.
append
(
module_path
)
import
binwalk
from
binwalk.core.compat
import
user_input
def
display_status
(
m
):
...
...
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