SF_MIRROR=switch.dl.sourceforge.net
WGET="wget --quiet"
+GIT_CLONE="git clone --depth=1"
# -----------------------------------------------------------------------------
C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX"
# Get the latest versions of config.guess/config.sub that know about Android.
-git clone git://git.savannah.gnu.org/config.git
+$GIT_CLONE git://git.savannah.gnu.org/config.git
# -----------------------------------------------------------------------------
cd ..
# libserialport
-git clone git://sigrok.org/libserialport
+$GIT_CLONE git://sigrok.org/libserialport
cd libserialport
./autogen.sh
./configure $C --without-libudev
cd ..
# libsigrok
-git clone git://sigrok.org/libsigrok
+$GIT_CLONE git://sigrok.org/libsigrok
cd libsigrok
./autogen.sh
./configure $C
cd ..
# libsigrokdecode
-git clone git://sigrok.org/libsigrokdecode
+$GIT_CLONE git://sigrok.org/libsigrokdecode
cd libsigrokdecode
./autogen.sh
./configure $C
cd ..
# sigrok-cli
-git clone git://sigrok.org/sigrok-cli
+$GIT_CLONE git://sigrok.org/sigrok-cli
cd sigrok-cli
./autogen.sh
./configure $C
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
cd ..
# libsigrok
-git clone git://sigrok.org/libsigrok
+$GIT_CLONE git://sigrok.org/libsigrok
cd libsigrok
./autogen.sh
PKG_CONFIG_PATH=$P ./configure $C
cd ..
# libsigrokdecode
-git clone git://sigrok.org/libsigrokdecode
+$GIT_CLONE git://sigrok.org/libsigrokdecode
cd libsigrokdecode
./autogen.sh
./configure $C
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.
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.
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
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
SF_MIRROR=switch.dl.sourceforge.net
WGET="wget --quiet"
+GIT_CLONE="git clone --depth=1"
# -----------------------------------------------------------------------------
cp -f zadig.exe zadig_xp.exe $PREFIX
# libserialport
-git clone git://sigrok.org/libserialport
+$GIT_CLONE git://sigrok.org/libserialport
cd libserialport
./autogen.sh
PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L
cd ..
# libsigrok
-git clone git://sigrok.org/libsigrok
+$GIT_CLONE git://sigrok.org/libsigrok
cd libsigrok
patch -p1 < ../../libsigrok_firmwaredir.patch
./autogen.sh
cd ..
# libsigrokdecode
-git clone git://sigrok.org/libsigrokdecode
+$GIT_CLONE git://sigrok.org/libsigrokdecode
cd libsigrokdecode
./autogen.sh
patch -p1 < ../../srd_decodersdir.patch
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.
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.
cd ..
# sigrok-dumps
-git clone git://sigrok.org/sigrok-dumps
+$GIT_CLONE git://sigrok.org/sigrok-dumps
cd sigrok-dumps
make install DESTDIR=$PREFIX/share/sigrok-dumps
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_i686_pc_mingw32_static=$P:$P2 ./configure $C
cd ..
# PulseView
-git clone git://sigrok.org/pulseview
+$GIT_CLONE git://sigrok.org/pulseview
cd pulseview
PKG_CONFIG_PATH_i686_pc_mingw32_static=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y .
make $PARALLEL VERBOSE=1