From: Sooyoung Ha Date: Wed, 20 Apr 2016 09:43:03 +0000 (+0900) Subject: packging: build headers package only for emulator X-Git-Tag: submit/tizen/20160422.055611^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c3af7dc600b6cbb6942ffc356427e9f80de1949;p=sdk%2Femulator%2Femulator-kernel.git 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 --- diff --git a/packaging/emulator-kernel.spec b/packaging/emulator-kernel.spec index e55f9d911f1e..46aa270f175f 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}