Added check for Time libraries in expected location for the Arduino
authorJoseph Morrow <joseph.l.morrow@intel.com>
Wed, 10 Sep 2014 21:36:18 +0000 (17:36 -0400)
committerJoseph Morrow <joseph.l.morrow@intel.com>
Wed, 10 Sep 2014 21:36:18 +0000 (17:36 -0400)
Time Libraries from the TBStack makefile. If they are not there,
the user will be told to put them where we expect them to be now.

Change-Id: I93693a4623d038e152559ff9d8260bdb91c9000f

csdk/makefile

index d26205b28ae14d7e93c0998da4e4c982199fa5b3..3850ae722f18803242f141f377d167519e87acb1 100644 (file)
@@ -47,6 +47,12 @@ else ifeq ($(PLATFORM),arduinomega)
     include local.properties
     include $(PLATFORM).properties
        CC=$(ARDUINO_TOOLS_DIR)/avr-g++
+       ifeq ($(wildcard $(ARDUINO_DIR)/libraries/Time/Time/),)
+        $(error Arduino Time library needs to be moved from <ARDUINO_DIR>/libraries/Time \
+        to <ARDUINO_DIR>/libraries/Time/Time. You may need to create \
+        <ARDUINO_DIR>/libraries/Time/Time directory. Please refer to the wiki or readme \
+        for more information)
+       endif
 else ifeq ($(PLATFORM),arduinodue)
     include local.properties
     include $(PLATFORM).properties