%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)?
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
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.