|
|
|
@ -1,16 +1,19 @@
|
|
|
|
#!/bin/bash -ex
|
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if uname | grep -i Linux &>/dev/null; then
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install python-dev python3-dev python-pip python3-pip libglib2.0-dev
|
|
|
|
sudo apt-get install python-dev python3-dev python-pip python3-pip libglib2.0-dev
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Update all submodules
|
|
|
|
# Update all submodules
|
|
|
|
git submodule update --init --recursive
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
|
|
|
|
# Install Python dependencies
|
|
|
|
|
|
|
|
sudo pip install -Ur requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Find the path to the Python interpreter used by GDB.
|
|
|
|
# Find the path to the Python interpreter used by GDB.
|
|
|
|
PYTHON=$(gdb -batch -q --nx -ex 'pi import sys; print(sys.executable)')
|
|
|
|
PYTHON=$(gdb -batch -q --nx -ex 'pi import sys; print(sys.executable)')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install Python dependencies
|
|
|
|
|
|
|
|
sudo $PYTHON -m pip install -Ur requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
# Find the path to the Python2 interpreter needed by the Unicorn install process.
|
|
|
|
# Find the path to the Python2 interpreter needed by the Unicorn install process.
|
|
|
|
export UNICORN_QEMU_FLAGS="--python=$(which python2)"
|
|
|
|
export UNICORN_QEMU_FLAGS="--python=$(which python2)"
|
|
|
|
|
|
|
|
|
|
|
|
|