[IOT-1331] Arduino with SECURED=1 prints build failure
authorGeorge Nash <george.nash@intel.com>
Mon, 26 Sep 2016 17:18:11 +0000 (10:18 -0700)
committerRick Bell <richard.s.bell@intel.com>
Tue, 27 Sep 2016 23:12:08 +0000 (23:12 +0000)
Arduino does not support security at all. The crypto
stack is not avalible. If the SECURED=1 option is
provided the build will instantly fail.

Change-Id: I2fd72b5debf05d214b606a1ff95da1161b6da4a9
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12225
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
build_common/SConscript

index 85a5eb1..6ffde5c 100644 (file)
@@ -76,6 +76,11 @@ else:
                release_mode = True
        logging_default = (release_mode == False)
 
+# targets that do not support the DTLS build (SECURED=1 build option)
+targets_without_dtls_support = ['arduino'];
+if ARGUMENTS.get('SECURED') == '1' and target_os in targets_without_dtls_support:
+       print "\nError: DTLS not supported on target os: %s MUST build with SECURED=0\n" % (target_os)
+       Exit(1)
 
 ######################################################################
 # Common build options (release, target os, target arch)