X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Flinux%2Fsigrok-cross-linux;fp=cross-compile%2Flinux%2Fsigrok-cross-linux;h=6e119b0ad03c519c55438141f58f1af9fc0bfbbd;hp=8dd770d9ef921a12eed0418f6dace9aa4e108b71;hb=3ed306f863e5b04e6dafabcf7166dc758e1c6dd9;hpb=f6a6d164c6805b82883ce89c1ca60f84519ccf3b diff --git a/cross-compile/linux/sigrok-cross-linux b/cross-compile/linux/sigrok-cross-linux index 8dd770d..6e119b0 100755 --- a/cross-compile/linux/sigrok-cross-linux +++ b/cross-compile/linux/sigrok-cross-linux @@ -39,6 +39,11 @@ PYPATH=$PREFIX/lib/python2.7/site-packages # Edit this to enable/disable/modify parallel compiles. PARALLEL="-j 2" +# Uncomment the following lines to build with clang and run scan-build. +# export CC=clang +# export CXX=clang++ +# SB="scan-build -k -v" + # You usually don't need to change anything below this line. # ----------------------------------------------------------------------------- @@ -62,7 +67,7 @@ cd libserialport mkdir build cd build ../configure $C -make $PARALLEL +$SB make $PARALLEL make install cd ../.. @@ -74,9 +79,9 @@ cd libsigrok mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL -PYTHONPATH=$PYPATH make install -make check +$SB make $PARALLEL +PYTHONPATH=$PYPATH $SB make install +$SB make check cd ../.. # libsigrokdecode @@ -86,9 +91,9 @@ cd libsigrokdecode mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL +$SB make $PARALLEL make install -make check +$SB make check cd ../.. # sigrok-firmware @@ -121,7 +126,7 @@ cd sigrok-cli mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL +$SB make $PARALLEL make install cd ../.. @@ -130,8 +135,8 @@ $GIT_CLONE git://sigrok.org/pulseview cd pulseview mkdir build cd build -PKG_CONFIG_PATH=$P cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y .. -make $PARALLEL +PKG_CONFIG_PATH=$P $SB cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y .. +$SB make $PARALLEL make install cd ../..