From f737269c24f96abbec60eeedc3c178ce2ee8eee0 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 19 Jan 2015 19:09:28 +0100 Subject: [PATCH] tizen: packaging: build on x86_64 arm64 and others too Without this change only 2 arch were possible to build : arm and x86 (32bits) Since some scon's variables are not aligned with Tizen's infra name, mapping is needed for x86 amd arm64. While for x86_64 it can use the generic RPM macro %{_arch} value which is same, it prevents writing an extra "if endif block". Other unsuported arch were not tested (ie: mips, ppc ...) and would probably need more sources or make/scon/files adaptations. With a couple of other fixes (to come later), rpmbuild was successful using Tizen:Common's repos with those archs : x86, x86_64, armv7l, aarch64. Feel free to me ask support upstream or on tizen trackers Change-Id: I1034d66ac29bee1667a7e12d6ceb9e08806c3a15 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/157 Tested-by: jenkins-iotivity Reviewed-by: Ossama Othman Reviewed-by: Thiago Macieira Reviewed-by: Caiwen Zhang Reviewed-by: Sudarshan Prasad --- tools/tizen/iotivity.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/tizen/iotivity.spec b/tools/tizen/iotivity.spec index 7f4358c..1cea601 100644 --- a/tools/tizen/iotivity.spec +++ b/tools/tizen/iotivity.spec @@ -35,7 +35,15 @@ developing applications that use %{name}. %ifarch %arm export RPM_ARCH=arm %else +%ifarch aarch64 +export RPM_ARCH=arm64 +%else +%ifarch i586 i686 %{ix86} export RPM_ARCH=x86 +%else +export RPM_ARCH=%{_arch} +%endif +%endif %endif scons -j 4 TARGET_ARCH=$RPM_ARCH -- 2.7.4