From 09be39efb73e23a5234372e62a90f59dbbaf80b6 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 4 Aug 2016 10:41:22 +0900 Subject: [PATCH] packaging: exclude build for non proper obs project 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 --- packaging/linux-exynos-tm2.spec | 4 ++++ packaging/odroid-linux-kernel.spec | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packaging/linux-exynos-tm2.spec b/packaging/linux-exynos-tm2.spec index 2c38bd09a8aa..8244fc47921d 100644 --- a/packaging/linux-exynos-tm2.spec +++ b/packaging/linux-exynos-tm2.spec @@ -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 diff --git a/packaging/odroid-linux-kernel.spec b/packaging/odroid-linux-kernel.spec index 232717f7f83b..32580da03940 100644 --- a/packaging/odroid-linux-kernel.spec +++ b/packaging/odroid-linux-kernel.spec @@ -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 -- 2.34.1