build: Support other archs for coverify report
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 7 Sep 2017 17:40:10 +0000 (19:40 +0200)
committerMats Wichmann <mats@linux.com>
Thu, 5 Oct 2017 22:30:22 +0000 (22:30 +0000)
Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I36626c2180a0fc5e4ce8b77b22a5f9776aa62ea8
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit 10aefe01381d264cb8c3593b8172dacba547f7aa)

tools/generate_report.sh

index 2d62d32..dc48196 100755 (executable)
@@ -16,10 +16,17 @@ report_flags="--html --html-details";
 #IOTIVITY Flags
 IOTIVITY_BASE="${PWD}"
 IOTIVITY_TARGET_OS="linux"
-IOTIVITY_TARGET_ARCH="x86"
+IOTIVITY_TARGET_ARCH="$(uname -m)"
 USE_TIMESTAMP="yes"
 UNITTEST_XML_REPORT="yes"
 
+case $IOTIVITY_TARGET_ARCH in
+i*86)
+IOTIVITY_TARGET_ARCH=x86
+;;
+esac
+
+
 usage() {
     echo "Usage: tools/generate_report.sh <options>"
     echo "Options:"