From caf02f3d74d92733aa14a3dac17bce0e8bf0d4f9 Mon Sep 17 00:00:00 2001 From: Manish Rathod Date: Mon, 13 Jan 2020 06:23:48 +0000 Subject: [PATCH] Revert "packaging: removed %arm aarch64 support" This reverts commit d6d59e55d57a20532fcadd25d8eb061086a6c6b9. Change-Id: Id758905c7a4cb0e8dd7a752f9a2e378c79d93fd3 --- packaging/emulator-kernel.spec | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/packaging/emulator-kernel.spec b/packaging/emulator-kernel.spec index b473e1a..200f008 100644 --- a/packaging/emulator-kernel.spec +++ b/packaging/emulator-kernel.spec @@ -14,6 +14,16 @@ %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. -- 2.7.4