packaging: exclude build for non proper obs project
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Aug 2016 01:41:22 +0000 (10:41 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 Aug 2016 09:29:08 +0000 (18:29 +0900)
For tm2, it is only required to build for mobile aarch64 and for
odroid, it is only reuiqred to build for arm projects except for
wearable or mobile tm1 projects. So this patch adds build exclude
for each packaging.

Change-Id: Iba02f6ceb54a3a813e68095cfff6b6c06e4839fb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
packaging/linux-exynos-tm2.spec
packaging/odroid-linux-kernel.spec

index 2c38bd0..8244fc4 100644 (file)
@@ -23,6 +23,10 @@ BuildRequires: bc
 BuildRequires: module-init-tools
 BuildRequires: u-boot-tools >= 2016.03
 
+%if "%{?profile}" != "mobile"
+ExcludeArch: aarch64
+%endif
+
 %description
 The Linux Kernel, the operating system core itself
 
index 232717f..32580da 100644 (file)
@@ -21,6 +21,10 @@ BuildRequires: module-init-tools
 BuildRequires: u-boot-tools
 BuildRequires: bc
 
+%if "%{?tizen_target_name}" == "TM1" || "%{?profile}" == "wearable"
+ExcludeArch: %{arm}
+%endif
+
 %description
 The Linux Kernel, the operating system core itself