]> sigrok.org Git - sigrok-util.git/blobdiff - cross-compile/linux/sigrok-cross-linux
sigrok-cross-linux: Allow Python bindings installation.
[sigrok-util.git] / cross-compile / linux / sigrok-cross-linux
index 175f30166beb92cdf76817e8129a9dd56e5dc2ea..a5ba2c6baed04dfaf7754d8a7e59ee1732bb154b 100755 (executable)
@@ -33,6 +33,9 @@ PREFIX=$HOME/sr
 # The path where to download files to and where to build packages.
 BUILDDIR=./build
 
+# The path where the libsigrok Python bindings will be installed.
+PYPATH=$PREFIX/lib/python2.7/site-packages
+
 # Edit this to enable/disable/modify parallel compiles.
 PARALLEL="-j 2"
 
@@ -62,12 +65,13 @@ make install
 cd ..
 
 # libsigrok
+mkdir -p $PYPATH
 $GIT_CLONE git://sigrok.org/libsigrok
 cd libsigrok
 ./autogen.sh
 PKG_CONFIG_PATH=$P ./configure $C
 make $PARALLEL
-make install
+PYTHONPATH=$PYPATH make install
 cd ..
 
 # libsigrokdecode