Revert "packaging: removed %arm aarch64 support" 67/222267/1 accepted/tizen/unified/20200113.222528 submit/tizen/20200113.062453
authorManish Rathod <manish.r@samsung.com>
Mon, 13 Jan 2020 06:23:48 +0000 (06:23 +0000)
committerManish Rathod <manish.r@samsung.com>
Mon, 13 Jan 2020 06:23:48 +0000 (06:23 +0000)
This reverts commit d6d59e55d57a20532fcadd25d8eb061086a6c6b9.

Change-Id: Id758905c7a4cb0e8dd7a752f9a2e378c79d93fd3

packaging/emulator-kernel.spec

index b473e1a..200f008 100644 (file)
 %define config_name  tizen_emul_defconfig
 %endif
 
+%ifarch aarch64
+%define buildarch    arm64
+%define config_name  defconfig
+%endif
+
+%ifarch %{arm}
+%define buildarch    arm
+%define config_name  exynos_defconfig
+%endif
+
 %define target_board emulator
 
 # Want to enable initramfs facility to hand modulable kernel (e.g., file systems)?
@@ -57,12 +67,6 @@ BuildRequires: audit-libs-devel
 Provides: %{name} = %{fullVersion}
 Provides: %{name}-uname-r = %{fullVersion}
 
-%if %{with emulator}
-ExclusiveArch: %{ix86} x86_64
-%else
-ExclusiveArch:
-%endif
-
 %description
 This package provides the Linux kernel (vmlinuz,bzImage), the core of any
 Linux-based operating system. The kernel handles the basic functions
@@ -157,6 +161,11 @@ make %{?_smp_mflags} ARCH=%{buildarch} bzImage
 make %{?_smp_mflags} modules
 %endif
 
+# in case of arm/aarch64, just generate header files without real kernel modules (*.ko)
+%ifarch aarch64 %{arm}
+make %{?_smp_mflags} modules_prepare
+%endif
+
 # 1.4 build: perf
 # Note that util/dwarf-aux.c generates build error due to -Werror=implicit-function-declaration
 # and -Werror=nested-externs option of GCC 6.2. Let's skip with -Wno-error option.