]> git.vomp.tv Git - vompclient.git/commitdiff
Only use make -j8 when cross compiling
authorChris Tallon <chris@vomp.tv>
Tue, 31 May 2022 15:37:43 +0000 (15:37 +0000)
committerChris Tallon <chris@vomp.tv>
Tue, 31 May 2022 15:37:43 +0000 (15:37 +0000)
build.sh
select-platform [deleted file]

index eb8b731f1084cd56ad841f66c30f41c7d04edd80..65672971992ec11fbcd3dc82dae7e0bbe56ce22b 100755 (executable)
--- 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 (executable)
index 8051559..0000000
+++ /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