From 996cf44218b515153fdb304ff3d9490ea36d54c9 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 23 Feb 2013 16:36:26 +0000 Subject: [PATCH] Automatically select platform for mvp/raspberry --- GNUmakefile | 4 +++- select-platform | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 select-platform 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 -- 2.39.2