Browse Source

kernel architecture rewrite

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 7 years ago
parent
commit
a029373248
  1. 28
      SPECS/kernel.spec

28
SPECS/kernel.spec

@ -27,13 +27,12 @@
# These architectures install vdso/ directories. # These architectures install vdso/ directories.
%define vdso_arches i686 x86_64 ppc64 ppc64le %define vdso_arches i686 x86_64 ppc64 ppc64le


# Architecture defaults.
%define asmarch ppc64
%define buildarch %{_target_cpu}
%define hdrarch %{_target_cpu}


# Per-architecture tweaks. # Per-architecture tweaks.


# Architecture defaults.
%define buildarch %{_target_cpu}
%define hdrarch %{_target_cpu}
%ifarch noarch %ifarch noarch
# Documentation only. # Documentation only.
%define with_default 0 %define with_default 0
@ -53,41 +52,48 @@


%ifarch x86_64 %ifarch x86_64
# 64-bit kernel-ml, headers, perf & tools. # 64-bit kernel-ml, headers, perf & tools.
%define asmarch x86_64
%define buildarch x86_64
%define hdrarch x86_64
%define configarch x86_64
%define with_doc 0 %define with_doc 0
%define with_bootwrapper 0 %define with_bootwrapper 0
%define make_target bzImage %define make_target bzImage
%define configarch x86_64
%endif %endif


%ifarch ppc64 %ifarch ppc64
# 64-bit kernel-ml, headers, perf & tools. # 64-bit kernel-ml, headers, perf & tools.
%define with_doc 0 %define asmarch ppc64
%define buildarch powerpc %define buildarch powerpc
%define hdrarch powerpc %define hdrarch powerpc
%define configarch ppc64
%define with_doc 0
%define with_bootwrapper 1 %define with_bootwrapper 1
%define make_target vmlinux %define make_target vmlinux
%define configarch ppc64
%endif %endif


%ifarch ppc64le %ifarch ppc64le
# 64-bit kernel-ml, headers, perf & tools. # 64-bit kernel-ml, headers, perf & tools.
%define with_doc 0 %define asmarch ppc64le
%define buildarch powerpc %define buildarch powerpc
%define hdrarch powerpc %define hdrarch powerpc
%define configarch ppc64le
%define with_doc 0
%define with_bootwrapper 1 %define with_bootwrapper 1
%define make_target vmlinux %define make_target vmlinux
%define configarch ppc64le
%endif %endif


%ifarch aarch64 %ifarch aarch64
%define with_doc 0 %define asmarch aarch64
%define buildarch arm64 %define buildarch arm64
%define hdrarch arm64 %define hdrarch arm64
%define configarch rpi3b64
%define with_doc 0
%define with_bootwrapper 0 %define with_bootwrapper 0
%define make_target vmlinux %define make_target vmlinux
%define configarch rpi3b64
%endif %endif



# Determine the sublevel number and set pkg_version. # Determine the sublevel number and set pkg_version.
%define sublevel %(echo %{LKAver} | %{__awk} -F\. '{ print $3 }') %define sublevel %(echo %{LKAver} | %{__awk} -F\. '{ print $3 }')
%if "%{sublevel}" == "" %if "%{sublevel}" == ""

Loading…
Cancel
Save