# We have to override the new %%install behavior because, well... the kernel is special. %global __spec_install_pre %{___build_pre} # For Fedora >=33 to disable LTO optimization of perf tools %define _lto_cflags %{nil} # What parts do we want to build? We must build at least one kernel. # These are the kernels that are built IF the architecture allows it. # All should default to 1 (enabled) and be flipped to 0 (disabled) # by later arch-specific checks. # The following build options are enabled by default. # Use either --without in your rpmbuild command or force values # to 0 in here to disable them. # # kernel-headers %define with_headers %{?_without_headers: 0} %{?!_without_headers: 1} # perf %define with_perf %{?_without_perf: 1} %{?!_without_perf: 0} # tools %define with_tools %{?_without_tools: 1} %{?!_without_tools: 0} # kernel-debuginfo %define with_debuginfo %{?_without_debuginfo: 1} %{?!_without_debuginfo: 0} # # Additional options for user-friendly one-off kernel building: # # Only build the base kernel (--with baseonly): %define with_baseonly %{?_with_baseonly: 1} %{?!_with_baseonly: 0} # # Cross compile requested? %define with_cross %{?_with_cross: 1} %{?!_with_cross: 0} # # build a release kernel on rawhide %define with_release %{?_with_release: 1} %{?!_with_release: 0} # Want to build a vanilla kernel build without any non-upstream patches? %define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0} # Build the RPi bcm270x linux kernel port %define with_bcm270x %{?_without_bcm270x: 0} %{?!_without_bcm270x: 1} # By default build without rt-preempt version %define with_rt_preempt %{?_with_rt_preempt: 1} %{?!_with_rt_preempt: 0} # Enable Large Physical Address Extension support %define with_lpae %{?_with_lpae: 1} %{?!_with_lpae: 0} # Build a bcm2711 (RPi4) kernel %define with_rpi4 %{?_with_rpi4: 1} %{?!_with_rpi4: 0} # For a stable, released kernel, released_kernel should be 1. For rawhide # and/or a kernel built from an rc or git snapshot, released_kernel should # be 0. %global released_kernel 1 # baserelease defines which build revision of this kernel version we're # building. Use: rpmdev-bumpspec -c 'comment for changelog' # When changing base_sublevel below or going from rc to a final kernel, # reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec). # scripts/rebase.sh should be made to do that for you, actually. # # NOTE: baserelease must be > 0 or bad things will happen if you switch # to a released kernel (released version will be < rc version) # # For non-released -rc kernels, this will be appended after the rcX and # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # %global baserelease 1 # RaspberryPi foundation git snapshot (short) %global rpi_gitshort 75ab92b07 %global build_release %{baserelease} %global zipmodules 1 # Enable rt preempt build support # Only enable with a useable upstream patch %global enable_preempt 0 %if %{enable_preempt} # Real-Time kernel defines %global rtgitsnap a4b8f1f27 %global rtrelease 29 %if %{with_rt_preempt} %global build_release %{baserelease}.rt%{rtrelease} %endif %endif %if %{with_lpae} %global variant -lpae %global build_release %{baserelease}.lpae %global with_tools 0 %global with_perf 0 %endif %if %{with_rpi4} %global variant -rpi4 %global with_tools 0 %global with_perf 0 %global with_lpae 0 %endif # base_sublevel is the kernel version we're starting with and patching # on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base, # which yields a base_sublevel of 0. %define base_sublevel 6 ## If this is a released kernel ## %if 0%{?released_kernel} # Do we have a -stable update to apply? %define stable_update 62 # Set rpm version accordingly %if 0%{?stable_update} %define stablerev %{stable_update} %define stable_base %{stable_update} %endif %define pkg_version 6.%{base_sublevel}.%{stable_update} ## The not-released-kernel case ## %else # The next upstream release sublevel (base_sublevel+1) %define upstream_sublevel %(echo $((%{base_sublevel} + 1))) # The rc snapshot level %define rcrev 0 # The git snapshot level %define gitrev 0 # Set rpm version accordingly %define pkg_version 6.%{upstream_sublevel}.0 %endif # Nb: The above rcrev and gitrev values automagically define Source1 and Source2 below. %if 0%{!?nopatches:1} %define nopatches 0 %endif %if %{with_vanilla} %define nopatches 1 %endif %if %{nopatches} %define variant -vanilla %endif %if !%{with_debuginfo} %define _enable_debug_packages 0 %endif %define debuginfodir /usr/lib/debug # Needed because we override almost everything involving build-ids # and debuginfo generation. Currently we rely on the old alldebug setting. %global _build_id_links alldebug %if %{with_bcm270x} %define bcm270x 1 %if %{with_rpi4} %define Flavour rpi4 %else %define Flavour rpi %endif %define buildid .%{Flavour} %else %define bcm270x 0 %endif # pkg_release is what we'll fill in for the rpm Release: field %define pkg_release %{build_release}%{?buildid}%{?dist} %if %{zipmodules} %global zipsed -e 's/\.ko$/\.ko.xz/' %endif # The kernel tarball/base version %define kversion 6.%{base_sublevel} # Default kernel image name (compressed) %define install_name vmlinuz %ifarch armv7hl %define make_target bzImage %define kernel_image arch/arm/boot/zImage %define asmarch arm %define hdrarch arm %endif %ifarch aarch64 %define make_target Image %define kernel_image arch/arm64/boot/Image %define install_name vmlinux %define asmarch arm64 %define hdrarch arm64 %endif %define KVERREL %{version}-%{release}.%{_target_cpu} %define image_install_path boot # http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html %define kernel_mflags KALLSYMS_EXTRA_PASS=1 # Overrides for generic default options # don't build noarch kernels or headers (duh) %ifarch noarch %define with_headers 0 %define with_tools 0 %define with_perf 0 %endif # Should make listnewconfig fail if there's config options # printed out? %if %{nopatches} %define listnewconfig_fail 0 %else %define listnewconfig_fail 1 %endif # # Packages that need to be installed before the kernel is, because the %%post # scripts use them. # %define kernel_prereq coreutils, systemd, grubby %define initrd_prereq dracut Name: kernel%{?variant} License: GPLv2 and Redistributable, no modification permitted %if !%{bcm270x} Summary: The Linux kernel for the Raspberry Pi (BCM283x) URL: http://www.kernel.org %else %if "%{_target_cpu}" != "armv6hl" %if %{with_rpi4} Summary: The BCM2711 Linux kernel port for the Raspberry Pi 4 Model B %else Summary: The BCM2709 Linux kernel port for the Raspberry Pi 2 and 3 Model B %endif %else Summary: The BCM2708 Linux kernel port for the Raspberry Pi Model A, B and Zero %endif URL: https://github.com/raspberrypi/linux %endif Version: %{pkg_version} Release: %{pkg_release} ExclusiveArch: %{arm} aarch64 Requires: kernel-core-uname-r = %{KVERREL} Requires: kernel-modules-uname-r = %{KVERREL} BuildRequires: bash BuildRequires: bc BuildRequires: binutils BuildRequires: bison BuildRequires: bzip2 BuildRequires: diffutils BuildRequires: elfutils-libelf-devel BuildRequires: findutils BuildRequires: flex BuildRequires: gawk BuildRequires: gcc BuildRequires: gzip BuildRequires: hmaccalc BuildRequires: hostname BuildRequires: kmod BuildRequires: m4 BuildRequires: make BuildRequires: net-tools BuildRequires: openssl-devel %if 0%{?fedora} >= 41 BuildRequires: openssl-devel-engine %endif BuildRequires: patch BuildRequires: perl-interpreter BuildRequires: perl-Carp BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: python3-devel BuildRequires: redhat-rpm-config BuildRequires: tar BuildRequires: xz %if %{with_headers} BuildRequires: rsync %endif %if %{with_perf} BuildRequires: elfutils-devel BuildRequires: zlib-devel BuildRequires: binutils-devel BuildRequires: newt-devel BuildRequires: perl(ExtUtils::Embed) BuildRequires: audit-libs-devel BuildRequires: xmlto %endif %if %{with_tools} BuildRequires: pciutils-devel BuildRequires: gettext BuildRequires: ncurses-devel BuildRequires: asciidoc %endif %if %{with_debuginfo} BuildRequires: rpm-build, elfutils BuildConflicts: rpm < 4.13.0.1-19 # Most of these should be enabled after more investigation %undefine _include_minidebuginfo %undefine _find_debuginfo_dwz_opts %undefine _unique_build_ids %undefine _unique_debug_names %undefine _unique_debug_srcs %undefine _debugsource_packages %undefine _debuginfo_subpackages %undefine _include_gdb_index %global _find_debuginfo_opts -r %global _missing_build_ids_terminate_build 1 %global _no_recompute_build_ids 1 %endif %if %{with_cross} BuildRequires: binutils-%{_build_arch}-linux-gnu BuildRequires: gcc-%{_build_arch}-linux-gnu %define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu- %endif Source0: https://www.kernel.org/pub/linux/kernel/v6.x/linux-%{kversion}.tar.xz Source16: mod-extra.list Source17: mod-extra.sh Source99: filter-modules.sh # kernel config modifications Source1000: config-bcm27xx.cfg Source1100: config-bcm283x.cfg Source1200: config-lpae.cfg # rt kernel patch %if %{enable_preempt} Source1500: linux-rpi-6.%{base_sublevel}.y-rt%{rtrelease}-%{rtgitsnap}.patch.xz %endif # rt kernel config modification Source1501: config-rt.cfg # Sources for kernel-tools Source2000: cpupower.service Source2001: cpupower.config # For a stable release kernel %if 0%{?stable_update} %if 0%{?stable_base} Source1: https://www.kernel.org/pub/linux/kernel/v6.x/patch-6.%{base_sublevel}.%{stable_base}.xz %endif # non-released_kernel case # These are automagically defined by the rcrev and gitrev values set up # near the top of this spec file. %else %if 0%{?rcrev} Source1: https://www.kernel.org/pub/linux/kernel/v6.x/patch-6.%{upstream_sublevel}-rc%{rcrev}.xz %if 0%{?gitrev} Source2: https://www.kernel.org/pub/linux/kernel/v6.x/patch-6.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz %endif %else # pre-{base_sublevel+1}-rc1 case %if 0%{?gitrev} Source1: https://www.kernel.org/pub/linux/kernel/v6.x/patch-6.%{base_sublevel}-git%{gitrev}.xz %endif %endif %endif %if !%{nopatches} ## Patches for bcm270x builds (append patches with bcm270x) #RasperryPi patch Patch100: bcm270x-linux-rpi-6.%{base_sublevel}.y-%{rpi_gitshort}.patch.xz ## Patches for both builds (bcm270x & bcm283x) Patch140: 0001-Revert-Use-kernel-command-line-to-disable-memory-cgr.patch # Custom bootup logo Patch200: bootup-logo.patch # END OF PATCH DEFINITIONS %endif BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root %description The kernel meta package # # This macro does requires, provides, conflicts, obsoletes for a kernel package. # %%kernel_reqprovconf # It uses any kernel__conflicts and kernel__obsoletes # macros defined above. # %define kernel_reqprovconf \ Provides: kernel = %{pkg_version}-%{pkg_release}\ Provides: kernel-%{_target_cpu} = %{pkg_version}-%{pkg_release}%{?1:+%{1}}\ Provides: kernel-drm-nouveau = 16\ Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\ Requires(pre): %{kernel_prereq}\ Requires(pre): %{initrd_prereq}\ Suggests: linux-firmware\ Requires(pre): bcm283x-firmware\ Requires(preun): systemd\ Conflicts: xorg-x11-drv-vmmouse\ %{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\ %{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\ %{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\ # We can't let RPM do the dependencies automatic because it'll then pick up\ # a correct but undesirable perl dependency from the module headers which\ # isn't required for the kernel proper to function\ AutoReq: no\ AutoProv: yes\ %{nil} %package headers Summary: Header files for the Linux kernel for use by glibc Obsoletes: glibc-kernheaders < 3.0-46 Provides: glibc-kernheaders = 3.0-46 %if "0%{?variant}" Obsoletes: kernel-headers < %{pkg_version}-%{pkg_release} Provides: kernel-headers = %{pkg_version}-%{pkg_release} %endif %description headers Kernel-headers includes the C header files that specify the interface between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the glibc package. %package debuginfo-common-%{_target_cpu} Summary: Kernel source files used by %{name}-debuginfo packages %description debuginfo-common-%{_target_cpu} This package is required by %{name}-debuginfo subpackages. It provides the kernel source files common to all builds. %if %{with_perf} %package -n perf Summary: Performance monitoring for the Linux kernel License: GPLv2 %description -n perf This package contains the perf tool, which enables performance monitoring of the Linux kernel. %package -n perf-debuginfo Summary: Debug information for package perf Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release} AutoReqProv: no %description -n perf-debuginfo This package provides debug information for the perf package. # Note that this pattern only works right to match the .build-id # symlinks because of the trailing nonmatching alternation and # the leading .*, because of find-debuginfo.sh's buggy handling # of matching the pattern against the symlinks file. %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/traceevent/plugins/.*|XXX' -o perf-debuginfo.list} %package -n python3-perf Summary: Python bindings for apps which will manipulate perf events %description -n python3-perf The python3-perf package contains a module that permits applications written in the Python programming language to use the interface to manipulate perf events. # the python_sitearch macro should already be defined from above %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{python3_sitearch}/perf.so(\.debug)?|XXX' -o python3-perf-debuginfo.list} %endif %if %{with_tools} %package -n kernel-tools Summary: Assortment of tools for the Linux kernel License: GPLv2 Provides: cpupowerutils = 1:009-0.6.p1 Obsoletes: cpupowerutils < 1:009-0.6.p1 Provides: cpufreq-utils = 1:009-0.6.p1 Provides: cpufrequtils = 1:009-0.6.p1 Obsoletes: cpufreq-utils < 1:009-0.6.p1 Obsoletes: cpufrequtils < 1:009-0.6.p1 Obsoletes: cpuspeed < 1:1.5-16 Requires: kernel-tools-libs = %{version}-%{release} %description -n kernel-tools This package contains the tools/ directory from the kernel source and the supporting documentation. %package -n kernel-tools-libs Summary: Libraries for the kernels-tools License: GPLv2 %description -n kernel-tools-libs This package contains the libraries built from the tools/ directory from the kernel source. %package -n kernel-tools-libs-devel Summary: Assortment of tools for the Linux kernel License: GPLv2 Requires: kernel-tools = %{version}-%{release} Provides: cpupowerutils-devel = 1:009-0.6.p1 Obsoletes: cpupowerutils-devel < 1:009-0.6.p1 Requires: kernel-tools-libs = %{version}-%{release} Provides: kernel-tools-devel %description -n kernel-tools-libs-devel This package contains the development files for the tools/ directory from the kernel source. %package -n kernel-tools-debuginfo Summary: Debug information for package kernel-tools Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release} AutoReqProv: no %description -n kernel-tools-debuginfo This package provides debug information for package kernel-tools. # Note that this pattern only works right to match the .build-id # symlinks because of the trailing nonmatching alternation and # the leading .*, because of find-debuginfo.sh's buggy handling # of matching the pattern against the symlinks file. %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|.*%%{_bindir}/lsgpio(\.debug)?|.*%%{_bindir}/gpio-hammer(\.debug)?|.*%%{_bindir}/gpio-event-mon(\.debug)?|.*%%{_bindir}/iio_event_monitor(\.debug)?|.*%%{_bindir}/iio_generic_buffer(\.debug)?|.*%%{_bindir}/lsiio(\.debug)?|XXX' -o kernel-tools-debuginfo.list} %endif # # This macro creates a kernel--debuginfo package. # %%kernel_debuginfo_package # %define kernel_debuginfo_package() \ %package %{?1:%{1}-}debuginfo\ Summary: Debug information for package %{name}%{?1:-%{1}}\ Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\ Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\ AutoReqProv: no\ %description %{?1:%{1}-}debuginfo\ This package provides debug information for package %{name}%{?1:-%{1}}.\ This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\ %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\ %{nil} # # This macro creates a kernel--devel package. # %%kernel_devel_package # %define kernel_devel_package() \ %package %{?1:%{1}-}devel\ Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\ Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\ Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\ Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\ Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\ Provides: installonlypkg(kernel)\ AutoReqProv: no\ Requires(pre): /usr/bin/find\ Requires: perl\ %description %{?1:%{1}-}devel\ This package provides kernel headers and makefiles sufficient to build modules\ against the %{?2:%{2} }kernel package.\ %{nil} # # This macro creates a kernel--modules-extra package. # %%kernel_modules_extra_package # %define kernel_modules_extra_package() \ %package %{?1:%{1}-}modules-extra\ Summary: Extra kernel modules to match the %{?2:%{2} }kernel\ Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\ Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\ Provides: kernel%{?1:-%{1}}-modules-extra = %{version}-%{release}%{?1:+%{1}}\ Provides: installonlypkg(kernel-module)\ Provides: kernel%{?1:-%{1}}-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\ Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\ Requires: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\ AutoReq: no\ AutoProv: yes\ %description %{?1:%{1}-}modules-extra\ This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\ %{nil} # # This macro creates a kernel--modules package. # %%kernel_modules_package # %define kernel_modules_package() \ %package %{?1:%{1}-}modules\ Summary: kernel modules to match the %{?2:%{2}-}core kernel\ Provides: kernel%{?1:-%{1}}-modules-%{_target_cpu} = %{version}-%{release}\ Provides: kernel-modules-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\ Provides: kernel-modules = %{version}-%{release}%{?1:+%{1}}\ Provides: installonlypkg(kernel-module)\ Provides: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\ Requires(pre): kernel-uname-r = %{KVERREL}%{?1:+%{1}}\ AutoReq: no\ AutoProv: yes\ %description %{?1:%{1}-}modules\ This package provides commonly used kernel modules for the %{?2:%{2}-}core kernel package.\ %{nil} # # this macro creates a kernel- meta package. # %%kernel_meta_package # %define kernel_meta_package() \ %package %{1}\ summary: kernel meta-package for the %{1} kernel\ Requires: kernel-%{1}-core-uname-r = %{KVERREL}+%{1}\ Requires: kernel-%{1}-modules-uname-r = %{KVERREL}+%{1}\ Provides: installonlypkg(kernel)\ %description %{1}\ The meta-package for the %{1} kernel\ %{nil} # # This macro creates a kernel- and its -devel and -debuginfo too. # %%define variant_summary The Linux kernel compiled for # %%kernel_variant_package [-n ] # %define kernel_variant_package(n:) \ %package %{?1:%{1}-}core\ Summary: %{variant_summary}\ Provides: kernel-%{?1:%{1}-}core-uname-r = %{KVERREL}%{?1:+%{1}}\ Provides: installonlypkg(kernel)\ %{expand:%%kernel_reqprovconf}\ %if %{?1:1} %{!?1:0} \ %{expand:%%kernel_meta_package %{?1:%{1}}}\ %endif\ %{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\ %{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\ %{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\ %{expand:%%kernel_debuginfo_package %{?1:%{1}}}\ %{nil} # The main -core package %if %{bcm270x} %if "%{_target_cpu}" == "armv7hl" %if %{with_rpi4} %define variant_summary The Linux kernel for the Raspberry Pi 4 Model B %else %define variant_summary The Linux kernel for the Raspberry Pi 2/3 Model B %endif %else %define variant_summary The Linux kernel for the Raspberry Pi Model A, B & Zero %endif %kernel_variant_package %description core This package includes a patched version of the Linux kernel built for Raspberry Pi devices that use the Broadcom BCM27XX SOC. The kernel package contains the Linux kernel, the core of any Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc. %else %define variant_summary The Linux kernel %kernel_variant_package %description core The kernel package contains the Linux kernel, the core of any Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc. %endif ### ### prep ### %prep %if "%{baserelease}" == "0" echo "baserelease must be greater than zero" exit 1 %endif # more sanity checking; do it quietly if [ "%{patches}" != "%%{patches}" ] ; then for patch in %{patches} ; do if [ ! -f $patch ] ; then echo "ERROR: Patch ${patch##/*/} listed in specfile but is missing" exit 1 fi done fi 2>/dev/null patch_command='patch -p1 -F1 -s' ApplyPatch() { local patch=$1 shift if [ ! -f $patch ]; then exit 1 fi case "$patch" in *.bz2) bunzip2 < "$patch" | $patch_command ${1+"$@"} ;; *.gz) gunzip < "$patch" | $patch_command ${1+"$@"} ;; *.xz) unxz < "$patch" | $patch_command ${1+"$@"} ;; *) $patch_command ${1+"$@"} < "$patch" ;; esac } # don't apply patch if it's empty ApplyOptionalPatch() { local patch=$1 shift if [ ! -f $patch ]; then exit 1 fi local C=$(wc -l $patch | awk '{print $1}') if [ "$C" -gt 9 ]; then ApplyPatch $patch ${1+"$@"} fi } # First we unpack the kernel tarball. # If this isn't the first make prep, we use links to the existing clean tarball # which speeds things up quite a bit. # Update to latest upstream. %if 0%{?released_kernel} %define vanillaversion 6.%{base_sublevel} # non-released_kernel case %else %if 0%{?rcrev} %define vanillaversion 6.%{upstream_sublevel}-rc%{rcrev} %if 0%{?gitrev} %define vanillaversion 6.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev} %endif %else # pre-{base_sublevel+1}-rc1 case %if 0%{?gitrev} %define vanillaversion 6.%{base_sublevel}-git%{gitrev} %else %define vanillaversion 6.%{base_sublevel} %endif %endif %endif # %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3 # %%{kversion} : the base version, e.g. 2.6.34 # Use kernel-%%{kversion}%%{?dist} as the top-level directory name # so we can prep different trees within a single git directory. # Build a list of the other top-level kernel tree directories. # This will be used to hardlink identical vanilla subdirs. sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-6.*' \ | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||: # Delete all old stale trees. if [ -d kernel-%{kversion}%{?dist} ]; then cd kernel-%{kversion}%{?dist} for i in linux-* do if [ -d $i ]; then # Just in case we ctrl-c'd a prep already rm -rf deleteme.%{_target_cpu} # Move away the stale away, and delete in background. mv $i deleteme-$i rm -rf deleteme* & fi done cd .. fi # Generate new tree if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then # The base vanilla version already exists. cd kernel-%{kversion}%{?dist} # Any vanilla-* directories other than the base one are stale. for dir in vanilla-*; do [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir & done else rm -f pax_global_header # Look for an identical base vanilla dir that can be hardlinked. for sharedir in $sharedirs ; do if [[ ! -z $sharedir && -d $sharedir/vanilla-%{kversion} ]] ; then break fi done if [[ ! -z $sharedir && -d $sharedir/vanilla-%{kversion} ]] ; then %setup -q -n kernel-%{kversion}%{?dist} -c -T cp -al $sharedir/vanilla-%{kversion} . else %setup -q -n kernel-%{kversion}%{?dist} -c mv linux-%{kversion} vanilla-%{kversion} fi fi %if "%{kversion}" != "%{vanillaversion}" for sharedir in $sharedirs ; do if [[ ! -z $sharedir && -d $sharedir/vanilla-%{vanillaversion} ]] ; then break fi done if [[ ! -z $sharedir && -d $sharedir/vanilla-%{vanillaversion} ]] ; then cp -al $sharedir/vanilla-%{vanillaversion} . else # Need to apply patches to the base vanilla version. cp -al vanilla-%{kversion} vanilla-%{vanillaversion} cd vanilla-%{vanillaversion} # Update vanilla to the latest upstream. # (non-released_kernel case only) %if 0%{?rcrev} xzcat %{SOURCE1} | patch -p1 -F1 -s %if 0%{?gitrev} xzcat %{SOURCE2} | patch -p1 -F1 -s %endif %else # pre-{base_sublevel+1}-rc1 case %if 0%{?gitrev} xzcat %{SOURCE1} | patch -p1 -F1 -s %endif %endif cd .. fi %endif else # We already have all vanilla dirs, just change to the top-level directory. cd kernel-%{kversion}%{?dist} fi # Now build the kernel tree. cp -al vanilla-%{vanillaversion} linux-%{KVERREL} cd linux-%{KVERREL} # released_kernel with possible stable updates %if 0%{?stable_base} # This is special because the kernel spec is HELL and nothing is consistent xzcat %{SOURCE1} | patch -p1 -F1 -s %endif # # misc small stuff to make things compile # #ApplyOptionalPatch compile-fixes.patch %if !%{nopatches} for i in %{patches}; do %if !%{bcm270x} if [ ! $(echo $i |grep "/bcm270x") ]; then ApplyPatch $i fi %endif %if %{bcm270x} if [ ! $(echo $i |grep "/bcm283x") ]; then ApplyPatch $i fi %endif done %if %{with_rt_preempt} # apply rt kernel patches xzcat %{SOURCE1500} | patch -p1 -F1 -s %endif # END OF PATCH APPLICATIONS %endif # Any further pre-build tree manipulations happen here. chmod +x scripts/checkpatch.pl mv COPYING COPYING-%{version} # This Prevents scripts/setlocalversion from mucking with our version numbers. touch .scmversion %define make make %{?cross_opts} # get rid of unwanted files resulting from patch fuzz find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null # remove unnecessary SCM files find . -name .gitignore -exec rm -f {} \; >/dev/null # Ensure all python shebangs in 'tools' & 'scripts' directory are using python3 find scripts tools -type f -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' '{}' ';' %if %{with_rt_preempt} # remove append on rt kernels rm -f localversion-rt %endif cd .. ### ### build ### %build %ifnarch %{arm} aarch64 echo "This build is for arm archiecture only" exit 1 %endif cp_vmlinux() { eu-strip --remove-comment -o "$2" "$1" } BuildKernel() { MakeTarget=$1 KernelImage=$2 Flavour=$3 Arch=%{asmarch} Flav=${Flavour:++${Flavour}} InstallName=${4:-%{install_name}} DevelDir=/usr/src/kernels/%{KVERREL} # When the bootable image is just the ELF kernel, strip it. # We already copy the unstripped file into the debuginfo package. if [ "$KernelImage" = vmlinux ]; then CopyKernel=cp_vmlinux else CopyKernel=cp fi #KernelVer=%{version}-%{release}.%{_target_cpu}${Flav} KernelVer=%{version}-%{release}.%{_target_cpu} echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}... %if 0%{?stable_update} # make sure SUBLEVEL is incremented on a stable release. perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile %endif # make sure EXTRAVERSION says what we want it to say perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}/" Makefile # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme %if !0%{?rcrev} %if 0%{?gitrev} perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile %endif %endif # and now to start the build process make -s mrproper %if !%{bcm270x} make multi_v7_defconfig # merge kernel config fragments scripts/kconfig/merge_config.sh -m -r .config %{SOURCE1100} %endif %if %{bcm270x} %if "%{_target_cpu}" != "armv6hl" %if %{with_rpi4} make bcm2711_defconfig %else %ifarch aarch64 make bcmrpi3_defconfig %else make bcm2709_defconfig %endif %endif %else make bcmrpi_defconfig %endif # merge kernel config fragments scripts/kconfig/merge_config.sh -m -r .config %{SOURCE1000} %endif %if %{with_rt_preempt} # merge rt-preempt kernel config changes scripts/kconfig/merge_config.sh -m -r .config %{SOURCE1501} %endif %if %{with_lpae} # merge lpae kernel config changes scripts/kconfig/merge_config.sh -m -r .config %{SOURCE1200} %endif echo USING ARCH=$Arch #make ARCH=$Arch oldnoconfig >/dev/null make ARCH=$Arch olddefconfig %{make} ARCH=$Arch %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags} %{make} ARCH=$Arch %{?_smp_mflags} modules %{?sparse_mflags} || exit 1 # Start installing the results mkdir -p %{buildroot}/%{image_install_path} mkdir -p %{buildroot}/lib/modules/$KernelVer %if %{with_debuginfo} mkdir -p %{buildroot}%{debuginfodir}/%{image_install_path} %endif # Device Tree / Overlay %{make} ARCH=$Arch dtbs dtbs_install INSTALL_DTBS_PATH=%{buildroot}/%{image_install_path}/dtb-$KernelVer cp -r %{buildroot}/%{image_install_path}/dtb-$KernelVer %{buildroot}/lib/modules/$KernelVer/dtb %if %{bcm270x} cp -p arch/$Arch/boot/dts/overlays/README %{buildroot}/lib/modules/$KernelVer/dtb/overlays/ mkdir -p %{buildroot}/%{image_install_path}/overlays %endif # Start installing the results install -m 644 .config %{buildroot}/%{image_install_path}/config-$KernelVer install -m 644 .config %{buildroot}/lib/modules/$KernelVer/config install -m 644 System.map %{buildroot}/%{image_install_path}/System.map-$KernelVer install -m 644 System.map %{buildroot}/lib/modules/$KernelVer/System.map # We estimate the size of the initramfs because rpm needs to take this size # into consideration when performing disk space calculations. (See bz #530778) #dd if=/dev/zero of=%{buildroot}/boot/initramfs-$KernelVer.img bs=1M count=20 install -m 755 $KernelImage %{buildroot}/%{image_install_path}/$InstallName-$KernelVer cp %{buildroot}/%{image_install_path}/$InstallName-$KernelVer %{buildroot}/lib/modules/$KernelVer/$InstallName # hmac sign the kernel for FIPS echo "Creating hmac file: %{buildroot}/%{image_install_path}/.%{install_name}-$KernelVer.hmac" ls -l %{buildroot}/%{image_install_path}/$InstallName-$KernelVer sha512hmac %{buildroot}/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,%{buildroot},," > %{buildroot}/%{image_install_path}/.%{install_name}-$KernelVer.hmac; cp %{buildroot}/%{image_install_path}/.%{install_name}-$KernelVer.hmac %{buildroot}/lib/modules/$KernelVer/.%{install_name}.hmac mkdir -p %{buildroot}/lib/modules/$KernelVer # Override $(mod-fw) because we don't want it to install any firmware # we'll get it from the linux-firmware package and we don't want conflicts %{make} ARCH=$Arch INSTALL_MOD_PATH=%{buildroot} modules_install KERNELRELEASE=$KernelVer mod-fw= # And save the headers/makefiles etc for building modules against # # This all looks scary, but the end result is supposed to be: # * all arch relevant include/ files # * all Makefile/Kconfig files # * all script/ files rm -f %{buildroot}/lib/modules/$KernelVer/build rm -f %{buildroot}/lib/modules/$KernelVer/source mkdir -p %{buildroot}/lib/modules/$KernelVer/build (cd %{buildroot}/lib/modules/$KernelVer ; ln -s build source) # dirs for additional modules per module-init-tools, kbuild/modules.txt mkdir -p %{buildroot}/lib/modules/$KernelVer/extra mkdir -p %{buildroot}/lib/modules/$KernelVer/updates # first copy everything cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` %{buildroot}/lib/modules/$KernelVer/build cp Module.symvers %{buildroot}/lib/modules/$KernelVer/build cp System.map %{buildroot}/lib/modules/$KernelVer/build if [ -s Module.markers ]; then cp Module.markers %{buildroot}/lib/modules/$KernelVer/build fi # then drop all but the needed Makefiles/Kconfig files rm -rf %{buildroot}/lib/modules/$KernelVer/build/Documentation rm -rf %{buildroot}/lib/modules/$KernelVer/build/scripts rm -rf %{buildroot}/lib/modules/$KernelVer/build/include cp .config %{buildroot}/lib/modules/$KernelVer/build cp -a scripts %{buildroot}/lib/modules/$KernelVer/build if [ -d arch/$Arch/scripts ]; then cp -a arch/$Arch/scripts %{buildroot}/lib/modules/$KernelVer/build/arch/%{_arch} || : fi if [ -f arch/$Arch/*lds ]; then cp -a arch/$Arch/*lds %{buildroot}/lib/modules/$KernelVer/build/arch/%{_arch}/ || : fi rm -f %{buildroot}/lib/modules/$KernelVer/build/scripts/*.o rm -f %{buildroot}/lib/modules/$KernelVer/build/scripts/*/*.o if [ -d arch/%{asmarch}/include ]; then cp -a --parents arch/%{asmarch}/include %{buildroot}/lib/modules/$KernelVer/build/ fi # We need module.lds to compile out-of-tree modules cp -a --parents arch/%{asmarch}/kernel/module.lds %{buildroot}/lib/modules/$KernelVer/build/ || : %ifarch aarch64 # arch/arm64/include/asm/xen references arch/arm cp -a --parents arch/arm/include/asm/xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/ # arch/arm64/include/asm/opcodes.h references arch/arm cp -a --parents arch/arm/include/asm/opcodes.h $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/ %endif # include the machine specific headers if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then cp -a --parents arch/%{asmarch}/mach-${Flavour}/include %{buildroot}/lib/modules/$KernelVer/build/ fi # include a few files for 'make prepare' cp -a --parents arch/arm/tools/gen-mach-types %{buildroot}/lib/modules/$KernelVer/build/ cp -a --parents arch/arm/tools/mach-types %{buildroot}/lib/modules/$KernelVer/build/ cp -a include %{buildroot}/lib/modules/$KernelVer/build/include # Make sure the Makefile and version.h have a matching timestamp so that # external modules can be built touch -r %{buildroot}/lib/modules/$KernelVer/build/Makefile %{buildroot}/lib/modules/$KernelVer/build/include/generated/uapi/linux/version.h # Copy .config to include/config/auto.conf so "make prepare" is unnecessary. cp %{buildroot}/lib/modules/$KernelVer/build/.config %{buildroot}/lib/modules/$KernelVer/build/include/config/auto.conf %if %{with_debuginfo} eu-readelf -n vmlinux | grep "Build ID" | awk '{print $NF}' > vmlinux.id cp vmlinux.id %{buildroot}/lib/modules/$KernelVer/build/vmlinux.id # # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm # mkdir -p %{buildroot}%{debuginfodir}/lib/modules/$KernelVer cp vmlinux %{buildroot}%{debuginfodir}/lib/modules/$KernelVer %endif find %{buildroot}/lib/modules/$KernelVer -name "*.ko" -type f >modnames # mark modules executable so that strip-to-file can strip them xargs --no-run-if-empty chmod u+x < modnames # Generate a list of modules for block and networking. grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA | sed -n 's,^.*/\([^/]*\.ko\): *U \(.*\)$,\1 \2,p' > drivers.undef collect_modules_list() { sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef | LC_ALL=C sort -u > %{buildroot}/lib/modules/$KernelVer/modules.$1 if [ ! -z "$3" ]; then sed -r -e "/^($3)\$/d" -i %{buildroot}/lib/modules/$KernelVer/modules.$1 fi } collect_modules_list networking \ 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice' collect_modules_list block \ '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' collect_modules_list drm \ 'drm_open|drm_init' collect_modules_list modesetting \ 'drm_crtc_init' # detect missing or incorrect license tags ( find %{buildroot}/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \ grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1 # remove files that will be auto generated by depmod at rpm -i time pushd %{buildroot}/lib/modules/$KernelVer/ rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep} popd # Call the modules-extra script to move things around %{SOURCE17} %{buildroot}/lib/modules/$KernelVer %{SOURCE16} # # Generate the kernel-core and kernel-modules files lists # # Copy the System.map file for depmod to use, and create a backup of the # full module tree so we can restore it after we're done filtering cp System.map %{buildroot}/. pushd %{buildroot} mkdir restore cp -r lib/modules/$KernelVer/* restore/. # don't include anything going into k-m-e in the file lists rm -rf lib/modules/$KernelVer/extra # Find all the module files and filter them out into the core and modules # lists. This actually removes anything going into -modules from the dir. find lib/modules/$KernelVer/kernel -name *.ko | sort -n > modules.list cp $RPM_SOURCE_DIR/filter-*.sh . %{SOURCE99} modules.list %{_target_cpu} rm filter-*.sh # Run depmod on the resulting module tree and make sure it isn't broken depmod -b . -aeF ./System.map $KernelVer &> depmod.out if [ -s depmod.out ]; then echo "Depmod failure" cat depmod.out exit 1 else rm depmod.out fi # remove files that will be auto generated by depmod at rpm -i time pushd %{buildroot}/lib/modules/$KernelVer/ rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep} popd # Go back and find all of the various directories in the tree. We use this # for the dir lists in kernel-core find lib/modules/$KernelVer/kernel -type d | sort -n > module-dirs.list # Cleanup rm System.map cp -r restore/* lib/modules/$KernelVer/. rm -rf restore popd # Make sure the files lists start with absolute paths or rpmbuild fails. # Also add in the dir entries sed -e 's/^lib*/\/lib/' %{?zipsed} %{buildroot}/k-d.list > ../kernel-modules.list sed -e 's/^lib*/%dir \/lib/' %{?zipsed} %{buildroot}/module-dirs.list > ../kernel-core.list sed -e 's/^lib*/\/lib/' %{?zipsed} %{buildroot}/modules.list >> ../kernel-core.list # Cleanup rm -f %{buildroot}/k-d.list rm -f %{buildroot}/modules.list rm -f %{buildroot}/module-dirs.list # Move the devel headers out of the root file system mkdir -p %{buildroot}/usr/src/kernels mv %{buildroot}/lib/modules/$KernelVer/build %{buildroot}/$DevelDir # This is going to create a broken link during the build, but we don't use # it after this point. We need the link to actually point to something # when kernel-devel is installed, and a relative link doesn't work across # the F17 UsrMove feature. ln -sf $DevelDir %{buildroot}/lib/modules/$KernelVer/build # prune junk from kernel-devel find %{buildroot}/usr/src/kernels -name ".*.cmd" -exec rm -f {} \; } ### ### DO it... ### # prepare directories rm -rf %{buildroot} mkdir -p %{buildroot}/%{image_install_path} mkdir -p %{buildroot}%{_libexecdir} cd linux-%{KVERREL} BuildKernel %make_target %kernel_image %{?Flavour} %global perf_make \ make EXTRA_CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf 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 NO_JVMTI=1 prefix=%{_prefix} PYTHON=%{__python3} %if %{with_perf} # perf %{perf_make} DESTDIR=%{buildroot} all # perf-man %{make} -C tools/perf/Documentation man %endif %if %{with_tools} # cpupower # make sure version-gen.sh is executable. chmod +x tools/power/cpupower/utils/version-gen.sh %{make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false pushd tools/thermal/tmon/ %{make} popd pushd tools/iio/ %{make} popd pushd tools/gpio/ %{make} popd pushd tools/kvm/kvm_stat %{make} popd %endif if [ "%{zipmodules}" -eq "1" ]; then \ find %{buildroot}/lib/modules/ -type f -name '*.ko' | xargs xz; \ fi ### ### Special hacks for debuginfo subpackages. ### # This macro is used by %%install, so we must redefine it before that. %define debug_package %{nil} %if %{with_debuginfo} %ifnarch noarch %global __debug_package 1 %files -f debugfiles.list debuginfo-common-%{_target_cpu} %defattr(-,root,root) %endif %endif # # Disgusting hack alert! We need to ensure we sign modules *after* all # invocations of strip occur, which is in __debug_install_post if # find-debuginfo.sh runs, and __os_install_post if not. # %define __spec_install_post \ %{?__debug_package:%{__debug_install_post}}\ %{__arch_install_post}\ %{__os_install_post} ### ### install ### %install cd linux-%{KVERREL} # We have to do the headers install before the tools install because the # kernel headers_install will remove any header files in /usr/include that # it doesn't install itself. %if %{with_headers} # Install kernel headers make ARCH=%{hdrarch} INSTALL_HDR_PATH=%{buildroot}/usr headers_install find %{buildroot}/usr/include \ \( -name .install -o -name .check -o \ -name ..install.cmd -o -name ..check.cmd \) | xargs rm -f %endif %if %{with_perf} # perf tool binary and supporting scripts/binaries %{perf_make} DESTDIR=%{buildroot} lib=%{_lib} install-bin install-traceevent-plugins # remove the 'trace' symlink. rm -f %{buildroot}%{_bindir}/trace # python-perf extension %{perf_make} DESTDIR=%{buildroot} install-python_ext # perf man pages %{make} prefix=%{_prefix} DESTDIR=%{buildroot} -C tools/perf/Documentation install-man # remove perf-tips dir rm -rf %{buildroot}%{_docdir}/perf-tip # remove the perf examples/include dir rm -rf %{buildroot}/usr/lib/perf/examples rm -rf %{buildroot}/usr/lib/perf/include %endif %if %{with_tools} %{make} -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install rm -f %{buildroot}%{_libdir}/*.{a,la} %find_lang cpupower mv cpupower.lang ../ chmod 0755 %{buildroot}%{_libdir}/libcpupower.so* mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower pushd tools/thermal/tmon make INSTALL_ROOT=%{buildroot} install popd pushd tools/iio make DESTDIR=%{buildroot} install popd pushd tools/gpio make DESTDIR=%{buildroot} install popd pushd tools/kvm/kvm_stat make INSTALL_ROOT=%{buildroot} install popd %endif ### ### scripts ### %if %{with_tools} %post -n kernel-tools /sbin/ldconfig %postun -n kernel-tools /sbin/ldconfig %endif # # This macro defines a %%post script for a kernel*-devel package. # %%kernel_devel_post [] # %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ then\ . /etc/sysconfig/kernel || exit $?\ fi\ if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*.fc*.*/$f $f\ done)\ fi\ %{nil} # # This macro defines a %%post script for a kernel*-modules-extra package. # It also defines a %%postun script that does the same thing. # %%kernel_modules_extra_post [] # %define kernel_modules_extra_post() \ %{expand:%%post %{?1:%{1}-}modules-extra}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ %{nil}\ %{expand:%%postun %{?1:%{1}-}modules-extra}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ %{nil} # # This macro defines a %%post script for a kernel*-modules package. # It also defines a %%postun script that does the same thing. # %%kernel_modules_post [] # %define kernel_modules_post() \ %{expand:%%post %{?1:%{1}-}modules}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ %{nil}\ %{expand:%%postun %{?1:%{1}-}modules}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ %{nil} # This macro defines a %%posttrans script for a kernel package. # %%kernel_variant_posttrans [] # More text can follow to go at the end of this variant's %%post. # %define kernel_variant_posttrans() \ %{expand:%%posttrans %{?1:%{1}-}core}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ mkdir -p /%{image_install_path}/efi/overlays\ %if "%{_target_cpu}" != "armv6hl"\ %if %{with_rpi4}\ %ifarch aarch64\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/%{install_name} /%{image_install_path}/efi/kernel8.img\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/%{install_name} /%{image_install_path}/efi/kernel7l.img\ %endif\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/%{install_name} /%{image_install_path}/efi/kernel7.img\ %endif\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/%{install_name} /%{image_install_path}/efi/kernel.img\ %endif\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/%{install_name} /%{image_install_path}/%{install_name}-%{KVERREL}%{?1:+%{1}}\ %if %{bcm270x}\ rm -f /%{image_install_path}/efi/overlays/*\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/overlays/* /%{image_install_path}/efi/overlays/\ mkdir -p /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}\ %if "%{_target_cpu}" != "armv6hl"\ %ifarch aarch64\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/broadcom/bcm271* /%{image_install_path}/efi/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/broadcom/bcm271* /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}/\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm2709* /%{image_install_path}/efi/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm2709* /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm271* /%{image_install_path}/efi/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm271* /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}/\ %endif\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm2708* /%{image_install_path}/efi/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm2708* /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}/\ %endif\ %else\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm28* /%{image_install_path}/efi/\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/dtb/bcm28* /%{image_install_path}/dtb-%{KVERREL}%{?1:+%{1}}/\ %endif\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/config /%{image_install_path}/config-%{KVERREL}%{?1:+%{1}}\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/System.map /%{image_install_path}/System.map-%{KVERREL}%{?1:+%{1}}\ cp -f /lib/modules/%{KVERREL}%{?1:+%{1}}/.%{install_name}.hmac /%{image_install_path}/.%{install_name}-%{KVERREL}%{?1:+%{1}}.hmac\ %{nil} # # This macro defines a %%post script for a kernel package and its devel package. # %%kernel_variant_post [-v ] [-r ] # More text can follow to go at the end of this variant's %%post. # %define kernel_variant_post(v:r:) \ %{expand:%%kernel_devel_post %{?-v*}}\ %{expand:%%kernel_modules_post %{?-v*}}\ %{expand:%%kernel_modules_extra_post %{?-v*}}\ %{expand:%%kernel_variant_posttrans %{?-v*}}\ %{expand:%%post %{?-v*:%{-v*}-}core}\ %{nil} # # This macro defines a %%preun script for a kernel package. # %%kernel_variant_preun # %define kernel_variant_preun() \ %{expand:%%preun %{?1:%{1}-}core}\ /bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/%{install_name}-%{KVERREL}%{?1:+%{1}} || exit $?\ rm -f /%{image_install_path}/.%{install_name}-%{KVERREL}%{?1:+%{1}}.hmac\ %{nil} %kernel_variant_preun %kernel_variant_post -r kernel if [ -x /sbin/ldconfig ] then /sbin/ldconfig -X || exit $? fi ### ### file lists ### %if %{with_headers} %files headers %defattr(-,root,root) /usr/include/* %endif %if %{with_perf} %files -n perf %defattr(-,root,root) %{_bindir}/perf %dir %{_libdir}/traceevent/plugins %{_libdir}/traceevent/plugins/* %dir %{_libexecdir}/perf-core %{_libexecdir}/perf-core/* %{_datadir}/perf-core/* %{_mandir}/man[1-8]/perf* %{_sysconfdir}/bash_completion.d/perf %doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt %doc linux-%{KVERREL}/tools/perf/Documentation/tips.txt %files -n python3-perf %defattr(-,root,root) %{python3_sitearch} %if %{with_debuginfo} %files -f perf-debuginfo.list -n perf-debuginfo %defattr(-,root,root) %files -f python3-perf-debuginfo.list -n python3-perf-debuginfo %defattr(-,root,root) %endif %endif %if %{with_tools} %files -n kernel-tools -f cpupower.lang %defattr(-,root,root) %{_bindir}/cpupower %{_unitdir}/cpupower.service %{_mandir}/man[1-8]/cpupower* %config(noreplace) %{_sysconfdir}/sysconfig/cpupower %{_bindir}/tmon %{_bindir}/iio_event_monitor %{_bindir}/iio_generic_buffer %{_bindir}/lsiio %{_bindir}/lsgpio %{_bindir}/gpio-hammer %{_bindir}/gpio-event-mon %{_bindir}/gpio-watch %{_mandir}/man1/kvm_stat* %{_bindir}/kvm_stat %{_datadir}/bash-completion/completions/cpupower %if %{with_debuginfo} %files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo %defattr(-,root,root) %endif %files -n kernel-tools-libs %{_libdir}/libcpupower.so.0 %{_libdir}/libcpupower.so.0.0.1 %files -n kernel-tools-libs-devel %{_libdir}/libcpupower.so %{_includedir}/cpufreq.h %endif # empty meta-package %files %defattr(-,root,root) # This is %%{image_install_path} on an arch where that includes ELF files, # or empty otherwise. %define elf_image_install_path %{?kernel_image_elf:%{image_install_path}} # # This macro defines the %%files sections for a kernel package # and its devel and debuginfo packages. # %%kernel_variant_files [-k vmlinux] # %define kernel_variant_files(k:) \ %{expand:%%files -f kernel-%{?2:%{2}-}core.list %{?2:%{2}-}core}\ %defattr(-,root,root)\ %{!?_licensedir:%global license %%doc}\ %license linux-%{KVERREL}/COPYING-%{version}\ %ghost /%{image_install_path}/%{?-k:%{-k*}}%{!?-k:%{install_name}}-%{KVERREL}%{?2:+%{2}}\ /lib/modules/%{KVERREL}%{?2:+%{2}}/.%{install_name}.hmac\ %ghost /%{image_install_path}/.%{install_name}-%{KVERREL}%{?2:+%{2}}.hmac\ /lib/modules/%{KVERREL}%{?2:+%{2}}/dtb\ %ghost /%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}}\ /lib/modules/%{KVERREL}%{?2:+%{2}}/%{?-k:%{-k*}}%{!?-k:%{install_name}}\ %attr(600,root,root) /lib/modules/%{KVERREL}%{?2:+%{2}}/System.map\ %ghost /%{image_install_path}/System.map-%{KVERREL}%{?2:+%{2}}\ /lib/modules/%{KVERREL}%{?2:+%{2}}/config\ %ghost /%{image_install_path}/config-%{KVERREL}%{?2:+%{2}}\ %{?_bcm270x:%ghost /%{image_install_path}/efi/overlays}\ %dir /lib/modules\ %dir /lib/modules/%{KVERREL}%{?2:+%{2}}\ %dir /lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\ /lib/modules/%{KVERREL}%{?2:+%{2}}/build\ /lib/modules/%{KVERREL}%{?2:+%{2}}/source\ /lib/modules/%{KVERREL}%{?2:+%{2}}/updates\ /lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\ %{expand:%%files -f kernel-%{?2:%{2}-}modules.list %{?2:%{2}-}modules}\ %defattr(-,root,root)\ %{expand:%%files %{?2:%{2}-}devel}\ %defattr(-,root,root)\ /usr/src/kernels/%{KVERREL}%{?2:+%{2}}\ %{expand:%%files %{?2:%{2}-}modules-extra}\ %defattr(-,root,root)\ /lib/modules/%{KVERREL}%{?2:+%{2}}/extra\ %if %{with_debuginfo}\ %ifnarch noarch\ %{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\ %defattr(-,root,root)\ %endif\ %endif\ %if %{?2:1} %{!?2:0}\ %{expand:%%files %{2}}\ %defattr(-,root,root)\ %endif\ %{nil} %kernel_variant_files %changelog * Thu Nov 21 2024 Damian Wrobel - 6.6.62-1.rpi - Update to stable kernel patch v6.6.62 - Sync RPi patch to git revision: 75ab92b077602734458f0a77e19a3599be29b93b - Remove 0001-Revert-cgroup-Disable-cgroup-memory-by-default.patch - Add 0001-Revert-Use-kernel-command-line-to-disable-memory-cgr.patch * Wed Oct 23 2024 Damian Wrobel - 6.6.58-1.rpi - Update to stable kernel patch v6.6.58 - Sync RPi patch to git revision: 1af976d476424009ac9d93313a9fad9cbb5498ae * Wed Sep 04 2024 Damian Wrobel - 6.6.47-1.rpi - Update to stable kernel patch v6.6.47 - Sync RPi patch to git revision: 789af262fb268b2006099a096faf4a383592ce1b * Fri Jul 26 2024 Damian Wrobel - 6.6.42-1.rpi - Update to stable kernel patch v6.6.42 - Sync RPi patch to git revision: 485d11cfa7df2d2deb39c9b3455cebcb1a85cea2 * Tue Jun 18 2024 Damian Wrobel - 6.6.34-1.rpi - Update to stable kernel patch v6.6.34 - Sync RPi patch to git revision: cd92a9591833ea06d1f12391f6b027fcecf436a9 * Thu May 09 2024 Damian Wrobel - 6.6.30-1.rpi - Update to stable kernel patch v6.6.30 - Sync RPi patch to git revision: e0c78d59082aaadb95fc301af239c991686a1822 * Fri Mar 15 2024 Damian Wrobel - 6.6.21-1.rpi - Update to stable kernel patch v6.6.21 - Sync RPi patch to git revision: 841bb8e98b3383fdb98b43251923b94e6c86f1cf - Remove 0001-perf-build-fix-epel8.patch * Fri Feb 09 2024 Damian Wrobel - 6.1.77-1.rpi - Update to stable kernel patch v6.1.77 - Sync RPi patch to git revision: 77fc1fbcb5c013329af9583307dd1ff3cd4752aa * Thu Jan 11 2024 Damian Wrobel - 6.1.72-1.rpi - Update to stable kernel patch v6.1.72 - Sync RPi patch to git revision: db53b52e7a54b6eed59dbbfb6f4b19ac6ed4edb3 * Thu Nov 09 2023 Damian Wrobel - 6.1.61-1.rpi - Update to stable kernel patch v6.1.61 - Sync RPi patch to git revision: 020ee5029ab0b11e47696f538418105ccfdb44de * Thu Oct 19 2023 Damian Wrobel - 6.1.58-1.rpi - Update to stable kernel patch v6.1.58 - Sync RPi patch to git revision: cb8a4adb586c5e926e415ac0dae3ffb4af30b0a9 * Fri Sep 01 2023 Damian Wrobel - 6.1.50-1.rpi - Update to stable kernel patch v6.1.50 - Sync RPi patch to git revision: 9b79cb06ad370cfd5fc52f7d85d82bdcff701828 - Rename rpmversion -> pkg_version to avoid build error on >=F39 * Fri Jul 28 2023 Damian Wrobel - 6.1.42-1.rpi - Update to stable kernel patch v6.1.42 - Sync RPi patch to git revision: 5fb3b300557d6a6902e7321f42fdabb8c09eef54 * Fri Jun 30 2023 Damian Wrobel - 6.1.36-1.rpi - Update to stable kernel patch v6.1.36 - Sync RPi patch to git revision: dc419608fb4e13bf1e33e6add31860730dd953fa - Rebase 0001-Revert-cgroup-Disable-cgroup-memory-by-default.patch * Tue May 16 2023 Damian Wrobel - 6.1.28-1.rpi - Update to stable kernel patch v6.1.28 - Sync RPi patch to git revision: 1229967a3ab861660b6d31ccdc8526bd44712b13 * Wed Apr 12 2023 Damian Wrobel - 6.1.23-1.rpi - Update to stable kernel patch v6.1.23 - Sync RPi patch to git revision: ceb4b70919741a72b355fd50ebc0a38b73e98ba5 * Wed Mar 29 2023 Damian Wrobel - 6.1.21-1.rpi - Update to stable kernel patch v6.1.21 - Sync RPi patch to git revision: b96c6eae8b18e84f837ba6d805a5fb172dfdf48b * Fri Mar 17 2023 Damian Wrobel - 6.1.19-1.rpi - Update to stable kernel patch v6.1.19 - Sync RPi patch to git revision: 0ac970bd2668fe68da8a24b73e74ee5d2b64cf89 * Tue Mar 07 2023 Damian Wrobel - 6.1.15-1.rpi - Update to stable kernel patch v6.1.15 - Sync RPi patch to git revision: d1292885062c08dbc9ffe89d52819ec360bc9fec * Wed Jan 25 2023 Damian Wrobel - 5.15.89-1.rpi - Update to stable kernel patch v5.15.89 - Sync RPi patch to git revision: 3bcc86eb3ed952c22ceecce8932dde72ea01f8cc * Fri Nov 18 2022 Damian Wrobel - 5.15.78-1.rpi - Update to stable kernel patch v5.15.78 - Sync RPi patch to git revision: 1fb2f72375062aa132961f9d9b8d61eb4ae11069 * Fri Oct 07 2022 Damian Wrobel - 5.15.72-1.rpi - Update to stable kernel patch v5.15.72 - Sync RPi patch to git revision: 54d44290debae98ac25416742a7534046b011125 * Tue Sep 13 2022 Damian Wrobel - 5.15.67-1.rpi - Update to stable kernel patch v5.15.67 - Sync RPi patch to git revision: 3157603c3925a30c6b26dc8f7a1f2c23f7b7bb55 * Fri Aug 19 2022 Damian Wrobel - 5.15.56-2.rpi - Add unconditionally BR for python3-devel * Thu Aug 18 2022 Damian Wrobel - 5.15.56-1.rpi - Update to stable kernel patch v5.15.56 - Sync RPi patch to git revision: 91b21aac222f8fccbbc58a26ca252836e36c347d * Thu Jul 07 2022 Damian Wrobel - 5.15.52-1.rpi - Update to stable kernel patch v5.15.52 - Sync RPi patch to git revision: 2a4746398db05d1d71e00c8f2cccdb85b2d3ca3c * Mon Jun 06 2022 Damian Wrobel - 5.15.45-2.rpi - Sync RPi patch to git revision: 9b5737276bd605181fbd48b5483c3a805001ca9f * Mon Jun 06 2022 Damian Wrobel - 5.15.45-1.rpi - Update to stable kernel patch v5.15.45 - Sync RPi patch to git revision: b52941068bcc4f64501e4719103d3e4000ed4873 * Tue May 31 2022 Damian Wrobel - 5.15.43-5.rpi - Add missing BR for PBF - More bpf related config adjustments * Tue May 31 2022 Damian Wrobel - 5.15.43-3.rpi - Revert "cgroup: Disable cgroup "memory" by default" patch * Fri May 27 2022 Damian Wrobel - 5.15.43-2.rpi - Update to stable kernel patch v5.15.43 - Sync RPi patch to git revision: 97be5486aeff2253079e75fc3222fbe66118cf12 - Append bpf to CONFIG_LSM * Tue May 10 2022 Damian Wrobel - 5.15.38-1.rpi - Update to stable kernel patch v5.15.38 - Sync RPi patch to git revision: 2cca267016006654836c46bdd8efa8f9b6402e5d * Mon May 09 2022 Damian Wrobel - 5.15.32-2.rpi - Enable Pressure Stall Information config option * Thu Mar 31 2022 Damian Wrobel - 5.15.32-1.rpi - Update to stable kernel patch v5.15.32 - Sync RPi patch to git revision: 6f921e98008589258f97243fb6658d09750f0a2f * Mon Feb 21 2022 Damian Wrobel - 5.15.24-1.rpi - Update to stable kernel patch v5.15.24 - Sync RPi patch to git revision: ac66b3f757a3a6c84c6641356fb81c9fce3e89e9 * Mon Jan 31 2022 Damian Wrobel - 5.15.17-1.rpi - Update to stable kernel patch v5.15.17 - Sync RPi patch to git revision: bbd0583b5b093352113c48cbd8176640168fa6da * Fri Nov 05 2021 Damian Wrobel - 5.15.0-1.rpi - Update to stable kernel patch v5.15.0 - Sync RPi patch to git revision: 4937752e1a7e0969d01114b875dc41ed6ad3e5ad * Thu Oct 21 2021 Damian Wrobel - 5.10.74-1.rpi - Update to stable kernel patch v5.10.74 - Sync RPi patch to git revision: 132e8f214f8e94a5ca8c269bd453f0a82b147311 * Wed Sep 22 2021 Damian Wrobel - 5.10.63-1.rpi - Update to stable kernel patch v5.10.63 - Sync RPi patch to git revision: a5d2df01fe25d6fce11485c4d8ae0c0a1ddef43a * Wed Sep 01 2021 Damian Wrobel - 5.10.60-1.rpi - Update to stable kernel patch v5.10.60 - Sync RPi patch to git revision: e4cb65cf23c78b4912786aaf8467aa215d4e1d88 * Thu Aug 05 2021 Damian Wrobel - 5.10.52-2.rpi - Add CEPH support - Sync RPi patch to git revision: 109751e91ee091a452d92df38e73b1d37b93e4b4 * Fri Jul 23 2021 Damian Wrobel - 5.10.52-1.rpi - Update to stable kernel patch v5.10.52 - Sync RPi patch to git revision: 7aa66c086ae01c4f77d54aaeb1d9f62573a7b748 * Tue Jun 29 2021 Damian Wrobel - 5.10.46-1.rpi - Update to stable kernel patch v5.10.46 - Sync RPi patch to git revision: 5a11bfe181012880ca5c0d76ed641c30116e47e1 * Tue Jun 15 2021 Vaughan - 5.10.43-1.rpi - Update to stable kernel patch v5.10.43 - Sync RPi patch to git revision: 86b1bed34352428d0826dff892b3ac06a9016cef * Mon May 31 2021 Damian Wrobel - 5.10.39-1.rpi - Update to stable kernel patch v5.10.39 - Sync RPi patch to git revision: a2d265da70816783255d7f450d065c6e1100185c * Wed May 12 2021 Damian Wrobel - 5.10.35-1.rpi - Update to stable kernel patch v5.10.35 - Sync RPi patch to git revision: ad26fd4e03cd2add0b63b86467a76b373b7f28ca * Tue Apr 27 2021 Damian Wrobel - 5.10.32-1.rpi - Update to stable kernel patch v5.10.32 - Sync RPi patch to git revision: 31b07b274fc0a1f42f9edcad38bfc3bc8fc4f3fe * Wed Apr 14 2021 Vaughan - 5.10.27-1.rpi - Update to stable kernel patch v5.10.27 - Sync RPi patch to git revision: 41aaea1d7cb9548646858f8ff8e65ad53b27c66c * Thu Mar 25 2021 Damian Wrobel - 5.10.25-1.rpi - Update to stable kernel patch v5.10.25 - Sync RPi patch to git revision: 11d7babee19ce8ea0c25aef8801e4e18568781ba * Fri Mar 12 2021 Damian Wrobel - 5.10.22-1.rpi - Enable CONFIG_FW_LOADER_COMPRESS=y - Update to stable kernel patch v5.10.22 - Sync RPi patch to git revision: 7ca8526c5ad5d3467e5e6799787fb3329ceba192 * Fri Feb 26 2021 Damian Wrobel - 5.10.17-1.rpi - Update to stable kernel patch v5.10.17 - Sync RPi patch to git revision: 377f1fda069823b16251e47fcf6c679c7d4c3953 * Fri Feb 12 2021 Damian Wrobel - 5.10.14-1.rpi - Update to stable kernel patch v5.10.14 - Sync RPi patch to git revision: 656dc8295f67e3c4c475f76f10426fc358a952d0 * Wed Feb 03 2021 Peter Oliver - 5.10.10-2.rpi - Allow EFI boot used by Fedora IoT edition. * Mon Jan 25 2021 Damian Wrobel - 5.10.10-1.rpi - Update to stable kernel patch v5.10.10 - Sync RPi patch to git revision: 900790847a10954e7dcaeb4fe86d37ba0d7e73a2 - Enable CONFIG_CMA_DEBUGFS=y * Wed Dec 23 2020 Damian Wrobel - 5.10.2-2.rpi - Do not fail if the module.lds is not available * Wed Dec 23 2020 Damian Wrobel - 5.10.2-1.rpi - Update to stable kernel patch v5.10.2 - Sync RPi patch to git revision: b1f47573c1fc640d360349f767568ff3a84e778d - Merge patches from 5.4.y branch: - Fix aarch64 bcmrpi3_defconfig (update config-bcm27xx.cfg) * Sat Oct 10 2020 Damian Wrobel - 5.8.14-1.rpi - Update to stable kernel patch v5.8.14 - Sync RPi patch to git revision: e573167ee4d6c91a05ed1555742dabf7b302d2b0 - Merge patches from 5.4.y branch: - Update bootup logo - Disable EFI_BOOTLOADER_CONTROL - More config-bcm27xx.cfg refactoring * Fri Sep 18 2020 Damian Wrobel - 5.8.9-1.rpi - Update to stable kernel patch v5.8.9 - Sync RPi patch to git revision: 8cefadb9b258ee2920e012eaa0065f5834d0c57f - Drop perf-cs-etm-gcc-10-fix.patch patch - Disable building kernel-tools and perf package * Fri Sep 11 2020 Damian Wrobel - 5.4.64-1.rpi - Update to stable kernel patch v5.4.64 - Sync RPi patch to git revision: 65caf603f3b1c43f4c92939f7fbb7149e054f486 - Disable LTO for >=f33 * Mon Sep 07 2020 Vaughan - 5.4.61-2 - Sync RPi patch to git revision: 2ce8c3ab0f9d1ffb67310ffd200be82d80a8d13d - Ensure selinux support is enabled by default (update config-bcm27xx.cfg) * Wed Sep 02 2020 Vaughan - 5.4.61-1 - Update to stable kernel patch v5.4.61 - Sync RPi patch to git revision: d83700d2cbf594de8d28dfc7ed54f9858c23d987 - Partially revert install script changes for Centos aarch64 build * Sun Aug 30 2020 Damian Wrobel - 5.4.59-4.rpi - Fix bare words for >f32 * Sun Aug 30 2020 Damian Wrobel - 5.4.59-3.rpi - Sync RPi patch to git revision: 0be0e0854876b7d724c473242d6ff44077d18da9 * Sun Aug 30 2020 Damian Wrobel - 5.4.59-2.rpi - Fix post install scripts errors (No such file or directory) on: cp: cannot create regular file '/boot/efi/kernel7l.img' cp: cannot stat '/lib/modules/5.4.59-1.rpi4.fc32.armv7hl/dtb/broadcom/bcm2709*' cp: cannot stat '/lib/modules/5.4.59-1.rpi4.fc32.armv7hl/dtb/broadcom/bcm2709*' cp: cannot stat '/lib/modules/5.4.59-1.rpi4.fc32.armv7hl/dtb/broadcom/bcm271*' cp: cannot stat '/lib/modules/5.4.59-1.rpi4.fc32.armv7hl/dtb/broadcom/bcm271*' * Tue Aug 25 2020 Damian Wrobel - 5.4.59-1.rpi - Update to stable kernel patch v5.4.59 - Sync RPi patch to git revision: 8afdcbe5d0c68640ffc222e129a01b0689ce431d - Fix multiple definition of `traceid_list' for >=f32 * Sun Aug 09 2020 Vaughan - 5.4.51-1 - Update to stable kernel patch v5.4.51 - Sync RPi patch to git revision: f2f7e4b23d8788e96f81a7522b2f703e51c53e70 - Cherry pick commits from 4.19.x branch: Add aarch64 build support More python2 purging (EPEL) fedora_build ----> build_release (EPEL) Only copy required files to boot/efi (RPi bootloader support) Fix dtb-KVERREL creation under /boot Fix .hmac file naming Drop mkknlimg support (now depreciated upstream) Add perf build fix patch for epel8 (Patch 150) For aarch64, kernel image name should be vmlinux (its uncompressed) Update video logo patch Enable CONFIG_EFI_VARS * Thu Jan 02 2020 Damian Wrobel - 5.4.3-1.rpi - Rebase to 5.4 kernel branch - Update to stable kernel patch v5.4.3 - Sync RPi patch to git revision: 0f100bcec9fde14a71248b24eb1257b77a99970c * Sat Nov 09 2019 Vaughan - 5.3.8-1 - Rebase to 5.3 kernel branch - Update to stable kernel patch v5.3.8 - Sync RPi patch to git revision: e7a4bc6d056b339950fa5a26afcb3f4a03ac740c - Drop mkknlimg support (its depreciated) - Sync with changes in 4.19.x branch * Enable BPF/cgroup based firewalling * Add RPi4 (bcm2711) build option * Rename kernel config fragment files * Disable tools & perf packages for lpae build * Add Provides: installonlypkg(kernel) to macros * Drop Groups * Modify lpae build * Change python shebangs to be explicitly python3 * Sat Mar 02 2019 Vaughan - 4.20.13-1 - Rebase to 4.20 kernel branch - Update to stable kernel patch v4.20.3 - Sync RPi patch to git revision: 7d30deaf2091d4ff63097860b568b4adb336ef6c * Thu Feb 21 2019 Vaughan - 4.19.23-1 - Update to stable kernel patch v4.19.23 - Sync RPi patch to git revision: e2d2941326922b63d722ebc46520c3a2287b675f * Wed Feb 06 2019 Vaughan - 4.19.19-2 - Sync RPi patch to git revision: 8718503ea3b1bb131355ab237b62ea59440e8dc9 - Include module linker script in kernel-devel * Sun Feb 03 2019 Vaughan - 4.19.19-1 - Update to stable kernel patch v4.19.19 - Sync RPi patch to git revision: 8ef59203d79d074689a16fc831a95ad07cab3e47 * Sun Jan 13 2019 Vaughan - 4.19.15-1 - Update to stable kernel patch v4.19.15 - Sync RPi patch to git revision: 0841e2ab5143618ca695f7bedbcdd6a10b28052a * Sat Dec 22 2018 Vaughan - 4.19.12-1 - Update to stable kernel patch v4.19.12 - Sync RPi patch to git revision: e75aca6e66f6091dd3b9c316750025c8e9684f16 - Revert back to CONFIG_VMSPLIT_3G for lpae kernel builds * Sat Dec 15 2018 Vaughan - 4.19.9-1 - Update to stable kernel patch v4.19.9 - Sync RPi patch to git revision: 0a186de04e03315b1107a5df803bdb7d78828227 - Enable CONFIG_F2FS_FS_SECURITY * Fri Dec 07 2018 Vaughan - 4.19.7-1 - Update to stable kernel patch v4.19.7 - Sync RPi patch to git revision: 172a80a6804086350ee594765d43047a69f4755f * Tue Dec 04 2018 Vaughan - 4.19.6-1 - Update to stable kernel patch v4.19.6 - Sync RPi patch to git revision: f04e4a139f4e470b0f6f5ab218f4d4061277150c - Try using CONFIG_VMSPLIT_3G_OPT for lpae kernel builds * Tue Nov 27 2018 Vaughan - 4.19.4-1 - Update to stable kernel patch v4.19.4 - Sync RPi patch to git revision: 7937f961c9a6c83483ffdc050c410724175b9935 * Thu Nov 22 2018 Vaughan - 4.19.3-1 - Update to stable kernel patch v4.19.3 - Sync RPi patch to git revision: ad8e5625d3c4ae2e64fcb7b2500c0383a204789c - Fix usbip-vudc depmod failure * Thu Nov 08 2018 Vaughan - 4.19.1-1 - Rebase to 4.19 kernel branch - Update to stable kernel patch v4.19.1 - Sync RPi patch to git revision: db63de0fbb84c96fa3f4497907dd3953bcf7b9b7 * Fri Oct 26 2018 Vaughan - 4.18.16-1 - Update to stable kernel patch v4.18.16 - Sync RPi patch to git revision: 866a96948b99651cdb168459922a43d8f07134cf * Wed Oct 10 2018 Vaughan - 4.18.12-2 - Python fix for f29 builds * Tue Oct 09 2018 Vaughan - 4.18.12-1 - Update to stable kernel patch v4.18.12 - Sync RPi patch to git revision: 8324b0cad6b073e2b4bca1e1cb17dd1d18d22622 * Fri Sep 14 2018 Vaughan - 4.18.7-1 - Update to stable kernel patch v4.18.7 - Sync RPi patch to git revision: 0278dc0343e0dcc509e8058366d2f792e088c47f * Sat Aug 18 2018 Vaughan - 4.18.3-1 - Rebase to 4.18 kernel branch - Update to stable kernel patch v4.18.3 - Sync RPi patch to git revision: 967362d3d75e14575ca66fb59ecc3a0a17877b85 * Mon Jul 23 2018 Vaughan - 4.17.9-1 - Update to stable kernel patch v4.17.9 - Sync RPi patch to git revision: 9a564ac065169a73c57d7eb23520ae85fc404b18 - Update kernel-core %%posttrans script macro - Update kernel-modules package macro - COPYING file should be version specific * Sat Jul 07 2018 Vaughan - 4.17.3-1 - Rebase to 4.17 kernel branch - Update to stable kernel patch v4.17.3 - Sync RPi patch to git revision: 9f54ddcdcdb5eeb990b62183b4a505f85909155b - Refactoring video-logo-fedberry patch * Sun Jun 17 2018 Vaughan - 4.16.15-1 - Update to stable kernel patch v4.16.15 - Sync RPi patch to git revision: 2362500e0a547b4683c86725aa0aa7b38cbbdbe1 - Disable preempt build (there is no upstream 4.16.y-rt tree) * Sun May 13 2018 Vaughan - 4.16.7-1 - Rebase to 4.16 kernel branch - Update to stable kernel patch v4.16.7 - Sync RPi patch to git revision: 15c2c072b6dc8cb54270e1f5a74e290b7c69f6f9 - Update to RT PREEMPT kernel v4.16.7-rt1 patchset release - Rename python-perf to python2-perf - Drop perf-man-4.x.tar.gz source (Source10) - Update BuildRequires - Remove %%clean - Misc spec file adjustments * Fri May 11 2018 Vaughan - 4.14.39-1 - Update to stable kernel patch v4.14.39 - Sync RPi patch to git revision: 70608893d8081e2ec4fee1b6112f7d839ae308f3 * Mon Apr 30 2018 Vaughan - 4.14.38-1 - Update to stable kernel patch v4.14.38 - Sync RPi patch to git revision: e5c309d32b8b0e1c2b05b2f1d37b86cbec3c38de * Mon Apr 16 2018 Vaughan - 4.14.34-1 - Update to stable kernel patch v4.14.34 - Update to RT PREEMPT kernel v4.14.34-rt27 patchset release - Sync RPi patch to git revision: f70eae405b5d75f7c41ea300b9f790656f99a203 * Tue Apr 10 2018 Vaughan - 4.14.33-1 - Update to stable kernel patch v4.14.33 - Sync RPi patch to git revision: d7a4ec8c9cb5a05b5650d3489a5c54eacaf20880 * Sun Apr 08 2018 Vaughan - 4.14.32-1 - Update to stable kernel patch v4.14.32 - Sync RPi patch to git revision: c2eb30683b43b13b931bd9cfef6a2a09ac7b7c1e * Sat Mar 31 2018 Vaughan - 4.14.31-1 - Update to stable kernel patch v4.14.31 - Sync RPi patch to git revision: b36f4e9e198477803d29861e02d3ea00fe5e09ab - Refactor bcm270x.cfg & bcm283x.cfg files * Sat Mar 24 2018 Vaughan - 4.14.29-1 - Update to stable kernel patch v4.14.29 - Sync RPi patch to git revision: c117a8bccf37bfba323065b566cf999ed4629a4a - Update to RT PREEMPT kernel v4.14.29-rt24 patchset release * Sun Mar 18 2018 Vaughan - 4.14.27-1 - Update to stable kernel patch v4.14.27 - Sync RPi patch to git revision: 4d78845fd711bdd7c0f20aafb3c976073d86b4e3 (includes commits for RPi 3 B+ support) - Update to RT PREEMPT kernel v4.14.27-rt21 patchset release * Wed Mar 07 2018 Vaughan - 4.14.26-1 - Update to stable kernel patch v4.14.26 - Sync RPi patch to git revision: d35408f261909b8bd50052294ff0fc3405849680 - Update to RT PREEMPT kernel v4.14.24-rt19 patchset release * Sun Mar 04 2018 Vaughan - 4.14.23-1 - Update to stable kernel patch v4.14.23 - Sync RPi patch to git revision: a4e7b3e4434407a1f14181987f274244a03d0304 - Update to RT PREEMPT kernel v4.14.20-rt17 patchset release * Fri Feb 16 2018 Vaughan - 4.14.19-1 - Update to stable kernel patch v4.14.19 - Sync RPi patch to git revision: 7ba7fbcc45b49da54b7dfee9b68b52f2beca909b - Update to RT PREEMPT kernel v4.14.18-rt15 patchset release * Thu Feb 08 2018 Vaughan - 4.14.18-1 - Update to stable kernel patch v4.14.18 - Sync RPi patch to git revision: d0e2493b168a7909494697340243b23949bae447 - Update to RT PREEMPT kernel v4.14.15-rt13 patchset release * Sun Feb 04 2018 Vaughan - 4.14.17-1 - Update to stable kernel patch v4.14.17 - Sync RPi patch to git revision: 8396667a1b2e9a6935ddddf390e78d8f4c963d61 * Mon Jan 22 2018 Vaughan - 4.14.14-1 - Update to stable kernel patch v4.14.14 - Sync RPi patch to git revision: 5b291479fff95d28d57e54a0910c856c29c25c2c * Sat Jan 06 2018 Vaughan - 4.14.12-1 - Update to stable kernel patch v4.14.12 - Sync RPi patch to git revision: dc74d9fc628af8c731d70569ef16bd288762fd04 * Tue Dec 26 2017 Vaughan - 4.14.9-1 - Update to stable kernel patch v4.14.9 - Sync RPi patch to git revision: 7140d20e421cce974204e4328484e24120156496 - Update to RT PREEMPT kernel v4.14.8-rt9 patchset release * Mon Dec 18 2017 Vaughan - 4.14.7-1 - Update to stable kernel patch v4.14.7 - Sync RPi patch to git revision: c98c67311c55d5363fd4942edf2ce4a325295710 - Update to RT PREEMPT kernel v4.14.6-rt7 patchset release * Thu Dec 14 2017 Vaughan - 4.14.6-1 - Update to stable kernel patch v4.14.6 - Sync RPi patch to git revision: aeabd88329de7006ce0c9e9142c73a809591f2cd * Sat Dec 09 2017 Vaughan - 4.14.4-1 - Update to stable kernel patch v4.14.4 - Sync RPi patch to git revision: d47bf375c59d4906fcaf3ad2c51cabb52c22e29e - Fix debuginfo packaging - Compress all kernel modules (xz) * Sat Dec 02 2017 Vaughan - 4.14.3-1 - Update to stable kernel patch v4.14.3 - Sync RPi patch to git revision: d055ee99d3eb3b1c17e17b9ea1138e3db5a46b1c - Re-enable rt-preempt build * Thu Nov 23 2017 Vaughan - 4.14.1-1 - Rebase to 4.14 kernel branch - Update to stable kernel patch v4.14.1 - Sync RPi patch to git revision: 54a036e96437fa2e0f152080a09b19f347d73cc2 - Temporarily disable rt-preempt build - Fix building of tools/iio * Fri Nov 17 2017 Vaughan - 4.13.13-1 - Update to stable kernel patch v4.13.13 - Sync RPi patch to git revision: 1a7e8f39e4cce192379353deb8ea435748332443 - Update perf build/make options * Fri Nov 03 2017 Vaughan - 4.13.11-1 - Update to stable kernel patch v4.13.11 - Sync RPi patch to git revision: b76f96ecb8d20f1b34cd487b195867e0948cf237 - Enable rt-preempt build support and update to 4.13.10-rt3 release * Wed Oct 18 2017 Vaughan - 4.13.8-1 - Update to stable kernel patch v4.13.8 - Sync RPi patch to git revision: 7f47540d865c2b1daa37fbe12f560fd66834299d * Fri Oct 06 2017 Vaughan - 4.13.5-1 - Update to stable kernel patch v4.13.5 - Sync RPi patch to git revision: 52cf298f815cb319c999849aece79fa12a5c1970 * Thu Sep 21 2017 Vaughan - 4.13.3-1 - Rebase to 4.13 kernel branch - Update to stable kernel patch v4.13.3 - Sync RPi patch to git revision: 871ca96d47106ef72c54b0ebd6620c8e24343ff0 * Mon Sep 11 2017 Vaughan - 4.12.12-1 - Update to stable kernel patch v4.12.12 - Sync RPi patch to git revision: 8f82f552b53e0961f666291b4934e771e3ea6b6a * Wed Aug 30 2017 Vaughan - 4.12.10-1 - Update to stable kernel patch v4.12.10 - Sync RPi patch to git revision: ef79e7bb67c80f0b20a8327692f590a54568eda5 * Mon Aug 21 2017 Vaughan - 4.12.8-1 - Rebase to 4.12 kernel branch - Update to stable kernel patch v4.12.8 - Sync RPi patch to git revision: 0d9ed68fbe6e4e8a5f8a580a211f962304395089 - Build more kernel tools (iio, gpio & kvm_stat) * Mon Jul 03 2017 Vaughan - 4.11.8-1 - Update to stable kernel patch v4.11.8 - Sync RPi patch to git revision: 64b5f5825a998d745801c2682e686423e88a0e93 - Build in CRYPTO_LZ4 & CRYPTO_LZ4HC * Wed Jun 07 2017 Vaughan - 4.11.4-1 - Rebase to 4.11 kernel branch - Update to stable kernel patch v4.11.4 - Sync RPi patch to git revision: 46d26b7bf221352b299aec39f468df30c4150119 - Disable rt-preempt build support (no patches for 4.11.x series) - Clean up %%files macro * Mon Jun 05 2017 Vaughan - 4.9.30-2 - Enable support for zSWAP * Thu Jun 01 2017 Vaughan - 4.9.30-1 - Update to stable kernel patch v4.9.30 - Sync RPi patch to git revision: e5bd734340e6871e4e9ef5ff66e61197eb8ece30 - Update to RT PREEMPT kernel v4.9.30-rt20 patchset release * Fri May 12 2017 Vaughan - 4.9.27-1 - Update to stable kernel patch v4.9.27 - Sync RPi patch to git revision: 9a5f215eda12bad29b35040dff00d0346fe517e2 * Sun May 07 2017 Vaughan - 4.9.26-1 - Update to stable kernel patch v4.9.26 - Sync RPi patch to git revision: e1a6b0c255dd15be4d32eb4ce1d9301b7c44d7b9 * Tue Apr 25 2017 Vaughan - 4.9.24-1 - Update to stable kernel patch v4.9.24 - Sync RPi patch to git revision: dc44db6e247570bc7f3023788b042e5c14a8b4f7 * Tue Apr 11 2017 Vaughan - 4.9.21-1 - Update to stable kernel patch v4.9.21 - Sync RPi patch to git revision: 5e4ee836560d4c0371e109bf469e1ad808ae7a44 - Build ipv6 support into kernel * Tue Apr 04 2017 Vaughan - 4.9.20-1 - Update to stable kernel patch v4.9.20 - Sync RPi patch to git revision: 3f53e7886737a975e3fe76bc8ae6cc78f33c8cf8 - Update to RT PREEMPT kernel v4.9.20-rt16 patchset release * Fri Mar 24 2017 Vaughan - 4.9.17-1 - Update to stable kernel patch v4.9.17 - Sync RPi patch to git revision: cd6413a82a66de6ecce828ce67df4f6e3290ea86 * Fri Mar 17 2017 Vaughan - 4.9.15-1 - Drop gitshort append from kernel name - Drop append for 'bcm283x' Flavour with upstream builds - Append with 'rpi' Flavour for any downstream builds - Update to stable kernel patch v4.9.15 - Sync RPi patch to git revision: 95452744c5ebcaa0f5d4eaff7313b2b4cd51bd9f * Tue Mar 14 2017 Vaughan - 4.9.14-1 - Update to stable kernel patch v4.9.14 - Sync RPi patch to git revision: a599f69212b051db4cd00a02f9312dc897beba70 - Update main source urls to use https * Mon Feb 27 2017 Vaughan - 4.9.13-1 - Fix bcm283x build (kernel upstream) - Ensure /boot/.vmlinuz.hmac-%{KVERREL} is removed when uninstalling - Update to stable kernel patch v4.9.13 - Sync RPi patch to git revision: 883de20e54e16f89a878c9957fd265e352ebf5c3 * Tue Feb 21 2017 Vaughan - 4.9.11-1 - Update to stable kernel patch v4.9.11 - Sync RPi patch to git revision: 204050d0eafb565b68abf512710036c10ef1bd23 - Update to RT PREEMPT kernel v4.9.11-rt9 patchset release * Thu Feb 16 2017 Vaughan - 4.9.10-1 - Update to stable kernel patch v4.9.10 - Sync RPi patch to git revision: e4fd443916ed7af63bf1ddb3e01a152a534750bd - Update to RT PREEMPT kernel v4.9.9-rt6 patchset release * Fri Feb 10 2017 Vaughan - 4.9.9-1 - Update to stable kernel patch v4.9.9 - Sync RPi patch to git revision: a5204ea3b15aa8eaaf2c3c7db7dfb177a84af730 - Use Suggests: linux-firmware - Update filter-modules.sh * Sun Feb 05 2017 Vaughan - 4.9.8-1 - Update to stable kernel patch v4.9.8 - Sync RPi patch to git revision: 7158cd0f806c91291c4f8e7c2e2b7e5be3023d30 - Update to RT PREEMPT kernel v4.9.6-rt4 patchset release * Sat Jan 28 2017 Vaughan - 4.9.6-1 - Update to stable kernel patch v4.9.6 - Sync RPi patch to git revision: f5ecad4a646f2c06d1e54f3bd52f7bc30004380d - Update to RT PREEMPT kernel v4.9.4-rt2 patchset release * Sun Jan 15 2017 Vaughan - 4.9.3-1 - Update to stable kernel patch v4.9.3 - Sync RPi patch to git revision: f60564ce83ebf7937e465423e11aa5b5393762ff * Mon Jan 09 2017 Vaughan - 4.9.2-1 - Further improve copying of *.dtb files to /boot after install - Update to stable kernel patch v4.9.2 - Sync RPi patch to git revision: 8d9edc8eb8c882e312ee57f9464b1a6b43df5b89 * Thu Jan 05 2017 Vaughan - 4.9-2 - Update bcm270x.cfg - Update %%posttrans script * Ensure /boot/overlays always exists * Be more specific when copying over *.dtb files * Tue Jan 03 2017 Vaughan - 4.9-1 - Rebase to 4.9 kernel branch - Update to RT PREEMPT kernel v4.9-rt1 - Sync RPi patch to git revision: aa5014ae84c80ceac1561ceb30e060c88d9598d4 * Wed Dec 07 2016 Vaughan - 4.8.11-2 - Allow spectool to pull all rt sources / patches * Thu Dec 01 2016 Damian Wrobel - 4.8.11-1 - Update to stable kernel patch v4.8.11 - Update to RT PREEMPT kernel v4.8.11-rt7 * Wed Nov 23 2016 Damian Wrobel - 4.8.6-2 - Add support for building RT PREEMPT kernel version * Wed Nov 02 2016 Vaughan - 4.8.6-1 - Add build support for bcm2708 kernels - Update to stable kernel patch v4.8.6 - Sync RPi patch to git revision: 6abac13566786086cd912d87e4f1a922e2a391b2 * Tue Oct 25 2016 Vaughan - 4.8.4-1 - Update to stable kernel patch v4.8.4 - Sync RPi patch to git revision: e262d8182b373999a7630ddcafcbbbcc878e64ba * Sat Oct 15 2016 Vaughan - 4.8.1-1 - Rebase to 4.8 kernel branch - Update to stable kernel patch v4.8.1 - Sync RPi patch to git revision: 5b7970b19bbb2ea1620591bfb6517848696ed0b9 - Use kernel config fragments file for bcm283x builds (as per the bcm2709 build) - Update how patches are applied for each build - Rename patches 10 & 100 * Sat Sep 17 2016 Vaughan - 4.7.4-1 - Update to stable kernel patch v4.7.4 - Sync RPi patch to git revision: 3e1b1adce79b673ef890cf5a7379697c5b4ba724 * Mon Sep 12 2016 Vaughan - 4.7.3-1 - Rebase to 4.7.y kernel branch - Update to stable kernel patch v4.7.3 - Sync RPi patch to git revision: cb03c80f44aeff4dfb8930bee5bbfbd032d07f0a - Add custom FedBerry boot logo - Enable SECCOMP filter options and CONFIG_AUDITSYSCALL - Add grubby to kernel_prereq (it provides /sbin/new-kernel-pkg) - Fix copying of .dbto's to /boot/overlays/ * Thu Aug 11 2016 Vaughan - 4.6.6-1 - Rebase to 4.6.y kernel branch - Update to stable kernel patch v4.6.6 - Sync RPi patch to git revision: 2d4bf9aeaa3c6b002520ee37555d49d8a495bf20 - RasperryPi foundation patch name should be using %%{base_sublevel} * Thu Aug 11 2016 Vaughan - 4.5.7-1 - Split bcm2709 linux kernel port into a separate build option (enabled by default) - Add a new kernel config for kernel.org (bcm2835) builds (bcm283x.config) - Add mkknlimg to the bcm283x build (Patch10) - vmlinuz, System.map, config & .hmac files now installed to '/lib/modules/$KernelVer/' - Updated kernel %%files & %%posttrans to relfect relocation of kernel files - Sync RPi patch to git revision: 237402141fd74ca989bd86ebb76d834cb6fa5454 - Update to stable kernel patch v4.5.7 - Misc spec file cleanups * Sun Mar 20 2016 Vaughan - 4.5.0-1.d553aa6 - Modify how we apply patches - Rebase to 4.5.y kernel branch - Sync RPi patch to git revision: rpi-4.5.y d553aa6b15b40562813eb5c0d1b640fb83e8fc50 - Kernel now enables by default Device Tree Overlay ConfigFS interface (*.dtbo files) Refer: https://github.com/raspberrypi/linux/commit/d95dcfb60819ec448273853e027766bdb241869c Refer: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732 - Add Requires: raspberrypi-vc-utils >= 20160321 (kernel now requires dtoverlay util) * Fri Mar 11 2016 Vaughan - 4.4.5-400.418177e - Sync RPi patch to git revision: rpi-4.4.y 418177e2e57d3ac1248ced154fa1067ca42ba315 - Update to stable kernel patch v4.4.5 * Tue Mar 08 2016 Vaughan - 4.4.4-401.4f7b097 - Sync RPi patch to git revision: rpi-4.4.y 4f7b097a399b7d0ed275bca0ec72fb4d05c4094b - Clean /boot/overlays in %%posttrans to remove any stale *.dtb files. - Copy everything to /boot/overlays (not just .dbt files). * Mon Mar 07 2016 Vaughan - 4.4.4-400.c5cbb66 - Sync RPi patch to git revision: rpi-4.4.y c5cbb66686e7e289e8a7aff49a954f86893e628d - Stable kernel.org patch now referenced as a Source1 - Stable patch now applied directly instead of using ApplyPatch() function * Wed Mar 02 2016 Vaughan - 4.4.3-401.36babd8 - Sync patch to RPi git revision: rpi-4.4.y 36babd89241c85258acebe06616f1f1a58356f8e - Add RPi 3 Model B support (bcm2710) * Sun Feb 28 2016 Vaughan - 4.4.3-400.8547bb0 - Update to stable kernel patch v4.4.3 - Sync patch to RPi git revision: rpi-4.4.y 8547bb07f9d79874648c6a4aab545fbabe0b4765 * Sat Feb 20 2016 Vaughan - 4.4.2-400.8941fe4 - Update to stable kernel patch v4.4.2 - Sync patch to RPi git revision: rpi-4.4.y 8941fe4985a1cc8f800be00224c6a2e741789d03 * Sun Feb 14 2016 Vaughan - 4.4.1-401.52d3149 - Sync patch to RPi git revision: rpi-4.4.y 52d3149aba3c684db1b6c739ca794dc330d92929 This includes the significant revision of the bcm2835-sdhost driver * Tue Feb 09 2016 Vaughan - 4.4.1-400.065d2a9 - Rebase to 4.4.y kernel branch - Update to stable kernel patch v4.4.1 - Sync patch to RPi git revision: rpi-4.4.y 065d2a9ca6e18a16431ced57a40dddc06b792650 * Sun Jan 24 2016 Vaughan - 4.3.4-400.4dee941 - Update to stable kernel patch v4.3.4 - Sync rpi patch to git revision: rpi-4.3.y 4dee9412d72abd346c9b7a3bbd8e96a5f0b163f3 * Sat Jan 16 2016 Vaughan - 4.3.3-400.547120c - Rebase to 4.3.y kernel branch - Update to stable kernel patch v4.3.3 - Sync patch to git revision: rpi-4.3.y 547120c6be9054cd4b7186aee95c6e698f839d44 * Wed Dec 23 2015 Vaughan - 4.2.8-400.e0103e9 - Update to stable kernel patch v4.2.8 - Sync patch to git revision: rpi-4.2.y e0103e9645caca6576c1b6c21608c28015857ab8 - Split out config modifications to config-fedberry.cfg - Apply config 'fragments' (config-fedberry.cfg) at build time using 'merge_config.sh' - Drop config-bcm2709 - Enable PREEMPT_VOLUNTARY - Refactor kernel config * Sat Dec 12 2015 Vaughan - 4.2.7-400.c35cc1f - Sync patch to git revision: rpi-4.2.y c35cc1fea33fcbaa04ddcd8c9733fd66f6d3e7ad - Update to stable kernel patch v4.2.7 - Drop kbuild-AFTER_LINK.patch as its not used. - Add TOUCHSCREEN_FT6236=m * Sat Dec 05 2015 Vaughan - 4.2.6-402.806e022 - Disable NFSv2 support - Enable NFSv4_1 & NFSv4_2 support - Build NFSD as a module (NFSD=m) * Sun Nov 29 2015 Vaughan - 4.2.6-401.806e022 - Sync patch to git revision: rpi-4.2.y 806e02221caec4ca42adc7aed42f5523bc8fb0dc - Disable initrd creation for now (we currently don't use it) * Sun Nov 15 2015 Vaughan - 4.2.6-400.429f50d - Sync patch to git revision: rpi-4.2.y 429f50d21465619822725e5134f51e4782dec4fe - Update to stable kernel patch v4.2.6 * Sat Oct 31 2015 Vaughan - 4.2.5-400.50acac3 - Sync patch to git revision: rpi-4.2.y 50acac3fd0a949f6cd15cdfaac9e2e1588aada0b - Update to stable kernel patch v4.2.5 - Refactor kernel config * Wed Oct 14 2015 Vaughan - 4.2.3-401.6c1c048 - Sync patch to git revision: rpi-4.2.y 6c1c04868e77b2ff314b42548b12963d824230f8 - Default bcm2709 kernel config (bcm2709_defconfig) does not enable selinux support. Enable it! - Refactor kernel config * Wed Oct 07 2015 Vaughan - 4.2.3-400.30fc66b - Rebase to 4.2.y kernel branch - Update to stable kernel patch v4.2.3 - Sync patch to git revision: rpi-4.2.y 30fc66bfd7a538fb620c3b7bc4daaf79f8d92d70 - Refactor kernel config * Mon Oct 05 2015 Vaughan - 4.1.10-300.0b43921 - Update to stable kernel patch v4.1.10 - Sync to latest git revision: rpi-4.1.y 0b439214b09e3f80413c19b7e0a407c34a79411c * Thu Sep 24 2015 Vaughan - 4.1.8-300.d2b2388 - Update to stable kernel patch v4.1.8 - Sync to latest git revision: rpi-4.1.y d2b2388d05d8a97b0ba14fcf2b71f19f66bc4d02 * Thu Sep 17 2015 Vaughan - 4.1.7-300.676d8d9 - Update to stable kernel patch v4.1.7 - Sync to latest git revision: rpi-4.1.y 676d8d98ed6ffa1afce9cd6585017db8fe606347 - Refactor kernel config - install_dtbs target now works correctly, modify spec accordingly. * Fri Sep 11 2015 Vaughan - 4.1.6-302.c8baa97 - Sync to latest git revision: rpi-4.1.y c8baa9702cc99de9614367d0b96de560944e7ccd - Requires bcm283x-firmware >= 20150909 * Wed Sep 02 2015 Vaughan - 4.1.6-301.6b30ac8 - Sync to latest git revision: rpi-4.1.y 6b30ac82c3595887416c7870c35c2cc522f801cc - Refactor kernel config * Wed Aug 19 2015 Vaughan - 4.1.6-300.4507c97 - Update to stable kernel patch v4.1.6 - Sync to latest git revision: rpi-4.1.y 4507c9752292506fa6ef136114ad14ffd92b2ca5 - Requires bcm283x-firmware >= 20150819 - Refactor kernel config * Tue Aug 18 2015 Vaughan - 4.1.5-301.5925037 - Drop the extra generated kernel-*.img - Add device tree trailer to vmlinuz image instead * Sun Aug 16 2015 Vaughan - 4.1.5-300.5925037 - Sync to latest git revision: rpi-4.1.y 592503752b6951972f161f04280683c5af38d173 - Requires bcm283x-firmware >= 20150815 * Sun Aug 16 2015 Vaughan - 4.1.5-300.5925037 - Sync to latest git revision: rpi-4.1.y 592503752b6951972f161f04280683c5af38d173 - Requires bcm283x-firmware >= 20150815 * Sat Aug 08 2015 Vaughan - 4.1.4-300.869c3bc - Update to stable kernel release v4.1.4 - Sync to latest rpi git revision: rpi-4.1.y 869c3bc300150a8afd4bc42efcb0f36f0b041f09 - Requires bcm283x-firmware >= 20150808-11eaffc * Sat Jul 25 2015 Vaughan - 4.0.9-300.4d317a8 - Update to stable kernel release v4.0.9 - Sync to latest rpi git revision: rpi-4.0.y 4d317a835a7b6354e41c2678507f2a894fdceb26 - Requires bcm283x-firmware >= 20150725-1.464ce4f * Wed Jul 15 2015 Vaughan - 4.0.8-300.4259dcc - Update to stable kernel release v4.0.8 - Sync to latest rpi git revision: rpi-4.0.y 4259dcc8987bd0d88428762c637a18df553de04c - Refactor kernel config * Tue Jun 30 2015 Vaughan - 4.0.7-300.c53bd46 - Fork from current Fedora spec and make it build on the RaspberryPi 2. This involved numermous modifications / changes (too many to list). - This is a dedicated spec file for building Raspberry Pi 2 kernels only. No other arm platforms are presently supported. - Strip support for all other archs and kernel build types. - Drop most additional 'fedora' patches - Update to stable kernel release v4.0.7 - Sync to latest rpi git revision: rpi-4.0.y c53bd4659ef8b3e8161a85f297b93a9408226b6a (Patch100) - Refactor kernel config (config-bcm2709) - Add requires for bcm283x-firmware >= 20150620-1.8b9d7b (kernel-core) * Tue Jun 23 2015 Justin M. Forbes - 4.0.6-300 - Linux v4.0.6 * Thu Jun 18 2015 Josh Boyer - Add patch to fix touchpad issues on Razer machines (rhbz 1227891) * Fri Jun 12 2015 Josh Boyer - CVE-2015-XXXX kvm: NULL ptr deref in kvm_apic_has_events (rhbz 1230770 1230774) * Thu Jun 11 2015 Josh Boyer - Backport fixes for synaptic 3 finger tap (rhbz 1212230) - Backport btrfs fixes queued for stable (rhbz 1217191) * Tue Jun 09 2015 Josh Boyer - Fix touchpad for Thinkpad S540 (rhbz 1223051) * Mon Jun 08 2015 Josh Boyer - Linux v4.0.5 * Thu Jun 04 2015 Josh Boyer - Backport commit to fix block spew (rhbz 1226621) - Add patch to fix SMT guests on POWER7 (rhbz 1227877) - Add patch to turn of WC mmaps on i915 from airlied (rhbz 1226743) * Wed Jun 03 2015 Laura Abbott - Fix del_timer_sync in mwifiex * Wed Jun 03 2015 Laura Abbott - Drop that blasted firwmare warning until we get a real fix (rhbz 1133378) * Wed Jun 03 2015 Laura Abbott - Fix auditing of canonical mode (rhbz 1188695) * Wed Jun 03 2015 Josh Boyer - CVE-2015-1420 fhandle race condition (rhbz 1187534 1227417) * Tue Jun 02 2015 Laura Abbott - Fix fd_do_rw error (rhbz 1218882) * Tue Jun 02 2015 Josh Boyer - Fix middle button issues on external Lenovo keyboards (rhbz 1225563) * Thu May 28 2015 Josh Boyer - Add quirk for Mac Pro backlight (rhbz 1217249) * Thu May 28 2015 Josh Boyer - 4.0.4-303 - Add patch to avoid vmmouse being classified as a joystic (rhbz 1214474) * Wed May 27 2015 Josh Boyer -4.0.4-302 - Apply queued fixes for crasher reported by Alex Larsson - Enable in-kernel vmmouse driver (rhbz 1214474) * Tue May 26 2015 Laura Abbott - Fix signed division error (rhbz 1200353) * Tue May 26 2015 Josh Boyer - Backport patch to fix might_sleep splat (rhbz 1220519) * Thu May 21 2015 Josh Boyer - 4.0.4-301 - Add patch to fix discard on md RAID0 (rhbz 1223332) - Add submitted stable fix for i915 flickering on ilk (rhbz 1218688) * Mon May 18 2015 Laura Abbott - Re-add the v4l2 query caps patch which was dropped * Mon May 18 2015 Josh Boyer - Fix incorrect bandwidth on some Chicony webcams * Mon May 18 2015 Justin M. Forbes - 4.0.4-300 - Linux v4.0.4 * Fri May 15 2015 Laura Abbott - Fix DVB oops (rhbz 1220118) * Thu May 14 2015 Justin M. Forbes - 4.0.3-301 - Disable i915 verbose state checks * Thu May 14 2015 Josh Boyer - Fix non-empty dir removal in overlayfs (rhbz 1220915) * Wed May 13 2015 Laura Abbott - Fix spew from KVM switch (rhbz 1219343) * Wed May 13 2015 Justin M. Forbes - 4.0.3-300 - Linux v4.0.3 * Sat May 9 2015 Peter Robinson - Minor ARMv7 updates * Thu May 07 2015 Justin M. Forbes - 4.0.2-300 - Linux v4.0.2 (rhbz 1182816) * Tue May 05 2015 Josh Boyer - Backport patch to blacklist TRIM on all Samsung 8xx series SSDs (rhbz 1218662) - CVE-2015-3636 ping-sockets use-after-free privilege escalation (rhbz 1218074 1218110) * Thu Apr 30 2015 Josh Boyer - Fix backlight on various Toshiba machines (rhbz 1206036 1215989) * Wed Apr 29 2015 Justin M. Forbes - 4.0.1-300 - Linux v4.0.1 * Tue Apr 28 2015 Justin M. Forbes - Fix up boot times for live images (rhbz 1210857) * Mon Apr 27 2015 Josh Boyer - Backport NFS DIO fixes from 4.1 (rhbz 1211017 1211013) * Fri Apr 24 2015 Josh Boyer - CVE-2015-3339 race condition between chown and execve (rhbz 1214030) - Fix iscsi with QNAP devices (rhbz 1208999) * Wed Apr 22 2015 Peter Robinson - Fix RTC on TrimSlice - Enable all sound modules for TrimSlice (also needed for other devices) * Mon Apr 20 2015 Laura Abbott - Fix sound issues (rhbz 1188741) * Fri Apr 17 2015 Josh Boyer - Add support for touchpad on Google Pixel 2 (rhbz 1209088) - Allow disabling raw mode in logitech-hidpp (rhbz 1210801) * Wed Apr 15 2015 Josh Boyer - Add patch to fix tty closure race (rhbz 1208953) * Sun Apr 12 2015 Josh Boyer - 4.0.0-1 - Linux v4.0 * Fri Apr 10 2015 Josh Boyer - 4.0.0-0.rc7.git2.1 - Linux v4.0-rc7-42-ge5e02de0665e * Thu Apr 09 2015 Josh Boyer - 4.0.0-0.rc7.git1.1 - Linux v4.0-rc7-30-g20624d17963c * Thu Apr 02 2015 Josh Boyer - 4.0.0-0.rc6.git2.1 - Linux v4.0-rc6-101-g0a4812798fae * Thu Apr 02 2015 Josh Boyer - DoS against IPv6 stacks due to improper handling of RA (rhbz 1203712 1208491) * Wed Apr 01 2015 Josh Boyer - 4.0.0-0.rc6.git1.1 - Linux v4.0-rc6-31-gd4039314d0b1 - CVE-2015-2150 xen: NMIs triggerable by guests (rhbz 1196266 1200397) * Tue Mar 31 2015 Josh Boyer - Enable MLX4_EN_VXLAN (rhbz 1207728) * Mon Mar 30 2015 Josh Boyer - 4.0.0-0.rc6.git0.1 - Linux v4.0-rc6 * Fri Mar 27 2015 Josh Boyer - 4.0.0-0.rc5.git4.1 - Linux v4.0-rc5-96-g3c435c1e472b - Fixes hangs due to i915 issues (rhbz 1204050 1206056) * Thu Mar 26 2015 Josh Boyer - 4.0.0-0.rc5.git3.1 - Linux v4.0-rc5-80-g4c4fe4c24782 * Wed Mar 25 2015 Peter Robinson - Add aarch64 patches to fix mustang usb, seattle eth, and console settings * Wed Mar 25 2015 Josh Boyer - 4.0.0-0.rc5.git2.4 - Add patches to fix a few more i915 hangs/oopses * Wed Mar 25 2015 Josh Boyer - 4.0.0-0.rc5.git2.1 - Linux v4.0-rc5-53-gc875f421097a * Tue Mar 24 2015 Josh Boyer - Fix ALPS v5 and v7 trackpads (rhbz 1203584) * Tue Mar 24 2015 Josh Boyer - 4.0.0-0.rc5.git1.3 - Linux v4.0-rc5-25-g90a5a895cc8b - Add some i915 fixes * Mon Mar 23 2015 Josh Boyer - 4.0.0-0.rc5.git0.3 - Enable CONFIG_SND_BEBOB (rhbz 1204342) - Validate iovec range in sys_sendto/sys_recvfrom - Revert i915 commit that causes boot hangs on at least some headless machines - Linux v4.0-rc5 * Fri Mar 20 2015 Josh Boyer - 4.0.0-0.rc4.git2.1 - Linux v4.0-rc4-199-gb314acaccd7e - Fix brightness on Lenovo Ideapad Z570 (rhbz 1187004) * Thu Mar 19 2015 Josh Boyer - 4.0.0-0.rc4.git1.3 - Linux v4.0-rc4-88-g7b09ac704bac - Rename arm64-xgbe-a0.patch * Thu Mar 19 2015 Peter Robinson - Drop arm64 non upstream patch * Thu Mar 19 2015 Josh Boyer - Add patch to fix high cpu usage on direct_read kernfs files (rhbz 1202362) * Wed Mar 18 2015 Jarod Wilson - Fix kernel-uname-r Requires/Provides variant mismatches * Tue Mar 17 2015 Kyle McMartin - 4.0.0-0.rc4.git0.3 - Update kernel-arm64.patch, move EDAC to arm-generic, add EDAC_XGENE on arm64. - Add PCI_ECAM on generic, since it'll be selected most places anyway. * Mon Mar 16 2015 Jarod Wilson - Fix bad variant usage in kernel dependencies * Mon Mar 16 2015 Josh Boyer - 4.0.0-0.rc4.git0.1 - Linux v4.0-rc4 - Drop arm64 RCU revert patch. Should be fixed properly upstream now. - Disable debugging options. * Sun Mar 15 2015 Jarod Wilson - Fix kernel-tools sub-packages for variant builds * Fri Mar 13 2015 Josh Boyer - Fix esrt build on aarch64 * Fri Mar 13 2015 Kyle McMartin - arm64-revert-tlb-rcu_table_free.patch: revert 5e5f6dc1 which causes lockups on arm64 machines. - Also revert ESRT on AArch64 for now. * Fri Mar 13 2015 Josh Boyer - 4.0.0-0.rc3.git2.1 - Linux v4.0-rc3-148-gc202baf017ae - Add patch to support clickpads (rhbz 1201532) * Thu Mar 12 2015 Josh Boyer - CVE-2014-8159 infiniband: uverbs: unprotected physical memory access (rhbz 1181166 1200950) * Wed Mar 11 2015 Josh Boyer - 4.0.0-0.rc3.git1.1 - Linux v4.0-rc3-111-gaffb8172de39 - CVE-2015-2150 xen: NMIs triggerable by guests (rhbz 1196266 1200397) - Patch series to fix Lenovo *40 and Carbon X1 touchpads (rhbz 1200777 1200778) - Revert commit that added bad rpath to cpupower (rhbz 1199312) - Reenable debugging options. * Mon Mar 09 2015 Josh Boyer - 4.0.0-0.rc3.git0.1 - Linux v4.0-rc3 - Disable debugging options. * Sun Mar 8 2015 Peter Robinson - ARMv7: add patches to fix crash on boot for some devices on multiplatform * Fri Mar 06 2015 Josh Boyer - 4.0.0-0.rc2.git2.1 - Linux v4.0-rc2-255-g5f237425f352 * Thu Mar 05 2015 Josh Boyer - 4.0.0-0.rc2.git1.1 - Linux v4.0-rc2-150-g6587457b4b3d - Reenable debugging options. * Wed Mar 04 2015 Josh Boyer - Enable MLX4_EN on ppc64/aarch64 (rhbz 1198719) * Tue Mar 03 2015 Josh Boyer - 4.0.0-0.rc2.git0.1 - Linux v4.0-rc2 - Enable CONFIG_CM32181 for ALS on Carbon X1 - Disable debugging options. * Tue Mar 03 2015 Josh Boyer - 4.0.0-0.rc1.git3.1 - Linux v4.0-rc1-178-g023a6007a08d * Mon Mar 02 2015 Josh Boyer - Add patch to fix nfsd soft lockup (rhbz 1185519) - Enable ET131X driver (rhbz 1197842) - Enable YAMA (rhbz 1196825) * Sat Feb 28 2015 Peter Robinson - ARMv7 OMAP updates, fix panda boot * Fri Feb 27 2015 Josh Boyer - 4.0.0-0.rc1.git2.1 - Linux v4.0-rc1-36-g4f671fe2f952 * Wed Feb 25 2015 Josh Boyer - Add support for AR5B195 devices from Alexander Ploumistos (rhbz 1190947) * Tue Feb 24 2015 Josh Boyer - 4.0.0-0.rc1.git1.1 - Linux v4.0-rc1-22-gb24e2bdde4af - Reenable debugging options. * Tue Feb 24 2015 Richard W.M. Jones - 4.0.0-0.rc1.git0.2 - Add patch to fix aarch64 KVM bug with module loading (rhbz 1194366). * Tue Feb 24 2015 Peter Robinson - Minor ARM config update * Mon Feb 23 2015 Josh Boyer - 4.0.0-0.rc1.git0.1 - Add patch for HID i2c from Seth Forshee (rhbz 1188439) * Mon Feb 23 2015 Josh Boyer - Linux v4.0-rc1 - CVE-2015-0275 ext4: fallocate zero range page size > block size BUG (rhbz 1193907 1195178) - Disable debugging options. ### # The following Emacs magic makes C-c C-e use UTC dates. # Local Variables: # rpm-change-log-uses-utc: t # End: ###