From: George Nash Date: Mon, 26 Sep 2016 17:18:11 +0000 (-0700) Subject: [IOT-1331] Arduino with SECURED=1 prints build failure X-Git-Tag: 1.3.0~1057^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f92aee6c94a10a64d7bb825ec4e4cbfe6d59b3a7;p=platform%2Fupstream%2Fiotivity.git [IOT-1331] Arduino with SECURED=1 prints build failure 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/12227 Tested-by: jenkins-iotivity Reviewed-by: Rick Bell --- diff --git a/build_common/SConscript b/build_common/SConscript index adb3b4c..0d2ba80 100644 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -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)