9423bd
# All Global changes to build and install go here.
9423bd
# Per the below section about __spec_install_pre, any rpm
9423bd
# environment changes that affect %%install need to go
9423bd
# here before the %%install macro is pre-built.
9423bd
9423bd
# Disable LTO in userspace packages.
9423bd
%global _lto_cflags %{nil}
9423bd
9423bd
# Option to enable compiling with clang instead of gcc.
9423bd
%bcond_with toolchain_clang
9423bd
9423bd
%if %{with toolchain_clang}
9423bd
%global toolchain clang
9423bd
%endif
9423bd
9423bd
# Compile the kernel with LTO (only supported when building with clang).
9423bd
%bcond_with clang_lto
9423bd
9423bd
%if %{with clang_lto} && %{without toolchain_clang}
9423bd
{error:clang_lto requires --with toolchain_clang}
9423bd
%endif
9423bd
9423bd
# Cross compile on copr for arm
9423bd
# See https://bugzilla.redhat.com/1879599
9423bd
%if 0%{?_with_cross_arm:1}
9423bd
%global _target_cpu armv7hl
9423bd
%global _arch arm
9423bd
%global _build_arch arm
9423bd
%global _with_cross    1
9423bd
%endif
9423bd
9423bd
# The kernel's %%install section is special
9423bd
# Normally the %%install section starts by cleaning up the BUILD_ROOT
9423bd
# like so:
9423bd
#
9423bd
# %%__spec_install_pre %%{___build_pre}\
9423bd
#     [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
9423bd
#     mkdir -p `dirname "$RPM_BUILD_ROOT"`\
9423bd
#     mkdir "$RPM_BUILD_ROOT"\
9423bd
# %%{nil}
9423bd
#
9423bd
# But because of kernel variants, the %%build section, specifically
9423bd
# BuildKernel(), moves each variant to its final destination as the
9423bd
# variant is built.  This violates the expectation of the %%install
9423bd
# section.  As a result we snapshot the current env variables and
9423bd
# purposely leave out the removal section.  All global wide changes
9423bd
# should be added above this line otherwise the %%install section
9423bd
# will not see them.
9423bd
%global __spec_install_pre %{___build_pre}
9423bd
9423bd
# At the time of this writing (2019-03), RHEL8 packages use w2.xzdio
9423bd
# compression for rpms (xz, level 2).
9423bd
# Kernel has several large (hundreds of mbytes) rpms, they take ~5 mins
9423bd
# to compress by single-threaded xz. Switch to threaded compression,
9423bd
# and from level 2 to 3 to keep compressed sizes close to "w2" results.
9423bd
#
9423bd
# NB: if default compression in /usr/lib/rpm/redhat/macros ever changes,
9423bd
# this one might need tweaking (e.g. if default changes to w3.xzdio,
9423bd
# change below to w4T.xzdio):
9423bd
#
9423bd
# This is disabled on i686 as it triggers oom errors
9423bd
9423bd
%ifnarch i686
9423bd
%define _binary_payload w3T.xzdio
9423bd
%endif
9423bd
9423bd
Summary: The Linux kernel
9423bd
9423bd
# Set released_kernel to 1 when the upstream source tarball contains a
9423bd
#  kernel release. (This includes prepatch or "rc" releases.)
9423bd
# Set released_kernel to 0 when the upstream source tarball contains an
9423bd
#  unreleased kernel development snapshot.
9423bd
%global released_kernel 1
9423bd
9423bd
# Set debugbuildsenabled to 1 to build separate base and debug kernels
9423bd
#  (on supported architectures). The kernel-debug-* subpackages will
9423bd
#  contain the debug kernel.
9423bd
# Set debugbuildsenabled to 0 to not build a separate debug kernel, but
9423bd
#  to build the base kernel using the debug configuration. (Specifying
9423bd
#  the --with-release option overrides this setting.)
9423bd
%define debugbuildsenabled 1
9423bd
9423bd
%global distro_build 1
9423bd
9423bd
%if 0%{?fedora}
9423bd
%define secure_boot_arch x86_64
9423bd
%else
9423bd
%define secure_boot_arch x86_64 aarch64 s390x ppc64le
9423bd
%endif
9423bd
9423bd
# Signing for secure boot authentication
9423bd
%ifarch %{secure_boot_arch}
9423bd
%global signkernel 1
9423bd
%else
9423bd
%global signkernel 0
9423bd
%endif
9423bd
9423bd
# Sign modules on all arches
9423bd
%global signmodules 1
9423bd
9423bd
# Compress modules only for architectures that build modules
9423bd
%ifarch noarch
9423bd
%global zipmodules 0
9423bd
%else
9423bd
%global zipmodules 1
9423bd
%endif
9423bd
9423bd
%if %{zipmodules}
9423bd
%global zipsed -e 's/\.ko$/\.ko.xz/'
9423bd
# for parallel xz processes, replace with 1 to go back to single process
9423bd
%global zcpu `nproc --all`
9423bd
%endif
9423bd
9423bd
# define buildid .local
9423bd
9423bd
9423bd
%if 0%{?fedora}
9423bd
%define primary_target fedora
9423bd
%else
9423bd
%define primary_target rhel
9423bd
%endif
9423bd
9423bd
# The kernel tarball/base version
9423bd
%define kversion 5.14
9423bd
9423bd
%define rpmversion 5.14.0
9423bd
%define pkgrelease 1.7.1.el9
9423bd
9423bd
# This is needed to do merge window version magic
9423bd
%define patchlevel 14
9423bd
9423bd
# allow pkg_release to have configurable %%{?dist} tag
9423bd
%define specrelease 1.7.1%{?buildid}%{?dist}
9423bd
9423bd
%define pkg_release %{specrelease}
9423bd
9423bd
# libexec dir is not used by the linker, so the shared object there
9423bd
# should not be exported to RPM provides
9423bd
%global __provides_exclude_from ^%{_libexecdir}/kselftests
9423bd
9423bd
# The following build options are enabled by default, but may become disabled
9423bd
# by later architecture-specific checks. These can also be disabled by using
9423bd
# --without <opt> in the rpmbuild command, or by forcing these values to 0.
9423bd
#
9423bd
# standard kernel
9423bd
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
9423bd
# kernel PAE (only valid for ARM (lpae))
9423bd
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
9423bd
# kernel-debug
9423bd
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
9423bd
# kernel-zfcpdump (s390 specific kernel for zfcpdump)
9423bd
%define with_zfcpdump  %{?_without_zfcpdump:  0} %{?!_without_zfcpdump:  1}
9423bd
# kernel-doc
9423bd
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
9423bd
# kernel-headers
9423bd
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
9423bd
%define with_cross_headers   %{?_without_cross_headers:   0} %{?!_without_cross_headers:   1}
9423bd
# perf
9423bd
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
9423bd
# tools
9423bd
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
9423bd
# bpf tool
9423bd
%define with_bpftool   %{?_without_bpftool:   0} %{?!_without_bpftool:   1}
9423bd
# kernel-debuginfo
9423bd
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
9423bd
# kernel-abi-stablelists
9423bd
%define with_kernel_abi_stablelists %{?_without_kernel_abi_stablelists: 0} %{?!_without_kernel_abi_stablelists: 1}
9423bd
# internal samples and selftests
9423bd
%define with_selftests %{?_without_selftests: 0} %{?!_without_selftests: 1}
9423bd
#
9423bd
# Additional options for user-friendly one-off kernel building:
9423bd
#
9423bd
# Only build the base kernel (--with baseonly):
9423bd
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
9423bd
# Only build the pae kernel (--with paeonly):
9423bd
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
9423bd
# Only build the debug kernel (--with dbgonly):
9423bd
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
9423bd
# Control whether we perform a compat. check against published ABI.
9423bd
%define with_kabichk   %{?_without_kabichk:   0} %{?!_without_kabichk:   1}
9423bd
# Temporarily disable kabi checks until RC.
9423bd
%define with_kabichk 0
9423bd
# Control whether we perform a compat. check against DUP ABI.
9423bd
%define with_kabidupchk %{?_with_kabidupchk:  1} %{?!_with_kabidupchk:   0}
9423bd
#
9423bd
# Control whether to run an extensive DWARF based kABI check.
9423bd
# Note that this option needs to have baseline setup in SOURCE300.
9423bd
%define with_kabidwchk %{?_without_kabidwchk: 0} %{?!_without_kabidwchk: 1}
9423bd
%define with_kabidw_base %{?_with_kabidw_base: 1} %{?!_with_kabidw_base: 0}
9423bd
#
9423bd
# Control whether to install the vdso directories.
9423bd
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
9423bd
#
9423bd
# should we do C=1 builds with sparse
9423bd
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
9423bd
#
9423bd
# Cross compile requested?
9423bd
%define with_cross    %{?_with_cross:         1} %{?!_with_cross:        0}
9423bd
#
9423bd
# build a release kernel on rawhide
9423bd
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
9423bd
9423bd
# verbose build, i.e. no silent rules and V=1
9423bd
%define with_verbose %{?_with_verbose:        1} %{?!_with_verbose:      0}
9423bd
9423bd
#
9423bd
# check for mismatched config options
9423bd
%define with_configchecks %{?_without_configchecks:        0} %{?!_without_configchecks:        1}
9423bd
9423bd
#
9423bd
# gcov support
9423bd
%define with_gcov %{?_with_gcov:1}%{?!_with_gcov:0}
9423bd
9423bd
#
9423bd
# ipa_clone support
9423bd
%define with_ipaclones %{?_without_ipaclones: 0} %{?!_without_ipaclones: 1}
9423bd
9423bd
# Want to build a vanilla kernel build without any non-upstream patches?
9423bd
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
9423bd
9423bd
%if 0%{?fedora}
9423bd
# Kernel headers are being split out into a separate package
9423bd
%define with_headers 0
9423bd
%define with_cross_headers 0
9423bd
# no ipa_clone for now
9423bd
%define with_ipaclones 0
9423bd
# no stablelist
9423bd
%define with_kernel_abi_stablelists 0
9423bd
# Fedora builds these separately
9423bd
%define with_perf 0
9423bd
%define with_tools 0
9423bd
%define with_bpftool 0
9423bd
# selftests turns on bpftool
9423bd
%define with_selftests 0
9423bd
%endif
9423bd
9423bd
%if %{with_verbose}
9423bd
%define make_opts V=1
9423bd
%else
9423bd
%define make_opts -s
9423bd
%endif
9423bd
9423bd
%if %{with toolchain_clang}
9423bd
%global clang_make_opts HOSTCC=clang CC=clang
9423bd
%if %{with clang_lto}
9423bd
%global clang_make_opts %{clang_make_opts} LD=ld.lld HOSTLD=ld.lld AR=llvm-ar NM=llvm-nm HOSTAR=llvm-ar HOSTNM=llvm-nm LLVM_IAS=1
9423bd
%endif
9423bd
%global make_opts %{make_opts} %{clang_make_opts}
9423bd
# clang does not support the -fdump-ipa-clones option
9423bd
%global with_ipaclones 0
9423bd
%endif
9423bd
9423bd
# turn off debug kernel and kabichk for gcov builds
9423bd
%if %{with_gcov}
9423bd
%define with_debug 0
9423bd
%define with_kabichk 0
9423bd
%define with_kabidupchk 0
9423bd
%define with_kabidwchk 0
9423bd
%define with_kabidw_base 0
9423bd
%define with_kernel_abi_stablelists 0
9423bd
%endif
9423bd
9423bd
# turn off kABI DWARF-based check if we're generating the base dataset
9423bd
%if %{with_kabidw_base}
9423bd
%define with_kabidwchk 0
9423bd
%endif
9423bd
9423bd
# kpatch_kcflags are extra compiler flags applied to base kernel
9423bd
# -fdump-ipa-clones is enabled only for base kernels on selected arches
9423bd
%if %{with_ipaclones}
9423bd
%ifarch x86_64 ppc64le
9423bd
%define kpatch_kcflags -fdump-ipa-clones
9423bd
%else
9423bd
%define with_ipaclones 0
9423bd
%endif
9423bd
%endif
9423bd
9423bd
%define make_target bzImage
9423bd
%define image_install_path boot
9423bd
9423bd
%define KVERREL %{version}-%{release}.%{_target_cpu}
9423bd
%define KVERREL_RE %(echo %KVERREL | sed 's/+/[+]/g')
9423bd
%define hdrarch %_target_cpu
9423bd
%define asmarch %_target_cpu
9423bd
9423bd
%if 0%{!?nopatches:1}
9423bd
%define nopatches 0
9423bd
%endif
9423bd
9423bd
%if %{with_vanilla}
9423bd
%define nopatches 1
9423bd
%endif
9423bd
9423bd
%if %{with_release}
9423bd
%define debugbuildsenabled 1
9423bd
%endif
9423bd
9423bd
%if !%{with_debuginfo}
9423bd
%define _enable_debug_packages 0
9423bd
%endif
9423bd
%define debuginfodir /usr/lib/debug
9423bd
# Needed because we override almost everything involving build-ids
9423bd
# and debuginfo generation. Currently we rely on the old alldebug setting.
9423bd
%global _build_id_links alldebug
9423bd
9423bd
# kernel PAE is only built on ARMv7
9423bd
%ifnarch armv7hl
9423bd
%define with_pae 0
9423bd
%endif
9423bd
9423bd
# if requested, only build base kernel
9423bd
%if %{with_baseonly}
9423bd
%define with_pae 0
9423bd
%define with_debug 0
9423bd
%define with_vdso_install 0
9423bd
%define with_perf 0
9423bd
%define with_tools 0
9423bd
%define with_bpftool 0
9423bd
%define with_kernel_abi_stablelists 0
9423bd
%define with_selftests 0
9423bd
%define with_cross 0
9423bd
%define with_cross_headers 0
9423bd
%define with_ipaclones 0
9423bd
%endif
9423bd
9423bd
# if requested, only build pae kernel
9423bd
%if %{with_paeonly}
9423bd
%define with_up 0
9423bd
%define with_debug 0
9423bd
%endif
9423bd
9423bd
# if requested, only build debug kernel
9423bd
%if %{with_dbgonly}
9423bd
%define with_up 0
9423bd
%define with_vdso_install 0
9423bd
%define with_perf 0
9423bd
%define with_tools 0
9423bd
%define with_bpftool 0
9423bd
%define with_kernel_abi_stablelists 0
9423bd
%define with_selftests 0
9423bd
%define with_cross 0
9423bd
%define with_cross_headers 0
9423bd
%define with_ipaclones 0
9423bd
%endif
9423bd
9423bd
# turn off kABI DUP check and DWARF-based check if kABI check is disabled
9423bd
%if !%{with_kabichk}
9423bd
%define with_kabidupchk 0
9423bd
%define with_kabidwchk 0
9423bd
%endif
9423bd
9423bd
%if %{with_vdso_install}
9423bd
%define use_vdso 1
9423bd
%endif
9423bd
9423bd
# selftests require bpftool to be built
9423bd
%if %{with_selftests}
9423bd
%define with_bpftool 1
9423bd
%endif
9423bd
9423bd
%ifnarch noarch
9423bd
%define with_kernel_abi_stablelists 0
9423bd
%endif
9423bd
9423bd
# Overrides for generic default options
9423bd
9423bd
# only package docs noarch
9423bd
%ifnarch noarch
9423bd
%define with_doc 0
9423bd
%define doc_build_fail true
9423bd
%endif
9423bd
9423bd
%if 0%{?fedora}
9423bd
# don't do debug builds on anything but i686 and x86_64
9423bd
%ifnarch i686 x86_64
9423bd
%define with_debug 0
9423bd
%endif
9423bd
%endif
9423bd
9423bd
# don't build noarch kernels or headers (duh)
9423bd
%ifarch noarch
9423bd
%define with_up 0
9423bd
%define with_headers 0
9423bd
%define with_cross_headers 0
9423bd
%define with_tools 0
9423bd
%define with_perf 0
9423bd
%define with_bpftool 0
9423bd
%define with_selftests 0
9423bd
%define with_debug 0
9423bd
%define all_arch_configs kernel-%{version}-*.config
9423bd
%endif
9423bd
9423bd
# sparse blows up on ppc
9423bd
%ifnarch ppc64le
9423bd
%define with_sparse 0
9423bd
%endif
9423bd
9423bd
# zfcpdump mechanism is s390 only
9423bd
%ifnarch s390x
9423bd
%define with_zfcpdump 0
9423bd
%endif
9423bd
9423bd
%if 0%{?fedora}
9423bd
# This is not for Fedora
9423bd
%define with_zfcpdump 0
9423bd
%endif
9423bd
9423bd
# Per-arch tweaks
9423bd
9423bd
%ifarch i686
9423bd
%define asmarch x86
9423bd
%define hdrarch i386
9423bd
%define all_arch_configs kernel-%{version}-i?86*.config
9423bd
%define kernel_image arch/x86/boot/bzImage
9423bd
%endif
9423bd
9423bd
%ifarch x86_64
9423bd
%define asmarch x86
9423bd
%define all_arch_configs kernel-%{version}-x86_64*.config
9423bd
%define kernel_image arch/x86/boot/bzImage
9423bd
%endif
9423bd
9423bd
%ifarch ppc64le
9423bd
%define asmarch powerpc
9423bd
%define hdrarch powerpc
9423bd
%define make_target vmlinux
9423bd
%define kernel_image vmlinux
9423bd
%define kernel_image_elf 1
9423bd
%define use_vdso 0
9423bd
%define all_arch_configs kernel-%{version}-ppc64le*.config
9423bd
%endif
9423bd
9423bd
%ifarch s390x
9423bd
%define asmarch s390
9423bd
%define hdrarch s390
9423bd
%define all_arch_configs kernel-%{version}-s390x.config
9423bd
%define kernel_image arch/s390/boot/bzImage
9423bd
%define vmlinux_decompressor arch/s390/boot/compressed/vmlinux
9423bd
%endif
9423bd
9423bd
%ifarch %{arm}
9423bd
%define all_arch_configs kernel-%{version}-arm*.config
9423bd
%define skip_nonpae_vdso 1
9423bd
%define asmarch arm
9423bd
%define hdrarch arm
9423bd
%define make_target bzImage
9423bd
%define kernel_image arch/arm/boot/zImage
9423bd
# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
9423bd
%define kernel_mflags KALLSYMS_EXTRA_PASS=1
9423bd
# we only build headers/perf/tools on the base arm arches
9423bd
# just like we used to only build them on i386 for x86
9423bd
%ifnarch armv7hl
9423bd
%define with_headers 0
9423bd
%define with_cross_headers 0
9423bd
%endif
9423bd
# These currently don't compile on armv7
9423bd
%define with_selftests 0
9423bd
%endif
9423bd
9423bd
%ifarch aarch64
9423bd
%define all_arch_configs kernel-%{version}-aarch64*.config
9423bd
%define asmarch arm64
9423bd
%define hdrarch arm64
9423bd
%define make_target Image.gz
9423bd
%define kernel_image arch/arm64/boot/Image.gz
9423bd
%endif
9423bd
9423bd
# Should make listnewconfig fail if there's config options
9423bd
# printed out?
9423bd
%if %{nopatches}
9423bd
%define with_configchecks 0
9423bd
%endif
9423bd
9423bd
# To temporarily exclude an architecture from being built, add it to
9423bd
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
9423bd
# don't build kernel-headers then the new build system will no longer let
9423bd
# us use the previous build of that package -- it'll just be completely AWOL.
9423bd
# Which is a BadThing(tm).
9423bd
9423bd
# We only build kernel-headers on the following...
9423bd
%if 0%{?fedora}
9423bd
%define nobuildarches i386
9423bd
%else
9423bd
%define nobuildarches i386 i686 %{arm}
9423bd
%endif
9423bd
9423bd
%ifarch %nobuildarches
9423bd
# disable BuildKernel commands
9423bd
%define with_up 0
9423bd
%define with_debug 0
9423bd
%define with_pae 0
9423bd
%define with_zfcpdump 0
9423bd
9423bd
%define with_debuginfo 0
9423bd
%define with_perf 0
9423bd
%define with_tools 0
9423bd
%define with_bpftool 0
9423bd
%define with_selftests 0
9423bd
%define _enable_debug_packages 0
9423bd
%endif
9423bd
9423bd
# Architectures we build tools/cpupower on
9423bd
%if 0%{?fedora}
9423bd
%define cpupowerarchs %{ix86} x86_64 ppc64le %{arm} aarch64
9423bd
%else
9423bd
%define cpupowerarchs i686 x86_64 ppc64le aarch64
9423bd
%endif
9423bd
9423bd
%if 0%{?use_vdso}
9423bd
9423bd
%if 0%{?skip_nonpae_vdso}
9423bd
%define _use_vdso 0
9423bd
%else
9423bd
%define _use_vdso 1
9423bd
%endif
9423bd
9423bd
%else
9423bd
%define _use_vdso 0
9423bd
%endif
9423bd
9423bd
# If build of debug packages is disabled, we need to know if we want to create
9423bd
# meta debug packages or not, after we define with_debug for all specific cases
9423bd
# above. So this must be at the end here, after all cases of with_debug or not.
9423bd
%define with_debug_meta 0
9423bd
%if !%{debugbuildsenabled}
9423bd
%if %{with_debug}
9423bd
%define with_debug_meta 1
9423bd
%endif
9423bd
%define with_debug 0
9423bd
%endif
9423bd
9423bd
9423bd
#
9423bd
# Packages that need to be installed before the kernel is, because the %%post
9423bd
# scripts use them.
9423bd
#
9423bd
%define kernel_prereq  coreutils, systemd >= 203-2, /usr/bin/kernel-install
9423bd
%define initrd_prereq  dracut >= 027
9423bd
9423bd
9423bd
Name: kernel
9423bd
License: GPLv2 and Redistributable, no modification permitted
9423bd
URL: https://www.kernel.org/
9423bd
Version: %{rpmversion}
9423bd
Release: %{pkg_release}
9423bd
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
9423bd
# SET %%nobuildarches (ABOVE) INSTEAD
9423bd
%if 0%{?fedora}
9423bd
ExclusiveArch: x86_64 s390x %{arm} aarch64 ppc64le
9423bd
%else
9423bd
ExclusiveArch: noarch i386 i686 x86_64 s390x %{arm} aarch64 ppc64le
9423bd
%endif
9423bd
ExclusiveOS: Linux
9423bd
%ifnarch %{nobuildarches}
9423bd
Requires: kernel-core-uname-r = %{KVERREL}
9423bd
Requires: kernel-modules-uname-r = %{KVERREL}
9423bd
%endif
9423bd
9423bd
9423bd
#
9423bd
# List the packages used during the kernel build
9423bd
#
9423bd
BuildRequires: kmod, patch, bash, coreutils, tar, git-core, which
9423bd
BuildRequires: bzip2, xz, findutils, gzip, m4, perl-interpreter, perl-Carp, perl-devel, perl-generators, make, diffutils, gawk
9423bd
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc, bison, flex, gcc-c++
9423bd
BuildRequires: net-tools, hostname, bc, elfutils-devel
9423bd
BuildRequires: dwarves
9423bd
BuildRequires: python3-devel
9423bd
BuildRequires: gcc-plugin-devel
9423bd
%ifnarch %{nobuildarches} noarch
9423bd
BuildRequires: bpftool
9423bd
%endif
9423bd
%if %{with_headers}
9423bd
BuildRequires: rsync
9423bd
%endif
9423bd
%if %{with_doc}
9423bd
BuildRequires: xmlto, asciidoc, python3-sphinx, python3-sphinx_rtd_theme
9423bd
%endif
9423bd
%if %{with_sparse}
9423bd
BuildRequires: sparse
9423bd
%endif
9423bd
%if %{with_perf}
9423bd
BuildRequires: zlib-devel binutils-devel newt-devel perl(ExtUtils::Embed) bison flex xz-devel
9423bd
BuildRequires: audit-libs-devel
9423bd
BuildRequires: java-devel
9423bd
BuildRequires: libbpf-devel
9423bd
BuildRequires: libbabeltrace-devel
9423bd
BuildRequires: libtraceevent-devel
9423bd
%ifnarch %{arm} s390x
9423bd
BuildRequires: numactl-devel
9423bd
%endif
9423bd
%ifarch aarch64
9423bd
BuildRequires: opencsd-devel >= 1.0.0
9423bd
%endif
9423bd
%endif
9423bd
%if %{with_tools}
9423bd
BuildRequires: gettext ncurses-devel
9423bd
BuildRequires: libcap-devel libcap-ng-devel
9423bd
%ifnarch s390x
9423bd
BuildRequires: pciutils-devel
9423bd
%endif
9423bd
%endif
9423bd
%if %{with_bpftool}
9423bd
BuildRequires: python3-docutils
9423bd
BuildRequires: zlib-devel binutils-devel
9423bd
%endif
9423bd
%if %{with_selftests}
9423bd
BuildRequires: clang llvm
9423bd
%ifnarch %{arm}
9423bd
BuildRequires: numactl-devel
9423bd
%endif
9423bd
BuildRequires: libcap-devel libcap-ng-devel rsync libmnl-devel
9423bd
%endif
9423bd
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
9423bd
%if %{with_debuginfo}
9423bd
BuildRequires: rpm-build, elfutils
9423bd
BuildConflicts: rpm < 4.13.0.1-19
9423bd
BuildConflicts: dwarves < 1.13
9423bd
# Most of these should be enabled after more investigation
9423bd
%undefine _include_minidebuginfo
9423bd
%undefine _find_debuginfo_dwz_opts
9423bd
%undefine _unique_build_ids
9423bd
%undefine _unique_debug_names
9423bd
%undefine _unique_debug_srcs
9423bd
%undefine _debugsource_packages
9423bd
%undefine _debuginfo_subpackages
9423bd
%global _find_debuginfo_opts -r
9423bd
%global _missing_build_ids_terminate_build 1
9423bd
%global _no_recompute_build_ids 1
9423bd
%endif
9423bd
%if %{with_kabidwchk} || %{with_kabidw_base}
9423bd
BuildRequires: kabi-dw
9423bd
%endif
9423bd
9423bd
%if %{signkernel}%{signmodules}
9423bd
BuildRequires: openssl openssl-devel
9423bd
%if %{signkernel}
9423bd
%ifarch x86_64 aarch64
9423bd
BuildRequires: nss-tools
9423bd
BuildRequires: pesign >= 0.10-4
9423bd
%endif
9423bd
%endif
9423bd
%endif
9423bd
9423bd
%if %{with_cross}
9423bd
BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
9423bd
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
9423bd
%define __strip %{_build_arch}-linux-gnu-strip
9423bd
%endif
9423bd
9423bd
# These below are required to build man pages
9423bd
%if %{with_perf}
9423bd
BuildRequires: xmlto
9423bd
%endif
9423bd
%if %{with_perf} || %{with_tools}
9423bd
BuildRequires: asciidoc
9423bd
%endif
9423bd
9423bd
%if %{with toolchain_clang}
9423bd
BuildRequires: clang
9423bd
%endif
9423bd
9423bd
%if %{with clang_lto}
9423bd
BuildRequires: llvm
9423bd
BuildRequires: lld
9423bd
%endif
9423bd
9423bd
# Because this is the kernel, it's hard to get a single upstream URL
9423bd
# to represent the base without needing to do a bunch of patching. This
9423bd
# tarball is generated from a src-git tree. If you want to see the
9423bd
# exact git commit you can run
9423bd
#
9423bd
# xzcat -qq ${TARBALL} | git get-tar-commit-id
9423bd
Source0: linux-5.14.0-1.7.1.el9.tar.xz
9423bd
9423bd
Source1: Makefile.rhelver
9423bd
9423bd
9423bd
# Name of the packaged file containing signing key
9423bd
%ifarch ppc64le
9423bd
%define signing_key_filename kernel-signing-ppc.cer
9423bd
%endif
9423bd
%ifarch s390x
9423bd
%define signing_key_filename kernel-signing-s390.cer
9423bd
%endif
9423bd
9423bd
Source8: x509.genkey.rhel
9423bd
Source9: x509.genkey.fedora
9423bd
9423bd
%if %{?released_kernel}
9423bd
9423bd
Source10: redhatsecurebootca5.cer
9423bd
Source11: redhatsecurebootca3.cer
9423bd
Source12: redhatsecurebootca6.cer
9423bd
Source13: redhatsecureboot501.cer
9423bd
Source14: redhatsecureboot302.cer
9423bd
Source15: redhatsecureboot601.cer
9423bd
9423bd
%ifarch x86_64 aarch64
9423bd
%define secureboot_ca_0 %{SOURCE10}
9423bd
%define secureboot_key_0 %{SOURCE13}
9423bd
%define pesign_name_0 redhatsecureboot501
9423bd
%endif
9423bd
%ifarch s390x
9423bd
%define secureboot_ca_0 %{SOURCE11}
9423bd
%define secureboot_key_0 %{SOURCE14}
9423bd
%define pesign_name_0 redhatsecureboot302
9423bd
%endif
9423bd
%ifarch ppc64le
9423bd
%define secureboot_ca_0 %{SOURCE12}
9423bd
%define secureboot_key_0 %{SOURCE15}
9423bd
%define pesign_name_0 redhatsecureboot601
9423bd
%endif
9423bd
9423bd
# released_kernel
9423bd
%else
9423bd
9423bd
Source10: redhatsecurebootca4.cer
9423bd
Source11: redhatsecureboot401.cer
9423bd
9423bd
%define secureboot_ca_0 %{SOURCE10}
9423bd
%define secureboot_key_0 %{SOURCE11}
9423bd
%define pesign_name_0 redhatsecureboot401
9423bd
9423bd
# released_kernel
9423bd
%endif
9423bd
9423bd
Source22: mod-extra.list.rhel
9423bd
Source16: mod-extra.list.fedora
9423bd
Source17: mod-denylist.sh
9423bd
Source18: mod-sign.sh
9423bd
Source79: parallel_xz.sh
9423bd
9423bd
Source80: filter-x86_64.sh.fedora
9423bd
Source81: filter-armv7hl.sh.fedora
9423bd
Source82: filter-i686.sh.fedora
9423bd
Source83: filter-aarch64.sh.fedora
9423bd
Source86: filter-ppc64le.sh.fedora
9423bd
Source87: filter-s390x.sh.fedora
9423bd
Source89: filter-modules.sh.fedora
9423bd
9423bd
Source90: filter-x86_64.sh.rhel
9423bd
Source91: filter-armv7hl.sh.rhel
9423bd
Source92: filter-i686.sh.rhel
9423bd
Source93: filter-aarch64.sh.rhel
9423bd
Source96: filter-ppc64le.sh.rhel
9423bd
Source97: filter-s390x.sh.rhel
9423bd
Source99: filter-modules.sh.rhel
9423bd
%define modsign_cmd %{SOURCE18}
9423bd
9423bd
Source20: kernel-aarch64-rhel.config
9423bd
Source21: kernel-aarch64-debug-rhel.config
9423bd
Source30: kernel-ppc64le-rhel.config
9423bd
Source31: kernel-ppc64le-debug-rhel.config
9423bd
Source32: kernel-s390x-rhel.config
9423bd
Source33: kernel-s390x-debug-rhel.config
9423bd
Source34: kernel-s390x-zfcpdump-rhel.config
9423bd
Source35: kernel-x86_64-rhel.config
9423bd
Source36: kernel-x86_64-debug-rhel.config
9423bd
9423bd
Source37: kernel-aarch64-fedora.config
9423bd
Source38: kernel-aarch64-debug-fedora.config
9423bd
Source39: kernel-armv7hl-fedora.config
9423bd
Source40: kernel-armv7hl-debug-fedora.config
9423bd
Source41: kernel-armv7hl-lpae-fedora.config
9423bd
Source42: kernel-armv7hl-lpae-debug-fedora.config
9423bd
Source43: kernel-i686-fedora.config
9423bd
Source44: kernel-i686-debug-fedora.config
9423bd
Source45: kernel-ppc64le-fedora.config
9423bd
Source46: kernel-ppc64le-debug-fedora.config
9423bd
Source47: kernel-s390x-fedora.config
9423bd
Source48: kernel-s390x-debug-fedora.config
9423bd
Source49: kernel-x86_64-fedora.config
9423bd
Source50: kernel-x86_64-debug-fedora.config
9423bd
9423bd
9423bd
9423bd
Source51: generate_all_configs.sh
9423bd
9423bd
Source52: process_configs.sh
9423bd
Source56: update_scripts.sh
9423bd
Source57: generate_crashkernel_default.sh
9423bd
9423bd
Source54: mod-internal.list
9423bd
9423bd
Source100: rheldup3.x509
9423bd
Source101: rhelkpatch1.x509
9423bd
9423bd
Source200: check-kabi
9423bd
9423bd
Source201: Module.kabi_aarch64
9423bd
Source202: Module.kabi_ppc64le
9423bd
Source203: Module.kabi_s390x
9423bd
Source204: Module.kabi_x86_64
9423bd
9423bd
Source210: Module.kabi_dup_aarch64
9423bd
Source211: Module.kabi_dup_ppc64le
9423bd
Source212: Module.kabi_dup_s390x
9423bd
Source213: Module.kabi_dup_x86_64
9423bd
9423bd
Source300: kernel-abi-stablelists-%{rpmversion}-%{distro_build}.tar.bz2
9423bd
Source301: kernel-kabi-dw-%{rpmversion}-%{distro_build}.tar.bz2
9423bd
9423bd
# Sources for kernel-tools
9423bd
Source2000: cpupower.service
9423bd
Source2001: cpupower.config
9423bd
Source2002: kvm_stat.logrotate
9423bd
9423bd
# Some people enjoy building customized kernels from the dist-git in Fedora and
9423bd
# use this to override configuration options. One day they may all use the
9423bd
# source tree, but in the mean time we carry this to support the legacy workflow
9423bd
Source3000: merge.pl
9423bd
Source3001: kernel-local
9423bd
9423bd
Source4000: README.rst
9423bd
Source4001: rpminspect.yaml
9423bd
Source4002: gating.yaml
9423bd
9423bd
## Patches needed for building this package
9423bd
9423bd
%if !%{nopatches}
9423bd
9423bd
Patch1: patch-%{rpmversion}-redhat.patch
9423bd
%endif
9423bd
9423bd
# empty final patch to facilitate testing of kernel patches
9423bd
Patch999999: linux-kernel-test.patch
9423bd
9423bd
# END OF PATCH DEFINITIONS
9423bd
9423bd
%description
9423bd
The kernel meta package
9423bd
9423bd
#
9423bd
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
9423bd
#	%%kernel_reqprovconf <subpackage>
9423bd
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
9423bd
# macros defined above.
9423bd
#
9423bd
%define kernel_reqprovconf \
9423bd
Provides: kernel = %{rpmversion}-%{pkg_release}\
9423bd
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
9423bd
Provides: kernel-drm-nouveau = 16\
9423bd
Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires(pre): %{kernel_prereq}\
9423bd
Requires(pre): %{initrd_prereq}\
9423bd
Requires(pre): linux-firmware >= 20150904-56.git6ebf5d57\
9423bd
Requires(preun): systemd >= 200\
9423bd
Conflicts: xfsprogs < 4.3.0-1\
9423bd
Conflicts: xorg-x11-drv-vmmouse < 13.0.99\
9423bd
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
9423bd
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
9423bd
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
9423bd
# We can't let RPM do the dependencies automatic because it'll then pick up\
9423bd
# a correct but undesirable perl dependency from the module headers which\
9423bd
# isn't required for the kernel proper to function\
9423bd
AutoReq: no\
9423bd
AutoProv: yes\
9423bd
%{nil}
9423bd
9423bd
9423bd
%package doc
9423bd
Summary: Various documentation bits found in the kernel source
9423bd
Group: Documentation
9423bd
%description doc
9423bd
This package contains documentation files from the kernel
9423bd
source. Various bits of information about the Linux kernel and the
9423bd
device drivers shipped with it are documented in these files.
9423bd
9423bd
You'll want to install this package if you need a reference to the
9423bd
options that can be passed to Linux kernel modules at load time.
9423bd
9423bd
9423bd
%package headers
9423bd
Summary: Header files for the Linux kernel for use by glibc
9423bd
Obsoletes: glibc-kernheaders < 3.0-46
9423bd
Provides: glibc-kernheaders = 3.0-46
9423bd
%description headers
9423bd
Kernel-headers includes the C header files that specify the interface
9423bd
between the Linux kernel and userspace libraries and programs.  The
9423bd
header files define structures and constants that are needed for
9423bd
building most standard programs and are also needed for rebuilding the
9423bd
glibc package.
9423bd
9423bd
%package cross-headers
9423bd
Summary: Header files for the Linux kernel for use by cross-glibc
9423bd
%description cross-headers
9423bd
Kernel-cross-headers includes the C header files that specify the interface
9423bd
between the Linux kernel and userspace libraries and programs.  The
9423bd
header files define structures and constants that are needed for
9423bd
building most standard programs and are also needed for rebuilding the
9423bd
cross-glibc package.
9423bd
9423bd
9423bd
%package debuginfo-common-%{_target_cpu}
9423bd
Summary: Kernel source files used by %{name}-debuginfo packages
9423bd
Provides: installonlypkg(kernel)
9423bd
%description debuginfo-common-%{_target_cpu}
9423bd
This package is required by %{name}-debuginfo subpackages.
9423bd
It provides the kernel source files common to all builds.
9423bd
9423bd
%if %{with_perf}
9423bd
%package -n perf
9423bd
Summary: Performance monitoring for the Linux kernel
9423bd
Requires: bzip2
9423bd
License: GPLv2
9423bd
%description -n perf
9423bd
This package contains the perf tool, which enables performance monitoring
9423bd
of the Linux kernel.
9423bd
9423bd
%package -n perf-debuginfo
9423bd
Summary: Debug information for package perf
9423bd
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
9423bd
AutoReqProv: no
9423bd
%description -n perf-debuginfo
9423bd
This package provides debug information for the perf package.
9423bd
9423bd
# Note that this pattern only works right to match the .build-id
9423bd
# symlinks because of the trailing nonmatching alternation and
9423bd
# the leading .*, because of find-debuginfo.sh's buggy handling
9423bd
# of matching the pattern against the symlinks file.
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/libperf-jvmti.so(\.debug)?|XXX' -o perf-debuginfo.list}
9423bd
9423bd
%package -n python3-perf
9423bd
Summary: Python bindings for apps which will manipulate perf events
9423bd
%description -n python3-perf
9423bd
The python3-perf package contains a module that permits applications
9423bd
written in the Python programming language to use the interface
9423bd
to manipulate perf events.
9423bd
9423bd
%package -n python3-perf-debuginfo
9423bd
Summary: Debug information for package perf python bindings
9423bd
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
9423bd
AutoReqProv: no
9423bd
%description -n python3-perf-debuginfo
9423bd
This package provides debug information for the perf python bindings.
9423bd
9423bd
# the python_sitearch macro should already be defined from above
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{python3_sitearch}/perf.*so(\.debug)?|XXX' -o python3-perf-debuginfo.list}
9423bd
9423bd
# with_perf
9423bd
%endif
9423bd
9423bd
%if %{with_tools}
9423bd
%package -n kernel-tools
9423bd
Summary: Assortment of tools for the Linux kernel
9423bd
License: GPLv2
9423bd
%ifarch %{cpupowerarchs}
9423bd
Provides:  cpupowerutils = 1:009-0.6.p1
9423bd
Obsoletes: cpupowerutils < 1:009-0.6.p1
9423bd
Provides:  cpufreq-utils = 1:009-0.6.p1
9423bd
Provides:  cpufrequtils = 1:009-0.6.p1
9423bd
Obsoletes: cpufreq-utils < 1:009-0.6.p1
9423bd
Obsoletes: cpufrequtils < 1:009-0.6.p1
9423bd
Obsoletes: cpuspeed < 1:1.5-16
9423bd
Requires: kernel-tools-libs = %{version}-%{release}
9423bd
%endif
9423bd
%define __requires_exclude ^%{_bindir}/python
9423bd
%description -n kernel-tools
9423bd
This package contains the tools/ directory from the kernel source
9423bd
and the supporting documentation.
9423bd
9423bd
%package -n kernel-tools-libs
9423bd
Summary: Libraries for the kernels-tools
9423bd
License: GPLv2
9423bd
%description -n kernel-tools-libs
9423bd
This package contains the libraries built from the tools/ directory
9423bd
from the kernel source.
9423bd
9423bd
%package -n kernel-tools-libs-devel
9423bd
Summary: Assortment of tools for the Linux kernel
9423bd
License: GPLv2
9423bd
Requires: kernel-tools = %{version}-%{release}
9423bd
%ifarch %{cpupowerarchs}
9423bd
Provides:  cpupowerutils-devel = 1:009-0.6.p1
9423bd
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
9423bd
%endif
9423bd
Requires: kernel-tools-libs = %{version}-%{release}
9423bd
Provides: kernel-tools-devel
9423bd
%description -n kernel-tools-libs-devel
9423bd
This package contains the development files for the tools/ directory from
9423bd
the kernel source.
9423bd
9423bd
%package -n kernel-tools-debuginfo
9423bd
Summary: Debug information for package kernel-tools
9423bd
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
9423bd
AutoReqProv: no
9423bd
%description -n kernel-tools-debuginfo
9423bd
This package provides debug information for package kernel-tools.
9423bd
9423bd
# Note that this pattern only works right to match the .build-id
9423bd
# symlinks because of the trailing nonmatching alternation and
9423bd
# the leading .*, because of find-debuginfo.sh's buggy handling
9423bd
# of matching the pattern against the symlinks file.
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|.*%%{_bindir}/lsgpio(\.debug)?|.*%%{_bindir}/gpio-hammer(\.debug)?|.*%%{_bindir}/gpio-event-mon(\.debug)?|.*%%{_bindir}/gpio-watch(\.debug)?|.*%%{_bindir}/iio_event_monitor(\.debug)?|.*%%{_bindir}/iio_generic_buffer(\.debug)?|.*%%{_bindir}/lsiio(\.debug)?|.*%%{_bindir}/intel-speed-select(\.debug)?|.*%%{_bindir}/page_owner_sort(\.debug)?|.*%%{_bindir}/slabinfo(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
9423bd
9423bd
# with_tools
9423bd
%endif
9423bd
9423bd
%if %{with_bpftool}
9423bd
9423bd
%package -n bpftool
9423bd
Summary: Inspection and simple manipulation of eBPF programs and maps
9423bd
License: GPLv2
9423bd
%description -n bpftool
9423bd
This package contains the bpftool, which allows inspection and simple
9423bd
manipulation of eBPF programs and maps.
9423bd
9423bd
%package -n bpftool-debuginfo
9423bd
Summary: Debug information for package bpftool
9423bd
Group: Development/Debug
9423bd
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
9423bd
AutoReqProv: no
9423bd
%description -n bpftool-debuginfo
9423bd
This package provides debug information for the bpftool package.
9423bd
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_sbindir}/bpftool(\.debug)?|XXX' -o bpftool-debuginfo.list}
9423bd
9423bd
# with_bpftool
9423bd
%endif
9423bd
9423bd
%if %{with_selftests}
9423bd
9423bd
%package selftests-internal
9423bd
Summary: Kernel samples and selftests
9423bd
License: GPLv2
9423bd
Requires: binutils, bpftool, iproute-tc, nmap-ncat, python3
9423bd
%description selftests-internal
9423bd
Kernel sample programs and selftests.
9423bd
9423bd
# Note that this pattern only works right to match the .build-id
9423bd
# symlinks because of the trailing nonmatching alternation and
9423bd
# the leading .*, because of find-debuginfo.sh's buggy handling
9423bd
# of matching the pattern against the symlinks file.
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_libexecdir}/(ksamples|kselftests)/.*|XXX' -o selftests-debuginfo.list}
9423bd
9423bd
# with_selftests
9423bd
%endif
9423bd
9423bd
%if %{with_gcov}
9423bd
%package gcov
9423bd
Summary: gcov graph and source files for coverage data collection.
9423bd
%description gcov
9423bd
kernel-gcov includes the gcov graph and source files for gcov coverage collection.
9423bd
%endif
9423bd
9423bd
%package -n kernel-abi-stablelists
9423bd
Summary: The Red Hat Enterprise Linux kernel ABI symbol stablelists
9423bd
AutoReqProv: no
9423bd
%description -n kernel-abi-stablelists
9423bd
The kABI package contains information pertaining to the Red Hat Enterprise
9423bd
Linux kernel ABI, including lists of kernel symbols that are needed by
9423bd
external Linux kernel modules, and a yum plugin to aid enforcement.
9423bd
9423bd
%if %{with_kabidw_base}
9423bd
%package kernel-kabidw-base-internal
9423bd
Summary: The baseline dataset for kABI verification using DWARF data
9423bd
Group: System Environment/Kernel
9423bd
AutoReqProv: no
9423bd
%description kernel-kabidw-base-internal
9423bd
The package contains data describing the current ABI of the Red Hat Enterprise
9423bd
Linux kernel, suitable for the kabi-dw tool.
9423bd
%endif
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage>-debuginfo package.
9423bd
#	%%kernel_debuginfo_package <subpackage>
9423bd
#
9423bd
# Explanation of the find_debuginfo_opts: We build multiple kernels (debug
9423bd
# pae etc.) so the regex filters those kernels appropriately. We also
9423bd
# have to package several binaries as part of kernel-devel but getting
9423bd
# unique build-ids is tricky for these userspace binaries. We don't really
9423bd
# care about debugging those so we just filter those out and remove it.
9423bd
%define kernel_debuginfo_package() \
9423bd
%package %{?1:%{1}-}debuginfo\
9423bd
Summary: Debug information for package %{name}%{?1:-%{1}}\
9423bd
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: installonlypkg(kernel)\
9423bd
AutoReqProv: no\
9423bd
%description %{?1:%{1}-}debuginfo\
9423bd
This package provides debug information for package %{name}%{?1:-%{1}}.\
9423bd
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
9423bd
%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*\/usr\/src\/kernels/.*|XXX' -o ignored-debuginfo.list -p '/.*/%%{KVERREL_RE}%{?1:[+]%{1}}/.*|/.*%%{KVERREL_RE}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage>-devel package.
9423bd
#	%%kernel_devel_package [-m] <subpackage> <pretty-name>
9423bd
#
9423bd
%define kernel_devel_package(m) \
9423bd
%package %{?1:%{1}-}devel\
9423bd
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
9423bd
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Provides: installonlypkg(kernel)\
9423bd
AutoReqProv: no\
9423bd
Requires(pre): findutils\
9423bd
Requires: findutils\
9423bd
Requires: perl-interpreter\
9423bd
Requires: openssl-devel\
9423bd
Requires: elfutils-libelf-devel\
9423bd
Requires: bison\
9423bd
Requires: flex\
9423bd
Requires: make\
9423bd
Requires: gcc\
9423bd
%if %{-m:1}%{!-m:0}\
9423bd
Requires: kernel-devel-uname-r = %{KVERREL}\
9423bd
%endif\
9423bd
%description %{?1:%{1}-}devel\
9423bd
This package provides kernel headers and makefiles sufficient to build modules\
9423bd
against the %{?2:%{2} }kernel package.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates an empty kernel-<subpackage>-devel-matched package that
9423bd
# requires both the core and devel packages locked on the same version.
9423bd
#	%%kernel_devel_matched_package [-m] <subpackage> <pretty-name>
9423bd
#
9423bd
%define kernel_devel_matched_package(m) \
9423bd
%package %{?1:%{1}-}devel-matched\
9423bd
Summary: Meta package to install matching core and devel packages for a given %{?2:%{2} }kernel\
9423bd
Requires: kernel%{?1:-%{1}}-devel = %{version}-%{release}\
9423bd
Requires: kernel%{?1:-%{1}}-core = %{version}-%{release}\
9423bd
%description %{?1:%{1}-}devel-matched\
9423bd
This meta package is used to install matching core and devel packages for a given %{?2:%{2} }kernel.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# kernel-<variant>-ipaclones-internal package
9423bd
#
9423bd
%define kernel_ipaclones_package() \
9423bd
%package %{?1:%{1}-}ipaclones-internal\
9423bd
Summary: *.ipa-clones files generated by -fdump-ipa-clones for kernel%{?1:-%{1}}\
9423bd
Group: System Environment/Kernel\
9423bd
AutoReqProv: no\
9423bd
%description %{?1:%{1}-}ipaclones-internal\
9423bd
This package provides *.ipa-clones files.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage>-modules-internal package.
9423bd
#	%%kernel_modules_internal_package <subpackage> <pretty-name>
9423bd
#
9423bd
%define kernel_modules_internal_package() \
9423bd
%package %{?1:%{1}-}modules-internal\
9423bd
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
9423bd
Group: System Environment/Kernel\
9423bd
Provides: kernel%{?1:-%{1}}-modules-internal-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: kernel%{?1:-%{1}}-modules-internal-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: kernel%{?1:-%{1}}-modules-internal = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: installonlypkg(kernel-module)\
9423bd
Provides: kernel%{?1:-%{1}}-modules-internal-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
AutoReq: no\
9423bd
AutoProv: yes\
9423bd
%description %{?1:%{1}-}modules-internal\
9423bd
This package provides kernel modules for the %{?2:%{2} }kernel package for Red Hat internal usage.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage>-modules-extra package.
9423bd
#	%%kernel_modules_extra_package [-m] <subpackage> <pretty-name>
9423bd
#
9423bd
%define kernel_modules_extra_package(m) \
9423bd
%package %{?1:%{1}-}modules-extra\
9423bd
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
9423bd
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: kernel%{?1:-%{1}}-modules-extra = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: installonlypkg(kernel-module)\
9423bd
Provides: kernel%{?1:-%{1}}-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
%if %{-m:1}%{!-m:0}\
9423bd
Requires: kernel-modules-extra-uname-r = %{KVERREL}\
9423bd
%endif\
9423bd
AutoReq: no\
9423bd
AutoProv: yes\
9423bd
%description %{?1:%{1}-}modules-extra\
9423bd
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage>-modules package.
9423bd
#	%%kernel_modules_package [-m] <subpackage> <pretty-name>
9423bd
#
9423bd
%define kernel_modules_package(m) \
9423bd
%package %{?1:%{1}-}modules\
9423bd
Summary: kernel modules to match the %{?2:%{2}-}core kernel\
9423bd
Provides: kernel%{?1:-%{1}}-modules-%{_target_cpu} = %{version}-%{release}\
9423bd
Provides: kernel-modules-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: kernel-modules = %{version}-%{release}%{?1:+%{1}}\
9423bd
Provides: installonlypkg(kernel-module)\
9423bd
Provides: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
%if %{-m:1}%{!-m:0}\
9423bd
Requires: kernel-modules-uname-r = %{KVERREL}\
9423bd
%endif\
9423bd
AutoReq: no\
9423bd
AutoProv: yes\
9423bd
%description %{?1:%{1}-}modules\
9423bd
This package provides commonly used kernel modules for the %{?2:%{2}-}core kernel package.\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# this macro creates a kernel-<subpackage> meta package.
9423bd
#	%%kernel_meta_package <subpackage>
9423bd
#
9423bd
%define kernel_meta_package() \
9423bd
%package %{1}\
9423bd
summary: kernel meta-package for the %{1} kernel\
9423bd
Requires: kernel-%{1}-core-uname-r = %{KVERREL}+%{1}\
9423bd
Requires: kernel-%{1}-modules-uname-r = %{KVERREL}+%{1}\
9423bd
Provides: installonlypkg(kernel)\
9423bd
%description %{1}\
9423bd
The meta-package for the %{1} kernel\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
9423bd
#	%%define variant_summary The Linux kernel compiled for <configuration>
9423bd
#	%%kernel_variant_package [-n <pretty-name>] [-m] <subpackage>
9423bd
#
9423bd
%define kernel_variant_package(n:m) \
9423bd
%package %{?1:%{1}-}core\
9423bd
Summary: %{variant_summary}\
9423bd
Provides: kernel-%{?1:%{1}-}core-uname-r = %{KVERREL}%{?1:+%{1}}\
9423bd
Provides: installonlypkg(kernel)\
9423bd
%if %{-m:1}%{!-m:0}\
9423bd
Requires: kernel-core-uname-r = %{KVERREL}\
9423bd
%endif\
9423bd
%{expand:%%kernel_reqprovconf}\
9423bd
%if %{?1:1} %{!?1:0} \
9423bd
%{expand:%%kernel_meta_package %{?1:%{1}}}\
9423bd
%endif\
9423bd
%{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}} %{-m:%{-m}}}\
9423bd
%{expand:%%kernel_devel_matched_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}} %{-m:%{-m}}}\
9423bd
%{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}} %{-m:%{-m}}}\
9423bd
%{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}} %{-m:%{-m}}}\
9423bd
%if %{-m:0}%{!-m:1}\
9423bd
%{expand:%%kernel_modules_internal_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
9423bd
%{expand:%%kernel_debuginfo_package %{?1:%{1}}}\
9423bd
%endif\
9423bd
%{nil}
9423bd
9423bd
# Now, each variant package.
9423bd
9423bd
%if %{with_pae}
9423bd
%define variant_summary The Linux kernel compiled for Cortex-A15
9423bd
%kernel_variant_package lpae
9423bd
%description lpae-core
9423bd
This package includes a version of the Linux kernel with support for
9423bd
Cortex-A15 devices with LPAE and HW virtualisation support
9423bd
%endif
9423bd
9423bd
%if %{with_zfcpdump}
9423bd
%define variant_summary The Linux kernel compiled for zfcpdump usage
9423bd
%kernel_variant_package zfcpdump
9423bd
%description zfcpdump-core
9423bd
The kernel package contains the Linux kernel (vmlinuz) for use by the
9423bd
zfcpdump infrastructure.
9423bd
# with_zfcpdump
9423bd
%endif
9423bd
9423bd
%define variant_summary The Linux kernel compiled with extra debugging enabled
9423bd
%if !%{debugbuildsenabled}
9423bd
%kernel_variant_package -m debug
9423bd
%else
9423bd
%kernel_variant_package debug
9423bd
%endif
9423bd
%description debug-core
9423bd
The kernel package contains the Linux kernel (vmlinuz), the core of any
9423bd
Linux operating system.  The kernel handles the basic functions
9423bd
of the operating system:  memory allocation, process allocation, device
9423bd
input and output, etc.
9423bd
9423bd
This variant of the kernel has numerous debugging options enabled.
9423bd
It should only be installed when trying to gather additional information
9423bd
on kernel bugs, as some of these options impact performance noticably.
9423bd
9423bd
# And finally the main -core package
9423bd
9423bd
%define variant_summary The Linux kernel
9423bd
%kernel_variant_package
9423bd
%description core
9423bd
The kernel package contains the Linux kernel (vmlinuz), the core of any
9423bd
Linux operating system.  The kernel handles the basic functions
9423bd
of the operating system: memory allocation, process allocation, device
9423bd
input and output, etc.
9423bd
9423bd
%if %{with_ipaclones}
9423bd
%kernel_ipaclones_package
9423bd
%endif
9423bd
9423bd
%prep
9423bd
# do a few sanity-checks for --with *only builds
9423bd
%if %{with_baseonly}
9423bd
%if !%{with_up}
9423bd
echo "Cannot build --with baseonly, up build is disabled"
9423bd
exit 1
9423bd
%endif
9423bd
%endif
9423bd
9423bd
# more sanity checking; do it quietly
9423bd
if [ "%{patches}" != "%%{patches}" ] ; then
9423bd
  for patch in %{patches} ; do
9423bd
    if [ ! -f $patch ] ; then
9423bd
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
9423bd
      exit 1
9423bd
    fi
9423bd
  done
9423bd
fi 2>/dev/null
9423bd
9423bd
patch_command='patch -p1 -F1 -s'
9423bd
ApplyPatch()
9423bd
{
9423bd
  local patch=$1
9423bd
  shift
9423bd
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
9423bd
    exit 1
9423bd
  fi
9423bd
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME}.spec ; then
9423bd
    if [ "${patch:0:8}" != "patch-5." ] ; then
9423bd
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
9423bd
      exit 1
9423bd
    fi
9423bd
  fi 2>/dev/null
9423bd
  case "$patch" in
9423bd
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
9423bd
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
9423bd
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
9423bd
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
9423bd
  esac
9423bd
}
9423bd
9423bd
# don't apply patch if it's empty
9423bd
ApplyOptionalPatch()
9423bd
{
9423bd
  local patch=$1
9423bd
  shift
9423bd
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
9423bd
    exit 1
9423bd
  fi
9423bd
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
9423bd
  if [ "$C" -gt 9 ]; then
9423bd
    ApplyPatch $patch ${1+"$@"}
9423bd
  fi
9423bd
}
9423bd
9423bd
%setup -q -n kernel-5.14.0-1.7.1.el9 -c
9423bd
mv linux-5.14.0-1.7.1.el9 linux-%{KVERREL}
9423bd
9423bd
cd linux-%{KVERREL}
9423bd
cp -a %{SOURCE1} .
9423bd
9423bd
%if !%{nopatches}
9423bd
9423bd
ApplyOptionalPatch patch-%{rpmversion}-redhat.patch
9423bd
%endif
9423bd
9423bd
ApplyOptionalPatch linux-kernel-test.patch
9423bd
9423bd
# END OF PATCH APPLICATIONS
9423bd
9423bd
# Any further pre-build tree manipulations happen here.
9423bd
9423bd
chmod +x scripts/checkpatch.pl
9423bd
mv COPYING COPYING-%{version}-%{release}
9423bd
9423bd
# This Prevents scripts/setlocalversion from mucking with our version numbers.
9423bd
touch .scmversion
9423bd
9423bd
# Mangle /usr/bin/python shebangs to /usr/bin/python3
9423bd
# Mangle all Python shebangs to be Python 3 explicitly
9423bd
# -p preserves timestamps
9423bd
# -n prevents creating ~backup files
9423bd
# -i specifies the interpreter for the shebang
9423bd
# This fixes errors such as
9423bd
# *** ERROR: ambiguous python shebang in /usr/bin/kvm_stat: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
9423bd
# We patch all sources below for which we got a report/error.
9423bd
pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
9423bd
	tools/kvm/kvm_stat/kvm_stat \
9423bd
	scripts/show_delta \
9423bd
	scripts/diffconfig \
9423bd
	scripts/bloat-o-meter \
9423bd
	scripts/jobserver-exec \
9423bd
	tools \
9423bd
	Documentation \
9423bd
	scripts/clang-tools
9423bd
9423bd
# only deal with configs if we are going to build for the arch
9423bd
%ifnarch %nobuildarches
9423bd
9423bd
if [ -L configs ]; then
9423bd
	rm -f configs
9423bd
fi
9423bd
mkdir configs
9423bd
cd configs
9423bd
9423bd
# Drop some necessary files from the source dir into the buildroot
9423bd
cp $RPM_SOURCE_DIR/kernel-*.config .
9423bd
cp %{SOURCE51} .
9423bd
# merge.pl
9423bd
cp %{SOURCE3000} .
9423bd
# kernel-local
9423bd
cp %{SOURCE3001} .
9423bd
VERSION=%{version} ./generate_all_configs.sh %{primary_target} %{debugbuildsenabled}
9423bd
9423bd
# Merge in any user-provided local config option changes
9423bd
%ifnarch %nobuildarches
9423bd
for i in %{all_arch_configs}
9423bd
do
9423bd
  mv $i $i.tmp
9423bd
  ./merge.pl %{SOURCE3001} $i.tmp > $i
9423bd
  rm $i.tmp
9423bd
done
9423bd
%endif
9423bd
9423bd
# enable GCOV kernel config options if gcov is on
9423bd
%if %{with_gcov}
9423bd
for i in *.config
9423bd
do
9423bd
  sed -i 's/# CONFIG_GCOV_KERNEL is not set/CONFIG_GCOV_KERNEL=y\nCONFIG_GCOV_PROFILE_ALL=y\n/' $i
9423bd
done
9423bd
%endif
9423bd
9423bd
%if %{with clang_lto}
9423bd
for i in *aarch64*.config *x86_64*.config; do
9423bd
  sed -i 's/# CONFIG_LTO_CLANG_THIN is not set/CONFIG_LTO_CLANG_THIN=y/' $i
9423bd
  sed -i 's/CONFIG_LTO_NONE=y/# CONFIG_LTO_NONE is not set/' $i
9423bd
done
9423bd
%endif
9423bd
9423bd
# Add DUP and kpatch certificates to system trusted keys for RHEL
9423bd
%if 0%{?rhel}
9423bd
%if %{signkernel}%{signmodules}
9423bd
openssl x509 -inform der -in %{SOURCE100} -out rheldup3.pem
9423bd
openssl x509 -inform der -in %{SOURCE101} -out rhelkpatch1.pem
9423bd
cat rheldup3.pem rhelkpatch1.pem > ../certs/rhel.pem
9423bd
%ifarch s390x ppc64le
9423bd
openssl x509 -inform der -in %{secureboot_ca_0} -out secureboot.pem
9423bd
cat secureboot.pem >> ../certs/rhel.pem
9423bd
%endif
9423bd
for i in *.config; do
9423bd
  sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS=""@CONFIG_SYSTEM_TRUSTED_KEYS="certs/rhel.pem"@' $i
9423bd
done
9423bd
%endif
9423bd
%endif
9423bd
9423bd
cp %{SOURCE52} .
9423bd
OPTS=""
9423bd
%if %{with_configchecks}
9423bd
	OPTS="$OPTS -w -n -c"
9423bd
%endif
9423bd
%if %{with clang_lto}
9423bd
for opt in %{clang_make_opts}; do
9423bd
  OPTS="$OPTS -m $opt"
9423bd
done
9423bd
%endif
9423bd
./process_configs.sh $OPTS kernel %{rpmversion}
9423bd
9423bd
cp %{SOURCE56} .
9423bd
RPM_SOURCE_DIR=$RPM_SOURCE_DIR ./update_scripts.sh %{primary_target}
9423bd
9423bd
# end of kernel config
9423bd
%endif
9423bd
9423bd
cd ..
9423bd
# # End of Configs stuff
9423bd
9423bd
# get rid of unwanted files resulting from patch fuzz
9423bd
find . \( -name "*.orig" -o -name "*~" \) -delete >/dev/null
9423bd
9423bd
# remove unnecessary SCM files
9423bd
find . -name .gitignore -delete >/dev/null
9423bd
9423bd
cd ..
9423bd
9423bd
###
9423bd
### build
9423bd
###
9423bd
%build
9423bd
9423bd
%if %{with_sparse}
9423bd
%define sparse_mflags	C=1
9423bd
%endif
9423bd
9423bd
cp_vmlinux()
9423bd
{
9423bd
  eu-strip --remove-comment -o "$2" "$1"
9423bd
}
9423bd
9423bd
# Note we need to disable these flags for cross builds because the flags
9423bd
# from redhat-rpm-config assume that host == target so target arch
9423bd
# flags cause issues with the host compiler.
9423bd
%if !%{with_cross}
9423bd
%define build_hostcflags  %{?build_cflags}
9423bd
%define build_hostldflags %{?build_ldflags}
9423bd
%endif
9423bd
9423bd
%define make %{__make} %{?cross_opts} %{?make_opts} HOSTCFLAGS="%{?build_hostcflags}" HOSTLDFLAGS="%{?build_hostldflags}"
9423bd
9423bd
InitBuildVars() {
9423bd
    # Initialize the kernel .config file and create some variables that are
9423bd
    # needed for the actual build process.
9423bd
9423bd
    Variant=$1
9423bd
9423bd
    # Pick the right kernel config file
9423bd
    Config=kernel-%{version}-%{_target_cpu}${Variant:+-${Variant}}.config
9423bd
    DevelDir=/usr/src/kernels/%{KVERREL}${Variant:++${Variant}}
9423bd
9423bd
    KernelVer=%{version}-%{release}.%{_target_cpu}${Variant:++${Variant}}
9423bd
9423bd
    # make sure EXTRAVERSION says what we want it to say
9423bd
    # Trim the release if this is a CI build, since KERNELVERSION is limited to 64 characters
9423bd
    ShortRel=$(perl -e "print \"%{release}\" =~ s/\.pr\.[0-9A-Fa-f]{32}//r")
9423bd
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -${ShortRel}.%{_target_cpu}${Variant:++${Variant}}/" Makefile
9423bd
9423bd
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
9423bd
    # if we are post rc1 this should match anyway so this won't matter
9423bd
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{patchlevel}/' Makefile
9423bd
9423bd
    %{make} %{?_smp_mflags} mrproper
9423bd
    cp configs/$Config .config
9423bd
9423bd
    %if %{signkernel}%{signmodules}
9423bd
    cp $RPM_SOURCE_DIR/x509.genkey certs/.
9423bd
    %endif
9423bd
9423bd
    Arch=`head -1 .config | cut -b 3-`
9423bd
    echo USING ARCH=$Arch
9423bd
9423bd
    KCFLAGS="%{?kcflags}"
9423bd
9423bd
    # add kpatch flags for base kernel
9423bd
    if [ "$Variant" == "" ]; then
9423bd
        KCFLAGS="$KCFLAGS %{?kpatch_kcflags}"
9423bd
    fi
9423bd
}
9423bd
9423bd
BuildKernel() {
9423bd
    MakeTarget=$1
9423bd
    KernelImage=$2
9423bd
    DoVDSO=$3
9423bd
    Variant=$4
9423bd
    InstallName=${5:-vmlinuz}
9423bd
9423bd
    DoModules=1
9423bd
    if [ "$Variant" = "zfcpdump" ]; then
9423bd
	    DoModules=0
9423bd
    fi
9423bd
9423bd
    # When the bootable image is just the ELF kernel, strip it.
9423bd
    # We already copy the unstripped file into the debuginfo package.
9423bd
    if [ "$KernelImage" = vmlinux ]; then
9423bd
      CopyKernel=cp_vmlinux
9423bd
    else
9423bd
      CopyKernel=cp
9423bd
    fi
9423bd
9423bd
    InitBuildVars $Variant
9423bd
9423bd
    echo BUILDING A KERNEL FOR ${Variant} %{_target_cpu}...
9423bd
9423bd
    %{make} ARCH=$Arch olddefconfig >/dev/null
9423bd
9423bd
    # This ensures build-ids are unique to allow parallel debuginfo
9423bd
    perl -p -i -e "s/^CONFIG_BUILD_SALT.*/CONFIG_BUILD_SALT=\"%{KVERREL}\"/" .config
9423bd
    %{make} ARCH=$Arch KCFLAGS="$KCFLAGS" WITH_GCOV="%{?with_gcov}" %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags}
9423bd
    if [ $DoModules -eq 1 ]; then
9423bd
	%{make} ARCH=$Arch KCFLAGS="$KCFLAGS" WITH_GCOV="%{?with_gcov}" %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
9423bd
    fi
9423bd
9423bd
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
9423bd
%if %{with_debuginfo}
9423bd
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
9423bd
%endif
9423bd
9423bd
%ifarch %{arm} aarch64
9423bd
    %{make} ARCH=$Arch dtbs INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
9423bd
    %{make} ARCH=$Arch dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
9423bd
    cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb
9423bd
    find arch/$Arch/boot/dts -name '*.dtb' -type f -delete
9423bd
%endif
9423bd
9423bd
    # Start installing the results
9423bd
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
9423bd
    install -m 644 .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/config
9423bd
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
9423bd
    install -m 644 System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/System.map
9423bd
9423bd
    # We estimate the size of the initramfs because rpm needs to take this size
9423bd
    # into consideration when performing disk space calculations. (See bz #530778)
9423bd
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
9423bd
9423bd
    if [ -f arch/$Arch/boot/zImage.stub ]; then
9423bd
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
9423bd
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/lib/modules/$KernelVer/zImage.stub-$KernelVer || :
9423bd
    fi
9423bd
9423bd
    %if %{signkernel}
9423bd
    if [ "$KernelImage" = vmlinux ]; then
9423bd
        # We can't strip and sign $KernelImage in place, because
9423bd
        # we need to preserve original vmlinux for debuginfo.
9423bd
        # Use a copy for signing.
9423bd
        $CopyKernel $KernelImage $KernelImage.tosign
9423bd
        KernelImage=$KernelImage.tosign
9423bd
        CopyKernel=cp
9423bd
    fi
9423bd
9423bd
    # Sign the image if we're using EFI
9423bd
    # aarch64 kernels are gziped EFI images
9423bd
    KernelExtension=${KernelImage##*.}
9423bd
    if [ "$KernelExtension" == "gz" ]; then
9423bd
        SignImage=${KernelImage%.*}
9423bd
    else
9423bd
        SignImage=$KernelImage
9423bd
    fi
9423bd
9423bd
    %ifarch x86_64 aarch64
9423bd
    %pesign -s -i $SignImage -o vmlinuz.signed -a %{secureboot_ca_0} -c %{secureboot_key_0} -n %{pesign_name_0}
9423bd
    %endif
9423bd
    %ifarch s390x ppc64le
9423bd
    if [ -x /usr/bin/rpm-sign ]; then
9423bd
	rpm-sign --key "%{pesign_name_0}" --lkmsign $SignImage --output vmlinuz.signed
9423bd
    elif [ $DoModules -eq 1 ]; then
9423bd
	chmod +x scripts/sign-file
9423bd
	./scripts/sign-file -p sha256 certs/signing_key.pem certs/signing_key.x509 $SignImage vmlinuz.signed
9423bd
    else
9423bd
	mv $SignImage vmlinuz.signed
9423bd
    fi
9423bd
    %endif
9423bd
9423bd
    if [ ! -s vmlinuz.signed ]; then
9423bd
        echo "pesigning failed"
9423bd
        exit 1
9423bd
    fi
9423bd
    mv vmlinuz.signed $SignImage
9423bd
    if [ "$KernelExtension" == "gz" ]; then
9423bd
        gzip -f9 $SignImage
9423bd
    fi
9423bd
    # signkernel
9423bd
    %endif
9423bd
9423bd
    $CopyKernel $KernelImage \
9423bd
                $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
9423bd
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
9423bd
    cp $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/$InstallName
9423bd
9423bd
    # hmac sign the kernel for FIPS
9423bd
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
9423bd
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
9423bd
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
9423bd
    cp $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac $RPM_BUILD_ROOT/lib/modules/$KernelVer/.vmlinuz.hmac
9423bd
9423bd
    if [ $DoModules -eq 1 ]; then
9423bd
	# Override $(mod-fw) because we don't want it to install any firmware
9423bd
	# we'll get it from the linux-firmware package and we don't want conflicts
9423bd
	%{make} %{?_smp_mflags} ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT %{?_smp_mflags} modules_install KERNELRELEASE=$KernelVer mod-fw=
9423bd
    fi
9423bd
9423bd
%if %{with_gcov}
9423bd
    # install gcov-needed files to $BUILDROOT/$BUILD/...:
9423bd
    #   gcov_info->filename is absolute path
9423bd
    #   gcno references to sources can use absolute paths (e.g. in out-of-tree builds)
9423bd
    #   sysfs symlink targets (set up at compile time) use absolute paths to BUILD dir
9423bd
    find . \( -name '*.gcno' -o -name '*.[chS]' \) -exec install -D '{}' "$RPM_BUILD_ROOT/$(pwd)/{}" \;
9423bd
%endif
9423bd
9423bd
    # add an a noop %%defattr statement 'cause rpm doesn't like empty file list files
9423bd
    echo '%%defattr(-,-,-)' > ../kernel${Variant:+-${Variant}}-ldsoconf.list
9423bd
    if [ $DoVDSO -ne 0 ]; then
9423bd
        %{make} ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
9423bd
        if [ -s ldconfig-kernel.conf ]; then
9423bd
             install -D -m 444 ldconfig-kernel.conf \
9423bd
                $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
9423bd
	     echo /etc/ld.so.conf.d/kernel-$KernelVer.conf >> ../kernel${Variant:+-${Variant}}-ldsoconf.list
9423bd
        fi
9423bd
9423bd
        rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/vdso/.build-id
9423bd
    fi
9423bd
9423bd
    # And save the headers/makefiles etc for building modules against
9423bd
    #
9423bd
    # This all looks scary, but the end result is supposed to be:
9423bd
    # * all arch relevant include/ files
9423bd
    # * all Makefile/Kconfig files
9423bd
    # * all script/ files
9423bd
9423bd
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
9423bd
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/weak-updates
9423bd
    # CONFIG_KERNEL_HEADER_TEST generates some extra files in the process of
9423bd
    # testing so just delete
9423bd
    find . -name *.h.s -delete
9423bd
    # first copy everything
9423bd
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    if [ ! -e Module.symvers ]; then
9423bd
        touch Module.symvers
9423bd
    fi
9423bd
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    if [ -s Module.markers ]; then
9423bd
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    fi
9423bd
9423bd
    # create the kABI metadata for use in packaging
9423bd
    # NOTENOTE: the name symvers is used by the rpm backend
9423bd
    # NOTENOTE: to discover and run the /usr/lib/rpm/fileattrs/kabi.attr
9423bd
    # NOTENOTE: script which dynamically adds exported kernel symbol
9423bd
    # NOTENOTE: checksums to the rpm metadata provides list.
9423bd
    # NOTENOTE: if you change the symvers name, update the backend too
9423bd
    echo "**** GENERATING kernel ABI metadata ****"
9423bd
    gzip -c9 < Module.symvers > $RPM_BUILD_ROOT/boot/symvers-$KernelVer.gz
9423bd
    cp $RPM_BUILD_ROOT/boot/symvers-$KernelVer.gz $RPM_BUILD_ROOT/lib/modules/$KernelVer/symvers.gz
9423bd
9423bd
%if %{with_kabichk}
9423bd
    echo "**** kABI checking is enabled in kernel SPEC file. ****"
9423bd
    chmod 0755 $RPM_SOURCE_DIR/check-kabi
9423bd
    if [ -e $RPM_SOURCE_DIR/Module.kabi_%{_target_cpu}$Variant ]; then
9423bd
        cp $RPM_SOURCE_DIR/Module.kabi_%{_target_cpu}$Variant $RPM_BUILD_ROOT/Module.kabi
9423bd
        $RPM_SOURCE_DIR/check-kabi -k $RPM_BUILD_ROOT/Module.kabi -s Module.symvers || exit 1
9423bd
        # for now, don't keep it around.
9423bd
        rm $RPM_BUILD_ROOT/Module.kabi
9423bd
    else
9423bd
        echo "**** NOTE: Cannot find reference Module.kabi file. ****"
9423bd
    fi
9423bd
%endif
9423bd
9423bd
%if %{with_kabidupchk}
9423bd
    echo "**** kABI DUP checking is enabled in kernel SPEC file. ****"
9423bd
    if [ -e $RPM_SOURCE_DIR/Module.kabi_dup_%{_target_cpu}$Variant ]; then
9423bd
        cp $RPM_SOURCE_DIR/Module.kabi_dup_%{_target_cpu}$Variant $RPM_BUILD_ROOT/Module.kabi
9423bd
        $RPM_SOURCE_DIR/check-kabi -k $RPM_BUILD_ROOT/Module.kabi -s Module.symvers || exit 1
9423bd
        # for now, don't keep it around.
9423bd
        rm $RPM_BUILD_ROOT/Module.kabi
9423bd
    else
9423bd
        echo "**** NOTE: Cannot find DUP reference Module.kabi file. ****"
9423bd
    fi
9423bd
%endif
9423bd
9423bd
%if %{with_kabidw_base}
9423bd
    # Don't build kabi base for debug kernels
9423bd
    if [ "$Variant" != "zfcpdump" -a "$Variant" != "debug" ]; then
9423bd
        mkdir -p $RPM_BUILD_ROOT/kabi-dwarf
9423bd
        tar xjvf %{SOURCE301} -C $RPM_BUILD_ROOT/kabi-dwarf
9423bd
9423bd
        mkdir -p $RPM_BUILD_ROOT/kabi-dwarf/stablelists
9423bd
        tar xjvf %{SOURCE300} -C $RPM_BUILD_ROOT/kabi-dwarf/stablelists
9423bd
9423bd
        echo "**** GENERATING DWARF-based kABI baseline dataset ****"
9423bd
        chmod 0755 $RPM_BUILD_ROOT/kabi-dwarf/run_kabi-dw.sh
9423bd
        $RPM_BUILD_ROOT/kabi-dwarf/run_kabi-dw.sh generate \
9423bd
            "$RPM_BUILD_ROOT/kabi-dwarf/stablelists/kabi-current/kabi_stablelist_%{_target_cpu}" \
9423bd
            "$(pwd)" \
9423bd
            "$RPM_BUILD_ROOT/kabidw-base/%{_target_cpu}${Variant:+.${Variant}}" || :
9423bd
9423bd
        rm -rf $RPM_BUILD_ROOT/kabi-dwarf
9423bd
    fi
9423bd
%endif
9423bd
9423bd
%if %{with_kabidwchk}
9423bd
    if [ "$Variant" != "zfcpdump" ]; then
9423bd
        mkdir -p $RPM_BUILD_ROOT/kabi-dwarf
9423bd
        tar xjvf %{SOURCE301} -C $RPM_BUILD_ROOT/kabi-dwarf
9423bd
        if [ -d "$RPM_BUILD_ROOT/kabi-dwarf/base/%{_target_cpu}${Variant:+.${Variant}}" ]; then
9423bd
            mkdir -p $RPM_BUILD_ROOT/kabi-dwarf/stablelists
9423bd
            tar xjvf %{SOURCE300} -C $RPM_BUILD_ROOT/kabi-dwarf/stablelists
9423bd
9423bd
            echo "**** GENERATING DWARF-based kABI dataset ****"
9423bd
            chmod 0755 $RPM_BUILD_ROOT/kabi-dwarf/run_kabi-dw.sh
9423bd
            $RPM_BUILD_ROOT/kabi-dwarf/run_kabi-dw.sh generate \
9423bd
                "$RPM_BUILD_ROOT/kabi-dwarf/stablelists/kabi-current/kabi_stablelist_%{_target_cpu}" \
9423bd
                "$(pwd)" \
9423bd
                "$RPM_BUILD_ROOT/kabi-dwarf/base/%{_target_cpu}${Variant:+.${Variant}}.tmp" || :
9423bd
9423bd
            echo "**** kABI DWARF-based comparison report ****"
9423bd
            $RPM_BUILD_ROOT/kabi-dwarf/run_kabi-dw.sh compare \
9423bd
                "$RPM_BUILD_ROOT/kabi-dwarf/base/%{_target_cpu}${Variant:+.${Variant}}" \
9423bd
                "$RPM_BUILD_ROOT/kabi-dwarf/base/%{_target_cpu}${Variant:+.${Variant}}.tmp" || :
9423bd
            echo "**** End of kABI DWARF-based comparison report ****"
9423bd
        else
9423bd
            echo "**** Baseline dataset for kABI DWARF-BASED comparison report not found ****"
9423bd
        fi
9423bd
9423bd
        rm -rf $RPM_BUILD_ROOT/kabi-dwarf
9423bd
    fi
9423bd
%endif
9423bd
9423bd
    # then drop all but the needed Makefiles/Kconfig files
9423bd
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
9423bd
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
9423bd
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/tracing
9423bd
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/spdxcheck.py
9423bd
9423bd
    # Files for 'make scripts' to succeed with kernel-devel.
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/security/selinux/include
9423bd
    cp -a --parents security/selinux/include/classmap.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents security/selinux/include/initial_sid_to_string.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/tools/include/tools
9423bd
    cp -a --parents tools/include/tools/be_byteshift.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/tools/le_byteshift.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
    # Files for 'make prepare' to succeed with kernel-devel.
9423bd
    cp -a --parents tools/include/linux/compiler* $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/linux/types.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/build/Build.include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/build/Build $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/build/fixdep.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/objtool/sync-check.sh $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/bpf/resolve_btfids $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
    cp --parents security/selinux/include/policycap_names.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents security/selinux/include/policycap.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
    cp -a --parents tools/include/asm-generic $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/linux $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/uapi/asm $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/uapi/asm-generic $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/uapi/linux $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/include/vdso $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/scripts/utilities.mak $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/lib/subcmd $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/lib/*.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/objtool/*.[ch] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/objtool/Build $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/objtool/include/objtool/*.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/lib/bpf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp --parents tools/lib/bpf/Build $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
    if [ -f tools/objtool/objtool ]; then
9423bd
      cp -a tools/objtool/objtool $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/tools/objtool/ || :
9423bd
    fi
9423bd
    if [ -f tools/objtool/fixdep ]; then
9423bd
      cp -a tools/objtool/fixdep $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/tools/objtool/ || :
9423bd
    fi
9423bd
    if [ -d arch/$Arch/scripts ]; then
9423bd
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
9423bd
    fi
9423bd
    if [ -f arch/$Arch/*lds ]; then
9423bd
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
9423bd
    fi
9423bd
    if [ -f arch/%{asmarch}/kernel/module.lds ]; then
9423bd
      cp -a --parents arch/%{asmarch}/kernel/module.lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    fi
9423bd
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts \( -iname "*.o" -o -iname "*.cmd" \) -exec rm -f {} +
9423bd
%ifarch ppc64le
9423bd
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
%endif
9423bd
    if [ -d arch/%{asmarch}/include ]; then
9423bd
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    fi
9423bd
%ifarch aarch64
9423bd
    # arch/arm64/include/asm/xen references arch/arm
9423bd
    cp -a --parents arch/arm/include/asm/xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    # arch/arm64/include/asm/opcodes.h references arch/arm
9423bd
    cp -a --parents arch/arm/include/asm/opcodes.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
%endif
9423bd
    # include the machine specific headers for ARM variants, if available.
9423bd
%ifarch %{arm}
9423bd
    if [ -d arch/%{asmarch}/mach-${Variant}/include ]; then
9423bd
      cp -a --parents arch/%{asmarch}/mach-${Variant}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    fi
9423bd
    # include a few files for 'make prepare'
9423bd
    cp -a --parents arch/arm/tools/gen-mach-types $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/arm/tools/mach-types $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
9423bd
%endif
9423bd
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
9423bd
%ifarch i686 x86_64
9423bd
    # files for 'make prepare' to succeed with kernel-devel
9423bd
    cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/tools/relocs_32.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/tools/relocs_64.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/tools/relocs.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/tools/relocs_common.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/tools/relocs.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/purgatory/purgatory.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/purgatory/stack.S $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/purgatory/setup-x86_64.S $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/purgatory/entry64.S $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/boot/string.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/boot/string.c $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents arch/x86/boot/ctype.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
9423bd
    cp -a --parents scripts/syscalltbl.sh $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
    cp -a --parents scripts/syscallhdr.sh $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
9423bd
9423bd
    cp -a --parents tools/arch/x86/include/asm $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/arch/x86/include/uapi/asm $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/objtool/arch/x86/lib $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/arch/x86/lib/ $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/arch/x86/tools/gen-insn-attr-x86.awk $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
    cp -a --parents tools/objtool/arch/x86/ $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
%endif
9423bd
    # Clean up intermediate tools files
9423bd
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/tools \( -iname "*.o" -o -iname "*.cmd" \) -exec rm -f {} +
9423bd
9423bd
    # Make sure the Makefile and version.h have a matching timestamp so that
9423bd
    # external modules can be built
9423bd
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/generated/uapi/linux/version.h
9423bd
9423bd
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
9423bd
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
9423bd
9423bd
%if %{with_debuginfo}
9423bd
    eu-readelf -n vmlinux | grep "Build ID" | awk '{print $NF}' > vmlinux.id
9423bd
    cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
9423bd
9423bd
    #
9423bd
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
9423bd
    #
9423bd
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
9423bd
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
9423bd
    if [ -n "%{vmlinux_decompressor}" ]; then
9423bd
	    eu-readelf -n  %{vmlinux_decompressor} | grep "Build ID" | awk '{print $NF}' > vmlinux.decompressor.id
9423bd
	    # Without build-id the build will fail. But for s390 the build-id
9423bd
	    # wasn't added before 5.11. In case it is missing prefer not
9423bd
	    # packaging the debuginfo over a build failure.
9423bd
	    if [ -s vmlinux.decompressor.id ]; then
9423bd
		    cp vmlinux.decompressor.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.decompressor.id
9423bd
		    cp %{vmlinux_decompressor} $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer/vmlinux.decompressor
9423bd
	    fi
9423bd
    fi
9423bd
%endif
9423bd
9423bd
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
9423bd
9423bd
    # mark modules executable so that strip-to-file can strip them
9423bd
    xargs --no-run-if-empty chmod u+x < modnames
9423bd
9423bd
    # Generate a list of modules for block and networking.
9423bd
9423bd
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
9423bd
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
9423bd
9423bd
    collect_modules_list()
9423bd
    {
9423bd
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
9423bd
        LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
9423bd
      if [ ! -z "$3" ]; then
9423bd
        sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
9423bd
      fi
9423bd
    }
9423bd
9423bd
    collect_modules_list networking \
9423bd
      'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
9423bd
    collect_modules_list block \
9423bd
      'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_alloc_queue|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler|blk_queue_physical_block_size' 'pktcdvd.ko|dm-mod.ko'
9423bd
    collect_modules_list drm \
9423bd
      'drm_open|drm_init'
9423bd
    collect_modules_list modesetting \
9423bd
      'drm_crtc_init'
9423bd
9423bd
    # detect missing or incorrect license tags
9423bd
    ( find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \
9423bd
        grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
9423bd
9423bd
    remove_depmod_files()
9423bd
    {
9423bd
        # remove files that will be auto generated by depmod at rpm -i time
9423bd
        pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
9423bd
            rm -f modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
9423bd
                  modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
9423bd
        popd
9423bd
    }
9423bd
9423bd
    remove_depmod_files
9423bd
9423bd
    # Identify modules in the kernel-modules-extras package
9423bd
    %{SOURCE17} $RPM_BUILD_ROOT lib/modules/$KernelVer $RPM_SOURCE_DIR/mod-extra.list
9423bd
    # Identify modules in the kernel-modules-extras package
9423bd
    %{SOURCE17} $RPM_BUILD_ROOT lib/modules/$KernelVer %{SOURCE54} internal
9423bd
9423bd
    #
9423bd
    # Generate the kernel-core and kernel-modules files lists
9423bd
    #
9423bd
9423bd
    # Copy the System.map file for depmod to use, and create a backup of the
9423bd
    # full module tree so we can restore it after we're done filtering
9423bd
    cp System.map $RPM_BUILD_ROOT/.
9423bd
    pushd $RPM_BUILD_ROOT
9423bd
    mkdir restore
9423bd
    cp -r lib/modules/$KernelVer/* restore/.
9423bd
9423bd
    # don't include anything going into kernel-modules-extra in the file lists
9423bd
    xargs rm -rf < mod-extra.list
9423bd
    # don't include anything going int kernel-modules-internal in the file lists
9423bd
    xargs rm -rf < mod-internal.list
9423bd
9423bd
    if [ $DoModules -eq 1 ]; then
9423bd
	# Find all the module files and filter them out into the core and
9423bd
	# modules lists.  This actually removes anything going into -modules
9423bd
	# from the dir.
9423bd
	find lib/modules/$KernelVer/kernel -name *.ko | sort -n > modules.list
9423bd
	cp $RPM_SOURCE_DIR/filter-*.sh .
9423bd
	./filter-modules.sh modules.list %{_target_cpu}
9423bd
	rm filter-*.sh
9423bd
9423bd
	# Run depmod on the resulting module tree and make sure it isn't broken
9423bd
	depmod -b . -aeF ./System.map $KernelVer &> depmod.out
9423bd
	if [ -s depmod.out ]; then
9423bd
	    echo "Depmod failure"
9423bd
	    cat depmod.out
9423bd
	    exit 1
9423bd
	else
9423bd
	    rm depmod.out
9423bd
	fi
9423bd
    else
9423bd
	# Ensure important files/directories exist to let the packaging succeed
9423bd
	echo '%%defattr(-,-,-)' > modules.list
9423bd
	echo '%%defattr(-,-,-)' > k-d.list
9423bd
	mkdir -p lib/modules/$KernelVer/kernel
9423bd
	# Add files usually created by make modules, needed to prevent errors
9423bd
	# thrown by depmod during package installation
9423bd
	touch lib/modules/$KernelVer/modules.order
9423bd
	touch lib/modules/$KernelVer/modules.builtin
9423bd
    fi
9423bd
9423bd
    remove_depmod_files
9423bd
9423bd
    # Go back and find all of the various directories in the tree.  We use this
9423bd
    # for the dir lists in kernel-core
9423bd
    find lib/modules/$KernelVer/kernel -mindepth 1 -type d | sort -n > module-dirs.list
9423bd
9423bd
    # Cleanup
9423bd
    rm System.map
9423bd
    cp -r restore/* lib/modules/$KernelVer/.
9423bd
    rm -rf restore
9423bd
    popd
9423bd
9423bd
    # Make sure the files lists start with absolute paths or rpmbuild fails.
9423bd
    # Also add in the dir entries
9423bd
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/k-d.list > ../kernel${Variant:+-${Variant}}-modules.list
9423bd
    sed -e 's/^lib*/%dir \/lib/' %{?zipsed} $RPM_BUILD_ROOT/module-dirs.list > ../kernel${Variant:+-${Variant}}-core.list
9423bd
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/modules.list >> ../kernel${Variant:+-${Variant}}-core.list
9423bd
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/mod-extra.list >> ../kernel${Variant:+-${Variant}}-modules-extra.list
9423bd
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/mod-internal.list >> ../kernel${Variant:+-${Variant}}-modules-internal.list
9423bd
9423bd
    # Cleanup
9423bd
    rm -f $RPM_BUILD_ROOT/k-d.list
9423bd
    rm -f $RPM_BUILD_ROOT/modules.list
9423bd
    rm -f $RPM_BUILD_ROOT/module-dirs.list
9423bd
    rm -f $RPM_BUILD_ROOT/mod-extra.list
9423bd
    rm -f $RPM_BUILD_ROOT/mod-internal.list
9423bd
9423bd
%if %{signmodules}
9423bd
    if [ $DoModules -eq 1 ]; then
9423bd
	# Save the signing keys so we can sign the modules in __modsign_install_post
9423bd
	cp certs/signing_key.pem certs/signing_key.pem.sign${Variant:++${Variant}}
9423bd
	cp certs/signing_key.x509 certs/signing_key.x509.sign${Variant:++${Variant}}
9423bd
    fi
9423bd
%endif
9423bd
9423bd
    # Move the devel headers out of the root file system
9423bd
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
9423bd
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
9423bd
9423bd
    # This is going to create a broken link during the build, but we don't use
9423bd
    # it after this point.  We need the link to actually point to something
9423bd
    # when kernel-devel is installed, and a relative link doesn't work across
9423bd
    # the F17 UsrMove feature.
9423bd
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
9423bd
9423bd
%ifnarch armv7hl
9423bd
    # Generate vmlinux.h and put it to kernel-devel path
9423bd
    bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
9423bd
%endif
9423bd
9423bd
    # prune junk from kernel-devel
9423bd
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -delete
9423bd
9423bd
    # Generate crashkernel default config
9423bd
    %{SOURCE57} "$KernelVer" "$Arch" "$RPM_BUILD_ROOT"
9423bd
9423bd
    # Red Hat UEFI Secure Boot CA cert, which can be used to authenticate the kernel
9423bd
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer
9423bd
    install -m 0644 %{secureboot_ca_0} $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer/kernel-signing-ca.cer
9423bd
    %ifarch s390x ppc64le
9423bd
    if [ $DoModules -eq 1 ]; then
9423bd
	if [ -x /usr/bin/rpm-sign ]; then
9423bd
	    install -m 0644 %{secureboot_key_0} $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer/%{signing_key_filename}
9423bd
	else
9423bd
	    install -m 0644 certs/signing_key.x509.sign${Variant:++${Variant}} $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer/kernel-signing-ca.cer
9423bd
	    openssl x509 -in certs/signing_key.pem.sign${Variant:++${Variant}} -outform der -out $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer/%{signing_key_filename}
9423bd
	    chmod 0644 $RPM_BUILD_ROOT%{_datadir}/doc/kernel-keys/$KernelVer/%{signing_key_filename}
9423bd
	fi
9423bd
    fi
9423bd
    %endif
9423bd
9423bd
%if %{with_ipaclones}
9423bd
    MAXPROCS=$(echo %{?_smp_mflags} | sed -n 's/-j\s*\([0-9]\+\)/\1/p')
9423bd
    if [ -z "$MAXPROCS" ]; then
9423bd
        MAXPROCS=1
9423bd
    fi
9423bd
    if [ "$Variant" == "" ]; then
9423bd
        mkdir -p $RPM_BUILD_ROOT/$DevelDir-ipaclones
9423bd
        find . -name '*.ipa-clones' | xargs -i{} -r -n 1 -P $MAXPROCS install -m 644 -D "{}" "$RPM_BUILD_ROOT/$DevelDir-ipaclones/{}"
9423bd
    fi
9423bd
%endif
9423bd
9423bd
}
9423bd
9423bd
###
9423bd
# DO it...
9423bd
###
9423bd
9423bd
# prepare directories
9423bd
rm -rf $RPM_BUILD_ROOT
9423bd
mkdir -p $RPM_BUILD_ROOT/boot
9423bd
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
9423bd
9423bd
cd linux-%{KVERREL}
9423bd
9423bd
9423bd
%if %{with_debug}
9423bd
BuildKernel %make_target %kernel_image %{_use_vdso} debug
9423bd
%endif
9423bd
9423bd
%if %{with_zfcpdump}
9423bd
BuildKernel %make_target %kernel_image %{_use_vdso} zfcpdump
9423bd
%endif
9423bd
9423bd
%if %{with_pae}
9423bd
BuildKernel %make_target %kernel_image %{use_vdso} lpae
9423bd
%endif
9423bd
9423bd
%if %{with_up}
9423bd
BuildKernel %make_target %kernel_image %{_use_vdso}
9423bd
%endif
9423bd
9423bd
%ifnarch noarch i686
9423bd
%if !%{with_debug} && !%{with_zfcpdump} && !%{with_pae} && !%{with_up}
9423bd
# If only building the user space tools, then initialize the build environment
9423bd
# and some variables so that the various userspace tools can be built.
9423bd
InitBuildVars
9423bd
%endif
9423bd
%endif
9423bd
9423bd
%ifarch aarch64
9423bd
%global perf_build_extra_opts CORESIGHT=1
9423bd
%endif
9423bd
%global perf_make \
9423bd
  %{__make} %{?make_opts} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 LIBBPF_DYNAMIC=1 LIBTRACEEVENT_DYNAMIC=1 %{?perf_build_extra_opts} prefix=%{_prefix} PYTHON=%{__python3}
9423bd
%if %{with_perf}
9423bd
# perf
9423bd
# make sure check-headers.sh is executable
9423bd
chmod +x tools/perf/check-headers.sh
9423bd
%{perf_make} DESTDIR=$RPM_BUILD_ROOT all
9423bd
%endif
9423bd
9423bd
%global tools_make \
9423bd
  %{make} CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?make_opts}
9423bd
9423bd
%if %{with_tools}
9423bd
%ifarch %{cpupowerarchs}
9423bd
# cpupower
9423bd
# make sure version-gen.sh is executable.
9423bd
chmod +x tools/power/cpupower/utils/version-gen.sh
9423bd
%{tools_make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false DEBUG=false
9423bd
%ifarch x86_64
9423bd
    pushd tools/power/cpupower/debug/x86_64
9423bd
    %{tools_make} %{?_smp_mflags} centrino-decode powernow-k8-decode
9423bd
    popd
9423bd
%endif
9423bd
%ifarch x86_64
9423bd
   pushd tools/power/x86/x86_energy_perf_policy/
9423bd
   %{tools_make}
9423bd
   popd
9423bd
   pushd tools/power/x86/turbostat
9423bd
   %{tools_make}
9423bd
   popd
9423bd
   pushd tools/power/x86/intel-speed-select
9423bd
   %{make}
9423bd
   popd
9423bd
%endif
9423bd
%endif
9423bd
pushd tools/thermal/tmon/
9423bd
%{tools_make}
9423bd
popd
9423bd
pushd tools/iio/
9423bd
%{tools_make}
9423bd
popd
9423bd
pushd tools/gpio/
9423bd
%{tools_make}
9423bd
popd
9423bd
# build VM tools
9423bd
pushd tools/vm/
9423bd
%{tools_make} slabinfo page_owner_sort
9423bd
popd
9423bd
%endif
9423bd
9423bd
if [ -f $DevelDir/vmlinux.h ]; then
9423bd
  RPM_VMLINUX_H=$DevelDir/vmlinux.h
9423bd
fi
9423bd
9423bd
%global bpftool_make \
9423bd
  %{__make} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT %{?make_opts} VMLINUX_H="${RPM_VMLINUX_H}" V=1
9423bd
%if %{with_bpftool}
9423bd
pushd tools/bpf/bpftool
9423bd
%{bpftool_make}
9423bd
popd
9423bd
%endif
9423bd
9423bd
%if %{with_selftests}
9423bd
# Unfortunately, samples/bpf/Makefile expects that the headers are installed
9423bd
# in the source tree. We installed them previously to $RPM_BUILD_ROOT/usr
9423bd
# but there's no way to tell the Makefile to take them from there.
9423bd
%{make} %{?_smp_mflags} headers_install
9423bd
%{make} %{?_smp_mflags} ARCH=$Arch V=1 M=samples/bpf/
9423bd
9423bd
# Prevent bpf selftests to build bpftool repeatedly:
9423bd
export BPFTOOL=$(pwd)/tools/bpf/bpftool/bpftool
9423bd
9423bd
pushd tools/testing/selftests
9423bd
# We need to install here because we need to call make with ARCH set which
9423bd
# doesn't seem possible to do in the install section.
9423bd
%{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf livepatch net net/forwarding net/mptcp netfilter tc-testing" SKIP_TARGETS="" INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install
9423bd
9423bd
# 'make install' for bpf is broken and upstream refuses to fix it.
9423bd
# Install the needed files manually.
9423bd
for dir in bpf bpf/no_alu32 bpf/progs; do
9423bd
	# In ARK, the rpm build continues even if some of the selftests
9423bd
	# cannot be built. It's not always possible to build selftests,
9423bd
	# as upstream sometimes dependens on too new llvm version or has
9423bd
	# other issues. If something did not get built, just skip it.
9423bd
	test -d $dir || continue
9423bd
	mkdir -p %{buildroot}%{_libexecdir}/kselftests/$dir
9423bd
	find $dir -maxdepth 1 -type f \( -executable -o -name '*.py' -o -name settings -o \
9423bd
		-name 'btf_dump_test_case_*.c' -o \
9423bd
		-name '*.o' -exec sh -c 'readelf -h "{}" | grep -q "^  Machine:.*BPF"' \; \) -print0 | \
9423bd
	xargs -0 cp -t %{buildroot}%{_libexecdir}/kselftests/$dir || true
9423bd
done
9423bd
popd
9423bd
export -n BPFTOOL
9423bd
%endif
9423bd
9423bd
%if %{with_doc}
9423bd
# Make the HTML pages.
9423bd
%{__make} PYTHON=/usr/bin/python3 htmldocs || %{doc_build_fail}
9423bd
9423bd
# sometimes non-world-readable files sneak into the kernel source tree
9423bd
chmod -R a=rX Documentation
9423bd
find Documentation -type d | xargs chmod u+w
9423bd
%endif
9423bd
9423bd
# In the modsign case, we do 3 things.  1) We check the "variant" and hard
9423bd
# code the value in the following invocations.  This is somewhat sub-optimal
9423bd
# but we're doing this inside of an RPM macro and it isn't as easy as it
9423bd
# could be because of that.  2) We restore the .tmp_versions/ directory from
9423bd
# the one we saved off in BuildKernel above.  This is to make sure we're
9423bd
# signing the modules we actually built/installed in that variant.  3) We
9423bd
# grab the arch and invoke mod-sign.sh command to actually sign the modules.
9423bd
#
9423bd
# We have to do all of those things _after_ find-debuginfo runs, otherwise
9423bd
# that will strip the signature off of the modules.
9423bd
#
9423bd
# Don't sign modules for the zfcpdump variant as it is monolithic.
9423bd
9423bd
%define __modsign_install_post \
9423bd
  if [ "%{signmodules}" -eq "1" ]; then \
9423bd
    if [ "%{with_pae}" -ne "0" ]; then \
9423bd
       %{modsign_cmd} certs/signing_key.pem.sign+lpae certs/signing_key.x509.sign+lpae $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+lpae/ \
9423bd
    fi \
9423bd
    if [ "%{with_debug}" -ne "0" ]; then \
9423bd
      %{modsign_cmd} certs/signing_key.pem.sign+debug certs/signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
9423bd
    fi \
9423bd
    if [ "%{with_up}" -ne "0" ]; then \
9423bd
      %{modsign_cmd} certs/signing_key.pem.sign certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
9423bd
    fi \
9423bd
  fi \
9423bd
  if [ "%{zipmodules}" -eq "1" ]; then \
9423bd
    find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P%{zcpu} xz; \
9423bd
  fi \
9423bd
%{nil}
9423bd
9423bd
###
9423bd
### Special hacks for debuginfo subpackages.
9423bd
###
9423bd
9423bd
# This macro is used by %%install, so we must redefine it before that.
9423bd
%define debug_package %{nil}
9423bd
9423bd
%if %{with_debuginfo}
9423bd
9423bd
%ifnarch noarch
9423bd
%global __debug_package 1
9423bd
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
9423bd
%endif
9423bd
9423bd
%endif
9423bd
9423bd
# We don't want to package debuginfo for self-tests and samples but
9423bd
# we have to delete them to avoid an error messages about unpackaged
9423bd
# files.
9423bd
# Delete the debuginfo for kernel-devel files
9423bd
%define __remove_unwanted_dbginfo_install_post \
9423bd
  if [ "%{with_selftests}" -ne "0" ]; then \
9423bd
    rm -rf $RPM_BUILD_ROOT/usr/lib/debug/usr/libexec/ksamples; \
9423bd
    rm -rf $RPM_BUILD_ROOT/usr/lib/debug/usr/libexec/kselftests; \
9423bd
  fi \
9423bd
  rm -rf $RPM_BUILD_ROOT/usr/lib/debug/usr/src; \
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# Disgusting hack alert! We need to ensure we sign modules *after* all
9423bd
# invocations of strip occur, which is in __debug_install_post if
9423bd
# find-debuginfo.sh runs, and __os_install_post if not.
9423bd
#
9423bd
%define __spec_install_post \
9423bd
  %{?__debug_package:%{__debug_install_post}}\
9423bd
  %{__arch_install_post}\
9423bd
  %{__os_install_post}\
9423bd
  %{__remove_unwanted_dbginfo_install_post}\
9423bd
  %{__modsign_install_post}
9423bd
9423bd
###
9423bd
### install
9423bd
###
9423bd
9423bd
%install
9423bd
9423bd
cd linux-%{KVERREL}
9423bd
9423bd
%if %{with_doc}
9423bd
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}-%{pkgrelease}
9423bd
9423bd
# copy the source over
9423bd
mkdir -p $docdir
9423bd
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
9423bd
9423bd
# with_doc
9423bd
%endif
9423bd
9423bd
# We have to do the headers install before the tools install because the
9423bd
# kernel headers_install will remove any header files in /usr/include that
9423bd
# it doesn't install itself.
9423bd
9423bd
%if %{with_headers}
9423bd
# Install kernel headers
9423bd
%{__make} ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
9423bd
9423bd
find $RPM_BUILD_ROOT/usr/include \
9423bd
     \( -name .install -o -name .check -o \
9423bd
        -name ..install.cmd -o -name ..check.cmd \) -delete
9423bd
9423bd
%endif
9423bd
9423bd
%if %{with_cross_headers}
9423bd
%if 0%{?fedora}
9423bd
HDR_ARCH_LIST='arm arm64 powerpc s390 x86'
9423bd
%else
9423bd
HDR_ARCH_LIST='arm64 powerpc s390 x86'
9423bd
%endif
9423bd
mkdir -p $RPM_BUILD_ROOT/usr/tmp-headers
9423bd
9423bd
for arch in $HDR_ARCH_LIST; do
9423bd
	mkdir $RPM_BUILD_ROOT/usr/tmp-headers/arch-${arch}
9423bd
	%{__make} ARCH=${arch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr/tmp-headers/arch-${arch} headers_install
9423bd
done
9423bd
9423bd
find $RPM_BUILD_ROOT/usr/tmp-headers \
9423bd
     \( -name .install -o -name .check -o \
9423bd
        -name ..install.cmd -o -name ..check.cmd \) -delete
9423bd
9423bd
# Copy all the architectures we care about to their respective asm directories
9423bd
for arch in $HDR_ARCH_LIST ; do
9423bd
	mkdir -p $RPM_BUILD_ROOT/usr/${arch}-linux-gnu/include
9423bd
	mv $RPM_BUILD_ROOT/usr/tmp-headers/arch-${arch}/include/* $RPM_BUILD_ROOT/usr/${arch}-linux-gnu/include/
9423bd
done
9423bd
9423bd
rm -rf $RPM_BUILD_ROOT/usr/tmp-headers
9423bd
%endif
9423bd
9423bd
%if %{with_kernel_abi_stablelists}
9423bd
# kabi directory
9423bd
INSTALL_KABI_PATH=$RPM_BUILD_ROOT/lib/modules/
9423bd
mkdir -p $INSTALL_KABI_PATH
9423bd
9423bd
# install kabi releases directories
9423bd
tar xjvf %{SOURCE300} -C $INSTALL_KABI_PATH
9423bd
# with_kernel_abi_stablelists
9423bd
%endif
9423bd
9423bd
%if %{with_perf}
9423bd
# perf tool binary and supporting scripts/binaries
9423bd
%{perf_make} DESTDIR=$RPM_BUILD_ROOT lib=%{_lib} install-bin
9423bd
# remove the 'trace' symlink.
9423bd
rm -f %{buildroot}%{_bindir}/trace
9423bd
9423bd
# For both of the below, yes, this should be using a macro but right now
9423bd
# it's hard coded and we don't actually want it anyway right now.
9423bd
# Whoever wants examples can fix it up!
9423bd
9423bd
# remove examples
9423bd
rm -rf %{buildroot}/usr/lib/perf/examples
9423bd
rm -rf %{buildroot}/usr/lib/perf/include
9423bd
9423bd
# python-perf extension
9423bd
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
9423bd
9423bd
# perf man pages (note: implicit rpm magic compresses them later)
9423bd
mkdir -p %{buildroot}/%{_mandir}/man1
9423bd
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man
9423bd
9423bd
# remove any tracevent files, eg. its plugins still gets built and installed,
9423bd
# even if we build against system's libtracevent during perf build (by setting
9423bd
# LIBTRACEEVENT_DYNAMIC=1 above in perf_make macro). Those files should already
9423bd
# ship with libtraceevent package.
9423bd
rm -rf %{buildroot}%{_libdir}/traceevent
9423bd
%endif
9423bd
9423bd
%if %{with_tools}
9423bd
%ifarch %{cpupowerarchs}
9423bd
%{make} -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
9423bd
rm -f %{buildroot}%{_libdir}/*.{a,la}
9423bd
%find_lang cpupower
9423bd
mv cpupower.lang ../
9423bd
%ifarch x86_64
9423bd
    pushd tools/power/cpupower/debug/x86_64
9423bd
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
9423bd
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
9423bd
    popd
9423bd
%endif
9423bd
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
9423bd
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
9423bd
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
9423bd
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
9423bd
%endif
9423bd
%ifarch x86_64
9423bd
   mkdir -p %{buildroot}%{_mandir}/man8
9423bd
   pushd tools/power/x86/x86_energy_perf_policy
9423bd
   %{tools_make} DESTDIR=%{buildroot} install
9423bd
   popd
9423bd
   pushd tools/power/x86/turbostat
9423bd
   %{tools_make} DESTDIR=%{buildroot} install
9423bd
   popd
9423bd
   pushd tools/power/x86/intel-speed-select
9423bd
   %{tools_make} CFLAGS+="-D_GNU_SOURCE -Iinclude" DESTDIR=%{buildroot} install
9423bd
   popd
9423bd
%endif
9423bd
pushd tools/thermal/tmon
9423bd
%{tools_make} INSTALL_ROOT=%{buildroot} install
9423bd
popd
9423bd
pushd tools/iio
9423bd
%{tools_make} DESTDIR=%{buildroot} install
9423bd
popd
9423bd
pushd tools/gpio
9423bd
%{tools_make} DESTDIR=%{buildroot} install
9423bd
popd
9423bd
install -m644 -D %{SOURCE2002} %{buildroot}%{_sysconfdir}/logrotate.d/kvm_stat
9423bd
pushd tools/kvm/kvm_stat
9423bd
%{__make} INSTALL_ROOT=%{buildroot} install-tools
9423bd
%{__make} INSTALL_ROOT=%{buildroot} install-man
9423bd
install -m644 -D kvm_stat.service %{buildroot}%{_unitdir}/kvm_stat.service
9423bd
popd
9423bd
# install VM tools
9423bd
pushd tools/vm/
9423bd
install -m755 slabinfo %{buildroot}%{_bindir}/slabinfo
9423bd
install -m755 page_owner_sort %{buildroot}%{_bindir}/page_owner_sort
9423bd
popd
9423bd
%endif
9423bd
9423bd
if [ -f $DevelDir/vmlinux.h ]; then
9423bd
  RPM_VMLINUX_H=$DevelDir/vmlinux.h
9423bd
fi
9423bd
9423bd
%if %{with_bpftool}
9423bd
pushd tools/bpf/bpftool
9423bd
%{bpftool_make} prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install doc-install
9423bd
popd
9423bd
%endif
9423bd
9423bd
%if %{with_selftests}
9423bd
pushd samples
9423bd
install -d %{buildroot}%{_libexecdir}/ksamples
9423bd
# install bpf samples
9423bd
pushd bpf
9423bd
install -d %{buildroot}%{_libexecdir}/ksamples/bpf
9423bd
find -type f -executable -exec install -m755 {} %{buildroot}%{_libexecdir}/ksamples/bpf \;
9423bd
install -m755 *.sh %{buildroot}%{_libexecdir}/ksamples/bpf
9423bd
# test_lwt_bpf.sh compiles test_lwt_bpf.c when run; this works only from the
9423bd
# kernel tree. Just remove it.
9423bd
rm %{buildroot}%{_libexecdir}/ksamples/bpf/test_lwt_bpf.sh
9423bd
install -m644 *_kern.o %{buildroot}%{_libexecdir}/ksamples/bpf || true
9423bd
install -m644 tcp_bpf.readme %{buildroot}%{_libexecdir}/ksamples/bpf
9423bd
popd
9423bd
# install pktgen samples
9423bd
pushd pktgen
9423bd
install -d %{buildroot}%{_libexecdir}/ksamples/pktgen
9423bd
find . -type f -executable -exec install -m755 {} %{buildroot}%{_libexecdir}/ksamples/pktgen/{} \;
9423bd
find . -type f ! -executable -exec install -m644 {} %{buildroot}%{_libexecdir}/ksamples/pktgen/{} \;
9423bd
popd
9423bd
popd
9423bd
# install drivers/net/mlxsw selftests
9423bd
pushd tools/testing/selftests/drivers/net/mlxsw
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/mlxsw/{} \;
9423bd
popd
9423bd
# install drivers/net/netdevsim selftests
9423bd
pushd tools/testing/selftests/drivers/net/netdevsim
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/drivers/net/netdevsim/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/netdevsim/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/drivers/net/netdevsim/{} \;
9423bd
popd
9423bd
# install net/forwarding selftests
9423bd
pushd tools/testing/selftests/net/forwarding
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/forwarding/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/forwarding/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/forwarding/{} \;
9423bd
popd
9423bd
# install net/mptcp selftests
9423bd
pushd tools/testing/selftests/net/mptcp
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/mptcp/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/net/mptcp/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/net/mptcp/{} \;
9423bd
popd
9423bd
# install tc-testing selftests
9423bd
pushd tools/testing/selftests/tc-testing
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/tc-testing/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/tc-testing/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/tc-testing/{} \;
9423bd
popd
9423bd
# install livepatch selftests
9423bd
pushd tools/testing/selftests/livepatch
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \;
9423bd
popd
9423bd
# install netfilter selftests
9423bd
pushd tools/testing/selftests/netfilter
9423bd
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/netfilter/{} \;
9423bd
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/netfilter/{} \;
9423bd
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/netfilter/{} \;
9423bd
popd
9423bd
%endif
9423bd
9423bd
###
9423bd
### clean
9423bd
###
9423bd
9423bd
###
9423bd
### scripts
9423bd
###
9423bd
9423bd
%if %{with_tools}
9423bd
%post -n kernel-tools-libs
9423bd
/sbin/ldconfig
9423bd
9423bd
%postun -n kernel-tools-libs
9423bd
/sbin/ldconfig
9423bd
%endif
9423bd
9423bd
#
9423bd
# This macro defines a %%post script for a kernel*-devel package.
9423bd
#	%%kernel_devel_post [<subpackage>]
9423bd
# Note we don't run hardlink if ostree is in use, as ostree is
9423bd
# a far more sophisticated hardlink implementation.
9423bd
# https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526
9423bd
#
9423bd
%define kernel_devel_post() \
9423bd
%{expand:%%post %{?1:%{1}-}devel}\
9423bd
if [ -f /etc/sysconfig/kernel ]\
9423bd
then\
9423bd
    . /etc/sysconfig/kernel || exit $?\
9423bd
fi\
9423bd
if [ "$HARDLINK" != "no" -a -x /usr/bin/hardlink -a ! -e /run/ostree-booted ] \
9423bd
then\
9423bd
    (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
9423bd
     /usr/bin/find . -type f | while read f; do\
9423bd
       hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\
9423bd
     done)\
9423bd
fi\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro defines a %%post script for a kernel*-modules-extra package.
9423bd
# It also defines a %%postun script that does the same thing.
9423bd
#	%%kernel_modules_extra_post [<subpackage>]
9423bd
#
9423bd
%define kernel_modules_extra_post() \
9423bd
%{expand:%%post %{?1:%{1}-}modules-extra}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}\
9423bd
%{expand:%%postun %{?1:%{1}-}modules-extra}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro defines a %%post script for a kernel*-modules-internal package.
9423bd
# It also defines a %%postun script that does the same thing.
9423bd
#	%%kernel_modules_internal_post [<subpackage>]
9423bd
#
9423bd
%define kernel_modules_internal_post() \
9423bd
%{expand:%%post %{?1:%{1}-}modules-internal}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}\
9423bd
%{expand:%%postun %{?1:%{1}-}modules-internal}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro defines a %%post script for a kernel*-modules package.
9423bd
# It also defines a %%postun script that does the same thing.
9423bd
#	%%kernel_modules_post [<subpackage>]
9423bd
#
9423bd
%define kernel_modules_post() \
9423bd
%{expand:%%post %{?1:%{1}-}modules}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}\
9423bd
%{expand:%%postun %{?1:%{1}-}modules}\
9423bd
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
9423bd
%{nil}
9423bd
9423bd
# This macro defines a %%posttrans script for a kernel package.
9423bd
#	%%kernel_variant_posttrans [<subpackage>]
9423bd
# More text can follow to go at the end of this variant's %%post.
9423bd
#
9423bd
%define kernel_variant_posttrans() \
9423bd
%{expand:%%posttrans %{?1:%{1}-}core}\
9423bd
%if 0%{!?fedora:1}\
9423bd
if [ -x %{_sbindir}/weak-modules ]\
9423bd
then\
9423bd
    %{_sbindir}/weak-modules --add-kernel %{KVERREL}%{?1:+%{1}} || exit $?\
9423bd
fi\
9423bd
%endif\
9423bd
/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $?\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro defines a %%post script for a kernel package and its devel package.
9423bd
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
9423bd
# More text can follow to go at the end of this variant's %%post.
9423bd
#
9423bd
%define kernel_variant_post(v:r:) \
9423bd
%{expand:%%kernel_devel_post %{?-v*}}\
9423bd
%{expand:%%kernel_modules_post %{?-v*}}\
9423bd
%{expand:%%kernel_modules_extra_post %{?-v*}}\
9423bd
%{expand:%%kernel_modules_internal_post %{?-v*}}\
9423bd
%{expand:%%kernel_variant_posttrans %{?-v*}}\
9423bd
%{expand:%%post %{?-v*:%{-v*}-}core}\
9423bd
%{-r:\
9423bd
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
9423bd
   [ -f /etc/sysconfig/kernel ]; then\
9423bd
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
9423bd
fi}\
9423bd
%{nil}
9423bd
9423bd
#
9423bd
# This macro defines a %%preun script for a kernel package.
9423bd
#	%%kernel_variant_preun <subpackage>
9423bd
#
9423bd
%define kernel_variant_preun() \
9423bd
%{expand:%%preun %{?1:%{1}-}core}\
9423bd
/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /lib/modules/%{KVERREL}%{?1:+%{1}}/vmlinuz || exit $?\
9423bd
if [ -x %{_sbindir}/weak-modules ]\
9423bd
then\
9423bd
    %{_sbindir}/weak-modules --remove-kernel %{KVERREL}%{?1:+%{1}} || exit $?\
9423bd
fi\
9423bd
%{nil}
9423bd
9423bd
%kernel_variant_preun
9423bd
%kernel_variant_post -r kernel-smp
9423bd
9423bd
%if %{with_pae}
9423bd
%kernel_variant_preun lpae
9423bd
%kernel_variant_post -v lpae -r (kernel|kernel-smp)
9423bd
%endif
9423bd
9423bd
%if %{with_debug}
9423bd
%kernel_variant_preun debug
9423bd
%kernel_variant_post -v debug
9423bd
%endif
9423bd
9423bd
%if %{with_zfcpdump}
9423bd
%kernel_variant_preun zfcpdump
9423bd
%kernel_variant_post -v zfcpdump
9423bd
%endif
9423bd
9423bd
if [ -x /sbin/ldconfig ]
9423bd
then
9423bd
    /sbin/ldconfig -X || exit $?
9423bd
fi
9423bd
9423bd
###
9423bd
### file lists
9423bd
###
9423bd
9423bd
%if %{with_headers}
9423bd
%files headers
9423bd
/usr/include/*
9423bd
%endif
9423bd
9423bd
%if %{with_cross_headers}
9423bd
%files cross-headers
9423bd
/usr/*-linux-gnu/include/*
9423bd
%endif
9423bd
9423bd
%if %{with_kernel_abi_stablelists}
9423bd
%files -n kernel-abi-stablelists
9423bd
/lib/modules/kabi-*
9423bd
%endif
9423bd
9423bd
%if %{with_kabidw_base}
9423bd
%ifarch x86_64 s390x ppc64 ppc64le aarch64
9423bd
%files kernel-kabidw-base-internal
9423bd
%defattr(-,root,root)
9423bd
/kabidw-base/%{_target_cpu}/*
9423bd
%endif
9423bd
%endif
9423bd
9423bd
# only some architecture builds need kernel-doc
9423bd
%if %{with_doc}
9423bd
%files doc
9423bd
%defattr(-,root,root)
9423bd
%{_datadir}/doc/kernel-doc-%{rpmversion}-%{pkgrelease}/Documentation/*
9423bd
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}-%{pkgrelease}/Documentation
9423bd
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}-%{pkgrelease}
9423bd
%endif
9423bd
9423bd
%if %{with_perf}
9423bd
%files -n perf
9423bd
%{_bindir}/perf
9423bd
%{_libdir}/libperf-jvmti.so
9423bd
%dir %{_libexecdir}/perf-core
9423bd
%{_libexecdir}/perf-core/*
9423bd
%{_datadir}/perf-core/*
9423bd
%{_mandir}/man[1-8]/perf*
9423bd
%{_sysconfdir}/bash_completion.d/perf
9423bd
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
9423bd
%{_docdir}/perf-tip/tips.txt
9423bd
9423bd
%files -n python3-perf
9423bd
%{python3_sitearch}/*
9423bd
9423bd
%if %{with_debuginfo}
9423bd
%files -f perf-debuginfo.list -n perf-debuginfo
9423bd
9423bd
%files -f python3-perf-debuginfo.list -n python3-perf-debuginfo
9423bd
%endif
9423bd
# with_perf
9423bd
%endif
9423bd
9423bd
%if %{with_tools}
9423bd
%ifnarch %{cpupowerarchs}
9423bd
%files -n kernel-tools
9423bd
%else
9423bd
%files -n kernel-tools -f cpupower.lang
9423bd
%{_bindir}/cpupower
9423bd
%{_datadir}/bash-completion/completions/cpupower
9423bd
%ifarch x86_64
9423bd
%{_bindir}/centrino-decode
9423bd
%{_bindir}/powernow-k8-decode
9423bd
%endif
9423bd
%{_unitdir}/cpupower.service
9423bd
%{_mandir}/man[1-8]/cpupower*
9423bd
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
9423bd
%ifarch x86_64
9423bd
%{_bindir}/x86_energy_perf_policy
9423bd
%{_mandir}/man8/x86_energy_perf_policy*
9423bd
%{_bindir}/turbostat
9423bd
%{_mandir}/man8/turbostat*
9423bd
%{_bindir}/intel-speed-select
9423bd
%endif
9423bd
# cpupowerarchs
9423bd
%endif
9423bd
%{_bindir}/tmon
9423bd
%{_bindir}/iio_event_monitor
9423bd
%{_bindir}/iio_generic_buffer
9423bd
%{_bindir}/lsiio
9423bd
%{_bindir}/lsgpio
9423bd
%{_bindir}/gpio-hammer
9423bd
%{_bindir}/gpio-event-mon
9423bd
%{_bindir}/gpio-watch
9423bd
%{_mandir}/man1/kvm_stat*
9423bd
%{_bindir}/kvm_stat
9423bd
%{_unitdir}/kvm_stat.service
9423bd
%config(noreplace) %{_sysconfdir}/logrotate.d/kvm_stat
9423bd
%{_bindir}/page_owner_sort
9423bd
%{_bindir}/slabinfo
9423bd
9423bd
%if %{with_debuginfo}
9423bd
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
9423bd
%endif
9423bd
9423bd
%ifarch %{cpupowerarchs}
9423bd
%files -n kernel-tools-libs
9423bd
%{_libdir}/libcpupower.so.0
9423bd
%{_libdir}/libcpupower.so.0.0.1
9423bd
9423bd
%files -n kernel-tools-libs-devel
9423bd
%{_libdir}/libcpupower.so
9423bd
%{_includedir}/cpufreq.h
9423bd
%endif
9423bd
# with_tools
9423bd
%endif
9423bd
9423bd
%if %{with_bpftool}
9423bd
%files -n bpftool
9423bd
%{_sbindir}/bpftool
9423bd
%{_sysconfdir}/bash_completion.d/bpftool
9423bd
%{_mandir}/man8/bpftool-cgroup.8.gz
9423bd
%{_mandir}/man8/bpftool-gen.8.gz
9423bd
%{_mandir}/man8/bpftool-iter.8.gz
9423bd
%{_mandir}/man8/bpftool-link.8.gz
9423bd
%{_mandir}/man8/bpftool-map.8.gz
9423bd
%{_mandir}/man8/bpftool-prog.8.gz
9423bd
%{_mandir}/man8/bpftool-perf.8.gz
9423bd
%{_mandir}/man8/bpftool.8.gz
9423bd
%{_mandir}/man8/bpftool-net.8.gz
9423bd
%{_mandir}/man8/bpftool-feature.8.gz
9423bd
%{_mandir}/man8/bpftool-btf.8.gz
9423bd
%{_mandir}/man8/bpftool-struct_ops.8.gz
9423bd
9423bd
%if %{with_debuginfo}
9423bd
%files -f bpftool-debuginfo.list -n bpftool-debuginfo
9423bd
%defattr(-,root,root)
9423bd
%endif
9423bd
%endif
9423bd
9423bd
%if %{with_selftests}
9423bd
%files selftests-internal
9423bd
%{_libexecdir}/ksamples
9423bd
%{_libexecdir}/kselftests
9423bd
%endif
9423bd
9423bd
# empty meta-package
9423bd
%ifnarch %nobuildarches noarch
9423bd
%files
9423bd
%endif
9423bd
9423bd
%if %{with_gcov}
9423bd
%ifarch x86_64 s390x ppc64le aarch64
9423bd
%files gcov
9423bd
%{_builddir}
9423bd
%endif
9423bd
%endif
9423bd
9423bd
# This is %%{image_install_path} on an arch where that includes ELF files,
9423bd
# or empty otherwise.
9423bd
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
9423bd
9423bd
#
9423bd
# This macro defines the %%files sections for a kernel package
9423bd
# and its devel and debuginfo packages.
9423bd
#	%%kernel_variant_files [-k vmlinux] <use_vdso> <condition> <subpackage>
9423bd
#
9423bd
%define kernel_variant_files(k:) \
9423bd
%if %{2}\
9423bd
%{expand:%%files -f kernel-%{?3:%{3}-}core.list %{?1:-f kernel-%{?3:%{3}-}ldsoconf.list} %{?3:%{3}-}core}\
9423bd
%{!?_licensedir:%global license %%doc}\
9423bd
%license linux-%{KVERREL}/COPYING-%{version}-%{release}\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/%{?-k:%{-k*}}%{!?-k:vmlinuz}\
9423bd
%ghost /%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?3:+%{3}}\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/.vmlinuz.hmac \
9423bd
%ghost /%{image_install_path}/.vmlinuz-%{KVERREL}%{?3:+%{3}}.hmac \
9423bd
%ifarch %{arm} aarch64\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/dtb \
9423bd
%ghost /%{image_install_path}/dtb-%{KVERREL}%{?3:+%{3}} \
9423bd
%endif\
9423bd
%attr(0600, root, root) /lib/modules/%{KVERREL}%{?3:+%{3}}/System.map\
9423bd
%ghost %attr(0600, root, root) /boot/System.map-%{KVERREL}%{?3:+%{3}}\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/symvers.gz\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/config\
9423bd
%ghost %attr(0600, root, root) /boot/symvers-%{KVERREL}%{?3:+%{3}}.gz\
9423bd
%ghost %attr(0600, root, root) /boot/initramfs-%{KVERREL}%{?3:+%{3}}.img\
9423bd
%ghost %attr(0644, root, root) /boot/config-%{KVERREL}%{?3:+%{3}}\
9423bd
%dir /lib/modules\
9423bd
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}\
9423bd
%dir /lib/modules/%{KVERREL}%{?3:+%{3}}/kernel\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/build\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/source\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/updates\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/weak-updates\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/crashkernel.default\
9423bd
%{_datadir}/doc/kernel-keys/%{KVERREL}%{?3:+%{3}}\
9423bd
%if %{1}\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/vdso\
9423bd
%endif\
9423bd
/lib/modules/%{KVERREL}%{?3:+%{3}}/modules.*\
9423bd
%{expand:%%files -f kernel-%{?3:%{3}-}modules.list %{?3:%{3}-}modules}\
9423bd
%{expand:%%files %{?3:%{3}-}devel}\
9423bd
%defverify(not mtime)\
9423bd
/usr/src/kernels/%{KVERREL}%{?3:+%{3}}\
9423bd
%{expand:%%files %{?3:%{3}-}devel-matched}\
9423bd
%{expand:%%files -f kernel-%{?3:%{3}-}modules-extra.list %{?3:%{3}-}modules-extra}\
9423bd
%config(noreplace) /etc/modprobe.d/*-blacklist.conf\
9423bd
%{expand:%%files -f kernel-%{?3:%{3}-}modules-internal.list %{?3:%{3}-}modules-internal}\
9423bd
%if %{with_debuginfo}\
9423bd
%ifnarch noarch\
9423bd
%{expand:%%files -f debuginfo%{?3}.list %{?3:%{3}-}debuginfo}\
9423bd
%endif\
9423bd
%endif\
9423bd
%if %{?3:1} %{!?3:0}\
9423bd
%{expand:%%files %{3}}\
9423bd
%endif\
9423bd
%endif\
9423bd
%{nil}
9423bd
9423bd
%kernel_variant_files %{_use_vdso} %{with_up}
9423bd
%kernel_variant_files %{_use_vdso} %{with_debug} debug
9423bd
%if %{with_debug_meta}
9423bd
%files debug
9423bd
%files debug-core
9423bd
%files debug-devel
9423bd
%files debug-devel-matched
9423bd
%files debug-modules
9423bd
%files debug-modules-extra
9423bd
%endif
9423bd
%kernel_variant_files %{use_vdso} %{with_pae} lpae
9423bd
%kernel_variant_files %{_use_vdso} %{with_zfcpdump} zfcpdump
9423bd
9423bd
%define kernel_variant_ipaclones(k:) \
9423bd
%if %{1}\
9423bd
%if %{with_ipaclones}\
9423bd
%{expand:%%files %{?2:%{2}-}ipaclones-internal}\
9423bd
%defattr(-,root,root)\
9423bd
%defverify(not mtime)\
9423bd
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}-ipaclones\
9423bd
%endif\
9423bd
%endif\
9423bd
%{nil}
9423bd
9423bd
%kernel_variant_ipaclones %{with_up}
9423bd
9423bd
# plz don't put in a version string unless you're going to tag
9423bd
# and build.
9423bd
#
9423bd
#
9423bd
%changelog
9423bd
* Mon Oct 25 2021 Jan Stancek <jstancek@redhat.com> [5.14.0-1.7.1.el9]
9423bd
- Revert "clocksource: Retry clock read if long delays detected" (Waiman Long) [2013286]
9423bd
- Revert "clocksource: Check per-CPU clock synchronization when marked unstable" (Waiman Long) [2013286]
9423bd
- Revert "clocksource: Limit number of CPUs checked for clock synchronization" (Waiman Long) [2013286]
9423bd
- Revert "clocksource: Reduce clocksource-skew threshold" (Waiman Long) [2013286]
9423bd
- Revert "clocksource: Provide kernel module to test clocksource watchdog" (Waiman Long) [2013286]
9423bd
- Revert "clocksource: Print deviation in nanoseconds when a clocksource becomes unstable" (Waiman Long) [2013286]
9423bd
9423bd
* Mon Oct 04 2021 Jan Stancek <jstancek@redhat.com> [5.14.0-1.6.1.el9]
9423bd
- Revert "redhat: define _rhel variable because pesign macro now needs it" (Jan Stancek)
9423bd
- redhat: switch secureboot kernel image signing to release keys (Jan Stancek)
9423bd
- redhat/configs: Disable FIREWIRE (Prarit Bhargava) [1871862]
9423bd
- Enable e1000 in rhel9 as unsupported (Ken Cox) [2002344]
9423bd
9423bd
* Wed Sep 29 2021 Jan Stancek <jstancek@redhat.com> [5.14.0-1.5.1.el9]
9423bd
- fs: dlm: fix return -EINTR on recovery stopped (Alexander Aring) [2004213]
9423bd
- redhat/configs: Update configs for secure IPL (Claudio Imbrenda) [1976884]
9423bd
- redhat: replace redhatsecureboot303 signing key with redhatsecureboot601 (Jan Stancek) [2002499]
9423bd
- redhat: define _rhel variable because pesign macro now needs it (Jan Stancek) [2002499]
9423bd
- redhat: drop certificates that were deprecated after GRUB's BootHole flaw (Jan Stancek) [1994849]
9423bd
- redhat: correct file name of redhatsecurebootca1 (Jan Stancek) [2002499]
9423bd
- redhat: align file names with names of signing keys for ppc and s390 (Jan Stancek) [2002499]
9423bd
9423bd
* Mon Sep 27 2021 Jan Stancek <jstancek@redhat.com> [5.14.0-1.4.1.el9]
9423bd
- redhat: restore sublevel in changelog (Jan Stancek)
9423bd
- fs: dlm: avoid comms shutdown delay in release_lockspace (Alexander Aring) [1994749]
9423bd
- redhat/configs: Enable CONFIG_BLK_CGROUP_IOLATENCY & CONFIG_BLK_CGROUP_FC_APPID (Waiman Long) [1996675]
9423bd
9423bd
* Wed Sep 22 2021 Jan Stancek <jstancek@redhat.com> [5.14.0-1.3.1.el9]
9423bd
- redhat/configs: remove conflicting SYSTEM_BLACKLIST_KEYRING (Bruno Meneguele) [2002350]
9423bd
- Enable "inter server to server" NFSv4.2 COPY (Steve Dickson) [1487367]
9423bd
9423bd
* Fri Sep 17 2021 Jan Stancek <jstancek@redhat.com> [5.14-1.2.1.el9]
9423bd
- redhat/configs: Disable CONFIG_DRM_VMWGFX on aarch64 (Michel Dänzer) [1996993]
9423bd
- redhat: set USE_DIST_IN_SOURCE=1 for 9.0-beta (Jan Stancek)
9423bd
- redhat: add option to use DIST tag in sources (Jan Stancek)
9423bd
- CI: Enable notification messages for RHEL9 (Veronika Kabatova)
9423bd
- CI: Enable private pipelines for RT branches (Veronika Kabatova)
9423bd
- CI: Remove ARK leftovers (Veronika Kabatova)
9423bd
- redhat: add *-matched meta packages to rpminspect emptyrpm config (Herton R. Krzesinski)
9423bd
- gfs2: Don't call dlm after protocol is unmounted (Bob Peterson) [1988451]
9423bd
- gfs2: don't stop reads while withdraw in progress (Bob Peterson) [1988451]
9423bd
- gfs2: Mark journal inodes as "don't cache" (Bob Peterson) [1988451]
9423bd
- cgroup/cpuset: Avoid memory migration when nodemasks match (Waiman Long) [1980430]
9423bd
- cgroup/cpuset: Enable memory migration for cpuset v2 (Waiman Long) [1980430]
9423bd
- iscsi_ibft: Fix isa_bus_to_virt not working under ARM (Maurizio Lombardi) [1963801]
9423bd
- x86/setup: Explicitly include acpi.h (Maurizio Lombardi) [1963801]
9423bd
- iscsi_ibft: fix warning in reserve_ibft_region() (Maurizio Lombardi) [1963801]
9423bd
- iscsi_ibft: fix crash due to KASLR physical memory remapping (Maurizio Lombardi) [1963801]
9423bd
9423bd
* Tue Sep 14 2021 Jan Stancek <jstancek@redhat.com> [5.14-1.1.1]
9423bd
- md/raid10: Remove unnecessary rcu_dereference in raid10_handle_discard (Nigel Croxon) [1965294]
9423bd
- rcu: Avoid unneeded function call in rcu_read_unlock() (Waiman Long) [1998549]
9423bd
- Enable bridge jobs for scratch pipelines (Michael Hofmann)
9423bd
- CI: use 9.0-beta-rt branch for -rt pipeline (Jan Stancek)
9423bd
9423bd
* Mon Aug 30 2021 Herton R. Krzesinski <herton@redhat.com> [5.14-1]
9423bd
- redhat: drop Patchlist.changelog for RHEL (Jan Stancek) [1997494]
9423bd
- redhat: update Makefile.variables for centos/rhel9 fork (Herton R. Krzesinski)
9423bd
- redhat: add support for stream profile in koji/brew (Herton R. Krzesinski)
9423bd
- redhat: make DIST default to .el9 (Herton R. Krzesinski)
9423bd
- redhat: set default values in Makefiles for RHEL 9 Beta (Jan Stancek) [1997494]
9423bd
- arm64: use common CONFIG_MAX_ZONEORDER for arm kernel (Mark Salter)
9423bd
- Create Makefile.variables for a single point of configuration change (Justin M. Forbes)
9423bd
- rpmspec: drop traceevent files instead of just excluding them from files list (Herton R. Krzesinski) [1967640]
9423bd
- redhat/config: Enablement of CONFIG_PAPR_SCM for PowerPC (Gustavo Walbon) [1962936]
9423bd
- Attempt to fix Intel PMT code (David Arcari)
9423bd
- CI: Enable realtime branch testing (Veronika Kabatova)
9423bd
- CI: Enable realtime checks for c9s and RHEL9 (Veronika Kabatova)
9423bd
- [fs] dax: mark tech preview (Bill O'Donnell)
9423bd
- ark: wireless: enable all rtw88 pcie wirless variants (Peter Robinson)
9423bd
- wireless: rtw88: move debug options to common/debug (Peter Robinson)
9423bd
- fedora: minor PTP clock driver cleanups (Peter Robinson)
9423bd
- common: x86: enable VMware PTP support on ark (Peter Robinson)
9423bd
- arm64: dts: rockchip: Disable CDN DP on Pinebook Pro (Matthias Brugger)
9423bd
- arm64: dts: rockchip: Setup USB typec port as datarole on (Dan Johansen)
9423bd
- [scsi] megaraid_sas: re-add certain pci-ids (Tomas Henzl)
9423bd
- xfs: drop experimental warnings for bigtime and inobtcount (Bill O'Donnell) [1995321]
9423bd
- Disable liquidio driver on ark/rhel (Herton R. Krzesinski) [1993393]
9423bd
- More Fedora config updates (Justin M. Forbes)
9423bd
- Fedora config updates for 5.14 (Justin M. Forbes)
9423bd
- CI: Rename ARK CI pipeline type (Veronika Kabatova)
9423bd
- CI: Finish up c9s config (Veronika Kabatova)
9423bd
- CI: Update ppc64le config (Veronika Kabatova)
9423bd
- CI: use more templates (Veronika Kabatova)
9423bd
- Filter updates for aarch64 (Justin M. Forbes)
9423bd
- increase CONFIG_NODES_SHIFT for aarch64 (Chris von Recklinghausen) [1890304]
9423bd
- redhat: configs: Enable CONFIG_WIRELESS_HOTKEY (Hans de Goede)
9423bd
- redhat/configs: Update CONFIG_NVRAM (Desnes A. Nunes do Rosario) [1988254]
9423bd
- common: serial: build in SERIAL_8250_LPSS for x86 (Peter Robinson)
9423bd
- powerpc: enable CONFIG_FUNCTION_PROFILER (Diego Domingos) [1831065]
9423bd
- crypto: rng - Override drivers/char/random in FIPS mode (Herbert Xu)
9423bd
- random: Add hook to override device reads and getrandom(2) (Herbert Xu)
9423bd
- redhat/configs: Disable Soft-RoCE driver (Kamal Heib)
9423bd
- redhat/configs/evaluate_configs: Update help output (Prarit Bhargava)
9423bd
- redhat/configs: Double MAX_LOCKDEP_CHAINS (Justin M. Forbes)
9423bd
- fedora: configs: Fix WM5102 Kconfig (Hans de Goede)
9423bd
- powerpc: enable CONFIG_POWER9_CPU (Diego Domingos) [1876436]
9423bd
- redhat/configs: Fix CONFIG_VIRTIO_IOMMU to 'y' on aarch64 (Eric Auger) [1972795]
9423bd
- filter-modules.sh: add more sound modules to filter (Jaroslav Kysela)
9423bd
- redhat/configs: sound configuration cleanups and updates (Jaroslav Kysela)
9423bd
- common: Update for CXL (Compute Express Link) configs (Peter Robinson)
9423bd
- redhat: configs: disable CRYPTO_SM modules (Herton R. Krzesinski) [1990040]
9423bd
- Remove fedora version of the LOCKDEP_BITS, we should use common (Justin M. Forbes)
9423bd
- Re-enable sermouse for x86 (rhbz 1974002) (Justin M. Forbes)
9423bd
- Fedora 5.14 configs round 1 (Justin M. Forbes)
9423bd
- redhat: add gating configuration for centos stream/rhel9 (Herton R. Krzesinski)
9423bd
- x86: configs: Enable CONFIG_TEST_FPU for debug kernels (Vitaly Kuznetsov) [1988384]
9423bd
- redhat/configs: Move CHACHA and POLY1305 to core kernel to allow BIG_KEYS=y (root) [1983298]
9423bd
- kernel.spec: fix build of samples/bpf (Jiri Benc)
9423bd
- Enable OSNOISE_TRACER and TIMERLAT_TRACER (Jerome Marchand) [1979379]
9423bd
- rpmspec: switch iio and gpio tools to use tools_make (Herton R. Krzesinski) [1956988]
9423bd
- configs/process_configs.sh: Handle config items with no help text (Patrick Talbert)
9423bd
- fedora: sound config updates for 5.14 (Peter Robinson)
9423bd
- fedora: Only enable FSI drivers on POWER platform (Peter Robinson)
9423bd
- The CONFIG_RAW_DRIVER has been removed from upstream (Peter Robinson)
9423bd
- fedora: updates for 5.14 with a few disables for common from pending (Peter Robinson)
9423bd
- fedora: migrate from MFD_TPS68470 -> INTEL_SKL_INT3472 (Peter Robinson)
9423bd
- fedora: Remove STAGING_GASKET_FRAMEWORK (Peter Robinson)
9423bd
- Fedora: move DRM_VMWGFX configs from ark -> common (Peter Robinson)
9423bd
- fedora: arm: disabled unused FB drivers (Peter Robinson)
9423bd
- fedora: don't enable FB_VIRTUAL (Peter Robinson)
9423bd
- redhat/configs: Double MAX_LOCKDEP_ENTRIES (Waiman Long) [1940075]
9423bd
- rpmspec: fix verbose output on kernel-devel installation (Herton R. Krzesinski) [1981406]
9423bd
- Build Fedora x86s kernels with bytcr-wm5102 (Marius Hoch)
9423bd
- Deleted redhat/configs/fedora/generic/x86/CONFIG_FB_HYPERV (Patrick Lang)
9423bd
- rpmspec: correct the ghost initramfs attributes (Herton R. Krzesinski) [1977056]
9423bd
- rpmspec: amend removal of depmod created files to include modules.builtin.alias.bin (Herton R. Krzesinski) [1977056]
9423bd
- configs: remove duplicate CONFIG_DRM_HYPERV file (Patrick Talbert)
9423bd
- CI: use common code for merge and release (Don Zickus)
9423bd
- rpmspec: add release string to kernel doc directory name (Jan Stancek)
9423bd
- redhat/configs: Add CONFIG_INTEL_PMT_CRASHLOG (Michael Petlan) [1880486]
9423bd
- redhat/configs: Add CONFIG_INTEL_PMT_TELEMETRY (Michael Petlan) [1880486]
9423bd
- redhat/configs: Add CONFIG_MFD_INTEL_PMT (Michael Petlan) [1880486]
9423bd
- redhat/configs: enable CONFIG_BLK_DEV_ZONED (Ming Lei) [1638087]
9423bd
- Add --with clang_lto option to build the kernel with Link Time Optimizations (Tom Stellard)
9423bd
- common: disable DVB_AV7110 and associated pieces (Peter Robinson)
9423bd
- Fix fedora-only config updates (Don Zickus)
9423bd
- Fedor config update for new option (Justin M. Forbes)
9423bd
- redhat/configs: Enable stmmac NIC for x86_64 (Mark Salter)
9423bd
- all: hyperv: use the DRM driver rather than FB (Peter Robinson)
9423bd
- all: hyperv: unify the Microsoft HyperV configs (Peter Robinson)
9423bd
- all: VMWare: clean up VMWare configs (Peter Robinson)
9423bd
- Update CONFIG_ARM_FFA_TRANSPORT (Patrick Talbert)
9423bd
- CI: Handle all mirrors (Veronika Kabatova)
9423bd
- Turn on CONFIG_STACKTRACE for s390x zfpcdump kernels (Justin M. Forbes)
9423bd
- arm64: switch ark kernel to 4K pagesize (Mark Salter)
9423bd
- Disable AMIGA_PARTITION and KARMA_PARTITION (Prarit Bhargava) [1802694]
9423bd
- all: unify and cleanup i2c TPM2 modules (Peter Robinson)
9423bd
- redhat/configs: Set CONFIG_VIRTIO_IOMMU on aarch64 (Eric Auger) [1972795]
9423bd
- redhat/configs: Disable CONFIG_RT_GROUP_SCHED in rhel config (Phil Auld)
9423bd
- redhat/configs: enable KEXEC_SIG which is already enabled in RHEL8 for s390x and x86_64 (Coiby Xu) [1976835]
9423bd
- rpmspec: do not BuildRequires bpftool on noarch (Herton R. Krzesinski)
9423bd
- redhat/configs: disable {IMA,EVM}_LOAD_X509 (Bruno Meneguele) [1977529]
9423bd
- redhat: add secureboot CA certificate to trusted kernel keyring (Bruno Meneguele)
9423bd
- redhat/configs: enable IMA_ARCH_POLICY for aarch64 and s390x (Bruno Meneguele)
9423bd
- redhat/configs: Enable CONFIG_MLXBF_GIGE on aarch64 (Alaa Hleihel) [1858599]
9423bd
- common: enable STRICT_MODULE_RWX everywhere (Peter Robinson)
9423bd
- COMMON_CLK_STM32MP157_SCMI is bool and selects COMMON_CLK_SCMI (Justin M. Forbes)
9423bd
- kernel.spec: Add kernel{,-debug}-devel-matched meta packages (Timothée Ravier)
9423bd
- Turn off with_selftests for Fedora (Justin M. Forbes)
9423bd
- Don't build bpftool on Fedora (Justin M. Forbes)
9423bd
- Fix location of syscall scripts for kernel-devel (Justin M. Forbes)
9423bd
- fedora: arm: Enable some i.MX8 options (Peter Robinson)
9423bd
- Enable Landlock for Fedora (Justin M. Forbes)
9423bd
- Filter update for Fedora aarch64 (Justin M. Forbes)
9423bd
- rpmspec: only build debug meta packages where we build debug ones (Herton R. Krzesinski)
9423bd
- rpmspec: do not BuildRequires bpftool on nobuildarches (Herton R. Krzesinski)
9423bd
- redhat/configs: Consolidate CONFIG_HMC_DRV in the common s390x folder (Thomas Huth) [1976270]
9423bd
- redhat/configs: Consolidate CONFIG_EXPOLINE_OFF in the common folder (Thomas Huth) [1976270]
9423bd
- redhat/configs: Move CONFIG_HW_RANDOM_S390 into the s390x/ subfolder (Thomas Huth) [1976270]
9423bd
- redhat/configs: Disable CONFIG_HOTPLUG_PCI_SHPC in the Fedora settings (Thomas Huth) [1976270]
9423bd
- redhat/configs: Remove the non-existent CONFIG_NO_BOOTMEM switch (Thomas Huth) [1976270]
9423bd
- redhat/configs: Compile the virtio-console as a module on s390x (Thomas Huth) [1976270]
9423bd
- redhat/configs: Enable CONFIG_S390_CCW_IOMMU and CONFIG_VFIO_CCW for ARK, too (Thomas Huth) [1976270]
9423bd
- Revert "Merge branch 'ec_fips' into 'os-build'" (Vladis Dronov) [1947240]
9423bd
- Fix typos in fedora filters (Justin M. Forbes)
9423bd
- More filtering for Fedora (Justin M. Forbes)
9423bd
- Fix Fedora module filtering for spi-altera-dfl (Justin M. Forbes)
9423bd
- Fedora 5.13 config updates (Justin M. Forbes)
9423bd
- fedora: cleanup TCG_TIS_I2C_CR50 (Peter Robinson)
9423bd
- fedora: drop duplicate configs (Peter Robinson)
9423bd
- More Fedora config updates for 5.13 (Justin M. Forbes)
9423bd
- redhat/configs: Enable needed drivers for BlueField SoC on aarch64 (Alaa Hleihel) [1858592 1858594 1858596]
9423bd
- redhat: Rename mod-blacklist.sh to mod-denylist.sh (Prarit Bhargava)
9423bd
- redhat/configs: enable CONFIG_NET_ACT_MPLS (Marcelo Ricardo Leitner)
9423bd
- configs: Enable CONFIG_DEBUG_KERNEL for zfcpdump (Jiri Olsa)
9423bd
- kernel.spec: Add support to use vmlinux.h (Don Zickus)
9423bd
- spec: Add vmlinux.h to kernel-devel package (Jiri Olsa)
9423bd
- Turn off DRM_XEN_FRONTEND for Fedora as we had DRM_XEN off already (Justin M. Forbes)
9423bd
- Fedora 5.13 config updates pt 3 (Justin M. Forbes)
9423bd
- all: enable ath11k wireless modules (Peter Robinson)
9423bd
- all: Enable WWAN and associated MHI bus pieces (Peter Robinson)
9423bd
- spec: Enable sefltests rpm build (Jiri Olsa)
9423bd
- spec: Allow bpf selftest/samples to fail (Jiri Olsa)
9423bd
- bpf, selftests: Disable tests that need clang13 (Toke Høiland-Jørgensen)
9423bd
- kvm: Add kvm_stat.service file and kvm_stat logrotate config to the tools (Jiri Benc)
9423bd
- kernel.spec: Add missing source files to kernel-selftests-internal (Jiri Benc)
9423bd
- kernel.spec: selftests: add net/forwarding to TARGETS list (Jiri Benc)
9423bd
- kernel.spec: selftests: add build requirement on libmnl-devel (Jiri Benc)
9423bd
- kernel.spec: add action.o to kernel-selftests-internal (Jiri Benc)
9423bd
- kernel.spec: avoid building bpftool repeatedly (Jiri Benc)
9423bd
- kernel.spec: selftests require python3 (Jiri Benc)
9423bd
- kernel.spec: skip selftests that failed to build (Jiri Benc)
9423bd
- kernel.spec: fix installation of bpf selftests (Jiri Benc)
9423bd
- redhat: fix samples and selftests make options (Jiri Benc)
9423bd
- kernel.spec: enable mptcp selftests for kernel-selftests-internal (Jiri Benc)
9423bd
- kernel.spec: Do not export shared objects from libexecdir to RPM Provides (Jiri Benc)
9423bd
- kernel.spec: add missing dependency for the which package (Jiri Benc)
9423bd
- kernel.spec: add netfilter selftests to kernel-selftests-internal (Jiri Benc)
9423bd
- kernel.spec: move slabinfo and page_owner_sort debuginfo to tools-debuginfo (Jiri Benc)
9423bd
- kernel.spec: package and ship VM tools (Jiri Benc)
9423bd
- configs: enable CONFIG_PAGE_OWNER (Jiri Benc)
9423bd
- kernel.spec: add coreutils (Jiri Benc)
9423bd
- kernel.spec: add netdevsim driver selftests to kernel-selftests-internal (Jiri Benc)
9423bd
- redhat/Makefile: Clean out the --without flags from the baseonly rule (Jiri Benc)
9423bd
- kernel.spec: Stop building unnecessary rpms for baseonly builds (Jiri Benc)
9423bd
- kernel.spec: disable more kabi switches for gcov build (Jiri Benc)
9423bd
- kernel.spec: Rename kabi-dw base (Jiri Benc)
9423bd
- kernel.spec: Fix error messages during build of zfcpdump kernel (Jiri Benc)
9423bd
- kernel.spec: perf: remove bpf examples (Jiri Benc)
9423bd
- kernel.spec: selftests should not depend on modules-internal (Jiri Benc)
9423bd
- kernel.spec: build samples (Jiri Benc)
9423bd
- kernel.spec: tools: sync missing options with RHEL 8 (Jiri Benc)
9423bd
- redhat/configs: nftables: Enable extra flowtable symbols (Phil Sutter)
9423bd
- redhat/configs: Sync netfilter options with RHEL8 (Phil Sutter)
9423bd
- Fedora 5.13 config updates pt 2 (Justin M. Forbes)
9423bd
- Move CONFIG_ARCH_INTEL_SOCFPGA up a level for Fedora (Justin M. Forbes)
9423bd
- fedora: enable the Rockchip rk3399 pcie drivers (Peter Robinson)
9423bd
- Fedora 5.13 config updates pt 1 (Justin M. Forbes)
9423bd
- Fix version requirement from opencsd-devel buildreq (Justin M. Forbes)
9423bd
- configs/ark/s390: set CONFIG_MARCH_Z14 and CONFIG_TUNE_Z15 (Philipp Rudo) [1876435]
9423bd
- configs/common/s390: Clean up CONFIG_{MARCH,TUNE}_Z* (Philipp Rudo)
9423bd
- configs/process_configs.sh: make use of dummy-tools (Philipp Rudo)
9423bd
- configs/common: disable CONFIG_INIT_STACK_ALL_{PATTERN,ZERO} (Philipp Rudo)
9423bd
- configs/common/aarch64: disable CONFIG_RELR (Philipp Rudo)
9423bd
- redhat/config: enable STMICRO nic for RHEL (Mark Salter)
9423bd
- redhat/configs: Enable ARCH_TEGRA on RHEL (Mark Salter)
9423bd
- redhat/configs: enable IMA_KEXEC for supported arches (Bruno Meneguele)
9423bd
- redhat/configs: enable INTEGRITY_SIGNATURE to all arches (Bruno Meneguele)
9423bd
- configs: enable CONFIG_LEDS_BRIGHTNESS_HW_CHANGED (Benjamin Tissoires)
9423bd
- RHEL: disable io_uring support (Jeff Moyer)
9423bd
- all: Changing CONFIG_UV_SYSFS to build uv_sysfs.ko as a loadable module. (Frank Ramsay)
9423bd
- Enable NITRO_ENCLAVES on RHEL (Vitaly Kuznetsov)
9423bd
- Update the Quick Start documentation (David Ward)
9423bd
- redhat/configs: Set PVPANIC_MMIO for x86 and PVPANIC_PCI for aarch64 (Eric Auger) [1961178]
9423bd
- bpf: Fix unprivileged_bpf_disabled setup (Jiri Olsa)
9423bd
- Enable CONFIG_BPF_UNPRIV_DEFAULT_OFF (Jiri Olsa)
9423bd
- configs/common/s390: disable CONFIG_QETH_{OSN,OSX} (Philipp Rudo) [1903201]
9423bd
- nvme: nvme_mpath_init remove multipath check (Mike Snitzer)
9423bd
- team: mark team driver as deprecated (Hangbin Liu) [1945477]
9423bd
- Make CRYPTO_EC also builtin (Simo Sorce) [1947240]
9423bd
- Do not hard-code a default value for DIST (David Ward)
9423bd
- Override %%{debugbuildsenabled} if the --with-release option is used (David Ward)
9423bd
- Improve comments in SPEC file, and move some option tests and macros (David Ward)
9423bd
- configs: enable CONFIG_EXFAT_FS (Pavel Reichl) [1943423]
9423bd
- Revert s390x/zfcpdump part of a9d179c40281 and ecbfddd98621 (Vladis Dronov)
9423bd
- Embed crypto algos, modes and templates needed in the FIPS mode (Vladis Dronov) [1947240]
9423bd
- configs: Add and enable CONFIG_HYPERV_TESTING for debug kernels (Mohammed Gamal)
9423bd
- mm/cma: mark CMA on x86_64 tech preview and print RHEL-specific infos (David Hildenbrand) [1945002]
9423bd
- configs: enable CONFIG_CMA on x86_64 in ARK (David Hildenbrand) [1945002]
9423bd
- rpmspec: build debug-* meta-packages if debug builds are disabled (Herton R. Krzesinski)
9423bd
- UIO: disable unused config options (Aristeu Rozanski) [1957819]
9423bd
- ARK-config: Make amd_pinctrl module builtin (Hans de Goede)
9423bd
- rpmspec: revert/drop content hash for kernel-headers (Herton R. Krzesinski)
9423bd
- rpmspec: fix check that calls InitBuildVars (Herton R. Krzesinski)
9423bd
- fedora: enable zonefs (Damien Le Moal)
9423bd
- redhat: load specific ARCH keys to INTEGRITY_PLATFORM_KEYRING (Bruno Meneguele)
9423bd
- redhat: enable INTEGRITY_TRUSTED_KEYRING across all variants (Bruno Meneguele)
9423bd
- redhat: enable SYSTEM_BLACKLIST_KEYRING across all variants (Bruno Meneguele)
9423bd
- redhat: enable INTEGRITY_ASYMMETRIC_KEYS across all variants (Bruno Meneguele)
9423bd
- Remove unused boot loader specification files (David Ward)
9423bd
- redhat/configs: Enable mlx5 IPsec and TLS offloads (Alaa Hleihel) [1869674 1957636]
9423bd
- Force DWARF4 because crash does not support DWARF5 yet (Justin M. Forbes)
9423bd
- common: disable Apple Silicon generally (Peter Robinson)
9423bd
- cleanup Intel's FPGA configs (Peter Robinson)
9423bd
- common: move PTP KVM support from ark to common (Peter Robinson)
9423bd
- Enable CONFIG_DRM_AMDGPU_USERPTR for everyone (Justin M. Forbes)
9423bd
- redhat: add initial rpminspect configuration (Herton R. Krzesinski)
9423bd
- fedora: arm updates for 5.13 (Peter Robinson)
9423bd
- fedora: Enable WWAN and associated MHI bits (Peter Robinson)
9423bd
- Update CONFIG_MODPROBE_PATH to /usr/sbin (Justin Forbes)
9423bd
- Fedora set modprobe path (Justin M. Forbes)
9423bd
- Keep sctp and l2tp modules in modules-extra (Don Zickus)
9423bd
- Fix ppc64le cross build packaging (Don Zickus)
9423bd
- Fedora: Make amd_pinctrl module builtin (Hans de Goede)
9423bd
- Keep CONFIG_KASAN_HW_TAGS off for aarch64 debug configs (Justin M. Forbes)
9423bd
- New configs in drivers/bus (Fedora Kernel Team)
9423bd
- RHEL: Don't build KVM PR module on ppc64 (David Gibson) [1930649]
9423bd
- Flip CONFIG_USB_ROLE_SWITCH from m to y (Justin M. Forbes)
9423bd
- Set valid options for CONFIG_FW_LOADER_USER_HELPER (Justin M. Forbes)
9423bd
- Clean up CONFIG_FB_MODE_HELPERS (Justin M. Forbes)
9423bd
- Turn off CONFIG_VFIO for the s390x zfcpdump kernel (Justin M. Forbes)
9423bd
- Delete unused CONFIG_SND_SOC_MAX98390 pending-common (Justin M. Forbes)
9423bd
- Update pending-common configs, preparing to set correctly (Justin M. Forbes)
9423bd
- Update fedora filters for surface (Justin M. Forbes)
9423bd
- Build CONFIG_CRYPTO_ECDSA inline for s390x zfcpdump (Justin M. Forbes)
9423bd
- Replace "flavour" where "variant" is meant instead (David Ward)
9423bd
- Drop the %%{variant} macro and fix --with-vanilla (David Ward)
9423bd
- Fix syntax of %%kernel_variant_files (David Ward)
9423bd
- Change description of --without-vdso-install to fix typo (David Ward)
9423bd
- Config updates to work around mismatches (Justin M. Forbes)
9423bd
- CONFIG_SND_SOC_FSL_ASOC_CARD selects CONFIG_MFD_WM8994 now (Justin M. Forbes)
9423bd
- wireguard: disable in FIPS mode (Hangbin Liu) [1940794]
9423bd
- Enable mtdram for fedora (rhbz 1955916) (Justin M. Forbes)
9423bd
- Remove reference to bpf-helpers man page (Justin M. Forbes)
9423bd
- Fedora: enable more modules for surface devices (Dave Olsthoorn)
9423bd
- Fix Fedora config mismatch for CONFIG_FSL_ENETC_IERB (Justin M. Forbes)
9423bd
- hardlink is in /usr/bin/ now (Justin M. Forbes)
9423bd
- Ensure CONFIG_KVM_BOOK3S_64_PR stays on in Fedora, even if it is turned off in RHEL (Justin M. Forbes)
9423bd
- Set date in package release from repository commit, not system clock (David Ward)
9423bd
- Use a better upstream tarball filename for snapshots (David Ward)
9423bd
- Don't create empty pending-common files on pending-fedora commits (Don Zickus)
9423bd
- nvme: decouple basic ANA log page re-read support from native multipathing (Mike Snitzer)
9423bd
- nvme: allow local retry and proper failover for REQ_FAILFAST_TRANSPORT (Mike Snitzer)
9423bd
- nvme: Return BLK_STS_TARGET if the DNR bit is set (Mike Snitzer)
9423bd
- Add redhat/configs/pending-common/generic/s390x/zfcpdump/CONFIG_NETFS_SUPPORT (Justin M. Forbes)
9423bd
- Create ark-latest branch last for CI scripts (Don Zickus)
9423bd
- Replace /usr/libexec/platform-python with /usr/bin/python3 (David Ward)
9423bd
- Turn off ADI_AXI_ADC and AD9467 which now require CONFIG_OF (Justin M. Forbes)
9423bd
- Export ark infrastructure files (Don Zickus)
9423bd
- docs: Update docs to reflect newer workflow. (Don Zickus)
9423bd
- Use upstream/master for merge-base with fallback to master (Don Zickus)
9423bd
- Fedora: Turn off the SND_INTEL_BYT_PREFER_SOF option (Hans de Goede)
9423bd
- filter-modules.sh.fedora: clean up "netprots" (Paul Bolle)
9423bd
- filter-modules.sh.fedora: clean up "scsidrvs" (Paul Bolle)
9423bd
- filter-*.sh.fedora: clean up "ethdrvs" (Paul Bolle)
9423bd
- filter-*.sh.fedora: clean up "driverdirs" (Paul Bolle)
9423bd
- filter-*.sh.fedora: remove incorrect entries (Paul Bolle)
9423bd
- filter-*.sh.fedora: clean up "singlemods" (Paul Bolle)
9423bd
- filter-modules.sh.fedora: drop unused list "iiodrvs" (Paul Bolle)
9423bd
- Update mod-internal to fix depmod issue (Nico Pache)
9423bd
- Turn on CONFIG_VDPA_SIM_NET (rhbz 1942343) (Justin M. Forbes)
9423bd
- New configs in drivers/power (Fedora Kernel Team)
9423bd
- Turn on CONFIG_NOUVEAU_DEBUG_PUSH for debug configs (Justin M. Forbes)
9423bd
- Turn off KFENCE sampling by default for Fedora (Justin M. Forbes)
9423bd
- Fedora config updates round 2 (Justin M. Forbes)
9423bd
- New configs in drivers/soc (Jeremy Cline)
9423bd
- filter-modules.sh: Fix copy/paste error 'input' (Paul Bolle)
9423bd
- Update module filtering for 5.12 kernels (Justin M. Forbes)
9423bd
- Fix genlog.py to ensure that comments retain "%%" characters. (Mark Mielke)
9423bd
- New configs in drivers/leds (Fedora Kernel Team)
9423bd
- Limit CONFIG_USB_CDNS_SUPPORT to x86_64 and arm in Fedora (David Ward)
9423bd
- Fedora: Enable CHARGER_GPIO on aarch64 too (Peter Robinson)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- wireguard: mark as Tech Preview (Hangbin Liu) [1613522]
9423bd
- configs: enable CONFIG_WIREGUARD in ARK (Hangbin Liu) [1613522]
9423bd
- Remove duplicate configs acroos fedora, ark and common (Don Zickus)
9423bd
- Combine duplicate configs across ark and fedora into common (Don Zickus)
9423bd
- common/ark: cleanup and unify the parport configs (Peter Robinson)
9423bd
- iommu/vt-d: enable INTEL_IDXD_SVM for both fedora and rhel (Jerry Snitselaar)
9423bd
- REDHAT: coresight: etm4x: Disable coresight on HPE Apollo 70 (Jeremy Linton)
9423bd
- configs/common/generic: disable CONFIG_SLAB_MERGE_DEFAULT (Rafael Aquini)
9423bd
- Remove _legacy_common_support (Justin M. Forbes)
9423bd
- redhat/mod-blacklist.sh: Fix floppy blacklisting (Hans de Goede)
9423bd
- New configs in fs/pstore (CKI@GitLab)
9423bd
- New configs in arch/powerpc (Fedora Kernel Team)
9423bd
- configs: enable BPF LSM on Fedora and ARK (Ondrej Mosnacek)
9423bd
- configs: clean up LSM configs (Ondrej Mosnacek)
9423bd
- New configs in drivers/platform (CKI@GitLab)
9423bd
- New configs in drivers/firmware (CKI@GitLab)
9423bd
- New configs in drivers/mailbox (Fedora Kernel Team)
9423bd
- New configs in drivers/net/phy (Justin M. Forbes)
9423bd
- Update CONFIG_DM_MULTIPATH_IOA (Augusto Caringi)
9423bd
- New configs in mm/Kconfig (CKI@GitLab)
9423bd
- New configs in arch/powerpc (Jeremy Cline)
9423bd
- New configs in arch/powerpc (Jeremy Cline)
9423bd
- New configs in drivers/input (Fedora Kernel Team)
9423bd
- New configs in net/bluetooth (Justin M. Forbes)
9423bd
- New configs in drivers/clk (Fedora Kernel Team)
9423bd
- New configs in init/Kconfig (Jeremy Cline)
9423bd
- redhat: allow running fedora-configs and rh-configs targets outside of redhat/ (Herton R. Krzesinski)
9423bd
- all: unify the disable of goldfish (android emulation platform) (Peter Robinson)
9423bd
- common: minor cleanup/de-dupe of dma/dmabuf debug configs (Peter Robinson)
9423bd
- common/ark: these drivers/arches were removed in 5.12 (Peter Robinson)
9423bd
- Correct kernel-devel make prepare build for 5.12. (Paulo E. Castro)
9423bd
- redhat: add initial support for centos stream dist-git sync on Makefiles (Herton R. Krzesinski)
9423bd
- redhat/configs: Enable CONFIG_SCHED_STACK_END_CHECK for Fedora and ARK (Josh Poimboeuf) [1856174]
9423bd
- CONFIG_VFIO now selects IOMMU_API instead of depending on it, causing several config mismatches for the zfcpdump kernel (Justin M. Forbes)
9423bd
- Turn off weak-modules for Fedora (Justin M. Forbes)
9423bd
- redhat: enable CONFIG_FW_LOADER_COMPRESS for ARK (Herton R. Krzesinski) [1939095]
9423bd
- Fedora: filters: update to move dfl-emif to modules (Peter Robinson)
9423bd
- drop duplicate DEVFREQ_GOV_SIMPLE_ONDEMAND config (Peter Robinson)
9423bd
- efi: The EFI_VARS is legacy and now x86 only (Peter Robinson)
9423bd
- common: enable RTC_SYSTOHC to supplement update_persistent_clock64 (Peter Robinson)
9423bd
- generic: arm: enable SCMI for all options (Peter Robinson)
9423bd
- fedora: the PCH_CAN driver is x86-32 only (Peter Robinson)
9423bd
- common: disable legacy CAN device support (Peter Robinson)
9423bd
- common: Enable Microchip MCP251x/MCP251xFD CAN controllers (Peter Robinson)
9423bd
- common: Bosch MCAN support for Intel Elkhart Lake (Peter Robinson)
9423bd
- common: enable CAN_PEAK_PCIEFD PCI-E driver (Peter Robinson)
9423bd
- common: disable CAN_PEAK_PCIEC PCAN-ExpressCard (Peter Robinson)
9423bd
- common: enable common CAN layer 2 protocols (Peter Robinson)
9423bd
- ark: disable CAN_LEDS option (Peter Robinson)
9423bd
- Fedora: Turn on SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC option (Hans de Goede)
9423bd
- Fedora: enable modules for surface devices (Dave Olsthoorn)
9423bd
- Turn on SND_SOC_INTEL_SOUNDWIRE_SOF_MACH for Fedora again (Justin M. Forbes)
9423bd
- common: fix WM8804 codec dependencies (Peter Robinson)
9423bd
- Build SERIO_SERPORT as a module (Peter Robinson)
9423bd
- input: touchscreen: move ELO and Wacom serial touchscreens to x86 (Peter Robinson)
9423bd
- Sync serio touchscreens for non x86 architectures to the same as ARK (Peter Robinson)
9423bd
- Only enable SERIO_LIBPS2 on x86 (Peter Robinson)
9423bd
- Only enable PC keyboard controller and associated keyboard on x86 (Peter Robinson)
9423bd
- Generic: Mouse: Tweak generic serial mouse options (Peter Robinson)
9423bd
- Only enable PS2 Mouse options on x86 (Peter Robinson)
9423bd
- Disable bluetooth highspeed by default (Peter Robinson)
9423bd
- Fedora: A few more general updates for 5.12 window (Peter Robinson)
9423bd
- Fedora: Updates for 5.12 merge window (Peter Robinson)
9423bd
- Fedora: remove dead options that were removed upstream (Peter Robinson)
9423bd
- redhat: remove CONFIG_DRM_PANEL_XINGBANGDA_XBD599 (Herton R. Krzesinski)
9423bd
- New configs in arch/powerpc (Fedora Kernel Team)
9423bd
- Turn on CONFIG_PPC_QUEUED_SPINLOCKS as it is default upstream now (Justin M. Forbes)
9423bd
- Update pending-common configs to address new upstream config deps (Justin M. Forbes)
9423bd
- rpmspec: ship gpio-watch.debug in the proper debuginfo package (Herton R. Krzesinski)
9423bd
- Removed description text as a comment confuses the config generation (Justin M. Forbes)
9423bd
- New configs in drivers/dma-buf (Jeremy Cline)
9423bd
- Fedora: ARMv7: build for 16 CPUs. (Peter Robinson)
9423bd
- Fedora: only enable DEBUG_HIGHMEM on debug kernels (Peter Robinson)
9423bd
- process_configs.sh: fix find/xargs data flow (Ondrej Mosnacek)
9423bd
- Fedora config update (Justin M. Forbes)
9423bd
- fedora: minor arm sound config updates (Peter Robinson)
9423bd
- Fix trailing white space in redhat/configs/fedora/generic/CONFIG_SND_INTEL_BYT_PREFER_SOF (Justin M. Forbes)
9423bd
- Add a redhat/rebase-notes.txt file (Hans de Goede)
9423bd
- Turn on SND_INTEL_BYT_PREFER_SOF for Fedora (Hans de Goede)
9423bd
- CI: Drop MR ID from the name variable (Veronika Kabatova)
9423bd
- redhat: add DUP and kpatch certificates to system trusted keys for RHEL build (Herton R. Krzesinski)
9423bd
- The comments in CONFIG_USB_RTL8153_ECM actually turn off CONFIG_USB_RTL8152 (Justin M. Forbes)
9423bd
- Update CKI pipeline project (Veronika Kabatova)
9423bd
- Turn off additional KASAN options for Fedora (Justin M. Forbes)
9423bd
- Rename the master branch to rawhide for Fedora (Justin M. Forbes)
9423bd
- Makefile targets for packit integration (Ben Crocker)
9423bd
- Turn off KASAN for rawhide debug builds (Justin M. Forbes)
9423bd
- New configs in arch/arm64 (Justin Forbes)
9423bd
- Remove deprecated Intel MIC config options (Peter Robinson)
9423bd
- redhat: replace inline awk script with genlog.py call (Herton R. Krzesinski)
9423bd
- redhat: add genlog.py script (Herton R. Krzesinski)
9423bd
- kernel.spec.template - fix use_vdso usage (Ben Crocker)
9423bd
- redhat: remove remaining references of CONFIG_RH_DISABLE_DEPRECATED (Herton R. Krzesinski)
9423bd
- Turn off vdso_install for ppc (Justin M. Forbes)
9423bd
- Remove bpf-helpers.7 from bpftool package (Jiri Olsa)
9423bd
- New configs in lib/Kconfig.debug (Fedora Kernel Team)
9423bd
- Turn off CONFIG_VIRTIO_CONSOLE for s390x zfcpdump (Justin M. Forbes)
9423bd
- New configs in drivers/clk (Justin M. Forbes)
9423bd
- Keep VIRTIO_CONSOLE on s390x available. (Jakub ÄŒajka)
9423bd
- New configs in lib/Kconfig.debug (Jeremy Cline)
9423bd
- Fedora 5.11 config updates part 4 (Justin M. Forbes)
9423bd
- Fedora 5.11 config updates part 3 (Justin M. Forbes)
9423bd
- Fedora 5.11 config updates part 2 (Justin M. Forbes)
9423bd
- Update internal (test) module list from RHEL-8 (Joe Lawrence) [1915073]
9423bd
- Fix USB_XHCI_PCI regression (Justin M. Forbes)
9423bd
- fedora: fixes for ARMv7 build issue by disabling HIGHPTE (Peter Robinson)
9423bd
- all: s390x: Increase CONFIG_PCI_NR_FUNCTIONS to 512 (#1888735) (Dan Horák)
9423bd
- Fedora 5.11 configs pt 1 (Justin M. Forbes)
9423bd
- redhat: avoid conflict with mod-blacklist.sh and released_kernel defined (Herton R. Krzesinski)
9423bd
- redhat: handle certificate files conditionally as done for src.rpm (Herton R. Krzesinski)
9423bd
- specfile: add %%{?_smp_mflags} to "make headers_install" in tools/testing/selftests (Denys Vlasenko)
9423bd
- specfile: add %%{?_smp_mflags} to "make samples/bpf/" (Denys Vlasenko)
9423bd
- Run MR testing in CKI pipeline (Veronika Kabatova)
9423bd
- Reword comment (Nicolas Chauvet)
9423bd
- Add with_cross_arm conditional (Nicolas Chauvet)
9423bd
- Redefines __strip if with_cross (Nicolas Chauvet)
9423bd
- fedora: only enable ACPI_CONFIGFS, ACPI_CUSTOM_METHOD in debug kernels (Peter Robinson)
9423bd
- fedora: User the same EFI_CUSTOM_SSDT_OVERLAYS as ARK (Peter Robinson)
9423bd
- all: all arches/kernels enable the same DMI options (Peter Robinson)
9423bd
- all: move SENSORS_ACPI_POWER to common/generic (Peter Robinson)
9423bd
- fedora: PCIE_HISI_ERR is already in common (Peter Robinson)
9423bd
- all: all ACPI platforms enable ATA_ACPI so move it to common (Peter Robinson)
9423bd
- all: x86: move shared x86 acpi config options to generic (Peter Robinson)
9423bd
- All: x86: Move ACPI_VIDEO to common/x86 (Peter Robinson)
9423bd
- All: x86: Enable ACPI_DPTF (Intel DPTF) (Peter Robinson)
9423bd
- All: enable ACPI_BGRT for all ACPI platforms. (Peter Robinson)
9423bd
- All: Only build ACPI_EC_DEBUGFS for debug kernels (Peter Robinson)
9423bd
- All: Disable Intel Classmate PC ACPI_CMPC option (Peter Robinson)
9423bd
- cleanup: ACPI_PROCFS_POWER was removed upstream (Peter Robinson)
9423bd
- All: ACPI: De-dupe the ACPI options that are the same across ark/fedora on x86/arm (Peter Robinson)
9423bd
- Enable the vkms module in Fedora (Jeremy Cline)
9423bd
- Fedora: arm updates for 5.11 and general cross Fedora cleanups (Peter Robinson)
9423bd
- Add gcc-c++ to BuildRequires (Justin M. Forbes)
9423bd
- Update CONFIG_KASAN_HW_TAGS (Justin M. Forbes)
9423bd
- fedora: arm: move generic power off/reset to all arm (Peter Robinson)
9423bd
- fedora: ARMv7: build in DEVFREQ_GOV_SIMPLE_ONDEMAND until I work out why it's changed (Peter Robinson)
9423bd
- fedora: cleanup joystick_adc (Peter Robinson)
9423bd
- fedora: update some display options (Peter Robinson)
9423bd
- fedora: arm: enable TI PRU options (Peter Robinson)
9423bd
- fedora: arm: minor exynos plaform updates (Peter Robinson)
9423bd
- arm: SoC: disable Toshiba Visconti SoC (Peter Robinson)
9423bd
- common: disable ARCH_BCM4908 (NFC) (Peter Robinson)
9423bd
- fedora: minor arm config updates (Peter Robinson)
9423bd
- fedora: enable Tegra 234 SoC (Peter Robinson)
9423bd
- fedora: arm: enable new Hikey 3xx options (Peter Robinson)
9423bd
- Fedora: USB updates (Peter Robinson)
9423bd
- fedora: enable the GNSS receiver subsystem (Peter Robinson)
9423bd
- Remove POWER_AVS as no longer upstream (Peter Robinson)
9423bd
- Cleanup RESET_RASPBERRYPI (Peter Robinson)
9423bd
- Cleanup GPIO_CDEV_V1 options. (Peter Robinson)
9423bd
- fedora: arm crypto updates (Peter Robinson)
9423bd
- CONFIG_KASAN_HW_TAGS for aarch64 (Justin M. Forbes)
9423bd
- Fedora: cleanup PCMCIA configs, move to x86 (Peter Robinson)
9423bd
- New configs in drivers/rtc (Fedora Kernel Team)
9423bd
- redhat/configs: Enable CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL (Josh Poimboeuf) [1856176]
9423bd
- redhat/configs: Enable CONFIG_GCC_PLUGIN_STRUCTLEAK (Josh Poimboeuf) [1856176]
9423bd
- redhat/configs: Enable CONFIG_GCC_PLUGINS on ARK (Josh Poimboeuf) [1856176]
9423bd
- redhat/configs: Enable CONFIG_KASAN on Fedora (Josh Poimboeuf) [1856176]
9423bd
- New configs in init/Kconfig (Fedora Kernel Team)
9423bd
- build_configs.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- genspec.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- mod-blacklist.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- Enable Speakup accessibility driver (Justin M. Forbes)
9423bd
- New configs in init/Kconfig (Fedora Kernel Team)
9423bd
- Fix fedora config mismatch due to dep changes (Justin M. Forbes)
9423bd
- New configs in drivers/crypto (Jeremy Cline)
9423bd
- Remove duplicate ENERGY_MODEL configs (Peter Robinson)
9423bd
- This is selected by PCIE_QCOM so must match (Justin M. Forbes)
9423bd
- drop unused BACKLIGHT_GENERIC (Peter Robinson)
9423bd
- Remove cp instruction already handled in instruction below. (Paulo E. Castro)
9423bd
- Add all the dependencies gleaned from running `make prepare` on a bloated devel kernel. (Paulo E. Castro)
9423bd
- Add tools to path mangling script. (Paulo E. Castro)
9423bd
- Remove duplicate cp statement which is also not specific to x86. (Paulo E. Castro)
9423bd
- Correct orc_types failure whilst running `make prepare` https://bugzilla.redhat.com/show_bug.cgi?id=1882854 (Paulo E. Castro)
9423bd
- redhat: ark: enable CONFIG_IKHEADERS (Jiri Olsa)
9423bd
- Add missing '$' sign to (GIT) in redhat/Makefile (Augusto Caringi)
9423bd
- Remove filterdiff and use native git instead (Don Zickus)
9423bd
- New configs in net/sched (Justin M. Forbes)
9423bd
- New configs in drivers/mfd (CKI@GitLab)
9423bd
- New configs in drivers/mfd (Fedora Kernel Team)
9423bd
- New configs in drivers/firmware (Fedora Kernel Team)
9423bd
- Temporarily backout parallel xz script (Justin M. Forbes)
9423bd
- redhat: explicitly disable CONFIG_IMA_APPRAISE_SIGNED_INIT (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_EVM_LOAD_X509 on ARK (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_EVM_ATTR_FSUUID on ARK (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_EVM in all arches and flavors (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_LOAD_X509 on ARK (Bruno Meneguele)
9423bd
- redhat: set CONFIG_IMA_DEFAULT_HASH to SHA256 (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_READ_POLICY on ARK (Bruno Meneguele)
9423bd
- redhat: set default IMA template for all ARK arches (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_DEFAULT_HASH_SHA256 for all flavors (Bruno Meneguele)
9423bd
- redhat: disable CONFIG_IMA_DEFAULT_HASH_SHA1 (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_ARCH_POLICY for ppc and x86 (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_APPRAISE_MODSIG (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_APPRAISE_BOOTPARAM (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_IMA_APPRAISE (Bruno Meneguele)
9423bd
- redhat: enable CONFIG_INTEGRITY for aarch64 (Bruno Meneguele)
9423bd
- kernel: Update some missing KASAN/KCSAN options (Jeremy Linton)
9423bd
- kernel: Enable coresight on aarch64 (Jeremy Linton)
9423bd
- Update CONFIG_INET6_ESPINTCP (Justin Forbes)
9423bd
- New configs in net/ipv6 (Justin M. Forbes)
9423bd
- fedora: move CONFIG_RTC_NVMEM options from ark to common (Peter Robinson)
9423bd
- configs: Enable CONFIG_DEBUG_INFO_BTF (Don Zickus)
9423bd
- fedora: some minor arm audio config tweaks (Peter Robinson)
9423bd
- Ship xpad with default modules on Fedora and RHEL (Bastien Nocera)
9423bd
- Fedora: Only enable legacy serial/game port joysticks on x86 (Peter Robinson)
9423bd
- Fedora: Enable the options required for the Librem 5 Phone (Peter Robinson)
9423bd
- Fedora config update (Justin M. Forbes)
9423bd
- Fedora config change because CONFIG_FSL_DPAA2_ETH now selects CONFIG_FSL_XGMAC_MDIO (Justin M. Forbes)
9423bd
- redhat: generic  enable CONFIG_INET_MPTCP_DIAG (Davide Caratti)
9423bd
- Fedora config update (Justin M. Forbes)
9423bd
- Enable NANDSIM for Fedora (Justin M. Forbes)
9423bd
- Re-enable CONFIG_ACPI_TABLE_UPGRADE for Fedora since upstream disables this if secureboot is active (Justin M. Forbes)
9423bd
- Ath11k related config updates (Justin M. Forbes)
9423bd
- Fedora config updates for ath11k (Justin M. Forbes)
9423bd
- Turn on ATH11K for Fedora (Justin M. Forbes)
9423bd
- redhat: enable CONFIG_INTEL_IOMMU_SVM (Jerry Snitselaar)
9423bd
- More Fedora config fixes (Justin M. Forbes)
9423bd
- Fedora 5.10 config updates (Justin M. Forbes)
9423bd
- Fedora 5.10 configs round 1 (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Allow kernel-tools to build without selftests (Don Zickus)
9423bd
- Allow building of kernel-tools standalone (Don Zickus)
9423bd
- redhat: ark: disable CONFIG_NET_ACT_CTINFO (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_TEQL (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_SFB (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_QFQ (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_PLUG (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_PIE (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_HHF (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_DSMARK (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_DRR (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_CODEL (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_CHOKE (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_CBQ (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_SCH_ATM (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_EMATCH and sub-targets (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_CLS_TCINDEX (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_CLS_RSVP6 (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_CLS_RSVP (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_CLS_ROUTE4 (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_CLS_BASIC (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_ACT_SKBMOD (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_ACT_SIMP (Davide Caratti)
9423bd
- redhat: ark: disable CONFIG_NET_ACT_NAT (Davide Caratti)
9423bd
- arm64/defconfig: Enable CONFIG_KEXEC_FILE (Bhupesh Sharma) [1821565]
9423bd
- redhat/configs: Cleanup CONFIG_CRYPTO_SHA512 (Prarit Bhargava)
9423bd
- New configs in drivers/mfd (Fedora Kernel Team)
9423bd
- Fix LTO issues with kernel-tools (Don Zickus)
9423bd
- Point pathfix to the new location for gen_compile_commands.py (Justin M. Forbes)
9423bd
- configs: Disable CONFIG_SECURITY_SELINUX_DISABLE (Ondrej Mosnacek)
9423bd
- [Automatic] Handle config dependency changes (Don Zickus)
9423bd
- configs/iommu: Add config comment to empty CONFIG_SUN50I_IOMMU file (Jerry Snitselaar)
9423bd
- New configs in kernel/trace (Fedora Kernel Team)
9423bd
- Fix Fedora config locations (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- configs: enable CONFIG_CRYPTO_CTS=y so cts(cbc(aes)) is available in FIPS mode (Vladis Dronov) [1855161]
9423bd
- Partial revert: Add master merge check (Don Zickus)
9423bd
- Update Maintainers doc to reflect workflow changes (Don Zickus)
9423bd
- WIP: redhat/docs: Update documentation for single branch workflow (Prarit Bhargava)
9423bd
- Add CONFIG_ARM64_MTE which is not picked up by the config scripts for some reason (Justin M. Forbes)
9423bd
- Disable Speakup synth DECEXT (Justin M. Forbes)
9423bd
- Enable Speakup for Fedora since it is out of staging (Justin M. Forbes)
9423bd
- Modify patchlist changelog output (Don Zickus)
9423bd
- process_configs.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- generate_all_configs.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- redhat/self-test: Initial commit (Ben Crocker)
9423bd
- Fixes "acpi: prefer booting with ACPI over DTS" to be RHEL only (Peter Robinson)
9423bd
- arch/x86: Remove vendor specific CPU ID checks (Prarit Bhargava)
9423bd
- redhat: Replace hardware.redhat.com link in Unsupported message (Prarit Bhargava) [1810301]
9423bd
- x86: Fix compile issues with rh_check_supported() (Don Zickus)
9423bd
- KEYS: Make use of platform keyring for module signature verify (Robert Holmes)
9423bd
- Input: rmi4 - remove the need for artificial IRQ in case of HID (Benjamin Tissoires)
9423bd
- ARM: tegra: usb no reset (Peter Robinson)
9423bd
- arm: make CONFIG_HIGHPTE optional without CONFIG_EXPERT (Jon Masters)
9423bd
- redhat: rh_kabi: deduplication friendly structs (Jiri Benc)
9423bd
- redhat: rh_kabi add a comment with warning about RH_KABI_EXCLUDE usage (Jiri Benc)
9423bd
- redhat: rh_kabi: introduce RH_KABI_EXTEND_WITH_SIZE (Jiri Benc)
9423bd
- redhat: rh_kabi: Indirect EXTEND macros so nesting of other macros will resolve. (Don Dutile)
9423bd
- redhat: rh_kabi: Fix RH_KABI_SET_SIZE to use dereference operator (Tony Camuso)
9423bd
- redhat: rh_kabi: Add macros to size and extend structs (Prarit Bhargava)
9423bd
- Removing Obsolete hba pci-ids from rhel8 (Dick Kennedy)
9423bd
- mptsas: pci-id table changes (Laura Abbott)
9423bd
- mptsas: Taint kernel if mptsas is loaded (Laura Abbott)
9423bd
- mptspi: pci-id table changes (Laura Abbott)
9423bd
- qla2xxx: Remove PCI IDs of deprecated adapter (Jeremy Cline)
9423bd
- be2iscsi: remove unsupported device IDs (Chris Leech)
9423bd
- mptspi: Taint kernel if mptspi is loaded (Laura Abbott)
9423bd
- hpsa: remove old cciss-based smartarray pci ids (Joseph Szczypek)
9423bd
- qla4xxx: Remove deprecated PCI IDs from RHEL 8 (Chad Dupuis)
9423bd
- aacraid: Remove depreciated device and vendor PCI id's (Raghava Aditya Renukunta)
9423bd
- megaraid_sas: remove deprecated pci-ids (Tomas Henzl)
9423bd
- mpt*: remove certain deprecated pci-ids (Jeremy Cline)
9423bd
- kernel: add SUPPORT_REMOVED kernel taint (Tomas Henzl)
9423bd
- Rename RH_DISABLE_DEPRECATED to RHEL_DIFFERENCES (Don Zickus)
9423bd
- Add option of 13 for FORCE_MAX_ZONEORDER (Peter Robinson)
9423bd
- s390: Lock down the kernel when the IPL secure flag is set (Jeremy Cline)
9423bd
- efi: Lock down the kernel if booted in secure boot mode (David Howells)
9423bd
- efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode (David Howells)
9423bd
- security: lockdown: expose a hook to lock the kernel down (Jeremy Cline)
9423bd
- Make get_cert_list() use efi_status_to_str() to print error messages. (Peter Jones)
9423bd
- Add efi_status_to_str() and rework efi_status_to_err(). (Peter Jones)
9423bd
- Add support for deprecating processors (Laura Abbott) [1565717 1595918 1609604 1610493]
9423bd
- arm: aarch64: Drop the EXPERT setting from ARM64_FORCE_52BIT (Jeremy Cline)
9423bd
- iommu/arm-smmu: workaround DMA mode issues (Laura Abbott)
9423bd
- rh_kabi: introduce RH_KABI_EXCLUDE (Jakub Racek)
9423bd
- ipmi: do not configure ipmi for HPE m400 (Laura Abbott) [1670017]
9423bd
- kABI: Add generic kABI macros to use for kABI workarounds (Myron Stowe) [1546831]
9423bd
- add pci_hw_vendor_status() (Maurizio Lombardi)
9423bd
- ahci: thunderx2: Fix for errata that affects stop engine (Robert Richter)
9423bd
- Vulcan: AHCI PCI bar fix for Broadcom Vulcan early silicon (Robert Richter)
9423bd
- bpf: set unprivileged_bpf_disabled to 1 by default, add a boot parameter (Eugene Syromiatnikov) [1561171]
9423bd
- add Red Hat-specific taint flags (Eugene Syromiatnikov) [1559877]
9423bd
- tags.sh: Ignore redhat/rpm (Jeremy Cline)
9423bd
- put RHEL info into generated headers (Laura Abbott) [1663728]
9423bd
- acpi: prefer booting with ACPI over DTS (Mark Salter) [1576869]
9423bd
- aarch64: acpi scan: Fix regression related to X-Gene UARTs (Mark Salter) [1519554]
9423bd
- ACPI / irq: Workaround firmware issue on X-Gene based m400 (Mark Salter) [1519554]
9423bd
- modules: add rhelversion MODULE_INFO tag (Laura Abbott)
9423bd
- ACPI: APEI: arm64: Ignore broken HPE moonshot APEI support (Al Stone) [1518076]
9423bd
- Add Red Hat tainting (Laura Abbott) [1565704]
9423bd
- Introduce CONFIG_RH_DISABLE_DEPRECATED (Laura Abbott)
9423bd
- Stop merging ark-patches for release (Don Zickus)
9423bd
- Fix path location for ark-update-configs.sh (Don Zickus)
9423bd
- Combine Red Hat patches into single patch (Don Zickus)
9423bd
- New configs in drivers/misc (Jeremy Cline)
9423bd
- New configs in drivers/net/wireless (Justin M. Forbes)
9423bd
- New configs in drivers/phy (Fedora Kernel Team)
9423bd
- New configs in drivers/tty (Fedora Kernel Team)
9423bd
- Set SquashFS decompression options for all flavors to match RHEL (Bohdan Khomutskyi)
9423bd
- configs: Enable CONFIG_ENERGY_MODEL (Phil Auld)
9423bd
- New configs in drivers/pinctrl (Fedora Kernel Team)
9423bd
- Update CONFIG_THERMAL_NETLINK (Justin Forbes)
9423bd
- Separate merge-upstream and release stages (Don Zickus)
9423bd
- Re-enable CONFIG_IR_SERIAL on Fedora (Prarit Bhargava)
9423bd
- Create Patchlist.changelog file (Don Zickus)
9423bd
- Filter out upstream commits from changelog (Don Zickus)
9423bd
- Merge Upstream script fixes (Don Zickus)
9423bd
- kernel.spec: Remove kernel-keys directory on rpm erase (Prarit Bhargava)
9423bd
- Add mlx5_vdpa to module filter for Fedora (Justin M. Forbes)
9423bd
- Add python3-sphinx_rtd_theme buildreq for docs (Justin M. Forbes)
9423bd
- redhat/configs/process_configs.sh: Remove *.config.orig files (Prarit Bhargava)
9423bd
- redhat/configs/process_configs.sh: Add process_configs_known_broken flag (Prarit Bhargava)
9423bd
- redhat/Makefile: Fix '*-configs' targets (Prarit Bhargava)
9423bd
- dist-merge-upstream: Checkout known branch for ci scripts (Don Zickus)
9423bd
- kernel.spec: don't override upstream compiler flags for ppc64le (Dan Horák)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fedora confi gupdate (Justin M. Forbes)
9423bd
- mod-sign.sh: Fix syntax flagged by shellcheck (Ben Crocker)
9423bd
- Swap how ark-latest is built (Don Zickus)
9423bd
- Add extra version bump to os-build branch (Don Zickus)
9423bd
- dist-release: Avoid needless version bump. (Don Zickus)
9423bd
- Add dist-fedora-release target (Don Zickus)
9423bd
- Remove redundant code in dist-release (Don Zickus)
9423bd
- Makefile.common rename TAG to _TAG (Don Zickus)
9423bd
- Fedora config change (Justin M. Forbes)
9423bd
- Fedora filter update (Justin M. Forbes)
9423bd
- Config update for Fedora (Justin M. Forbes)
9423bd
- enable PROTECTED_VIRTUALIZATION_GUEST for all s390x kernels (Dan Horák)
9423bd
- redhat: ark: enable CONFIG_NET_SCH_TAPRIO (Davide Caratti)
9423bd
- redhat: ark: enable CONFIG_NET_SCH_ETF (Davide Caratti)
9423bd
- More Fedora config updates (Justin M. Forbes)
9423bd
- New config deps (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- First half of config updates for Fedora (Justin M. Forbes)
9423bd
- Updates for Fedora arm architectures for the 5.9 window (Peter Robinson)
9423bd
- Merge 5.9 config changes from Peter Robinson (Justin M. Forbes)
9423bd
- Add config options that only show up when we prep on arm (Justin M. Forbes)
9423bd
- Config updates for Fedora (Justin M. Forbes)
9423bd
- fedora: enable enery model (Peter Robinson)
9423bd
- Use the configs/generic config for SND_HDA_INTEL everywhere (Peter Robinson)
9423bd
- Enable ZSTD compression algorithm on all kernels (Peter Robinson)
9423bd
- Enable ARM_SMCCC_SOC_ID on all aarch64 kernels (Peter Robinson)
9423bd
- iio: enable LTR-559 light and proximity sensor (Peter Robinson)
9423bd
- iio: chemical: enable some popular chemical and partical sensors (Peter Robinson)
9423bd
- More mismatches (Justin M. Forbes)
9423bd
- Fedora config change due to deps (Justin M. Forbes)
9423bd
- CONFIG_SND_SOC_MAX98390 is now selected by SND_SOC_INTEL_DA7219_MAX98357A_GENERIC (Justin M. Forbes)
9423bd
- Config change required for build part 2 (Justin M. Forbes)
9423bd
- Config change required for build (Justin M. Forbes)
9423bd
- Fedora config update (Justin M. Forbes)
9423bd
- Add ability to sync upstream through Makefile (Don Zickus)
9423bd
- Add master merge check (Don Zickus)
9423bd
- Replace hardcoded values 'os-build' and project id with variables (Don Zickus)
9423bd
- redhat/Makefile.common: Fix MARKER (Prarit Bhargava)
9423bd
- gitattributes: Remove unnecesary export restrictions (Prarit Bhargava)
9423bd
- Add new certs for dual signing with boothole (Justin M. Forbes)
9423bd
- Update secureboot signing for dual keys (Justin M. Forbes)
9423bd
- fedora: enable LEDS_SGM3140 for arm configs (Peter Robinson)
9423bd
- Enable CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG (Justin M. Forbes)
9423bd
- redhat/configs: Fix common CONFIGs (Prarit Bhargava)
9423bd
- redhat/configs: General CONFIG cleanups (Prarit Bhargava)
9423bd
- redhat/configs: Update & generalize evaluate_configs (Prarit Bhargava)
9423bd
- fedora: arm: Update some meson config options (Peter Robinson)
9423bd
- redhat/docs: Add Fedora RPM tagging date (Prarit Bhargava)
9423bd
- Update config for renamed panel driver. (Peter Robinson)
9423bd
- Enable SERIAL_SC16IS7XX for SPI interfaces (Peter Robinson)
9423bd
- s390x-zfcpdump: Handle missing Module.symvers file (Don Zickus)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- redhat/configs: Add .tmp files to .gitignore (Prarit Bhargava)
9423bd
- disable uncommon TCP congestion control algorithms (Davide Caratti)
9423bd
- Add new bpf man pages (Justin M. Forbes)
9423bd
- Add default option for CONFIG_ARM64_BTI_KERNEL to pending-common so that eln kernels build (Justin M. Forbes)
9423bd
- redhat/Makefile: Add fedora-configs and rh-configs make targets (Prarit Bhargava)
9423bd
- redhat/configs: Use SHA512 for module signing (Prarit Bhargava)
9423bd
- genspec.sh: 'touch' empty Patchlist file for single tarball (Don Zickus)
9423bd
- Fedora config update for rc1 (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- redhat/Makefile.common: fix RPMKSUBLEVEL condition (Ondrej Mosnacek)
9423bd
- redhat/Makefile: silence KABI tar output (Ondrej Mosnacek)
9423bd
- One more Fedora config update (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fix PATCHLEVEL for merge window (Justin M. Forbes)
9423bd
- Change ark CONFIG_COMMON_CLK to yes, it is selected already by other options (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- More module filtering for Fedora (Justin M. Forbes)
9423bd
- Update filters for rnbd in Fedora (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fix up module filtering for 5.8 (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- More Fedora config work (Justin M. Forbes)
9423bd
- RTW88BE and CE have been extracted to their own modules (Justin M. Forbes)
9423bd
- Set CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK for Fedora (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Arm64 Use Branch Target Identification for kernel (Justin M. Forbes)
9423bd
- Change value of CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE (Justin M. Forbes)
9423bd
- Fedora config updates (Justin M. Forbes)
9423bd
- Fix configs for Fedora (Justin M. Forbes)
9423bd
- Add zero-commit to format-patch options (Justin M. Forbes)
9423bd
- Copy Makefile.rhelver as a source file rather than a patch (Jeremy Cline)
9423bd
- Move the sed to clear the patch templating outside of conditionals (Justin M. Forbes)
9423bd
- Match template format in kernel.spec.template (Justin M. Forbes)
9423bd
- Break out the Patches into individual files for dist-git (Justin M. Forbes)
9423bd
- Break the Red Hat patch into individual commits (Jeremy Cline)
9423bd
- Fix update_scripts.sh unselective pattern sub (David Howells)
9423bd
- Add cec to the filter overrides (Justin M. Forbes)
9423bd
- Add overrides to filter-modules.sh (Justin M. Forbes)
9423bd
- redhat/configs: Enable CONFIG_SMC91X and disable CONFIG_SMC911X (Prarit Bhargava) [1722136]
9423bd
- Include bpftool-struct_ops man page in the bpftool package (Jeremy Cline)
9423bd
- Add sharedbuffer_configuration.py to the pathfix.py script (Jeremy Cline)
9423bd
- Use __make macro instead of make (Tom Stellard)
9423bd
- Sign off generated configuration patches (Jeremy Cline)
9423bd
- Drop the static path configuration for the Sphinx docs (Jeremy Cline)
9423bd
- redhat: Add dummy-module kernel module (Prarit Bhargava)
9423bd
- redhat: enable CONFIG_LWTUNNEL_BPF (Jiri Benc)
9423bd
- Remove typoed config file aarch64CONFIG_SM_GCC_8150 (Justin M. Forbes)
9423bd
- Add Documentation back to kernel-devel as it has Kconfig now (Justin M. Forbes)
9423bd
- Copy distro files rather than moving them (Jeremy Cline)
9423bd
- kernel.spec: fix 'make scripts' for kernel-devel package (Brian Masney)
9423bd
- Makefile: correct help text for dist-cross-<arch>-rpms (Brian Masney)
9423bd
- redhat/Makefile: Fix RHEL8 python warning (Prarit Bhargava)
9423bd
- redhat: Change Makefile target names to dist- (Prarit Bhargava)
9423bd
- configs: Disable Serial IR driver (Prarit Bhargava)
9423bd
- Fix "multiple %%files for package kernel-tools" (Pablo Greco)
9423bd
- Introduce a Sphinx documentation project (Jeremy Cline)
9423bd
- Build ARK against ELN (Don Zickus)
9423bd
- Drop the requirement to have a remote called linus (Jeremy Cline)
9423bd
- Rename 'internal' branch to 'os-build' (Don Zickus)
9423bd
- Only include open merge requests with "Include in Releases" label (Jeremy Cline)
9423bd
- Package gpio-watch in kernel-tools (Jeremy Cline)
9423bd
- Exit non-zero if the tag already exists for a release (Jeremy Cline)
9423bd
- Adjust the changelog update script to not push anything (Jeremy Cline)
9423bd
- Drop --target noarch from the rh-rpms make target (Jeremy Cline)
9423bd
- Add a script to generate release tags and branches (Jeremy Cline)
9423bd
- Set CONFIG_VDPA for fedora (Justin M. Forbes)
9423bd
- Add a README to the dist-git repository (Jeremy Cline)
9423bd
- Provide defaults in ark-rebase-patches.sh (Jeremy Cline)
9423bd
- Default ark-rebase-patches.sh to not report issues (Jeremy Cline)
9423bd
- Drop DIST from release commits and tags (Jeremy Cline)
9423bd
- Place the buildid before the dist in the release (Jeremy Cline)
9423bd
- Sync up with Fedora arm configuration prior to merging (Jeremy Cline)
9423bd
- Disable CONFIG_PROTECTED_VIRTUALIZATION_GUEST for zfcpdump (Jeremy Cline)
9423bd
- Add RHMAINTAINERS file and supporting conf (Don Zickus)
9423bd
- Add a script to test if all commits are signed off (Jeremy Cline)
9423bd
- Fix make rh-configs-arch (Don Zickus)
9423bd
- Drop RH_FEDORA in favor of the now-merged RHEL_DIFFERENCES (Jeremy Cline)
9423bd
- Sync up Fedora configs from the first week of the merge window (Jeremy Cline)
9423bd
- Migrate blacklisting floppy.ko to mod-blacklist.sh (Don Zickus)
9423bd
- kernel packaging: Combine mod-blacklist.sh and mod-extra-blacklist.sh (Don Zickus)
9423bd
- kernel packaging: Fix extra namespace collision (Don Zickus)
9423bd
- mod-extra.sh: Rename to mod-blacklist.sh (Don Zickus)
9423bd
- mod-extra.sh: Make file generic (Don Zickus)
9423bd
- Fix a painfully obvious YAML syntax error in .gitlab-ci.yml (Jeremy Cline)
9423bd
- Add in armv7hl kernel header support (Don Zickus)
9423bd
- Disable all BuildKernel commands when only building headers (Don Zickus)
9423bd
- Drop any gitlab-ci patches from ark-patches (Jeremy Cline)
9423bd
- Build the srpm for internal branch CI using the vanilla tree (Jeremy Cline)
9423bd
- Pull in the latest ARM configurations for Fedora (Jeremy Cline)
9423bd
- Fix xz memory usage issue (Neil Horman)
9423bd
- Use ark-latest instead of master for update script (Jeremy Cline)
9423bd
- Move the CI jobs back into the ARK repository (Jeremy Cline)
9423bd
- Sync up ARK's Fedora config with the dist-git repository (Jeremy Cline)
9423bd
- Pull in the latest configuration changes from Fedora (Jeremy Cline)
9423bd
- configs: enable CONFIG_NET_SCH_CBS (Marcelo Ricardo Leitner)
9423bd
- Drop configuration options in fedora/ that no longer exist (Jeremy Cline)
9423bd
- Set RH_FEDORA for ARK and Fedora (Jeremy Cline)
9423bd
- redhat/kernel.spec: Include the release in the kernel COPYING file (Jeremy Cline)
9423bd
- redhat/kernel.spec: add scripts/jobserver-exec to py3_shbang_opts list (Jeremy Cline)
9423bd
- redhat/kernel.spec: package bpftool-gen man page (Jeremy Cline)
9423bd
- distgit-changelog: handle multiple y-stream BZ numbers (Bruno Meneguele)
9423bd
- redhat/kernel.spec: remove all inline comments (Bruno Meneguele)
9423bd
- redhat/genspec: awk unknown whitespace regex pattern (Bruno Meneguele)
9423bd
- Improve the readability of gen_config_patches.sh (Jeremy Cline)
9423bd
- Fix some awkward edge cases in gen_config_patches.sh (Jeremy Cline)
9423bd
- Update the CI environment to use Fedora 31 (Jeremy Cline)
9423bd
- redhat: drop whitespace from with_gcov macro (Jan Stancek)
9423bd
- configs: Enable CONFIG_KEY_DH_OPERATIONS on ARK (Ondrej Mosnacek)
9423bd
- configs: Adjust CONFIG_MPLS_ROUTING and CONFIG_MPLS_IPTUNNEL (Laura Abbott)
9423bd
- New configs in lib/crypto (Jeremy Cline)
9423bd
- New configs in drivers/char (Jeremy Cline)
9423bd
- Turn on BLAKE2B for Fedora (Jeremy Cline)
9423bd
- kernel.spec.template: Clean up stray *.h.s files (Laura Abbott)
9423bd
- Build the SRPM in the CI job (Jeremy Cline)
9423bd
- New configs in net/tls (Jeremy Cline)
9423bd
- New configs in net/tipc (Jeremy Cline)
9423bd
- New configs in lib/kunit (Jeremy Cline)
9423bd
- Fix up released_kernel case (Laura Abbott)
9423bd
- New configs in lib/Kconfig.debug (Jeremy Cline)
9423bd
- New configs in drivers/ptp (Jeremy Cline)
9423bd
- New configs in drivers/nvme (Jeremy Cline)
9423bd
- New configs in drivers/net/phy (Jeremy Cline)
9423bd
- New configs in arch/arm64 (Jeremy Cline)
9423bd
- New configs in drivers/crypto (Jeremy Cline)
9423bd
- New configs in crypto/Kconfig (Jeremy Cline)
9423bd
- Add label so the Gitlab to email bridge ignores the changelog (Jeremy Cline)
9423bd
- Temporarily switch TUNE_DEFAULT to y (Jeremy Cline)
9423bd
- Run config test for merge requests and internal (Jeremy Cline)
9423bd
- Add missing licensedir line (Laura Abbott)
9423bd
- redhat/scripts: Remove redhat/scripts/rh_get_maintainer.pl (Prarit Bhargava)
9423bd
- configs: Take CONFIG_DEFAULT_MMAP_MIN_ADDR from Fedra (Laura Abbott)
9423bd
- configs: Turn off ISDN (Laura Abbott)
9423bd
- Add a script to generate configuration patches (Laura Abbott)
9423bd
- Introduce rh-configs-commit (Laura Abbott)
9423bd
- kernel-packaging: Remove kernel files from kernel-modules-extra package (Prarit Bhargava)
9423bd
- configs: Enable CONFIG_DEBUG_WX (Laura Abbott)
9423bd
- configs: Disable wireless USB (Laura Abbott)
9423bd
- Clean up some temporary config files (Laura Abbott)
9423bd
- configs: New config in drivers/gpu for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in arch/powerpc for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in crypto for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/usb for v5.4-rc1 (Jeremy Cline)
9423bd
- AUTOMATIC: New configs (Jeremy Cline)
9423bd
- Skip ksamples for bpf, they are broken (Jeremy Cline)
9423bd
- configs: New config in fs/erofs for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in mm for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/md for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in init for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in fs/fuse for v5.4-rc1 (Jeremy Cline)
9423bd
- merge.pl: Avoid comments but do not skip them (Don Zickus)
9423bd
- configs: New config in drivers/net/ethernet/pensando for v5.4-rc1 (Jeremy Cline)
9423bd
- Update a comment about what released kernel means (Laura Abbott)
9423bd
- Provide both Fedora and RHEL files in the SRPM (Laura Abbott)
9423bd
- kernel.spec.template: Trim EXTRAVERSION in the Makefile (Laura Abbott)
9423bd
- kernel.spec.template: Add macros for building with nopatches (Laura Abbott)
9423bd
- kernel.spec.template: Add some macros for Fedora differences (Laura Abbott)
9423bd
- kernel.spec.template: Consolodate the options (Laura Abbott)
9423bd
- configs: Add pending direcory to Fedora (Laura Abbott)
9423bd
- kernel.spec.template: Don't run hardlink if rpm-ostree is in use (Laura Abbott)
9423bd
- configs: New config in net/can for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/net/phy for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: Increase x86_64 NR_UARTS to 64 (Prarit Bhargava) [1730649]
9423bd
- configs: turn on ARM64_FORCE_52BIT for debug builds (Jeremy Cline)
9423bd
- kernel.spec.template: Tweak the python3 mangling (Laura Abbott)
9423bd
- kernel.spec.template: Add --with verbose option (Laura Abbott)
9423bd
- kernel.spec.template: Switch to using %%install instead of %%__install (Laura Abbott)
9423bd
- kernel.spec.template: Make the kernel.org URL https (Laura Abbott)
9423bd
- kernel.spec.template: Update message about secure boot signing (Laura Abbott)
9423bd
- kernel.spec.template: Move some with flags definitions up (Laura Abbott)
9423bd
- kernel.spec.template: Update some BuildRequires (Laura Abbott)
9423bd
- kernel.spec.template: Get rid of %%clean (Laura Abbott)
9423bd
- configs: New config in drivers/char for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in net/sched for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in lib for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in fs/verity for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in arch/aarch64 for v5.4-rc4 (Jeremy Cline)
9423bd
- configs: New config in arch/arm64 for v5.4-rc1 (Jeremy Cline)
9423bd
- Flip off CONFIG_ARM64_VA_BITS_52 so the bundle that turns it on applies (Jeremy Cline)
9423bd
- New configuration options for v5.4-rc4 (Jeremy Cline)
9423bd
- Correctly name tarball for single tarball builds (Laura Abbott)
9423bd
- configs: New config in drivers/pci for v5.4-rc1 (Jeremy Cline)
9423bd
- Allow overriding the dist tag on the command line (Laura Abbott)
9423bd
- Allow scratch branch target to be overridden (Laura Abbott)
9423bd
- Remove long dead BUILD_DEFAULT_TARGET (Laura Abbott)
9423bd
- Amend the changelog when rebasing (Laura Abbott)
9423bd
- configs: New config in drivers/platform for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/pinctrl for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/net/wireless for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/net/ethernet/mellanox for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/net/can for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/hid for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/dma-buf for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/crypto for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in arch/s390 for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in block for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/cpuidle for v5.4-rc1 (Jeremy Cline)
9423bd
- redhat: configs: Split CONFIG_CRYPTO_SHA512 (Laura Abbott)
9423bd
- redhat: Set Fedora options (Laura Abbott)
9423bd
- Set CRYPTO_SHA3_*_S390 to builtin on zfcpdump (Jeremy Cline)
9423bd
- configs: New config in drivers/edac for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/firmware for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/hwmon for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/iio for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/mmc for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/tty for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in arch/s390 for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in drivers/bus for v5.4-rc1 (Jeremy Cline)
9423bd
- Add option to allow mismatched configs on the command line (Laura Abbott)
9423bd
- configs: New config in drivers/crypto for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in sound/pci for v5.4-rc1 (Jeremy Cline)
9423bd
- configs: New config in sound/soc for v5.4-rc1 (Jeremy Cline)
9423bd
- gitlab: Add CI job for packaging scripts (Major Hayden)
9423bd
- Speed up CI with CKI image (Major Hayden)
9423bd
- Disable e1000 driver in ARK (Neil Horman)
9423bd
- configs: Fix the pending default for CONFIG_ARM64_VA_BITS_52 (Jeremy Cline)
9423bd
- configs: Turn on OPTIMIZE_INLINING for everything (Jeremy Cline)
9423bd
- configs: Set valid pending defaults for CRYPTO_ESSIV (Jeremy Cline)
9423bd
- Add an initial CI configuration for the internal branch (Jeremy Cline)
9423bd
- New drop of configuration options for v5.4-rc1 (Jeremy Cline)
9423bd
- New drop of configuration options for v5.4-rc1 (Jeremy Cline)
9423bd
- Pull the RHEL version defines out of the Makefile (Jeremy Cline)
9423bd
- Sync up the ARK build scripts (Jeremy Cline)
9423bd
- Sync up the Fedora Rawhide configs (Jeremy Cline)
9423bd
- Sync up the ARK config files (Jeremy Cline)
9423bd
- configs: Adjust CONFIG_FORCE_MAX_ZONEORDER for Fedora (Laura Abbott)
9423bd
- configs: Add README for some other arches (Laura Abbott)
9423bd
- configs: Sync up Fedora configs (Laura Abbott)
9423bd
- [initial commit] Add structure for building with git (Laura Abbott)
9423bd
- [initial commit] Add Red Hat variables in the top level makefile (Laura Abbott)
9423bd
- [initial commit] Red Hat gitignore and attributes (Laura Abbott)
9423bd
- [initial commit] Add changelog (Laura Abbott)
9423bd
- [initial commit] Add makefile (Laura Abbott)
9423bd
- [initial commit] Add files for generating the kernel.spec (Laura Abbott)
9423bd
- [initial commit] Add rpm directory (Laura Abbott)
9423bd
- [initial commit] Add files for packaging (Laura Abbott)
9423bd
- [initial commit] Add kabi files (Laura Abbott)
9423bd
- [initial commit] Add scripts (Laura Abbott)
9423bd
- [initial commit] Add configs (Laura Abbott)
9423bd
- [initial commit] Add Makefiles (Laura Abbott)
9423bd
9423bd
# The following bit is important for automation so please do not remove
9423bd
# END OF CHANGELOG
9423bd
9423bd
###
9423bd
# The following Emacs magic makes C-c C-e use UTC dates.
9423bd
# Local Variables:
9423bd
# rpm-change-log-uses-utc: t
9423bd
# End:
9423bd
###