From 1e6af45576ec55e7ffcc154372eb797c9088db78 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 31 May 2022 15:37:43 +0000 Subject: [PATCH] Only use make -j8 when cross compiling --- build.sh | 5 +++-- select-platform | 11 ----------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100755 select-platform 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 -- 2.39.5