Jesse Keating 7a32965
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a32965
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a32965
Jesse Keating 7a32965
Summary: The Linux kernel
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a32965
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a32965
# be 0.
1e63a38
%global released_kernel 1
Jesse Keating 7a32965
Kyle McMartin 81c4dc5
%global aarch64patches 1
Kyle McMartin 0c652ad
Josh Boyer c2a12cd
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12cd
# architectures are added.
Josh Boyer c2a12cd
%ifarch %{ix86} x86_64
Josh Boyer c2a12cd
%global signmodules 1
Kyle McMartin 8922622
%global zipmodules 1
Josh Boyer c2a12cd
%else
Josh Boyer c2a12cd
%global signmodules 0
Kyle McMartin 8922622
%global zipmodules 0
Kyle McMartin 8922622
%endif
Kyle McMartin 8922622
Kyle McMartin 8922622
%if %{zipmodules}
Kyle McMartin 8922622
%global zipsed -e 's/\.ko$/\.ko.xz/'
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
9644095
# % define buildid .local
Jesse Keating 7a32965
Roland McGrath 377da6d
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6d
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6d
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a32965
#
Roland McGrath 377da6d
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6d
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6d
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6d
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6d
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6d
#
Chuck Ebbert 05e763b
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763b
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126dc
#
Chuck Ebbert 05e763b
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763b
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763b
#
223ab06
%global baserelease 1
Roland McGrath 377da6d
%global fedora_build %{baserelease}
Jesse Keating 7a32965
Jesse Keating 7a32965
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8bb
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8bb
# which yields a base_sublevel of 0.
1e63a38
%define base_sublevel 18
Jesse Keating 7a32965
Jesse Keating 7a32965
## If this is a released kernel ##
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do we have a -stable update to apply?
Josh Boyer e8409b1
%define stable_update 0
Jesse Keating 7a32965
# Set rpm version accordingly
Jesse Keating 7a32965
%if 0%{?stable_update}
Josh Boyer 740de53
%define stablerev %{stable_update}
Jesse Keating 7a32965
%define stable_base %{stable_update}
Jesse Keating 7a32965
%endif
Kyle McMartin e8ba2bf
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a32965
Jesse Keating 7a32965
## The not-released-kernel case ##
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a20417
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a32965
# The rc snapshot level
1e63a38
%define rcrev 0
Jesse Keating 7a32965
# The git snapshot level
1e63a38
%define gitrev 0
Jesse Keating 7a32965
# Set rpm version accordingly
Kyle McMartin e8ba2bf
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a32965
Jesse Keating 7a32965
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a32965
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a32965
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a32965
# by later arch-specific checks.
Jesse Keating 7a32965
Jesse Keating 7a32965
# The following build options are enabled by default.
Jesse Keating 7a32965
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a32965
# to 0 in here to disable them.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# standard kernel
Jesse Keating 7a32965
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Kyle McMartin bc5f99d
# kernel PAE (only valid for i686 (PAE) and ARM (lpae))
Jarod Wilson 5b03275
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a32965
# kernel-debug
Jesse Keating 7a32965
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a32965
# kernel-headers
Jesse Keating 7a32965
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 42d4c31
# perf
Kyle McMartin 42d4c31
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad9
# tools
Dave Jones 1d18ad9
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a32965
# kernel-debuginfo
Kyle McMartin 761d1c0
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a32965
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a32965
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a32965
# Want to build a the vsdo directories installed
Jesse Keating 7a32965
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Only build the base kernel (--with baseonly):
Jesse Keating 7a32965
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jarod Wilson 5b03275
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b03275
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a32965
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a32965
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# should we do C=1 builds with sparse
Dave Jones 561b24a
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee033
#
Kyle McMartin 43d64b2
# Cross compile requested?
Kyle McMartin 43d64b2
%define with_cross    %{?_with_cross:         1} %{?!_with_cross:        0}
Kyle McMartin 43d64b2
#
Chuck Ebbert 11ee033
# build a release kernel on rawhide
Chuck Ebbert 11ee033
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a32965
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a32965
# See also 'make debug' and 'make release'.
9a2db57
%define debugbuildsenabled 1
Jesse Keating 7a32965
Jesse Keating 7a32965
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a32965
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Chuck Ebbert e6236b7
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel
Jesse Keating 7a32965
%if 0%{?rcrev}
Jesse Keating 7a32965
%define rctag .rc%rcrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define rctag .rc0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if 0%{?gitrev}
Jesse Keating 7a32965
%define gittag .git%gitrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define gittag .git0
Jesse Keating 7a32965
%endif
Kyle McMartin 66ce81a
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# The kernel tarball/base version
Kyle McMartin e8ba2bf
%define kversion 3.%{base_sublevel}
Jesse Keating 7a32965
Jesse Keating 7a32965
%define make_target bzImage
Jesse Keating 7a32965
Jesse Keating 7a32965
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a32965
%define hdrarch %_target_cpu
Jesse Keating 7a32965
%define asmarch %_target_cpu
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{!?nopatches:1}
Jesse Keating 7a32965
%define nopatches 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vanilla}
Jesse Keating 7a32965
%define nopatches 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{nopatches}
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%define variant -vanilla
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{with_debuginfo}
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define debuginfodir /usr/lib/debug
Jesse Keating 7a32965
Kyle McMartin bc5f99d
# kernel PAE is only built on i686 and ARMv7.
Kyle McMartin bc5f99d
%ifnarch i686 armv7hl
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build base kernel
Jesse Keating 7a32965
%if %{with_baseonly}
Jarod Wilson 5b03275
%define with_pae 0
Jarod Wilson 5b03275
%define with_debug 0
Jarod Wilson 5b03275
%endif
Jarod Wilson 5b03275
Jarod Wilson 5b03275
# if requested, only build pae kernel
Jarod Wilson 5b03275
%if %{with_paeonly}
Jarod Wilson 5b03275
%define with_up 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build debug kernel
Jesse Keating 7a32965
%if %{with_dbgonly}
Jesse Keating 7a32965
%if %{debugbuildsenabled}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define with_pae 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define all_x86 i386 i686
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vdso_install}
Jesse Keating 7a32965
# These arches install vdso/ directories.
9a6acd5
%define vdso_arches %{all_x86} x86_64 %{power64} s390 s390x aarch64
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Overrides for generic default options
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a32965
%ifnarch i686 x86_64
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't build noarch kernels or headers (duh)
Jesse Keating 7a32965
%ifarch noarch
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_headers 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# bootwrapper is only on ppc
a3f68e4
# sparse blows up on ppc
9a6acd5
%ifnarch %{power64}
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%define with_sparse 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Per-arch tweaks
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{all_x86}
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define hdrarch i386
Kyle McMartin bc5f99d
%define pae PAE
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch x86_64
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
a3f68e4
%ifarch %{power64}
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
a3f68e4
%ifarch ppc64 ppc64p7
a3f68e4
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a32965
%endif
Josh Boyer 5a77287
%ifarch ppc64le
Josh Boyer 5a77287
%define all_arch_configs kernel-%{version}-ppc64le.config
a3f68e4
%endif
Josh Boyer 5a77287
%endif
Josh Boyer 5a77287
Jesse Keating 7a32965
%ifarch s390x
Jesse Keating 7a32965
%define asmarch s390
Jesse Keating 7a32965
%define hdrarch s390
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target image
Jesse Keating 7a32965
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{arm}
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a32965
%define image_install_path boot
Josh Boyer 8ffa0af
%define asmarch arm
Jesse Keating 7a32965
%define hdrarch arm
Kyle McMartin bc5f99d
%define pae lpae
986a9f3
%define make_target bzImage
986a9f3
%define kernel_image arch/arm/boot/zImage
Kyle McMartin 9b1a4cb
# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
Kyle McMartin 9b1a4cb
%define kernel_mflags KALLSYMS_EXTRA_PASS=1
43fa717
# we only build headers/perf/tools on the base arm arches
94b0067
# just like we used to only build them on i386 for x86
a940693
%ifnarch armv7hl
94b0067
%define with_headers 0
43fa717
%define with_perf 0
43fa717
%define with_tools 0
94b0067
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 575de6c
%ifarch aarch64
918c10a
%define all_arch_configs kernel-%{version}-aarch64*.config
Kyle McMartin 575de6c
%define asmarch arm64
Kyle McMartin 575de6c
%define hdrarch arm64
Kyle McMartin 575de6c
%define make_target Image.gz
Kyle McMartin 575de6c
%define kernel_image arch/arm64/boot/Image.gz
Kyle McMartin 575de6c
%define image_install_path boot
Kyle McMartin 575de6c
%endif
Kyle McMartin 575de6c
Dave Jones 834dba8
# Should make listnewconfig fail if there's config options
Dave Jones 834dba8
# printed out?
cff59d3
%if %{nopatches}
Dave Jones 834dba8
%define listnewconfig_fail 0
Dave Jones 834dba8
%else
Dave Jones 834dba8
%define listnewconfig_fail 1
Dave Jones 834dba8
%endif
Dave Jones 834dba8
Jesse Keating 7a32965
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79a
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a32965
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a32965
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a32965
# Which is a BadThing(tm).
Jesse Keating 7a32965
Jesse Keating 7a32965
# We only build kernel-headers on the following...
Kyle McMartin 0c652ad
%if 0%{?aarch64patches}
5d109f0
%define nobuildarches i386 s390
Kyle McMartin 0c652ad
%else
Kyle McMartin 0c652ad
%define nobuildarches i386 s390 aarch64
Kyle McMartin 0c652ad
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %nobuildarches
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%define with_debuginfo 0
Kyle McMartin 42d4c31
%define with_perf 0
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define with_pae_debug 0
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
%define with_pae_debug %{with_debug}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 8addb5f
# Architectures we build tools/cpupower on
9a6acd5
%define cpupowerarchs %{ix86} x86_64 %{power64} %{arm} aarch64 
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Dave Jones 166b79a
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a32965
# scripts use them.
Jesse Keating 7a32965
#
Kyle McMartin 57716bc
%define kernel_prereq  fileutils, systemd >= 203-2
Josh Boyer 6d752ab
%define initrd_prereq  dracut >= 027
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
Name: kernel%{?variant}
Jesse Keating 7a32965
Group: System Environment/Kernel
Dave Jones 702ef34
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a32965
URL: http://www.kernel.org/
Jesse Keating 7a32965
Version: %{rpmversion}
e093b26
Release: %{pkg_release}
Jesse Keating 7a32965
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a32965
# SET %%nobuildarches (ABOVE) INSTEAD
9a6acd5
ExclusiveArch: %{all_x86} x86_64 ppc64 ppc64p7 s390 s390x %{arm} aarch64 ppc64le
Jesse Keating 7a32965
ExclusiveOS: Linux
a9cc543
%ifnarch %{nobuildarches}
94ce4ec
Requires: kernel-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant}
aa73513
Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}
a9cc543
%endif
Jesse Keating 7a32965
Dave Jones efc71ad
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# List the packages used during the kernel build
Jesse Keating 7a32965
#
Kyle McMartin 11dfcd7
BuildRequires: kmod, patch, bash, sh-utils, tar
Kyle McMartin 11dfcd7
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
Kyle McMartin 11dfcd7
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
Josh Boyer 951b84a
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a32965
%if %{with_sparse}
Kyle McMartin 11dfcd7
BuildRequires: sparse
Jesse Keating 7a32965
%endif
Kyle McMartin 42d4c31
%if %{with_perf}
006e9ac
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex
Josh Boyer ad6cd36
BuildRequires: audit-libs-devel
65c8750
%ifnarch s390 s390x %{arm}
Petr Holasek d9594c9
BuildRequires: numactl-devel
Petr Holasek d9594c9
%endif
Kyle McMartin 42d4c31
%endif
Dave Jones 1d18ad9
%if %{with_tools}
ec0fd9d
BuildRequires: pciutils-devel gettext ncurses-devel
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a32965
%if %{with_debuginfo}
Kyle McMartin 11dfcd7
BuildRequires: rpm-build, elfutils
006e9ac
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c2a12cd
%if %{signmodules}
Josh Boyer f0f4ff2
BuildRequires: openssl
Josh Boyer bf81d15
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Kyle McMartin 43d64b2
%if %{with_cross}
Kyle McMartin 43d64b2
BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
Kyle McMartin 43d64b2
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
Kyle McMartin 43d64b2
%endif
Kyle McMartin 43d64b2
Dave Jones 8959a0e
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a32965
80ea6c9
Source10: perf-man-%{kversion}.tar.gz
Josh Boyer f0f4ff2
Source11: x509.genkey
Josh Boyer c2a12cd
Jesse Keating 7a32965
Source15: merge.pl
Josh Boyer b8b2783
Source16: mod-extra.list
Josh Boyer 0b43386
Source17: mod-extra.sh
Kyle McMartin d0a8cf5
Source18: mod-sign.sh
94ce4ec
Source90: filter-x86_64.sh
94ce4ec
Source91: filter-armv7hl.sh
94ce4ec
Source92: filter-i686.sh
94ce4ec
Source93: filter-aarch64.sh
94ce4ec
Source95: filter-ppc64.sh
94ce4ec
Source96: filter-ppc64le.sh
94ce4ec
Source97: filter-s390x.sh
0d23ee9
Source98: filter-ppc64p7.sh
94ce4ec
Source99: filter-modules.sh
Kyle McMartin d0a8cf5
%define modsign_cmd %{SOURCE18}
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
Source19: Makefile.release
Jesse Keating 7a32965
Source20: Makefile.config
Jesse Keating 7a32965
Source21: config-debug
Jesse Keating 7a32965
Source22: config-nodebug
Jesse Keating 7a32965
Source23: config-generic
Kyle McMartin bcab99f
Source24: config-no-extra
Jesse Keating 7a32965
Jesse Keating 7a32965
Source30: config-x86-generic
Jesse Keating 7a32965
Source31: config-i686-PAE
Josh Boyer d71f188
Source32: config-x86-32-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source40: config-x86_64-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source50: config-powerpc-generic
Jesse Keating 7a32965
Source53: config-powerpc64
Josh Boyer 3b76903
Source54: config-powerpc64p7
Josh Boyer 5a77287
Source55: config-powerpc64le
Jesse Keating 7a32965
Jesse Keating 7a32965
Source70: config-s390x
Jesse Keating 7a32965
Kyle McMartin 575de6c
Source100: config-arm-generic
Kyle McMartin 575de6c
faa8d0c
# Unified ARM kernels
Kyle McMartin 575de6c
Source101: config-armv7-generic
Kyle McMartin 575de6c
Source102: config-armv7
Kyle McMartin 575de6c
Source103: config-armv7-lpae
Kyle McMartin 575de6c
Kyle McMartin 575de6c
Source110: config-arm64
Jesse Keating 7a32965
Jarod Wilson 5b65297
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b65297
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b65297
Source1000: config-local
Jarod Wilson 5b65297
Josh Boyer 8addb5f
# Sources for kernel-tools
Josh Boyer 8addb5f
Source2000: cpupower.service
Josh Boyer 8addb5f
Source2001: cpupower.config
Josh Boyer 8addb5f
Jesse Keating 7a32965
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable release kernel
Jesse Keating 7a32965
%if 0%{?stable_update}
Jesse Keating 7a32965
%if 0%{?stable_base}
Josh Boyer fdb68da
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a32965
Patch00: %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a32965
# near the top of this spec file.
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# we also need compile fixes for -vanilla
Dave Jones efd70b8
Patch04: compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# build tweak for build ID magic, even for -vanilla
6a91557
Patch05: kbuild-AFTER_LINK.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Kyle McMartin 201b16f
Jesse Keating 7a32965
# revert upstream patches we get via other methods
Dave Jones efd70b8
Patch09: upstream-reverts.patch
Jesse Keating 7a32965
# Git trees.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Standalone patches
Jesse Keating 7a32965
Dave Jones efd70b8
Patch450: input-kill-stupid-messages.patch
Dave Jones efd70b8
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch470: die-floppy-die.patch
Jesse Keating 7a32965
e6fe382
Patch500: Revert-Revert-ACPI-video-change-acpi-video-brightnes.patch
e6fe382
6a91557
Patch510: input-silence-i8042-noise.patch
Dave Jones efd70b8
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a32965
6a91557
Patch600: lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
de05667
Dave Jones efd70b8
Patch800: crash-driver.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# crypto/
Josh Boyer 306dfcc
Josh Boyer 306dfcc
# secure boot
6a91557
Patch1000: Add-secure_modules-call.patch
6a91557
Patch1001: PCI-Lock-down-BAR-access-when-module-security-is-ena.patch
6a91557
Patch1002: x86-Lock-down-IO-port-access-when-module-security-is.patch
6a91557
Patch1003: ACPI-Limit-access-to-custom_method.patch
6a91557
Patch1004: asus-wmi-Restrict-debugfs-interface-when-module-load.patch
6a91557
Patch1005: Restrict-dev-mem-and-dev-kmem-when-module-loading-is.patch
6a91557
Patch1006: acpi-Ignore-acpi_rsdp-kernel-parameter-when-module-l.patch
6a91557
Patch1007: kexec-Disable-at-runtime-if-the-kernel-enforces-modu.patch
6a91557
Patch1008: x86-Restrict-MSR-access-when-module-loading-is-restr.patch
6a91557
Patch1009: Add-option-to-automatically-enforce-module-signature.patch
6a91557
Patch1010: efi-Disable-secure-boot-if-shim-is-in-insecure-mode.patch
6a91557
Patch1011: efi-Make-EFI_SECURE_BOOT_SIG_ENFORCE-depend-on-EFI.patch
6a91557
Patch1012: efi-Add-EFI_SECURE_BOOT-bit.patch
6a91557
Patch1013: hibernate-Disable-in-a-signed-modules-environment.patch
6a91557
6a91557
Patch1014: Add-EFI-signature-data-types.patch
6a91557
Patch1015: Add-an-EFI-signature-blob-parser-and-key-loader.patch
6a91557
Patch1016: KEYS-Add-a-system-blacklist-keyring.patch
6a91557
Patch1017: MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch
6a91557
Patch1018: MODSIGN-Support-not-importing-certs-from-db.patch
6a91557
6a91557
Patch1019: Add-sysrq-option-to-disable-secure-boot-mode.patch
Matthew Garrett 447e3a6
Jesse Keating 7a32965
# virt + ksm patches
Jesse Keating 7a32965
Jesse Keating 7a32965
# DRM
Josh Boyer deb816a
Jesse Keating 7a32965
# nouveau + drm fixes
Jesse Keating 7a32965
# intel drm is all merged upstream
049a74e
Patch1826: drm-i915-hush-check-crtc-state.patch
Kyle McMartin 5acda93
Jesse Keating 7a32965
# Quiet boot fixes
Jesse Keating 7a32965
Jesse Keating 7a32965
# fs fixes
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# patches headed upstream
Jesse Keating 7a32965
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Josh Boyer fcbaf26
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
6a91557
Patch15000: watchdog-Disable-watchdog-on-virtual-machines.patch
Dave Jones 18e50ce
964596a
# PPC
ff18007
Kyle McMartin 575de6c
# ARM64
Kyle McMartin 575de6c
fe0e7b7
# ARMv7
6a91557
Patch21020: ARM-tegra-usb-no-reset.patch
6a91557
Patch21021: arm-dts-am335x-boneblack-lcdc-add-panel-info.patch
6a91557
Patch21022: arm-dts-am335x-boneblack-add-cpu0-opp-points.patch
6a91557
Patch21023: arm-dts-am335x-bone-common-enable-and-use-i2c2.patch
6a91557
Patch21024: arm-dts-am335x-bone-common-setup-default-pinmux-http.patch
6a91557
Patch21025: arm-dts-am335x-bone-common-add-uart2_pins-uart4_pins.patch
6a91557
Patch21026: pinctrl-pinctrl-single-must-be-initialized-early.patch
6a91557
6a91557
Patch21028: arm-i.MX6-Utilite-device-dtb.patch
05b52e7
Patch21029: arm-dts-sun7i-bananapi.patch
c30bd63
d6b8622
Patch21100: arm-highbank-l2-reverts.patch
c30bd63
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
Josh Boyer ebd1a17
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a17
Patch21242: criu-no-expert.patch
Josh Boyer ebd1a17
Josh Boyer 27e48a6
#rhbz 892811
6a91557
Patch21247: ath9k-rx-dma-stop-check.patch
Josh Boyer 27e48a6
Josh Boyer dadd60b
Patch22000: weird-root-dentry-name-debug.patch
Josh Boyer dadd60b
e8129d6
# Patch series from Hans for various backlight and platform driver fixes
c25186f
Patch26002: samsung-laptop-Add-broken-acpi-video-quirk-for-NC210.patch
7fd1921
300a553
Patch26058: asus-nb-wmi-Add-wapf4-quirk-for-the-X550VB.patch
7c50c7d
eaaf41d
#rhbz 1111138
eaaf41d
Patch26059: i8042-Add-notimeout-quirk-for-Fujitsu-Lifebook-A544-.patch
dd6c13b
d99a023
Patch26064: Input-add-driver-for-the-Goodix-touchpanel.patch
9dcf787
4afc320
#rhbz 1135338
4afc320
Patch26070: HID-add-support-for-MS-Surface-Pro-3-Type-Cover.patch
0911566
Kyle McMartin 0c652ad
# git clone ssh://git.fedorahosted.org/git/kernel-arm64.git, git diff master...devel
Kyle McMartin 0c652ad
Patch30000: kernel-arm64.patch
Kyle McMartin 0c652ad
Josh Boyer 812ba1a
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1a
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a32965
Jesse Keating 7a32965
%description
94ce4ec
The kernel meta package
94ce4ec
94ce4ec
#
94ce4ec
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
94ce4ec
#	%%kernel_reqprovconf <subpackage>
94ce4ec
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
94ce4ec
# macros defined above.
94ce4ec
#
94ce4ec
%define kernel_reqprovconf \
94ce4ec
Provides: kernel = %{rpmversion}-%{pkg_release}\
94ce4ec
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
94ce4ec
Provides: kernel-drm-nouveau = 16\
94ce4ec
Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4ec
Requires(pre): %{kernel_prereq}\
94ce4ec
Requires(pre): %{initrd_prereq}\
94ce4ec
Requires(pre): linux-firmware >= 20130724-29.git31f6b30\
94ce4ec
Requires(preun): systemd >= 200\
94ce4ec
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
94ce4ec
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
94ce4ec
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
94ce4ec
# We can't let RPM do the dependencies automatic because it'll then pick up\
94ce4ec
# a correct but undesirable perl dependency from the module headers which\
94ce4ec
# isn't required for the kernel proper to function\
f19b8f4
AutoReq: no\
f19b8f4
AutoProv: yes\
94ce4ec
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%package headers
Jesse Keating 7a32965
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a32965
Group: Development/System
Dave Jones d555d67
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a32965
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a32965
%description headers
Jesse Keating 7a32965
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a32965
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a32965
header files define structures and constants that are needed for
Jesse Keating 7a32965
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a32965
glibc package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package bootwrapper
Jesse Keating 7a32965
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a32965
Group: Development/System
Dave Jones 524b8cb
Requires: gzip binutils
Jesse Keating 7a32965
%description bootwrapper
Jesse Keating 7a32965
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a32965
files combining both kernel and initial ramdisk.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a32965
Group: Development/Debug
Jesse Keating 7a32965
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a32965
It provides the kernel source files common to all builds.
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%package -n perf
Kyle McMartin 42d4c31
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c31
Group: Development/System
Kyle McMartin 42d4c31
License: GPLv2
Kyle McMartin 42d4c31
%description -n perf
Kyle McMartin 42d4c31
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c31
of the Linux kernel.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n perf-debuginfo
Kyle McMartin 42d4c31
Summary: Debug information for package perf
Kyle McMartin 42d4c31
Group: Development/Debug
Kyle McMartin 42d4c31
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c31
AutoReqProv: no
Kyle McMartin 42d4c31
%description -n perf-debuginfo
Kyle McMartin 42d4c31
This package provides debug information for the perf package.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c31
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c31
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c31
# of matching the pattern against the symlinks file.
006e9ac
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/traceevent/plugins/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n python-perf
Kyle McMartin 42d4c31
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c31
Group: Development/Libraries
Kyle McMartin 42d4c31
%description -n python-perf
Kyle McMartin 42d4c31
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c31
written in the Python programming language to use the interface
Kyle McMartin 42d4c31
to manipulate perf events.
Kyle McMartin 42d4c31
006e9ac
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
006e9ac
Josh Boyer 27d8a0e
%package -n python-perf-debuginfo
Josh Boyer 27d8a0e
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0e
Group: Development/Debug
Josh Boyer 27d8a0e
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0e
AutoReqProv: no
Josh Boyer 27d8a0e
%description -n python-perf-debuginfo
Josh Boyer 27d8a0e
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0e
006e9ac
# the python_sitearch macro should already be defined from above
006e9ac
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
Kyle McMartin 42d4c31
%endif # with_perf
Kyle McMartin 42d4c31
Dave Jones 1d18ad9
%if %{with_tools}
Dave Jones 1d18ad9
%package -n kernel-tools
Dave Jones 1d18ad9
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a32965
Group: Development/System
Jesse Keating 7a32965
License: GPLv2
Josh Boyer 02587b4
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 55e586c
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad9
%description -n kernel-tools
Dave Jones 1d18ad9
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c31
and the supporting documentation.
Roland McGrath 3c4ea9a
Josh Boyer 55e586c
%package -n kernel-tools-libs
Josh Boyer 55e586c
Summary: Libraries for the kernels-tools
Josh Boyer 55e586c
Group: Development/System
Josh Boyer 55e586c
License: GPLv2
Josh Boyer 55e586c
%description -n kernel-tools-libs
Josh Boyer 55e586c
This package contains the libraries built from the tools/ directory
Josh Boyer 55e586c
from the kernel source.
Josh Boyer 55e586c
Josh Boyer 55e586c
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5f
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5f
Group: Development/System
Josh Boyer 8addb5f
License: GPLv2
Josh Boyer 02587b4
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad3713
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad3713
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 55e586c
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer a5b375c
Provides: kernel-tools-devel
Josh Boyer 55e586c
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5f
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5f
the kernel source.
Josh Boyer 8addb5f
Dave Jones 1d18ad9
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad9
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9a
Group: Development/Debug
Roland McGrath 3c4ea9a
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9a
AutoReqProv: no
Dave Jones 1d18ad9
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad9
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9a
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9a
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9a
# of matching the pattern against the symlinks file.
006e9ac
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
Kyle McMartin ec31efd
Kyle McMartin 42d4c31
%endif # with_tools
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a32965
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_debuginfo_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a32965
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a32965
Group: Development/Debug\
Jesse Keating 7a32965
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a32965
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a32965
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
006e9ac
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}devel\
Jesse Keating 7a32965
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
faf2520
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
faf2520
Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\
faf2520
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
Requires(pre): /usr/bin/find\
Jesse Keating 7a32965
Requires: perl\
Jesse Keating 7a32965
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a32965
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a32965
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Josh Boyer b8b2783
# This macro creates a kernel-<subpackage>-modules-extra package.
Kyle McMartin de50edb
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b2783
#
Kyle McMartin de50edb
%define kernel_modules_extra_package() \
Josh Boyer b8b2783
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b2783
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b2783
Group: System Environment/Kernel\
Josh Boyer b8b2783
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra = %{version}-%{release}%{?1:+%{1}}\
Josh Boyer 6721e49
Provides: installonlypkg(kernel-module)\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
faf2520
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
6d90aa8
Requires: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
f19b8f4
AutoReq: no\
f19b8f4
AutoProv: yes\
Josh Boyer b8b2783
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b2783
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b2783
%{nil}
Josh Boyer b8b2783
Josh Boyer b8b2783
#
aa73513
# This macro creates a kernel-<subpackage>-modules package.
aa73513
#	%%kernel_modules_package <subpackage> <pretty-name>
94ce4ec
#
aa73513
%define kernel_modules_package() \
aa73513
%package %{?1:%{1}-}modules\
94ce4ec
Summary: kernel modules to match the %{?2:%{2}-}core kernel\
94ce4ec
Group: System Environment/Kernel\
aa73513
Provides: kernel%{?1:-%{1}}-modules-%{_target_cpu} = %{version}-%{release}\
aa73513
Provides: kernel-modules-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
aa73513
Provides: kernel-modules = %{version}-%{release}%{?1:+%{1}}\
94ce4ec
Provides: installonlypkg(kernel-module)\
551aab6
Provides: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4ec
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
f19b8f4
AutoReq: no\
f19b8f4
AutoProv: yes\
aa73513
%description -n kernel%{?variant}%{?1:-%{1}}-modules\
94ce4ec
This package provides commonly used kernel modules for the %{?2:%{2}-}core kernel package.\
94ce4ec
%{nil}
94ce4ec
94ce4ec
#
3352065
# this macro creates a kernel-<subpackage> meta package.
3352065
#	%%kernel_meta_package <subpackage>
3352065
#
3352065
%define kernel_meta_package() \
3352065
%package %{1}\
3352065
summary: kernel meta-package for the %{1} kernel\
3352065
group: system environment/kernel\
3352065
Requires: kernel-%{1}-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant}+%{1}\
aa73513
Requires: kernel-%{1}-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}+%{1}\
3352065
%description %{1}\
3352065
The meta-package for the %{1} kernel\
3352065
%{nil}
3352065
3352065
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a32965
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a32965
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_package(n:) \
94ce4ec
%package %{?1:%{1}-}core\
Jesse Keating 7a32965
Summary: %{variant_summary}\
Jesse Keating 7a32965
Group: System Environment/Kernel\
94ce4ec
Provides: kernel-%{?1:%{1}-}core-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4ec
%{expand:%%kernel_reqprovconf}\
3352065
%if %{?1:1} %{!?1:0} \
3352065
%{expand:%%kernel_meta_package %{?1:%{1}}}\
3352065
%endif\
94ce4ec
%{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
aa73513
%{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
94ce4ec
%{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
94ce4ec
%{expand:%%kernel_debuginfo_package %{?1:%{1}}}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Now, each variant package.
Jesse Keating 7a32965
Kyle McMartin be52afe
%ifnarch armv7hl
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for PAE capable machines
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}
94ce4ec
%description %{pae}-core
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Kyle McMartin be52afe
%else
Kyle McMartin bc5f99d
%define variant_summary The Linux kernel compiled for Cortex-A15
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}
94ce4ec
%description %{pae}-core
Kyle McMartin bc5f99d
This package includes a version of the Linux kernel with support for
Kyle McMartin bc5f99d
Cortex-A15 devices with LPAE and HW virtualisation support
Kyle McMartin bc5f99d
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}debug
Jesse Keating 7a32965
Obsoletes: kernel-PAE-debug
94ce4ec
%description %{pae}debug-core
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a32965
%kernel_variant_package debug
94ce4ec
%description debug-core
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
94ce4ec
# And finally the main -core package
94ce4ec
94ce4ec
%define variant_summary The Linux kernel
94ce4ec
%kernel_variant_package 
94ce4ec
%description core
94ce4ec
The kernel package contains the Linux kernel (vmlinuz), the core of any
94ce4ec
Linux operating system.  The kernel handles the basic functions
94ce4ec
of the operating system: memory allocation, process allocation, device
94ce4ec
input and output, etc.
94ce4ec
986a9f3
Jesse Keating 7a32965
%prep
Jesse Keating 7a32965
# do a few sanity-checks for --with *only builds
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%if !%{with_up}%{with_pae}
Jesse Keating 7a32965
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c78a082
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763b
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763b
exit 1
Chuck Ebbert 05e763b
%endif
Chuck Ebbert 05e763b
Jesse Keating 7a32965
# more sanity checking; do it quietly
Jesse Keating 7a32965
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a32965
  for patch in %{patches} ; do
Jesse Keating 7a32965
    if [ ! -f $patch ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Jesse Keating 7a32965
fi 2>/dev/null
Jesse Keating 7a32965
Jesse Keating 7a32965
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a32965
ApplyPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Dave Jones b89c80f
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a2918
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  fi 2>/dev/null
Jesse Keating 7a32965
  case "$patch" in
Jesse Keating 7a32965
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a32965
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a32965
  esac
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't apply patch if it's empty
Jesse Keating 7a32965
ApplyOptionalPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a32965
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a32965
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# First we unpack the kernel tarball.
Jesse Keating 7a32965
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a32965
# which speeds things up quite a bit.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update to latest upstream.
Jesse Keating 7a32965
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a32965
%else
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 166b79a
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79a
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a32965
Dave Jones 166b79a
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c0
# so we can prep different trees within a single git directory.
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c0
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9b
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c0
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a32965
Dave Jones 9e29439
# Delete all old stale trees.
Dave Jones 9e29439
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e29439
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e29439
  for i in linux-*
Dave Jones 9e29439
  do
Dave Jones 7bd4dec
     if [ -d $i ]; then
Dave Jones 7bd4dec
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4dec
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4dec
       # Move away the stale away, and delete in background.
Dave Jones 7bd4dec
       mv $i deleteme-$i
Dave Jones 7bd4dec
       rm -rf deleteme* &
Dave Jones 7bd4dec
     fi
Dave Jones 9e29439
  done
Dave Jones 9e29439
  cd ..
Dave Jones 9e29439
fi
Dave Jones 9e29439
Dave Jones 9e29439
# Generate new tree
Chuck Ebbert 26d08c0
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
    # The base vanilla version already exists.
Chuck Ebbert 26d08c0
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a32965
    for dir in vanilla-*; do
Jesse Keating 7a32965
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a32965
    done
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f pax_global_header
Chuck Ebbert 26d08c0
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a32965
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a32965
        break
Jesse Keating 7a32965
      fi
Jesse Keating 7a32965
    done
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c -T
16cb953
      cp -al $sharedir/vanilla-%{kversion} .
Jesse Keating 7a32965
    else
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14e
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a32965
Jesse Keating 7a32965
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
      break
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Chuck Ebbert 26d08c0
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
16cb953
    cp -al $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
    # Need to apply patches to the base vanilla version.
16cb953
    cp -al vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a32965
    cd vanilla-%{vanillaversion}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update vanilla to the latest upstream.
Jesse Keating 7a32965
# (non-released_kernel case only)
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
else
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c0
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c0
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Now build the fedora kernel tree.
16cb953
cp -al vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
# released_kernel with possible stable updates
Jesse Keating 7a32965
%if 0%{?stable_base}
Jesse Keating 7a32965
ApplyPatch %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a32965
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a32965
cp %{SOURCE15} .
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee033
%if %{with_release}
Chuck Ebbert c6b36e0
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee033
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e0
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
Jesse Keating 7a32965
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a32965
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a32965
Jarod Wilson 5b65297
# Merge in any user-provided local config option changes
54a9e1a
%ifnarch %nobuildarches
e57e8f1
for i in %{all_arch_configs}
Jarod Wilson 5b65297
do
Jarod Wilson 5b65297
  mv $i $i.tmp
Jarod Wilson 5b65297
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b65297
  rm $i.tmp
Jarod Wilson 5b65297
done
54a9e1a
%endif
Jarod Wilson 5b65297
6a91557
ApplyPatch kbuild-AFTER_LINK.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# misc small stuff to make things compile
Jesse Keating 7a32965
#
Dave Jones efd70b8
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Jesse Keating 7a32965
# revert patches from upstream that conflict or that we get via other means
Dave Jones efd70b8
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a32965
Jesse Keating 7a32965
# Architecture patches
Jesse Keating 7a32965
# x86(-64)
6a91557
ApplyPatch lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
Jesse Keating 7a32965
964596a
# PPC
ff18007
Kyle McMartin 575de6c
# ARM64
Kyle McMartin 575de6c
Jesse Keating 7a32965
#
986a9f3
# ARM
986a9f3
#
6a91557
ApplyPatch ARM-tegra-usb-no-reset.patch
05b52e7
6a91557
ApplyPatch arm-dts-am335x-boneblack-lcdc-add-panel-info.patch
6a91557
ApplyPatch arm-dts-am335x-boneblack-add-cpu0-opp-points.patch
6a91557
ApplyPatch arm-dts-am335x-bone-common-enable-and-use-i2c2.patch
6a91557
ApplyPatch arm-dts-am335x-bone-common-setup-default-pinmux-http.patch
6a91557
ApplyPatch arm-dts-am335x-bone-common-add-uart2_pins-uart4_pins.patch
6a91557
ApplyPatch pinctrl-pinctrl-single-must-be-initialized-early.patch
6a91557
6a91557
ApplyPatch arm-i.MX6-Utilite-device-dtb.patch
05b52e7
ApplyPatch arm-dts-sun7i-bananapi.patch
fceb351
d6b8622
ApplyPatch arm-highbank-l2-reverts.patch
fceb351
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# bugfixes to drivers and filesystems
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ext4
Jesse Keating 7a32965
Jesse Keating 7a32965
# xfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# btrfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# eCryptfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# USB
Jesse Keating 7a32965
Jesse Keating 7a32965
# WMI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# PCI
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# SCSI Bits.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
e6fe382
ApplyPatch Revert-Revert-ACPI-video-change-acpi-video-brightnes.patch
e6fe382
Jesse Keating 7a32965
# ALSA
Jesse Keating 7a32965
Jesse Keating 7a32965
# Networking
Jesse Keating 7a32965
Jesse Keating 7a32965
# Misc fixes
Jesse Keating 7a32965
# The input layer spews crap no-one cares about.
Dave Jones efd70b8
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a32965
ApplyPatch die-floppy-die.patch
Jesse Keating 7a32965
Dave Jones efd70b8
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Silence some useless messages that still get printed with 'quiet'
6a91557
ApplyPatch input-silence-i8042-noise.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Make fbcon not show the penguins with 'quiet'
Dave Jones efd70b8
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Changes to upstream defaults.
Jesse Keating 7a32965
Jesse Keating 7a32965
# /dev/crash driver.
Dave Jones efd70b8
ApplyPatch crash-driver.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# crypto/
Josh Boyer 306dfcc
Josh Boyer 306dfcc
# secure boot
6a91557
ApplyPatch Add-secure_modules-call.patch
6a91557
ApplyPatch PCI-Lock-down-BAR-access-when-module-security-is-ena.patch
6a91557
ApplyPatch x86-Lock-down-IO-port-access-when-module-security-is.patch
6a91557
ApplyPatch ACPI-Limit-access-to-custom_method.patch
6a91557
ApplyPatch asus-wmi-Restrict-debugfs-interface-when-module-load.patch
6a91557
ApplyPatch Restrict-dev-mem-and-dev-kmem-when-module-loading-is.patch
6a91557
ApplyPatch acpi-Ignore-acpi_rsdp-kernel-parameter-when-module-l.patch
6a91557
ApplyPatch kexec-Disable-at-runtime-if-the-kernel-enforces-modu.patch
6a91557
ApplyPatch x86-Restrict-MSR-access-when-module-loading-is-restr.patch
6a91557
ApplyPatch Add-option-to-automatically-enforce-module-signature.patch
6a91557
ApplyPatch efi-Disable-secure-boot-if-shim-is-in-insecure-mode.patch
6a91557
ApplyPatch efi-Make-EFI_SECURE_BOOT_SIG_ENFORCE-depend-on-EFI.patch
6a91557
ApplyPatch efi-Add-EFI_SECURE_BOOT-bit.patch
6a91557
ApplyPatch hibernate-Disable-in-a-signed-modules-environment.patch
6a91557
6a91557
ApplyPatch Add-EFI-signature-data-types.patch
6a91557
ApplyPatch Add-an-EFI-signature-blob-parser-and-key-loader.patch
6a91557
ApplyPatch KEYS-Add-a-system-blacklist-keyring.patch
6a91557
ApplyPatch MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch
6a91557
ApplyPatch MODSIGN-Support-not-importing-certs-from-db.patch
6a91557
6a91557
ApplyPatch Add-sysrq-option-to-disable-secure-boot-mode.patch
Matthew Garrett 447e3a6
Jesse Keating 7a32965
# Assorted Virt Fixes
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# DRM core
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# Nouveau DRM
Kyle McMartin d3e4af8
Kyle McMartin d3e4af8
# Intel DRM
049a74e
ApplyPatch drm-i915-hush-check-crtc-state.patch
Dave Jones 19e3780
Kyle McMartin b853049
# Radeon DRM
Kyle McMartin b853049
Jesse Keating 7a32965
# Patches headed upstream
Jesse Keating 7a32965
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Dave Jones 7bd4dec
# FIXME: REBASE
Dave Jones 7bd4dec
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
Dave Jones 18e50ce
# Disable watchdog on virtual machines.
6a91557
ApplyPatch watchdog-Disable-watchdog-on-virtual-machines.patch
Dave Jones 18e50ce
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
a0e7ea5
#pplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0c
Josh Boyer ebd1a17
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a17
ApplyPatch criu-no-expert.patch
Josh Boyer ebd1a17
Josh Boyer 27e48a6
#rhbz 892811
6a91557
ApplyPatch ath9k-rx-dma-stop-check.patch
Josh Boyer 27e48a6
e8129d6
# Patch series from Hans for various backlight and platform driver fixes
c25186f
ApplyPatch samsung-laptop-Add-broken-acpi-video-quirk-for-NC210.patch
e8129d6
300a553
ApplyPatch asus-nb-wmi-Add-wapf4-quirk-for-the-X550VB.patch
7c50c7d
eaaf41d
#rhbz 1111138
eaaf41d
ApplyPatch i8042-Add-notimeout-quirk-for-Fujitsu-Lifebook-A544-.patch
dd6c13b
d99a023
ApplyPatch Input-add-driver-for-the-Goodix-touchpanel.patch
9dcf787
4afc320
#rhbz 1135338
4afc320
ApplyPatch HID-add-support-for-MS-Surface-Pro-3-Type-Cover.patch
0911566
Kyle McMartin 0c652ad
%if 0%{?aarch64patches}
Kyle McMartin 0c652ad
ApplyPatch kernel-arm64.patch
Kyle McMartin 0c652ad
%ifnarch aarch64 # this is stupid, but i want to notice before secondary koji does.
Kyle McMartin 0c652ad
ApplyPatch kernel-arm64.patch -R
Kyle McMartin 0c652ad
%endif
Kyle McMartin 0c652ad
%endif
Kyle McMartin 0c652ad
Jesse Keating 7a32965
# END OF PATCH APPLICATIONS
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a32965
Jesse Keating 7a32965
chmod +x scripts/checkpatch.pl
Jesse Keating 7a32965
Dave Jones ed3d267
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa06609
touch .scmversion
Kyle McMartin fa06609
Jesse Keating 7a32965
# only deal with configs if we are going to build for the arch
Jesse Keating 7a32965
%ifnarch %nobuildarches
Jesse Keating 7a32965
Jesse Keating 7a32965
mkdir configs
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 43d64b2
%define make make %{?cross_opts}
Kyle McMartin 43d64b2
Dave Jones 834dba8
# now run oldconfig over all the config files
Dave Jones 834dba8
for i in *.config
Dave Jones 834dba8
do
Dave Jones 834dba8
  mv $i .config
Dave Jones 834dba8
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 834dba8
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 834dba8
%if %{listnewconfig_fail}
Dave Jones 834dba8
  if [ -s .newoptions ]; then
Dave Jones 834dba8
    cat .newoptions
Dave Jones 834dba8
    exit 1
Dave Jones 834dba8
  fi
Dave Jones 834dba8
%endif
Dave Jones 834dba8
  rm -f .newoptions
Dave Jones 834dba8
  make ARCH=$Arch oldnoconfig
Dave Jones 834dba8
  echo "# $Arch" > configs/$i
Dave Jones 834dba8
  cat .config >> configs/$i
Dave Jones 834dba8
done
Jesse Keating 7a32965
# end of kernel config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
John W. Linville fa580e5
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e5
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e5
Dave Jones 246f94f
# remove unnecessary SCM files
Dave Jones 246f94f
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94f
Jesse Keating 7a32965
cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### build
Jesse Keating 7a32965
###
Jesse Keating 7a32965
%build
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
%define sparse_mflags	C=1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a32965
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a32965
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a32965
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a32965
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a32965
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a32965
export AFTER_LINK=\
Jesse Keating 7a32965
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a32965
    				-i $@ > $@.id"'
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
cp_vmlinux()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildKernel() {
Jesse Keating 7a32965
    MakeTarget=$1
Jesse Keating 7a32965
    KernelImage=$2
Jesse Keating 7a32965
    Flavour=$3
faf2520
    Flav=${Flavour:++${Flavour}}
Jesse Keating 7a32965
    InstallName=${4:-vmlinuz}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Pick the right config file for the kernel we're building
Jesse Keating 7a32965
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Kyle McMartin 9fc584b
    DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a32965
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a32965
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a32965
      CopyKernel=cp_vmlinux
Jesse Keating 7a32965
    else
Jesse Keating 7a32965
      CopyKernel=cp
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Kyle McMartin 9fc584b
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flav}
Jesse Keating 7a32965
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a32965
Josh Boyer 740de53
    %if 0%{?stable_update}
Josh Boyer 740de53
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de53
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de53
    %endif
Josh Boyer 740de53
Jesse Keating 7a32965
    # make sure EXTRAVERSION says what we want it to say
Kyle McMartin 9fc584b
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flav}/" Makefile
Jesse Keating 7a32965
Josh Boyer 9e4aeab
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a32965
    %if !0%{?rcrev}
Jesse Keating 7a32965
    %if 0%{?gitrev}
Josh Boyer 9e4aeab
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # and now to start the build process
Jesse Keating 7a32965
Kyle McMartin 3e75bb6
    make -s mrproper
Jesse Keating 7a32965
    cp configs/$Config .config
Jesse Keating 7a32965
Josh Boyer 6e2d2c5
    %if %{signmodules}
Josh Boyer 6e2d2c5
    cp %{SOURCE11} .
Josh Boyer 6e2d2c5
    %endif
Josh Boyer 6e2d2c5
Josh Boyer ef06d4b
    chmod +x scripts/sign-file
Josh Boyer ef06d4b
Jesse Keating 7a32965
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a32965
    echo USING ARCH=$Arch
Jesse Keating 7a32965
Kyle McMartin da80d72
    make -s ARCH=$Arch oldnoconfig >/dev/null
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags}
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
783eee9
Kyle McMartin 49ba08f
%ifarch %{arm} aarch64
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 dtbs
783eee9
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
Kyle McMartin 663b7fc
    install -m 644 arch/$Arch/boot/dts/*.dtb $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer/
Kyle McMartin 49ba08f
    rm -f arch/$Arch/boot/dts/*.dtb
e6eb2f8
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Start installing the results
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a32965
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a32965
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a32965
Jesse Keating 7a32965
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a32965
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a32965
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a32965
Jesse Keating 7a32965
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a32965
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a32965
    fi
d3182f8
    %if %{signmodules}
d3182f8
    # Sign the image if we're using EFI
d3182f8
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 42d219a
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 42d219a
        echo "pesigning failed"
Josh Boyer 42d219a
        exit 1
Josh Boyer 42d219a
    fi
d3182f8
    mv vmlinuz.signed $KernelImage
d3182f8
    %endif
Jesse Keating 7a32965
    $CopyKernel $KernelImage \
Jesse Keating 7a32965
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
Josh Boyer 70f8133
    # hmac sign the kernel for FIPS
Josh Boyer 70f8133
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f8133
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f8133
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
Josh Boyer 70f8133
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a32965
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d563
    # we'll get it from the linux-firmware package and we don't want conflicts
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12cd
Jesse Keating 7a32965
%ifarch %{vdso_arches}
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a32965
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a32965
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a32965
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a32965
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
005b644
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/vdso/.build-id
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a32965
    # * all arch relevant include/ files
Jesse Keating 7a32965
    # * all Makefile/Kconfig files
Jesse Keating 7a32965
    # * all script/ files
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a32965
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a32965
    # first copy everything
Jesse Keating 7a32965
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -s Module.markers ]; then
Jesse Keating 7a32965
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
9a6acd5
%ifarch %{power64}
Jesse Keating 7a32965
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a32965
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
    fi
ea6c81b
%ifarch aarch64
ea6c81b
    # arch/arm64/include/asm/xen references arch/arm
ea6c81b
    cp -a --parents arch/arm/include/asm/xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
ea6c81b
%endif
3b024eb
    # include the machine specific headers for ARM variants, if available.
3b024eb
%ifarch %{arm}
3b024eb
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024eb
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024eb
    fi
3b024eb
%endif
Jesse Keating 7a32965
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a32965
    # external modules can be built
1ef1d3d
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/generated/uapi/linux/version.h
Dave Jones c809286
Jesse Keating 7a32965
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a32965
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
    if test -s vmlinux.id; then
Jesse Keating 7a32965
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a32965
    else
Roland McGrath 9b36e58
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e58
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a32965
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Generate a list of modules for block and networking.
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a32965
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list()
Jesse Keating 7a32965
    {
Jesse Keating 7a32965
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Kyle McMartin cdb7903
        LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb7903
      if [ ! -z "$3" ]; then
Kyle McMartin 3994106
        sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb7903
      fi
Jesse Keating 7a32965
    }
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list networking \
Kyle McMartin 52da9d6
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
Jesse Keating 7a32965
    collect_modules_list block \
Kyle McMartin cdb7903
    			 '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'
Jesse Keating 7a32965
    collect_modules_list drm \
Jesse Keating 7a32965
    			 'drm_open|drm_init'
Jesse Keating 7a32965
    collect_modules_list modesetting \
Jesse Keating 7a32965
    			 'drm_crtc_init'
Jesse Keating 7a32965
Jesse Keating 7a32965
    # detect missing or incorrect license tags
Kyle McMartin 21284e0
    ( find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \
Kyle McMartin 21284e0
        grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
Jesse Keating 7a32965
Kyle McMartin 6345227
    # remove files that will be auto generated by depmod at rpm -i time
Kyle McMartin 6345227
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
Kyle McMartin 6345227
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
Kyle McMartin 6345227
    popd
Kyle McMartin 6345227
Josh Boyer 0b43386
    # Call the modules-extra script to move things around
Josh Boyer 0b43386
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Josh Boyer b8b2783
94ce4ec
    #
aa73513
    # Generate the kernel-core and kernel-modules files lists
94ce4ec
    #
94ce4ec
94ce4ec
    # Copy the System.map file for depmod to use, and create a backup of the
94ce4ec
    # full module tree so we can restore it after we're done filtering
94ce4ec
    cp System.map $RPM_BUILD_ROOT/.
94ce4ec
    pushd $RPM_BUILD_ROOT
94ce4ec
    mkdir restore
94ce4ec
    cp -r lib/modules/$KernelVer/* restore/.
94ce4ec
94ce4ec
    # don't include anything going into k-m-e in the file lists
94ce4ec
    rm -rf lib/modules/$KernelVer/extra
94ce4ec
aa73513
    # Find all the module files and filter them out into the core and modules
aa73513
    # lists.  This actually removes anything going into -modules from the dir.
94ce4ec
    find lib/modules/$KernelVer/kernel -name *.ko | sort -n > modules.list
94ce4ec
	cp $RPM_SOURCE_DIR/filter-*.sh .
94ce4ec
    %{SOURCE99} modules.list %{_target_cpu}
94ce4ec
	rm filter-*.sh
94ce4ec
94ce4ec
    # Run depmod on the resulting module tree and make sure it isn't broken
069d856
    depmod -b . -aeF ./System.map $KernelVer &> depmod.out
069d856
    if [ -s depmod.out ]; then
069d856
        echo "Depmod failure"
069d856
        cat depmod.out
069d856
        exit 1
069d856
    else
069d856
        rm depmod.out
069d856
    fi
94ce4ec
    # remove files that will be auto generated by depmod at rpm -i time
94ce4ec
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
94ce4ec
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
94ce4ec
    popd
94ce4ec
94ce4ec
    # Go back and find all of the various directories in the tree.  We use this
94ce4ec
    # for the dir lists in kernel-core
94ce4ec
    find lib/modules/$KernelVer/kernel -type d | sort -n > module-dirs.list
94ce4ec
94ce4ec
    # Cleanup
94ce4ec
    rm System.map
94ce4ec
    cp -r restore/* lib/modules/$KernelVer/.
94ce4ec
    rm -rf restore
94ce4ec
    popd
94ce4ec
94ce4ec
    # Make sure the files lists start with absolute paths or rpmbuild fails.
94ce4ec
    # Also add in the dir entries
Kyle McMartin 8922622
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/k-d.list > ../kernel${Flavour:+-${Flavour}}-modules.list
Kyle McMartin 8922622
    sed -e 's/^lib*/%dir \/lib/' %{?zipsed} $RPM_BUILD_ROOT/module-dirs.list > ../kernel${Flavour:+-${Flavour}}-core.list
Kyle McMartin 8922622
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/modules.list >> ../kernel${Flavour:+-${Flavour}}-core.list
94ce4ec
94ce4ec
    # Cleanup
94ce4ec
    rm -f $RPM_BUILD_ROOT/k-d.list
94ce4ec
    rm -f $RPM_BUILD_ROOT/modules.list
94ce4ec
    rm -f $RPM_BUILD_ROOT/module-dirs.list
94ce4ec
Josh Boyer f0f4ff2
%if %{signmodules}
Kyle McMartin 249d64d
    # Save the signing keys so we can sign the modules in __modsign_install_post
Kyle McMartin 9fc584b
    cp signing_key.priv signing_key.priv.sign${Flav}
Kyle McMartin 9fc584b
    cp signing_key.x509 signing_key.x509.sign${Flav}
Josh Boyer f0f4ff2
%endif
Josh Boyer f0f4ff2
Jesse Keating 7a32965
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae1
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a32965
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7d
Josh Boyer bddef7d
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7d
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7d
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7d
    # the F17 UsrMove feature.
Josh Boyer bddef7d
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b407
Kyle McMartin 4b3b407
    # prune junk from kernel-devel
Kyle McMartin 4b3b407
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
# DO it...
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# prepare directories
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae_debug}
Kyle McMartin bc5f99d
BuildKernel %make_target %kernel_image %{pae}debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae}
Kyle McMartin bc5f99d
BuildKernel %make_target %kernel_image %{pae}
986a9f3
%endif
986a9f3
Jesse Keating 7a32965
%if %{with_up}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 8bcddfb
%global perf_make \
Petr Holasek d9594c9
  make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf
Josh Boyer ed7ef34
%{perf_make} DESTDIR=$RPM_BUILD_ROOT all
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
# cpupower
Josh Boyer 8addb5f
# make sure version-gen.sh is executable.
Josh Boyer 8addb5f
chmod +x tools/power/cpupower/utils/version-gen.sh
Kyle McMartin 43d64b2
%{make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba9
%ifarch %{ix86}
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/i386
Kyle McMartin 43d64b2
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/x86_64
Kyle McMartin 43d64b2
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Kyle McMartin 0769445
   pushd tools/power/x86/x86_energy_perf_policy/
Kyle McMartin 43d64b2
   %{make}
Kyle McMartin 0769445
   popd
Kyle McMartin 0769445
   pushd tools/power/x86/turbostat
Kyle McMartin 43d64b2
   %{make}
Kyle McMartin 0769445
   popd
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5f
%endif
ec0fd9d
pushd tools/thermal/tmon/
ec0fd9d
%{make}
ec0fd9d
popd
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer f0f4ff2
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer f0f4ff2
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer f0f4ff2
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer f0f4ff2
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer f0f4ff2
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer f0f4ff2
# signing the modules we actually built/installed in that flavour.  3) We
Kyle McMartin d0a8cf5
# grab the arch and invoke mod-sign.sh command to actually sign the modules.
Josh Boyer f0f4ff2
#
Josh Boyer f0f4ff2
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer f0f4ff2
# that will strip the signature off of the modules.
Josh Boyer f0f4ff2
Kyle McMartin 92559e2
%define __modsign_install_post \
Kyle McMartin f9a5fa4
  if [ "%{signmodules}" -eq "1" ]; then \
Kyle McMartin 63cb38b
    if [ "%{with_pae}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+%{pae} signing_key.x509.sign+%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin 63cb38b
    if [ "%{with_debug}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+debug signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin 63cb38b
    if [ "%{with_pae_debug}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+%{pae}debug signing_key.x509.sign+%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}debug/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin f9a5fa4
    if [ "%{with_up}" -ne "0" ]; then \
Kyle McMartin 63cb38b
      %{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
Josh Boyer f0f4ff2
    fi \
Josh Boyer f0f4ff2
  fi \
Kyle McMartin 8922622
  if [ "%{zipmodules}" -eq "1" ]; then \
Kyle McMartin 8922622
    find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz; \
Kyle McMartin 8922622
  fi \
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Kyle McMartin 92559e2
###
Kyle McMartin 92559e2
### Special hacks for debuginfo subpackages.
Kyle McMartin 92559e2
###
Kyle McMartin 92559e2
Kyle McMartin 92559e2
# This macro is used by %%install, so we must redefine it before that.
Kyle McMartin 92559e2
%define debug_package %{nil}
Kyle McMartin 92559e2
Kyle McMartin 92559e2
%if %{with_debuginfo}
Kyle McMartin 92559e2
006e9ac
%define __debug_install_post \
006e9ac
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
006e9ac
%{nil}
006e9ac
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%global __debug_package 1
Jesse Keating 7a32965
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%endif
Kyle McMartin 92559e2
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 92559e2
#
Kyle McMartin 92559e2
# Disgusting hack alert! We need to ensure we sign modules *after* all
Kyle McMartin 92559e2
# invocations of strip occur, which is in __debug_install_post if
Kyle McMartin 92559e2
# find-debuginfo.sh runs, and __os_install_post if not.
Kyle McMartin 92559e2
#
Kyle McMartin 92559e2
%define __spec_install_post \
Kyle McMartin 92559e2
  %{?__debug_package:%{__debug_install_post}}\
Kyle McMartin 92559e2
  %{__arch_install_post}\
Kyle McMartin 92559e2
  %{__os_install_post}\
Kyle McMartin 92559e2
  %{__modsign_install_post}
Kyle McMartin 92559e2
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### install
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%install
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Josh Boyer 8addb5f
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5f
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5f
# it doesn't install itself.
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
# Install kernel headers
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a32965
Jesse Keating 7a32965
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a32965
     \( -name .install -o -name .check -o \
Jesse Keating 7a32965
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf tool binary and supporting scripts/binaries
ff18007
%{perf_make} DESTDIR=$RPM_BUILD_ROOT lib=%{_lib} install-bin install-traceevent-plugins
713abc0
# remove the 'trace' symlink.
713abc0
rm -f %{buildroot}%{_bindir}/trace
Josh Boyer 8addb5f
Kyle McMartin ec31efd
# python-perf extension
Kyle McMartin 8bcddfb
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31efd
Josh Boyer 8addb5f
# perf man pages (note: implicit rpm magic compresses them later)
Josh Boyer ed7ef34
mkdir -p %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef34
pushd %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef34
tar -xf %{SOURCE10}
Josh Boyer ed7ef34
popd
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Kyle McMartin 43d64b2
%{make} -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5f
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5f
%find_lang cpupower
Josh Boyer 8addb5f
mv cpupower.lang ../
Josh Boyer 9c44ba9
%ifarch %{ix86}
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/i386
Josh Boyer 8addb5f
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5f
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba9
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba9
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 8addb5f
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5f
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5f
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5f
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5f
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
   mkdir -p %{buildroot}%{_mandir}/man8
Kyle McMartin 0769445
   pushd tools/power/x86/x86_energy_perf_policy
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Kyle McMartin 0769445
   popd
Kyle McMartin 0769445
   pushd tools/power/x86/turbostat
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Kyle McMartin 0769445
   popd
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
ec0fd9d
pushd tools/thermal/tmon
ec0fd9d
make INSTALL_ROOT=%{buildroot} install
ec0fd9d
popd
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### clean
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%clean
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### scripts
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Josh Boyer 93e7772
%if %{with_tools}
Josh Boyer 8addb5f
%post -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%postun -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 93e7772
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_post() \
Jesse Keating 7a32965
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a32965
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a32965
then\
faf2520
    (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
Jesse Keating 7a32965
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a32965
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a32965
     done)\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Josh Boyer b8b2783
#
Josh Boyer b8b2783
# This macro defines a %%post script for a kernel*-modules-extra package.
94ce4ec
# It also defines a %%postun script that does the same thing.
Kyle McMartin de50edb
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b2783
#
Josh Boyer b8b2783
%define kernel_modules_extra_post() \
Josh Boyer b8b2783
%{expand:%%post %{?1:%{1}-}modules-extra}\
faf2520
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4ec
%{nil}\
94ce4ec
%{expand:%%postun %{?1:%{1}-}modules-extra}\
94ce4ec
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4ec
%{nil}
94ce4ec
94ce4ec
#
aa73513
# This macro defines a %%post script for a kernel*-modules package.
94ce4ec
# It also defines a %%postun script that does the same thing.
aa73513
#	%%kernel_modules_post [<subpackage>]
94ce4ec
#
aa73513
%define kernel_modules_post() \
aa73513
%{expand:%%post %{?1:%{1}-}modules}\
94ce4ec
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4ec
%{nil}\
aa73513
%{expand:%%postun %{?1:%{1}-}modules}\
94ce4ec
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b2783
%{nil}
Josh Boyer 8addb5f
Jesse Keating 7a32965
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_posttrans() \
94ce4ec
%{expand:%%posttrans %{?1:%{1}-}core}\
faf2520
/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a32965
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_post(v:r:) \
Jesse Keating 7a32965
%{expand:%%kernel_devel_post %{?-v*}}\
aa73513
%{expand:%%kernel_modules_post %{?-v*}}\
Josh Boyer b8b2783
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%kernel_variant_posttrans %{?-v*}}\
94ce4ec
%{expand:%%post %{?-v*:%{-v*}-}core}\
Jesse Keating 7a32965
%{-r:\
Jesse Keating 7a32965
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a32965
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a32965
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_preun() \
94ce4ec
%{expand:%%preun %{?1:%{1}-}core}\
faf2520
/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun
Jesse Keating 7a32965
%kernel_variant_post -r kernel-smp
Jesse Keating 7a32965
Kyle McMartin bc5f99d
%kernel_variant_preun %{pae}
Kyle McMartin bc5f99d
%kernel_variant_post -v %{pae} -r (kernel|kernel-smp)
Kyle McMartin bc5f99d
Kyle McMartin bc5f99d
%kernel_variant_post -v %{pae}debug -r (kernel|kernel-smp)
Kyle McMartin bc5f99d
%kernel_variant_preun %{pae}debug
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun debug
Jesse Keating 7a32965
%kernel_variant_post -v debug
Jesse Keating 7a32965
Jesse Keating 7a32965
if [ -x /sbin/ldconfig ]
Jesse Keating 7a32965
then
Jesse Keating 7a32965
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### file lists
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
%files headers
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/include/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
%files bootwrapper
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/sbin/*
Jesse Keating 7a32965
%{_libdir}/kernel-wrapper
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%files -n perf
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_bindir}/perf
Kyle McMartin bb584dd
%dir %{_libdir}/traceevent/plugins
Kyle McMartin bb584dd
%{_libdir}/traceevent/plugins/*
Jesse Keating 7a32965
%dir %{_libexecdir}/perf-core
Jesse Keating 7a32965
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/perf*
6e82a62
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337ce
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%files -n python-perf
Kyle McMartin 42d4c31
%defattr(-,root,root)
006e9ac
%{python_sitearch}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%if %{with_debuginfo}
Kyle McMartin 42d4c31
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0e
%defattr(-,root,root)
Kyle McMartin 42d4c31
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Roland McGrath 3c4ea9a
Kyle McMartin 42d4c31
%if %{with_tools}
Kyle McMartin 42d4c31
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
%{_bindir}/cpupower
Josh Boyer 6ec053a
%ifarch %{ix86} x86_64
Josh Boyer 8addb5f
%{_bindir}/centrino-decode
Josh Boyer 8addb5f
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053a
%endif
Josh Boyer 8addb5f
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5f
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
%{_bindir}/x86_energy_perf_policy
Josh Boyer b080939
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b080939
%{_bindir}/turbostat
Josh Boyer b080939
%{_mandir}/man8/turbostat*
Josh Boyer b080939
%endif
ec0fd9d
%{_bindir}/tmon
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Roland McGrath 3c4ea9a
%if %{with_debuginfo}
Josh Boyer 8addb5f
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9a
%defattr(-,root,root)
Roland McGrath 3c4ea9a
%endif
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 55e586c
%files -n kernel-tools-libs
Josh Boyer 55e586c
%{_libdir}/libcpupower.so.0
Josh Boyer 55e586c
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 55e586c
Josh Boyer 55e586c
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5f
%{_libdir}/libcpupower.so
Josh Boyer 8addb5f
%{_includedir}/cpufreq.h
Josh Boyer 8addb5f
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Jesse Keating 7a32965
94ce4ec
# empty meta-package
94ce4ec
%files
94ce4ec
%defattr(-,root,root)
94ce4ec
Dave Jones 166b79a
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a32965
# or empty otherwise.
Jesse Keating 7a32965
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a32965
# and its devel and debuginfo packages.
Jesse Keating 7a32965
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_files(k:) \
Jesse Keating 7a32965
%if %{1}\
94ce4ec
%{expand:%%files -f kernel-%{?2:%{2}-}core.list %{?2:%{2}-}core}\
Jesse Keating 7a32965
%defattr(-,root,root)\
d23e537
%{!?_licensedir:%global license %%doc}\
d23e537
%license linux-%{KVERREL}/COPYING\
faf2520
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:+%{2}}\
faf2520
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:+%{2}}.hmac \
Kyle McMartin 49ba08f
%ifarch %{arm} aarch64\
faf2520
/%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}} \
783eee9
%endif\
faf2520
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:+%{2}}\
faf2520
/boot/config-%{KVERREL}%{?2:+%{2}}\
94ce4ec
%ghost /boot/initramfs-%{KVERREL}%{?2:+%{2}}.img\
b7897ab
%dir /lib/modules\
faf2520
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}\
94ce4ec
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/build\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/source\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/updates\
Jesse Keating 7a32965
%ifarch %{vdso_arches}\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/vdso\
faf2520
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:+%{2}}.conf\
Jesse Keating 7a32965
%endif\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\
aa73513
%{expand:%%files -f kernel-%{?2:%{2}-}modules.list %{?2:%{2}-}modules}\
94ce4ec
%defattr(-,root,root)\
Jesse Keating 7a32965
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a32965
%defattr(-,root,root)\
faf2520
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
Josh Boyer b8b2783
%{expand:%%files %{?2:%{2}-}modules-extra}\
Josh Boyer b8b2783
%defattr(-,root,root)\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
Jesse Keating 7a32965
%if %{with_debuginfo}\
Jesse Keating 7a32965
%ifnarch noarch\
Jesse Keating 7a32965
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
3352065
%if %{?2:1} %{!?2:0}\
3352065
%{expand:%%files %{2}}\
3352065
%defattr(-,root,root)\
3352065
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_files %{with_up}
Jesse Keating 7a32965
%kernel_variant_files %{with_debug} debug
Kyle McMartin bc5f99d
%kernel_variant_files %{with_pae} %{pae}
Kyle McMartin bc5f99d
%kernel_variant_files %{with_pae_debug} %{pae}debug
Jesse Keating 7a32965
Jesse Keating 7a32965
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a32965
# and build.
Dave Jones 1d43b94
#
Dave Jones 1d43b94
# 
Dave Jones 1d43b94
#                        ___________________________________________________________
9644095
#                       / This branch is for Fedora 22. You probably want to commit \
9644095
#  _____ ____  ____     \ to the f21 branch instead, or in addition to this one.    /
9644095
# |  ___|___ \|___ \     -----------------------------------------------------------
9644095
# | |_    __) | __) |        \   ^__^
9644095
# |  _|  / __/ / __/          \  (@@)\_______
9644095
# |_|   |_____|_____|            (__)\       )\/\
Dave Jones 1d43b94
#                                    ||----w |
Dave Jones 1d43b94
#                                    ||     ||
Jesse Keating 7a32965
%changelog
1e63a38
* Tue Dec 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-1
1e63a38
- Linux v3.18
1e63a38
553d726
* Fri Dec 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git3.1
553d726
- Linux v3.18-rc7-59-g56c67ce187a8
553d726
3b7e9ae
* Thu Dec 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git2.1
3b7e9ae
- Linux v3.18-rc7-48-g7cc78f8fa02c
3b7e9ae
c535e4b
* Wed Dec 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git1.1
c535e4b
- Linux v3.18-rc7-3-g3a18ca061311
c535e4b
e955e6d
* Mon Dec 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git0.1
e955e6d
- Linux v3.18-rc7
e955e6d
3695b77
* Thu Nov 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc6.git1.1
3695b77
- Linux v3.18-rc6-28-g3314bf6ba2ac
3695b77
- Gobble Gobble
3695b77
223ab06
* Mon Nov 24 2014 Josh Boyer <jwboyer@fedoraproject.org>
223ab06
- Linux v3.18-rc6
7c8fdb7
- Add quirk for Laser Mouse 6000 (rhbz 1165206)
223ab06
33fc8e2
* Fri Nov 21 2014 Josh Boyer <jwboyer@fedoraproject.org>
33fc8e2
- Move TPM drivers to main kernel package (rhbz 1164937)
33fc8e2
57c5ca5
* Wed Nov 19 2014 Josh Boyer <jwboyer@fedoraproject.org>
57c5ca5
- Disable SERIAL_8250 on s390x (rhbz 1158848)
57c5ca5
Kyle McMartin 94b9cdb
* Mon Nov 17 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.18.0-0.rc5.git0.2
Kyle McMartin 94b9cdb
- Re-merge kernel-arm64.patch
Kyle McMartin 94b9cdb
56722ef
* Mon Nov 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc5.git0.1
56722ef
- Linux v3.18-rc5
56722ef
- Disable debugging options.
56722ef
2439fb7
* Fri Nov 14 2014 Josh Boyer <jwboyer@fedoraproject.org>
2439fb7
- Enable I40EVF driver (rhbz 1164029)
2439fb7
5d76b33
* Fri Nov 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc4.git2.1
5d76b33
- Linux v3.18-rc4-184-gb23dc5a7cc6e
5d76b33
d31dd42
* Thu Nov 13 2014 Josh Boyer <jwboyer@fedoraproject.org>
4afc320
- Add patch for MS Surface Pro 3 Type Cover (rhbz 1135338)
d31dd42
- CVE-2014-7843 aarch64: copying from /dev/zero causes local DoS (rhbz 1163744 1163745)
d31dd42
d21f4c3
* Thu Nov 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc4.git1.1
d21f4c3
- Linux v3.18-rc4-52-g04689e749b7e
d21f4c3
- Reenable debugging options.
d21f4c3
b3a8f8f
* Wed Nov 12 2014 Josh Boyer <jwboyer@fedoraproject.org>
b3a8f8f
- CVE-2014-7841 sctp: NULL ptr deref on malformed packet (rhbz 1163087 1163095)
b3a8f8f
Kyle McMartin 81c4dc5
* Tue Nov 11 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.18.0-0.rc4.git0.2
Kyle McMartin 81c4dc5
- Re-enable kernel-arm64.patch, and fix up merge conflicts with 3.18-rc4
Kyle McMartin 81c4dc5
0911566
* Mon Nov 10 2014 Josh Boyer <jwboyer@fedoraproject.org>
0911566
- Fix Samsung pci-e SSD handling on some macbooks (rhbz 1161805)
0911566
9a2db57
* Mon Nov 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc4.git0.1
9a2db57
- Linux v3.18-rc4
9a2db57
- Temporarily disable aarch64patches
9a2db57
- Disable debugging options.
9a2db57
b1223bf
* Fri Nov 07 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc3.git4.1
b1223bf
- Linux v3.18-rc3-82-ged78bb846e8b
b1223bf
5b7d233
* Thu Nov 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc3.git3.1
5b7d233
- Linux v3.18-rc3-68-g20f3963d8f48
5b7d233
b90522a
* Wed Nov 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc3.git2.1
b90522a
- Linux v3.18-rc3-61-ga1cff6e25e6e
b90522a
8a5a8ea
* Tue Nov 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc3.git1.1
8a5a8ea
- Linux v3.18-rc3-31-g980d0d51b1c9
8a5a8ea
- Reenable debugging options.
8a5a8ea
d99a023
* Mon Nov 03 2014 Josh Boyer <jwboyer@fedoraproject.org>
f1969d2
- Enable CONFIG_KXCJK1013
d99a023
- Add driver for goodix touchscreen from Bastien Nocera
d99a023
a011ddd
* Mon Nov 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc3.git0.1
a011ddd
- Linux v3.18-rc3
a011ddd
- Disable debugging options.
a011ddd
3b752c8
* Thu Oct 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc2.git3.1
3b752c8
- Linux v3.18-rc2-106-ga7ca10f263d7
3b752c8
903203d
* Wed Oct 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc2.git2.1
903203d
- Linux v3.18-rc2-53-g9f76628da20f
903203d
f615870
* Tue Oct 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
f615870
- Add quirk for rfkill on Yoga 3 machines (rhbz 1157327)
f615870
c620734
* Tue Oct 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc2.git1.1
c620734
- Linux v3.18-rc2-43-gf7e87a44ef60
c620734
- Add two RCU patches to fix a deadlock and a hang
c620734
- Reenable debugging options.
c620734
995f274
* Mon Oct 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc2.git0.1
995f274
- Linux v3.18-rc2
995f274
- Disable debugging options.
995f274
fc0bb72
* Sun Oct 26 2014 Peter Robinson <pbrobinson@fedoraproject.org>
fc0bb72
- Update ARM config options, some minor cleanups
fc0bb72
f42901a
* Sun Oct 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git4.1
f42901a
- Linux v3.18-rc1-422-g2cc91884b6b3
f42901a
df84d54
* Fri Oct 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git3.3
4ac9db0
- CVE-2014-3610 kvm: noncanonical MSR writes (rhbz 1144883 1156543)
4ac9db0
- CVE-2014-3611 kvm: PIT timer race condition (rhbz 1144878 1156537)
4ac9db0
- CVE-2014-3646 kvm: vmx: invvpid vm exit not handled (rhbz 1144825 1156534)
4ac9db0
- CVE-2014-8369 kvm: excessive pages un-pinning in kvm_iommu_map error path (rhbz 1156518 1156522)
4ac9db0
- CVE-2014-8480 CVE-2014-8481 kvm: NULL pointer dereference during rip relative instruction emulation (rhbz 1156615 1156616)
4ac9db0
3fbe156
* Fri Oct 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git3.1
3fbe156
- Linux v3.18-rc1-280-g816fb4175c29
eaaf41d
- Add touchpad quirk for Fujitsu Lifebook A544/AH544 models (rhbz 1111138)
3fbe156
300a553
* Wed Oct 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git2.1
300a553
- Linux v3.18-rc1-221-gc3351dfabf5c
300a553
- Add patch to fix wifi on X550VB machines (rhbz 1089731)
300a553
3aeb248
* Tue Oct 21 2014 Josh Boyer <jwboyer@fedoraproject.org>
3aeb248
- Drop pinctrl qcom revert now that it's dependencies should be merged
3aeb248
Kyle McMartin 88b2d09
* Tue Oct 21 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.18.0-0.rc1.git1.2
Kyle McMartin 88b2d09
- Re-enable kernel-arm64.patch after updating.
Kyle McMartin 88b2d09
- CONFIG_SERIAL_8250_FINTEK moved to generic since it appears on x86-generic
Kyle McMartin 88b2d09
  and arm64 now.
Kyle McMartin 88b2d09
- CONFIG_IMX_THERMAL=n added to config-arm64.
Kyle McMartin 88b2d09
- arm64: disable BPF_JIT temporarily
Kyle McMartin 88b2d09
27d39a9
* Tue Oct 21 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git1.1
27d39a9
- Linux v3.18-rc1-68-gc2661b806092
27d39a9
- Make LOG_BUF_SHIFT on arm64 the same as the rest of the arches (rhbz 1123327)
27d39a9
- Enable RTC PL031 driver on arm64 (rhbz 1123882)
27d39a9
- Reenable debugging options.
27d39a9
5917cde
* Mon Oct 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc1.git0.1
5917cde
- Linux v3.18-rc1
5917cde
- Disable debugging options.
5917cde
12f4f4d
* Fri Oct 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git9.4
4d441da
- CVE-2014-8086 ext4: race condition (rhbz 1151353 1152608)
6a06c8f
- Enable B43_PHY_G to fix b43 driver regression (rhbz 1152502)
6a06c8f
8196947
* Wed Oct 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git9.3
ec46089
- Revert Btrfs ro snapshot commit that causes filesystem corruption
ec46089
e1712de
* Wed Oct 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git9.1
e1712de
- Linux v3.17-9670-g0429fbc0bdc2
e1712de
b7f21fa
* Tue Oct 14 2014 Josh Boyer <jwboyer@fedoraproject.org>
b7f21fa
- Add patches to fix elantech touchscreens (rhbz 1149509)
b7f21fa
7f1b8a8
* Tue Oct 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git8.1
7f1b8a8
- Linux v3.17-9283-g2d65a9f48fcd
7f1b8a8
ff18007
* Tue Oct 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git7.1
ff18007
- Linux v3.17-8307-gf1d0d14120a8
ff18007
3812ecc
* Mon Oct 13 2014 Peter Robinson <pbrobinson@fedoraproject.org>
3812ecc
- Update armv7/aarch64 config options
3812ecc
6b37529
* Mon Oct 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git6.1
6b37529
- Linux v3.17-7872-g5ff0b9e1a1da
6b37529
91dcc17
* Sun Oct 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git5.1
91dcc17
- Linux v3.17-7639-g90eac7eee2f4
91dcc17
dc79a66
* Sun Oct 12 2014 Josh Boyer <jwboyer@fedoraproject.org>
dc79a66
- Enable CONFIG_I2C_DESIGNWARE_PCI (rhbz 1045821)
dc79a66
786ccb0
* Fri Oct 10 2014 Josh Boyer <jwboyer@fedoraproject.org>
786ccb0
- CVE-2014-7970 VFS: DoS with USER_NS (rhbz 1151095 1151484)
786ccb0
35ac9a8
* Fri Oct 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git4.1
35ac9a8
- Linux v3.17-6136-gc798360cd143
35ac9a8
c01ddf0
* Thu Oct 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git3.1
c01ddf0
- Linux v3.17-5585-g782d59c5dfc5
c01ddf0
5bc66d5
* Thu Oct 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git2.1
5bc66d5
- Linux v3.17-5503-g35a9ad8af0bb
5bc66d5
da99f20
* Wed Oct 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc0.git1.1
da99f20
- Linux v3.17-2860-gef0625b70dac
da99f20
- Reenable debugging options.
da99f20
- Temporarily disable aarch64patches
a3dbb48
- Add patch to fix ATA blacklist
da99f20
ce8e218
* Tue Oct 07 2014 Josh Boyer <jwboyer@fedoraproject.org>
ce8e218
- Add patch to fix GFS2 regression (from Bob Peterson)
ce8e218
5737801
* Mon Oct 06 2014 Kyle McMartin <kyle@fedoraproject.org>
5737801
- enable 64K pages on arm64... (presently) needed to boot on amd seattle
5737801
  platforms due to physical memory being unreachable.
5737801
e8a3eb7
* Mon Oct 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-1
e8a3eb7
- Linux v3.17
e8a3eb7
b25a503
* Fri Oct 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc7.git3.1
b25a503
- Linux v3.17-rc7-76-g58586869599f
b25a503
- Various ppc64/ppc64le config changes
b25a503
e96360e
* Thu Oct 02 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc7.git2.1
e96360e
- Linux v3.17-rc7-46-g50dddff3cb9a
e96360e
- Cleanup dead Kconfig symbols in config-* from Paul Bolle
e96360e
Kyle McMartin 3a407e9
* Wed Oct 01 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 3a407e9
- Update kernel-arm64.patch from git, again... enable AMD_XGBE on arm64.
Kyle McMartin 3a407e9
ddf2dda
* Wed Oct 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc7.git1.1
ddf2dda
- Linux v3.17-rc7-6-gaad7fb916a10
ddf2dda
9ee62d1
* Tue Sep 30 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.17.0-0.rc7.git0.2
d6b8622
- Revert some v3.16 changes to mach-highbank which broke L2 cache enablement.
d6b8622
  Will debug upstream separately, but we need F22/21 running there. (#1139762)
d6b8622
05b52e7
* Tue Sep 30 2014 Peter Robinson <pbrobinson@fedoraproject.org>
05b52e7
- Don't build Exynos4 on lpae kernel
05b52e7
- Add dts for BananaPi
05b52e7
- Minor ARM updates
05b52e7
- Build 6lowpan modules
05b52e7
Kyle McMartin 8462484
* Mon Sep 29 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 8462484
- Update kernel-arm64.patch from git.
Kyle McMartin 8462484
c33dae8
* Mon Sep 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc7.git0.1
c33dae8
- Linux v3.17-rc7
c33dae8
657f83c
* Wed Sep 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc6.git2.1
657f83c
- Linux v3.17-rc6-180-g452b6361c4d9
657f83c
9dcf787
* Tue Sep 23 2014 Josh Boyer <jwboyer@fedoraproject.org>
20c23be
- Fix return code when adding keys (rhbz 1145318)
9dcf787
- Add patch to fix XPS 13 touchpad issue (rhbz 1123584)
9dcf787
f1140bd
* Tue Sep 23 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc6.git1.1
f1140bd
- Linux v3.17-rc6-125-gf3670394c29f
f1140bd
f4cf24d
* Mon Sep 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc6.git0.1
f4cf24d
- Linux v3.17-rc6
f4cf24d
- Revert EFI GOT fixes as it causes boot failures
f4cf24d
- Disable debugging options.
f4cf24d
daec5ad
* Fri Sep 19 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git5.1
daec5ad
- Linux v3.17-rc5-105-g598a0c7d0932
daec5ad
fe33fe1
* Fri Sep 19 2014 Josh Boyer <jwboyer@fedoraproject.org>
fe33fe1
- Disable NO_HZ_FULL again
fe33fe1
- Enable early microcode loading (rhbz 1083716)
fe33fe1
7c20258
* Fri Sep 19 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git4.1
7c20258
- Linux v3.17-rc5-63-gd9773ceabfaf
7c20258
- Enable infiniband on s390x
7c20258
bface6d
* Thu Sep 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git3.1
bface6d
- Linux v3.17-rc5-25-g8ba4caf1ee15
bface6d
3836faf
* Wed Sep 17 2014 Kyle McMartin <kyle@fedoraproject.org>
3836faf
- I also like to live dangerously. (Re-enable RCU_FAST_NO_HZ which has been off
3836faf
  since April 2012. Also enable NO_HZ_FULL on x86_64.)
3836faf
- I added zipped modules ages ago, remove it from TODO.
3836faf
dd6c13b
* Wed Sep 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git2.1
dd6c13b
- Linux v3.17-rc5-24-g37504a3be90b
dd6c13b
- Fix vmwgfx header include (rhbz 1138759)
dd6c13b
cf23086
* Tue Sep 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git1.1
cf23086
- Linux v3.17-rc5-13-g2324067fa9a4
cf23086
- Reenable debugging options.
cf23086
7094b06
* Mon Sep 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc5.git0.1
7094b06
- Linux v3.17-rc5
7094b06
- Disable debugging options.
7094b06
9d990eb
* Fri Sep 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc4.git4.1
9d990eb
- Linux v3.17-rc4-244-g5874cfed0b04
9d990eb
4ef2bf5
* Thu Sep 11 2014 Josh Boyer <jwboyer@fedoraproject.org>
4ef2bf5
- Enable ACPI_I2C_OPREGION
4ef2bf5
34af6ad
* Thu Sep 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc4.git3.1
34af6ad
- Linux v3.17-rc4-168-g7ec62d421bdf
34af6ad
- Add support for touchpad in Asus X450 and X550 (rhbz 1110011)
34af6ad
3252fbd
* Wed Sep 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc4.git2.1
3252fbd
- Linux v3.17-rc4-158-ge874a5fe3efa
3252fbd
- Add patch to fix oops on keyring gc (rhbz 1116347)
3252fbd
4a609d3
* Tue Sep 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc4.git1.1
4a609d3
- Linux v3.17-rc4-140-g8c68face5548
4a609d3
- Reenable debugging options.
4a609d3
9a6acd5
* Mon Sep 08 2014 Josh Boyer <jwboyer@fedoraproject.org>
9a6acd5
- Remove ppc32 support
9a6acd5
a3f68e4
* Mon Sep  8 2014 Peter Robinson <pbrobinson@fedoraproject.org>
a3f68e4
- Build tools on ppc64le (rhbz 1138884)
a3f68e4
- Some minor ppc64 cleanups
a3f68e4
8382f77
* Mon Sep 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc4.git0.1
8382f77
- Linux v3.17-rc4
8382f77
- Disable debugging options.
8382f77
39c21e4
* Fri Sep 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git3.1
39c21e4
- Linux v3.17-rc3-94-gb7fece1be8b1
db4d064
70fa099
* Thu Sep 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git2.1
70fa099
- Linux v3.17-rc3-63-g44bf091f5089
70fa099
- Enable kexec bzImage signature verification (from Vivek Goyal)
52fafd4
- Add support for Wacom Cintiq Companion from Benjamin Tissoires (rhbz 1134969)
52fafd4
0806fad
* Wed Sep 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git1.1
0806fad
- Linux v3.17-rc3-16-g955837d8f50e
0806fad
- Reenable debugging options.
0806fad
88954ba
* Tue Sep 02 2014 Josh Boyer <jwboyer@fedoraproject.org>
88954ba
- Remove with_extra switch
88954ba
27d7c47
* Mon Sep 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc3.git0.1
27d7c47
- Linux v3.17-rc3
27d7c47
- Disable debugging options.
27d7c47
4b72251
* Fri Aug 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc2.git3.1
4b72251
- Linux v3.17-rc2-89-g59753a805499
4b72251
0de60be
* Thu Aug 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
02f1528
- Fix NFSv3 ACL regression (rhbz 1132786)
0de60be
760806a
* Thu Aug 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc2.git2.1
760806a
- Linux v3.17-rc2-42-gf1bd473f95e0
760806a
- Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160)
0d360df
79bc7c2
* Wed Aug 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc2.git1.1
a369688
- Disable streams on via XHCI (rhbz 1132666)
79bc7c2
- Linux v3.17-rc2-9-g68e370289c29
79bc7c2
- Reenable debugging options.
79bc7c2
a806b7f
* Tue Aug 26 2014 Peter Robinson <pbrobinson@fedoraproject.org>
a806b7f
- Minor tegra updates due to incorrect nvidia kernel config options
a806b7f
dbc4098
* Tue Aug 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc2.git0.1
dbc4098
- Linux v3.17-rc2
dbc4098
- Fixup ARM MFD options after I2C=y change
dbc4098
- Disable debugging options.
a369688
515ee07
* Tue Aug 26 2014 Peter Robinson <pbrobinson@fedoraproject.org>
515ee07
- Minor generic ARMv7 updates
515ee07
- Build tegra on both LPAE and general ARMv7 kernels (thank srwarren RHBZ 1110963)
515ee07
- Set CMA to 64mb on LPAE kernel (RHBZ 1127000)
515ee07
efcd02b
* Mon Aug 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc1.git4.1
efcd02b
- Linux v3.17-rc1-231-g7be141d05549
efcd02b
- Add patch to fix NFS oops on /proc removal (rhbz 1132368)
efcd02b
80bc74d
* Fri Aug 22 2014 Josh Boyer <jwboyer@fedoraproject.org>
e1ff27a
- Drop userns revert patch (rhbz 917708)
e1ff27a
cc594c1
* Fri Aug 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc1.git3.1
cc594c1
- Linux v3.17-rc1-99-g5317821c0853
cc594c1
3644cb3
* Thu Aug 21 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc1.git2.1
3644cb3
- Linux v3.17-rc1-51-g372b1dbdd1fb
3644cb3
65a08ef
* Wed Aug 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc1.git1.1
65a08ef
- Linux v3.17-rc1-22-g480cadc2b7e0
65a08ef
- Reenable debugging options.
65a08ef
e85b468
* Mon Aug 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc1.git0.1
e85b468
- Linux v3.17-rc1
e85b468
- Disable debugging options.
e85b468
24a429b
* Sat Aug 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git7.1
24a429b
- Linux v3.16-11452-g88ec63d6f85c
24a429b
593ea10
* Fri Aug 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git6.1
593ea10
- Linux v3.16-11383-gc9d26423e56c
593ea10
9048760
* Thu Aug 14 2014 Kyle McMartin <kyle@fedoraproject.org>
9048760
- kernel-arm64: resynch with git head (no functional change)
e11f9a9
c2ffd34
* Thu Aug 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git5.1
c2ffd34
- Linux v3.16-10959-gf0094b28f303
c2ffd34
a412315
* Wed Aug 13 2014 Peter Robinson <pbrobinson@fedoraproject.org>
a412315
- 3.17 ARMv7 updates
d7bf642
- Cleanup some old removed options
d7bf642
- Disable legacy USB OTG (using new configfs equivilents)
d7bf642
Kyle McMartin 574fd2c
* Tue Aug 12 2014 Kyle McMartin <kyle@fedoraproject.org> 3.17.0-0.rc0.git4.2
Kyle McMartin 1fd75f5
- tegra-powergate-header-move.patch: deal with armv7hl breakage
Kyle McMartin 0c88b0b
- nouveau_platform-fix.patch: handle nouveau_dev() removal
Kyle McMartin 1fd75f5
980c602
* Tue Aug 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git4.1
980c602
- Add updated crash driver from Dave Anderson and re-enable
980c602
Kyle McMartin 5da751d
* Tue Aug 12 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 5da751d
- kernel-arm64.patch: fix up merge conflict and re-enable
Kyle McMartin 5da751d
980c602
* Tue Aug 12 2014 Josh Boyer <jwboyer@fedoraproject.org>
39f3a27
- Linux v3.16-10473-gc8d6637d0497
39f3a27
531b0ea
* Sat Aug 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git3.1
531b0ea
- Linux v3.16-10013-gc309bfa9b481
531b0ea
- Temporarily don't apply crash driver patch
1c39e37
3f7b3ae
* Thu Aug 07 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-0.rc0.git2.1
3f7b3ae
- Linux v3.16-7503-g33caee39925b
3f7b3ae
Kyle McMartin d2b85a6
* Tue Aug 05 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin d2b85a6
- kernel-arm64.patch: fix up merge conflict and re-enable
c6806e8
7de7a7f
* Tue Aug 05 2014 Josh Boyer <jwboyer@gmail.com> - 3.17.0-0.rc0.git1.1
7de7a7f
- Linux v3.16-3652-gf19107379dbc
7de7a7f
- Reenable debugging options.
14c8baa
14c8baa
* Mon Aug 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-1
146b953
- Linux v3.16
146b953
- Disable debugging options.
146b953
82ae65d
* Sun Aug  3 2014 Peter Robinson <pbrobinson@redhat.com>
82ae65d
- Minor config updates for Armada and Sunxi ARM devices
82ae65d
3b18c14
* Fri Aug 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git4.1
3b18c14
- Linux v3.16-rc7-84-g6f0928036bcb
3b18c14
73f882b
* Thu Jul 31 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git3.1
73f882b
- Linux v3.16-rc7-76-g3a1122d26c62
73f882b
Kyle McMartin 3a3d323
* Wed Jul 30 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 3a3d323
- kernel-arm64.patch: fix up merge conflict and re-enable
Kyle McMartin 3a3d323
ecaa91a
* Wed Jul 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git2.1
ecaa91a
- Linux v3.16-rc7-64-g26bcd8b72563
ecaa91a
- Temporarily disable aarch64patches
ecaa91a
082b8c8
* Wed Jul 30 2014 Josh Boyer <jwboyer@fedoraproject.org>
082b8c8
- Apply different patch from Milan Broz to fix LUKS partitions (rhbz 1115120)
082b8c8
Kyle McMartin d0ba439
* Tue Jul 29 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin d0ba439
- kernel-arm64.patch: update from upstream git.
Kyle McMartin d0ba439
b83add2
* Tue Jul 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git1.1
b83add2
- Linux v3.16-rc7-7-g31dab719fa50
b83add2
- Reenable debugging options.
b83add2
1416cd4
* Mon Jul 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
e6fe382
- Make sure acpi brightness_switch is disabled (like forever in Fedora)
1416cd4
- CVE-2014-5077 sctp: fix NULL ptr dereference (rhbz 1122982 1123696)
1416cd4
f65a465
* Mon Jul 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git0.1
f65a465
- Linux v3.16-rc7
f65a465
- Disable debugging options.
f65a465
4ff9788
* Mon Jul 28 2014 Peter Robinson <pbrobinson@fedoraproject.org>
4ff9788
- Add patch to fix loading of tegra drm using device tree
4ff9788
5832c90
* Sat Jul 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc6.git3.1
5832c90
- Linux v3.16-rc6-139-g9c5502189fa0
5832c90
55d061a
* Fri Jul 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc6.git2.1
55d061a
- Linux v3.16-rc6-118-g82e13c71bc65
d35b963
- Fix selinux sock_graft hook for AF_ALG address family (rhbz 1115120)
d35b963
Kyle McMartin f7f5d67
* Thu Jul 24 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin f7f5d67
- kernel-arm64.patch: update from upstream git.
Kyle McMartin f12a594
- arm64: update config-arm64 to include PCI support.
Kyle McMartin f7f5d67
8b88e28
* Thu Jul 24 2014 Josh Boyer <jwboyer@fedoraproject.org>
1df4db9
- CVE-2014-5045 vfs: refcount issues during lazy umount on symlink (rhbz 1122471 1122482)
8b88e28
- Fix regression in sched_setparam (rhbz 1117942)
8b88e28
182986b
* Tue Jul 22 2014 Justin M. Forbes <jforbes@fedoraproject.org> - 3.16.0-0.rc6.git1.1
182986b
- Linux v3.16-rc6-75-g15ba223
182986b
- Reenable debugging options.
182986b
4ac0f0f
* Mon Jul 21 2014 Justin M. Forbes <jforbes@fedoraproject.org> - 3.16.0-0.rc6.git0.1
4ac0f0f
- Linux v3.16-rc6
4ac0f0f
- Disable debugging options.
4ac0f0f
ac65223
* Mon Jul 21 2014 Peter Robinson <pbrobinson@fedoraproject.org>
ac65223
- Minor ARMv7 config update
ac65223
c8c6389
* Thu Jul 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git2.1
c8c6389
- Linux v3.16-rc5-143-gb6603fe574af
c8c6389
e543195
* Wed Jul 16 2014 Josh Boyer <jwboyer@fedoraproject.org>
e543195
- Enable hermes prism driver (rhbz 1120393)
e543195
8409372
* Wed Jul 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git1.1
8409372
- Linux v3.16-rc5-130-g2da294474093
8409372
- Reenable debugging options.
8409372
7c50c7d
* Mon Jul 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git0.1
7c50c7d
- Linux v3.16-rc5
7c50c7d
- Fix i915 regression with external monitors (rhbz 1117008)
7c50c7d
- Disable debugging options.
7c50c7d
d23e537
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org>
d23e537
- Fix license handling (I hope)
d23e537
1ead5b6
* Fri Jul 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git3.1
1ead5b6
- Linux v3.16-rc4-120-g85d90faed31e
1ead5b6
889d497
* Thu Jul 10 2014 Peter Robinson <pbrobinson@fedoraproject.org>
889d497
- Rebase Utilute and BeagleBone patches
10a0f54
- Minor ARM updates
81c1ee9
- Enable ISL12057 RTC for ARM (NetGear ReadyNAS)
889d497
005b644
* Wed Jul 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git2.1
005b644
- Linux v3.16-rc4-28-g163e40743f73
005b644
- Fix bogus vdso .build-id links (rhbz 1117563)
005b644
e093b26
* Tue Jul 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git1.1
e093b26
- Linux v3.16-rc4-20-g448bfad8a185
<