From f92aee6c94a10a64d7bb825ec4e4cbfe6d59b3a7 Mon Sep 17 00:00:00 2001 From: George Nash Date: Mon, 26 Sep 2016 10:18:11 -0700 Subject: [PATCH] [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 --- build_common/SConscript | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.7.4