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 2c38bd09a8aaa575626f2bcb7737e6fcd625b023..8244fc47921daae41687701ddb41c8d4aab492e6 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 232717f7f83bcce9b8bd0a594efb52309900b9d3..32580da03940aa13a18394b5027eb8b562de6e5d 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