fi
echo "*********** Build for arduino avr *************"
- scons TARGET_OS=arduino UPLOAD=false BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=ETHERNET NET=Ethernet RELEASE=$3
- scons TARGET_OS=arduino UPLOAD=false BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=WIFI NET=Wifi RELEASE=$3
+ scons resource TARGET_OS=arduino UPLOAD=false BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=ETHERNET NET=Ethernet RELEASE=$3
+ scons resource TARGET_OS=arduino UPLOAD=false BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=WIFI NET=Wifi RELEASE=$3
echo "*********** Build for arduino arm *************"
- scons TARGET_OS=arduino UPLOAD=false BOARD=arduino_due_x TARGET_ARCH=arm TARGET_TRANSPORT=ETHERNET NET=Ethernet RELEASE=$3
- scons TARGET_OS=arduino UPLOAD=false BOARD=arduino_due_x TARGET_ARCH=arm TARGET_TRANSPORT=WIFI NET=Wifi RELEASE=$3
-
- echo "*********** Build for arduino mega w/WiFi *************"
- scons TARGET_OS=arduino BOARD=mega NET=Wifi ARDUINO_HOME=$2 RELEASE=$3
+ scons resource TARGET_OS=arduino UPLOAD=false BOARD=arduino_due_x TARGET_ARCH=arm TARGET_TRANSPORT=ETHERNET NET=Ethernet RELEASE=$3
+ scons resource TARGET_OS=arduino UPLOAD=false BOARD=arduino_due_x TARGET_ARCH=arm TARGET_TRANSPORT=WIFI NET=Wifi RELEASE=$3
if [ $(uname -s) = "Darwin" ]
then
if not arduino_home:
print 'Creating ARDUINO_HOME for Arduino lib'
print '''
- *******************************************************************************
- * Arduino root directory isn't set, you can set enviornment variable *
- * ARDUINO_HOME or add it in command line as follows (Only set if your *
- * version has fixes applied as depicted below. Press ctrl+c now if you *
- * wish to manually set ARDUINO_HOME.): *
- * # scons ARDUINO_HOME=<path to arduino root directory> ... *
- *******************************************************************************
- '''
+ *******************************************************************************
+ * Arduino root directory isn't set, you can set enviornment variable *
+ * ARDUINO_HOME or add it in command line as follows (Only set if your *
+ * version has fixes applied as depicted below. Press ctrl+c now if you *
+ * wish to manually set ARDUINO_HOME.): *
+ * # scons ARDUINO_HOME=<path to arduino root directory> ... *
+ *******************************************************************************
+ '''
arduinolib_dir = src_dir + '/extlibs/arduino/arduino-1.5.8'
if not os.path.exists(arduinolib_dir):
elif target_os == 'darwin':
# Build linux samples for now
SConscript('csdk/stack/samples/linux/SimpleClientServer/SConscript')
-#elif target_os == 'arduino':
-# SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')
+elif target_os == 'arduino':
+ SConscript('csdk/stack/samples/arduino/SimpleClientServer/ocserver/SConscript')