]> git.vomp.tv Git - vompclient.git/commitdiff
Automatically select platform for mvp/raspberry
authorChris Tallon <chris@vomp.tv>
Sat, 23 Feb 2013 16:36:26 +0000 (16:36 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 23 Feb 2013 16:36:26 +0000 (16:36 +0000)
GNUmakefile
select-platform [new file with mode: 0755]

index 443d16d4533e26cf8d1af2ec95cf703a14aca6e3..0a547df3dd3ea745ad2ddad1e98a4ca96b8e86d3 100644 (file)
@@ -1,5 +1,7 @@
-vomp_platform=mvp
 # valid platforms are raspberry and mvp
+vomp_platform=$(shell ./select-platform)
+$(info selected $(vomp_platform))
+
 vomp_options=
 #uncomment the line below, if you want to vomp application like, without a reboot option, automatically set for windows!
 #vomp_options+= -DVOMP_HAS_EXIT
diff --git a/select-platform b/select-platform
new file mode 100755 (executable)
index 0000000..d538cbd
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if grep -q BCM2708 /proc/cpuinfo ; then
+  echo "raspberry"
+else
+  echo "mvp"
+fi