From: Chris Tallon Date: Tue, 31 May 2022 15:37:43 +0000 (+0000) Subject: Only use make -j8 when cross compiling X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=1e6af45576ec55e7ffcc154372eb797c9088db78;p=vompclient.git Only use make -j8 when cross compiling --- diff --git a/build.sh b/build.sh index eb8b731..6567297 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -NATIVE=NO +NATIVE=no if grep -q BCM2708 /proc/cpuinfo ; then NATIVE=yes @@ -14,7 +14,8 @@ fi if [ $NATIVE == "no" ]; then CROSS_COMPILE_INSERT=-DCMAKE_TOOLCHAIN_FILE=../src/CMakeToolChainRPi.txt + CROSS_COMPILE_J=-j8 fi mkdir build -cmake $CROSS_COMPILE_INSERT -S src -B build && make -C build -j8 +cmake $CROSS_COMPILE_INSERT -S src -B build && make -C build $CROSS_COMPILE_J diff --git a/select-platform b/select-platform deleted file mode 100755 index 8051559..0000000 --- a/select-platform +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if grep -q BCM2708 /proc/cpuinfo ; then - echo "raspberry" -elif grep -q BCM2709 /proc/cpuinfo ; then - echo "raspberry" -elif grep -q BCM2835 /proc/cpuinfo ; then - echo "raspberry" -else - echo "crossraspberry" -fi