modified SConscript for building arduino with tcp
authorJaewook Jung <jw0213.jung@samsung.com>
Mon, 26 Sep 2016 05:30:23 +0000 (14:30 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Thu, 29 Sep 2016 07:03:41 +0000 (07:03 +0000)
Since arduino with WIFI shield does not support tcp,
build script should be closed expectedly.

Change-Id: Icad92654355153574ed5928922164366271946ec
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12193
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 9cc86462d90992e977e4f6c657e8ba5384329013)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12261

resource/csdk/connectivity/src/tcp_adapter/arduino/SConscript

index b9125ae..54fcad7 100644 (file)
@@ -10,5 +10,8 @@ env.AppendUnique(CPPPATH = [ os.path.join(src_dir, 'arduino') ])
 if env.get('SHIELD') == 'ETH':
     src_files = [ 'catcpserver_eth.cpp' ,
                   'catcpadapterutils_eth.cpp']
+else:
+    print "\nError: TCP is not supported for WIFI shield"
+    Exit(1)
 
 Return('src_files')