X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Flinux%2Fsigrok-cross-linux;h=175f30166beb92cdf76817e8129a9dd56e5dc2ea;hp=4886f5b9009f22dd823c6d51c300f833ba84df4d;hb=d419fd05ff36fa1da40dad9a827e68bc7a01e418;hpb=07947dda98729499f1c8b85a8ce8b27d9f5a6753 diff --git a/cross-compile/linux/sigrok-cross-linux b/cross-compile/linux/sigrok-cross-linux index 4886f5b..175f301 100755 --- a/cross-compile/linux/sigrok-cross-linux +++ b/cross-compile/linux/sigrok-cross-linux @@ -48,10 +48,12 @@ rm -rf $BUILDDIR mkdir $BUILDDIR cd $BUILDDIR +GIT_CLONE="git clone --depth=1" + # ----------------------------------------------------------------------------- # libserialport -git clone git://sigrok.org/libserialport +$GIT_CLONE git://sigrok.org/libserialport cd libserialport ./autogen.sh ./configure $C @@ -60,7 +62,7 @@ make install cd .. # libsigrok -git clone git://sigrok.org/libsigrok +$GIT_CLONE git://sigrok.org/libsigrok cd libsigrok ./autogen.sh PKG_CONFIG_PATH=$P ./configure $C @@ -69,16 +71,16 @@ make install cd .. # libsigrokdecode -git clone git://sigrok.org/libsigrokdecode +$GIT_CLONE git://sigrok.org/libsigrokdecode cd libsigrokdecode ./autogen.sh -./configure $C +PKG_CONFIG_PATH=$P ./configure $C make $PARALLEL make install cd .. # sigrok-firmware -git clone git://sigrok.org/sigrok-firmware +$GIT_CLONE git://sigrok.org/sigrok-firmware cd sigrok-firmware ./autogen.sh # Nothing gets cross-compiled here, we just need 'make install' basically. @@ -87,7 +89,7 @@ make install cd .. # sigrok-firmware-fx2lafw -git clone git://sigrok.org/sigrok-firmware-fx2lafw +$GIT_CLONE git://sigrok.org/sigrok-firmware-fx2lafw cd sigrok-firmware-fx2lafw ./autogen.sh # We're building the fx2lafw firmware on the host, no need to cross-compile. @@ -97,7 +99,7 @@ make install cd .. # sigrok-cli -git clone git://sigrok.org/sigrok-cli +$GIT_CLONE git://sigrok.org/sigrok-cli cd sigrok-cli ./autogen.sh PKG_CONFIG_PATH=$P ./configure $C @@ -106,7 +108,7 @@ make install cd .. # PulseView -git clone git://sigrok.org/pulseview +$GIT_CLONE git://sigrok.org/pulseview cd pulseview PKG_CONFIG_PATH=$P cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_DECODE=y . make $PARALLEL