From: Chris Tallon Date: Sat, 23 Feb 2013 16:36:26 +0000 (+0000) Subject: Automatically select platform for mvp/raspberry X-Git-Tag: 0-4-0^2 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=996cf44218b515153fdb304ff3d9490ea36d54c9;p=vompclient.git Automatically select platform for mvp/raspberry --- diff --git a/GNUmakefile b/GNUmakefile index 443d16d..0a547df 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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 index 0000000..d538cbd --- /dev/null +++ b/select-platform @@ -0,0 +1,7 @@ +#!/bin/bash + +if grep -q BCM2708 /proc/cpuinfo ; then + echo "raspberry" +else + echo "mvp" +fi