From 9c3af7dc600b6cbb6942ffc356427e9f80de1949 Mon Sep 17 00:00:00 2001 From: Sooyoung Ha Date: Wed, 20 Apr 2016 18:43:03 +0900 Subject: [PATCH] packging: build headers package only for emulator This package is for emulator. It could cause a build error or conflict if we build this out of emulator repository. So we should build this conditionally to prevent build failure. Change-Id: Iefef5fa2365a045bc0e4eb473c0dd0b689454a40 Signed-off-by: Sooyoung Ha --- packaging/emulator-kernel.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/emulator-kernel.spec b/packaging/emulator-kernel.spec index e55f9d9..46aa270 100644 --- a/packaging/emulator-kernel.spec +++ b/packaging/emulator-kernel.spec @@ -1,9 +1,11 @@ +%bcond_with emulator + %ifarch %{arm} %define config_name arm_tizen_emul_defconfig %define buildarch arm %define imageName zImage %else -%define config_name i386_tizen_emul_defconfig +%define config_name tizen_emul_defconfig %define buildarch x86 %define imageName bzImage %endif @@ -22,7 +24,11 @@ Vendor: The Linux Community URL: http://www.kernel.org Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root -ExclusiveArch: %{ix86} +%if %{with emulator} +ExclusiveArch: %{ix86} x86_64 +%else +ExclusiveArch: +%endif %define fullVersion %{version} -- 2.7.4