packging: build headers package only for emulator 66/66766/2 accepted/tizen/common/20160422.172052 accepted/tizen/ivi/20160422.070508 accepted/tizen/mobile/20160422.070602 accepted/tizen/tv/20160422.070457 accepted/tizen/wearable/20160422.070452 submit/tizen/20160422.055611
authorSooyoung Ha <yoosah.ha@samsung.com>
Wed, 20 Apr 2016 09:43:03 +0000 (18:43 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 21 Apr 2016 02:36:33 +0000 (19:36 -0700)
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 <yoosah.ha@samsung.com>
packaging/emulator-kernel.spec

index e55f9d911f1e51f2fe0e055df2058e133eacab3b..46aa270f175f5bcc272fc10c8b9b98508f950218 100644 (file)
@@ -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}