]> sigrok.org Git - sigrok-build.git/commitdiff
Add sigrok-firmware-fx2lafw to MXE build dependencies and fix sigrok-firmware build
authorFrank Stettner <redacted>
Mon, 27 Mar 2023 16:40:15 +0000 (18:40 +0200)
committerFrank Stettner <redacted>
Mon, 27 Mar 2023 16:40:15 +0000 (18:40 +0200)
ci/sigrok-mxe-build-dependencies.sh
ci/sigrok-mxe-init-toolchain.sh

index c867ae330e706df6dbeceed1a82e7fb7cece5fd5..05def097d3f29bb0fa501f997135b4048ad85ec8 100755 (executable)
@@ -114,7 +114,18 @@ cd ..
 $GIT_CLONE $SIGROK_FIRMWARE_REPO sigrok-firmware
 cd sigrok-firmware
 ./autogen.sh
-./configure $C $L
+# Nothing gets cross-compiled here, we just need 'make install' basically.
+./configure --prefix="$INSTALL_DIR"
+make install $V
+cd ..
+
+# sigrok-firmware-fx2lafw
+
+$GIT_CLONE $SIGROK_FIRMWARE_FX2LAFW_REPO sigrok-firmware-fx2lafw
+cd sigrok-firmware-fx2lafw
+./autogen.sh
+# We're building the fx2lafw firmware on the host, no need to cross-compile.
+./configure --prefix="$INSTALL_DIR"
 make $PARALLEL $V
 make install $V
 cd ..
@@ -122,5 +133,6 @@ cd ..
 # sigrok-dumps
 $GIT_CLONE $SIGROK_DUMPS_REPO sigrok-dumps
 cd sigrok-dumps
-make PREFIX="$INSTALL_DIR" install
+make install PREFIX="$INSTALL_DIR" $V
 cd ..
+
index be0cd8ddcb2026cc96a3f8171cb71bad3c2ea843..abadba4ad73cc6767bf5868aeb34f4f92402a8ee 100755 (executable)
@@ -34,6 +34,7 @@ P="$INSTALL_DIR/lib/pkgconfig"
 P2="$MXE_DIR/usr/$TOOLCHAIN_TRIPLET/lib/pkgconfig"
 export C="--host=$TOOLCHAIN_TRIPLET --prefix=$INSTALL_DIR CPPFLAGS=-D__printf__=__gnu_printf__"
 export L="--disable-shared --enable-static"
+#export V="V=1 VERBOSE=1"
 
 if [ "$TARGET" = "i686" ]; then
        export PKG_CONFIG_PATH_i686_w64_mingw32_static_posix="$P:$P2"