A fix for building the Arduino TBStack without wifi libraries. This bug
authorJoseph Morrow <joseph.l.morrow@intel.com>
Wed, 10 Sep 2014 16:20:47 +0000 (12:20 -0400)
committerJoseph Morrow <joseph.l.morrow@intel.com>
Wed, 10 Sep 2014 16:22:55 +0000 (12:22 -0400)
was apparent even when building for only ethernet, the makefile
expected the wifi libraries to exist. Now the makefile only expects
the wifi libraries to exist if you're building for wifi shield.

Patch 2: Rebase

Patch 3: Moved implementation in to just arduinomega.properties
as per Sachin's suggestion.

Change-Id: Id06387e0d10244d71ae83a00068a0ef2f615ee84

csdk/arduinomega.properties

index 0d319e0..925c477 100644 (file)
@@ -43,5 +43,8 @@ ETH_UTIL_CPPOBJ = socket.o w5100.o
 WIFI_COBJ = WiFi.o WiFiClient.o WiFiServer.o WiFiUdp.o server_drv.o spi_drv.o wifi_drv.o
 OCDEPENDENT_CPPOBJ = wiring_analog.o
 
-PLATFORM_OBJS = $(CORE_COBJ) $(CORE_CPPOBJ) $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) $(OCDEPENDENT_CPPOBJ) $(WIFI_COBJ)
+PLATFORM_OBJS = $(CORE_COBJ) $(CORE_CPPOBJ) $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ) $(OCDEPENDENT_CPPOBJ)
+ifeq ($(ARDUINOWIFI),1)
+       PLATFORM_OBJS += $(WIFI_COBJ)
+endif