Jesse Keating 7a3296
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a3296
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a3296
Jesse Keating 7a3296
Summary: The Linux kernel
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a3296
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a3296
# be 0.
146b95
%global released_kernel 1
Jesse Keating 7a3296
Kyle McMartin 3a3d32
%global aarch64patches 1
Kyle McMartin 0c652a
Josh Boyer c2a12c
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12c
# architectures are added.
Josh Boyer c2a12c
%ifarch %{ix86} x86_64
Josh Boyer c2a12c
%global signmodules 1
Kyle McMartin 892262
%global zipmodules 1
Josh Boyer c2a12c
%else
Josh Boyer c2a12c
%global signmodules 0
Kyle McMartin 892262
%global zipmodules 0
Kyle McMartin 892262
%endif
Kyle McMartin 892262
Kyle McMartin 892262
%if %{zipmodules}
Kyle McMartin 892262
%global zipsed -e 's/\.ko$/\.ko.xz/'
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Jesse Keating 7a3296
# % define buildid .local
Jesse Keating 7a3296
Roland McGrath 377da6
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a3296
#
Roland McGrath 377da6
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6
#
Chuck Ebbert 05e763
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126d
#
Chuck Ebbert 05e763
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763
#
dbc4a9
%global baserelease 300
Roland McGrath 377da6
%global fedora_build %{baserelease}
Jesse Keating 7a3296
Jesse Keating 7a3296
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8b
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8b
# which yields a base_sublevel of 0.
dbc4a9
%define base_sublevel 17
Jesse Keating 7a3296
Jesse Keating 7a3296
## If this is a released kernel ##
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do we have a -stable update to apply?
dbc4a9
%define stable_update 0
Jesse Keating 7a3296
# Set rpm version accordingly
Jesse Keating 7a3296
%if 0%{?stable_update}
Josh Boyer 740de5
%define stablerev %{stable_update}
Jesse Keating 7a3296
%define stable_base %{stable_update}
Jesse Keating 7a3296
%endif
Kyle McMartin e8ba2b
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a3296
Jesse Keating 7a3296
## The not-released-kernel case ##
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a2041
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a3296
# The rc snapshot level
146b95
%define rcrev 0
Jesse Keating 7a3296
# The git snapshot level
146b95
%define gitrev 0
Jesse Keating 7a3296
# Set rpm version accordingly
Kyle McMartin e8ba2b
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a3296
Jesse Keating 7a3296
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a3296
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a3296
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a3296
# by later arch-specific checks.
Jesse Keating 7a3296
Jesse Keating 7a3296
# The following build options are enabled by default.
Jesse Keating 7a3296
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a3296
# to 0 in here to disable them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# standard kernel
Jesse Keating 7a3296
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Kyle McMartin bc5f99
# kernel PAE (only valid for i686 (PAE) and ARM (lpae))
Jarod Wilson 5b0327
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a3296
# kernel-debug
Jesse Keating 7a3296
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a3296
# kernel-headers
Jesse Keating 7a3296
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 42d4c3
# perf
Kyle McMartin 42d4c3
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad
# tools
Dave Jones 1d18ad
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a3296
# kernel-debuginfo
Kyle McMartin 761d1c
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a3296
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a3296
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a3296
# Want to build a the vsdo directories installed
Jesse Keating 7a3296
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Only build the base kernel (--with baseonly):
Jesse Keating 7a3296
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jarod Wilson 5b0327
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b0327
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a3296
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a3296
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# should we do C=1 builds with sparse
Dave Jones 561b24
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee03
#
Kyle McMartin 43d64b
# Cross compile requested?
Kyle McMartin 43d64b
%define with_cross    %{?_with_cross:         1} %{?!_with_cross:        0}
Kyle McMartin 43d64b
#
Chuck Ebbert 11ee03
# build a release kernel on rawhide
Chuck Ebbert 11ee03
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a3296
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a3296
# See also 'make debug' and 'make release'.
146b95
%define debugbuildsenabled 1
Jesse Keating 7a3296
Jesse Keating 7a3296
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a3296
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Chuck Ebbert e6236b
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define rctag .rc%rcrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define rctag .rc0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define gittag .git%gitrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define gittag .git0
Jesse Keating 7a3296
%endif
Kyle McMartin 66ce81
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# The kernel tarball/base version
Kyle McMartin e8ba2b
%define kversion 3.%{base_sublevel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%define make_target bzImage
Jesse Keating 7a3296
Jesse Keating 7a3296
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a3296
%define hdrarch %_target_cpu
Jesse Keating 7a3296
%define asmarch %_target_cpu
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{!?nopatches:1}
Jesse Keating 7a3296
%define nopatches 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vanilla}
Jesse Keating 7a3296
%define nopatches 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define variant -vanilla
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{with_debuginfo}
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define debuginfodir /usr/lib/debug
Jesse Keating 7a3296
Kyle McMartin bc5f99
# kernel PAE is only built on i686 and ARMv7.
Kyle McMartin bc5f99
%ifnarch i686 armv7hl
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build base kernel
Jesse Keating 7a3296
%if %{with_baseonly}
Jarod Wilson 5b0327
%define with_pae 0
Jarod Wilson 5b0327
%define with_debug 0
Jarod Wilson 5b0327
%endif
Jarod Wilson 5b0327
Jarod Wilson 5b0327
# if requested, only build pae kernel
Jarod Wilson 5b0327
%if %{with_paeonly}
Jarod Wilson 5b0327
%define with_up 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build debug kernel
Jesse Keating 7a3296
%if %{with_dbgonly}
Jesse Keating 7a3296
%if %{debugbuildsenabled}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define with_pae 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define all_x86 i386 i686
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vdso_install}
Jesse Keating 7a3296
# These arches install vdso/ directories.
15e63c
%define vdso_arches %{all_x86} x86_64 %{power64} s390 s390x aarch64
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Overrides for generic default options
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a3296
%ifnarch i686 x86_64
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't build noarch kernels or headers (duh)
Jesse Keating 7a3296
%ifarch noarch
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_headers 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# bootwrapper is only on ppc
a3f68e
# sparse blows up on ppc
15e63c
%ifnarch %{power64}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define with_sparse 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Per-arch tweaks
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{all_x86}
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define hdrarch i386
Kyle McMartin bc5f99
%define pae PAE
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch x86_64
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
a3f68e
%ifarch %{power64}
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
a3f68e
%ifarch ppc64 ppc64p7
a3f68e
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a3296
%endif
Josh Boyer 5a7728
%ifarch ppc64le
Josh Boyer 5a7728
%define all_arch_configs kernel-%{version}-ppc64le.config
a3f68e
%endif
Josh Boyer 5a7728
%endif
Josh Boyer 5a7728
Jesse Keating 7a3296
%ifarch s390x
Jesse Keating 7a3296
%define asmarch s390
Jesse Keating 7a3296
%define hdrarch s390
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target image
Jesse Keating 7a3296
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{arm}
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a3296
%define image_install_path boot
Josh Boyer 8ffa0a
%define asmarch arm
Jesse Keating 7a3296
%define hdrarch arm
Kyle McMartin bc5f99
%define pae lpae
986a9f
%define make_target bzImage
986a9f
%define kernel_image arch/arm/boot/zImage
Kyle McMartin 9b1a4c
# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
Kyle McMartin 9b1a4c
%define kernel_mflags KALLSYMS_EXTRA_PASS=1
43fa71
# we only build headers/perf/tools on the base arm arches
94b006
# just like we used to only build them on i386 for x86
a94069
%ifnarch armv7hl
94b006
%define with_headers 0
43fa71
%define with_perf 0
43fa71
%define with_tools 0
94b006
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 575de6
%ifarch aarch64
918c10
%define all_arch_configs kernel-%{version}-aarch64*.config
Kyle McMartin 575de6
%define asmarch arm64
Kyle McMartin 575de6
%define hdrarch arm64
Kyle McMartin 575de6
%define make_target Image.gz
Kyle McMartin 575de6
%define kernel_image arch/arm64/boot/Image.gz
Kyle McMartin 575de6
%define image_install_path boot
Kyle McMartin 575de6
%endif
Kyle McMartin 575de6
Dave Jones 834dba
# Should make listnewconfig fail if there's config options
Dave Jones 834dba
# printed out?
cff59d
%if %{nopatches}
Dave Jones 834dba
%define listnewconfig_fail 0
Dave Jones 834dba
%else
Dave Jones 834dba
%define listnewconfig_fail 1
Dave Jones 834dba
%endif
Dave Jones 834dba
Jesse Keating 7a3296
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a3296
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a3296
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a3296
# Which is a BadThing(tm).
Jesse Keating 7a3296
Jesse Keating 7a3296
# We only build kernel-headers on the following...
Kyle McMartin 0c652a
%if 0%{?aarch64patches}
5d109f
%define nobuildarches i386 s390
Kyle McMartin 0c652a
%else
Kyle McMartin 0c652a
%define nobuildarches i386 s390 aarch64
Kyle McMartin 0c652a
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %nobuildarches
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_debuginfo 0
Kyle McMartin 42d4c3
%define with_perf 0
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define with_pae_debug 0
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
%define with_pae_debug %{with_debug}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 8addb5
# Architectures we build tools/cpupower on
15e63c
%define cpupowerarchs %{ix86} x86_64 %{power64} %{arm} aarch64 
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Dave Jones 166b79
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a3296
# scripts use them.
Jesse Keating 7a3296
#
Kyle McMartin 57716b
%define kernel_prereq  fileutils, systemd >= 203-2
d7c14f
%define initrd_prereq  dracut >= 038-29
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
Name: kernel%{?variant}
Jesse Keating 7a3296
Group: System Environment/Kernel
Dave Jones 702ef3
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a3296
URL: http://www.kernel.org/
Jesse Keating 7a3296
Version: %{rpmversion}
0d6873
Release: %{pkg_release}
Jesse Keating 7a3296
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a3296
# SET %%nobuildarches (ABOVE) INSTEAD
15e63c
ExclusiveArch: %{all_x86} x86_64 ppc64 ppc64p7 s390 s390x %{arm} aarch64 ppc64le
Jesse Keating 7a3296
ExclusiveOS: Linux
a9cc54
%ifnarch %{nobuildarches}
94ce4e
Requires: kernel-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant}
aa7351
Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}
a9cc54
%endif
Jesse Keating 7a3296
Dave Jones efc71a
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# List the packages used during the kernel build
Jesse Keating 7a3296
#
Kyle McMartin 11dfcd
BuildRequires: kmod, patch, bash, sh-utils, tar
Kyle McMartin 11dfcd
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
Kyle McMartin 11dfcd
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
Josh Boyer 951b84
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a3296
%if %{with_sparse}
Kyle McMartin 11dfcd
BuildRequires: sparse
Jesse Keating 7a3296
%endif
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 5d4963
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex
Josh Boyer ad6cd3
BuildRequires: audit-libs-devel
Kyle McMartin 42d4c3
%endif
Dave Jones 1d18ad
%if %{with_tools}
ec0fd9
BuildRequires: pciutils-devel gettext ncurses-devel
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a3296
%if %{with_debuginfo}
Kyle McMartin 11dfcd
BuildRequires: rpm-build, elfutils
Mark Wielaard ec9ad6
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c2a12c
%if %{signmodules}
Josh Boyer f0f4ff
BuildRequires: openssl
Josh Boyer bf81d1
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Kyle McMartin 43d64b
%if %{with_cross}
Kyle McMartin 43d64b
BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
Kyle McMartin 43d64b
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
Kyle McMartin 43d64b
%endif
Kyle McMartin 43d64b
Dave Jones 8959a0
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a3296
80ea6c
Source10: perf-man-%{kversion}.tar.gz
Josh Boyer f0f4ff
Source11: x509.genkey
Josh Boyer c2a12c
Jesse Keating 7a3296
Source15: merge.pl
Josh Boyer b8b278
Source16: mod-extra.list
Josh Boyer 0b4338
Source17: mod-extra.sh
Kyle McMartin d0a8cf
Source18: mod-sign.sh
94ce4e
Source90: filter-x86_64.sh
94ce4e
Source91: filter-armv7hl.sh
94ce4e
Source92: filter-i686.sh
94ce4e
Source93: filter-aarch64.sh
94ce4e
Source95: filter-ppc64.sh
94ce4e
Source96: filter-ppc64le.sh
94ce4e
Source97: filter-s390x.sh
0d23ee
Source98: filter-ppc64p7.sh
94ce4e
Source99: filter-modules.sh
Kyle McMartin d0a8cf
%define modsign_cmd %{SOURCE18}
Jesse Keating 7a3296
Chuck Ebbert c6b36e
Source19: Makefile.release
Jesse Keating 7a3296
Source20: Makefile.config
Jesse Keating 7a3296
Source21: config-debug
Jesse Keating 7a3296
Source22: config-nodebug
Jesse Keating 7a3296
Source23: config-generic
Kyle McMartin bcab99
Source24: config-no-extra
Jesse Keating 7a3296
Jesse Keating 7a3296
Source30: config-x86-generic
Jesse Keating 7a3296
Source31: config-i686-PAE
Josh Boyer d71f18
Source32: config-x86-32-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source40: config-x86_64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source50: config-powerpc-generic
Jesse Keating 7a3296
Source53: config-powerpc64
Josh Boyer 3b7690
Source54: config-powerpc64p7
Josh Boyer 5a7728
Source55: config-powerpc64le
Jesse Keating 7a3296
Jesse Keating 7a3296
Source70: config-s390x
Jesse Keating 7a3296
Kyle McMartin 575de6
Source100: config-arm-generic
Kyle McMartin 575de6
faa8d0
# Unified ARM kernels
Kyle McMartin 575de6
Source101: config-armv7-generic
Kyle McMartin 575de6
Source102: config-armv7
Kyle McMartin 575de6
Source103: config-armv7-lpae
Kyle McMartin 575de6
Kyle McMartin 575de6
Source110: config-arm64
Jesse Keating 7a3296
Jarod Wilson 5b6529
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b6529
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b6529
Source1000: config-local
Jarod Wilson 5b6529
Josh Boyer 8addb5
# Sources for kernel-tools
Josh Boyer 8addb5
Source2000: cpupower.service
Josh Boyer 8addb5
Source2001: cpupower.config
Josh Boyer 8addb5
Jesse Keating 7a3296
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable release kernel
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%if 0%{?stable_base}
Josh Boyer fdb68d
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a3296
Patch00: %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a3296
# near the top of this spec file.
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# we also need compile fixes for -vanilla
Dave Jones efd70b
Patch04: compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# build tweak for build ID magic, even for -vanilla
dbc4a9
Patch05: kbuild-AFTER_LINK.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Kyle McMartin 201b16
Jesse Keating 7a3296
# revert upstream patches we get via other methods
Dave Jones efd70b
Patch09: upstream-reverts.patch
Jesse Keating 7a3296
# Git trees.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Standalone patches
Jesse Keating 7a3296
Dave Jones efd70b
Patch450: input-kill-stupid-messages.patch
Dave Jones efd70b
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch470: die-floppy-die.patch
Jesse Keating 7a3296
e6fe38
Patch500: Revert-Revert-ACPI-video-change-acpi-video-brightnes.patch
e6fe38
dbc4a9
Patch510: input-silence-i8042-noise.patch
Dave Jones efd70b
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a3296
dbc4a9
Patch600: lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
de0566
Dave Jones efd70b
Patch800: crash-driver.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# crypto/
Josh Boyer 306dfc
Josh Boyer 306dfc
# secure boot
dbc4a9
Patch1000: Add-secure_modules-call.patch
dbc4a9
Patch1001: PCI-Lock-down-BAR-access-when-module-security-is-ena.patch
dbc4a9
Patch1002: x86-Lock-down-IO-port-access-when-module-security-is.patch
dbc4a9
Patch1003: ACPI-Limit-access-to-custom_method.patch
dbc4a9
Patch1004: asus-wmi-Restrict-debugfs-interface-when-module-load.patch
dbc4a9
Patch1005: Restrict-dev-mem-and-dev-kmem-when-module-loading-is.patch
dbc4a9
Patch1006: acpi-Ignore-acpi_rsdp-kernel-parameter-when-module-l.patch
dbc4a9
Patch1007: kexec-Disable-at-runtime-if-the-kernel-enforces-modu.patch
dbc4a9
Patch1008: x86-Restrict-MSR-access-when-module-loading-is-restr.patch
dbc4a9
Patch1009: Add-option-to-automatically-enforce-module-signature.patch
dbc4a9
Patch1010: efi-Disable-secure-boot-if-shim-is-in-insecure-mode.patch
dbc4a9
Patch1011: efi-Make-EFI_SECURE_BOOT_SIG_ENFORCE-depend-on-EFI.patch
dbc4a9
Patch1012: efi-Add-EFI_SECURE_BOOT-bit.patch
dbc4a9
Patch1013: hibernate-Disable-in-a-signed-modules-environment.patch
dbc4a9
dbc4a9
Patch1014: Add-EFI-signature-data-types.patch
dbc4a9
Patch1015: Add-an-EFI-signature-blob-parser-and-key-loader.patch
dbc4a9
Patch1016: KEYS-Add-a-system-blacklist-keyring.patch
dbc4a9
Patch1017: MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch
dbc4a9
Patch1018: MODSIGN-Support-not-importing-certs-from-db.patch
dbc4a9
dbc4a9
Patch1019: Add-sysrq-option-to-disable-secure-boot-mode.patch
Matthew Garrett 447e3a
Jesse Keating 7a3296
# virt + ksm patches
Jesse Keating 7a3296
Jesse Keating 7a3296
# DRM
Josh Boyer deb816
Jesse Keating 7a3296
# nouveau + drm fixes
Jesse Keating 7a3296
# intel drm is all merged upstream
049a74
Patch1826: drm-i915-hush-check-crtc-state.patch
Kyle McMartin 5acda9
Jesse Keating 7a3296
# Quiet boot fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
# fs fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# patches headed upstream
Jesse Keating 7a3296
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Josh Boyer fcbaf2
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
dbc4a9
Patch15000: watchdog-Disable-watchdog-on-virtual-machines.patch
Dave Jones 18e50c
dbc4a9
# PPC
dbc4a9
Patch18000: ppc64-fixtools.patch
Kyle McMartin 575de6
# ARM64
Kyle McMartin 575de6
fe0e7b
# ARMv7
dbc4a9
Patch21020: ARM-tegra-usb-no-reset.patch
dbc4a9
Patch21021: arm-dts-am335x-boneblack-lcdc-add-panel-info.patch
dbc4a9
Patch21022: arm-dts-am335x-boneblack-add-cpu0-opp-points.patch
dbc4a9
Patch21023: arm-dts-am335x-bone-common-enable-and-use-i2c2.patch
dbc4a9
Patch21024: arm-dts-am335x-bone-common-setup-default-pinmux-http.patch
dbc4a9
Patch21025: arm-dts-am335x-bone-common-add-uart2_pins-uart4_pins.patch
dbc4a9
Patch21026: pinctrl-pinctrl-single-must-be-initialized-early.patch
dbc4a9
dbc4a9
Patch21028: arm-i.MX6-Utilite-device-dtb.patch
dbc4a9
Patch21029: arm-dts-sun7i-bananapi.patch
dbc4a9
dbc4a9
Patch21100: arm-highbank-l2-reverts.patch
c30bd6
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
Josh Boyer ebd1a1
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a1
Patch21242: criu-no-expert.patch
Josh Boyer ebd1a1
Josh Boyer 27e48a
#rhbz 892811
dbc4a9
Patch21247: ath9k-rx-dma-stop-check.patch
Josh Boyer 27e48a
Josh Boyer dadd60
Patch22000: weird-root-dentry-name-debug.patch
Josh Boyer dadd60
4f6017
#rhbz 1025603
4f6017
Patch25063: disable-libdw-unwind-on-non-x86.patch
4f6017
f22ebd
#rhbz 983342 1093120
dbc4a9
Patch25069: acpi-video-Add-4-new-models-to-the-use_native_backli.patch
f22ebd
dbc4a9
Patch26000: perf-install-trace-event-plugins.patch
Kyle McMartin bb584d
e8129d
# Patch series from Hans for various backlight and platform driver fixes
c25186
Patch26002: samsung-laptop-Add-broken-acpi-video-quirk-for-NC210.patch
e6a4d3
Patch26013: acpi-video-Add-use-native-backlight-quirk-for-the-Th.patch
7fd192
Patch26014: acpi-video-Add-use_native_backlight-quirk-for-HP-Pro.patch
7fd192
52fafd
#rhbz 1134969
dbc4a9
Patch26016: HID-wacom-Add-support-for-the-Cintiq-Companion.patch
52fafd
5fd278
#rhbz 1110011
dbc4a9
Patch26019: psmouse-Add-psmouse_matches_pnp_id-helper-function.patch
dbc4a9
Patch26020: psmouse-Add-support-for-detecting-FocalTech-PS-2-tou.patch
2d278d
dbc4a9
#rhbz 1138759
dbc4a9
Patch26021: drm-vmwgfx-Fix-drm.h-include.patch
006828
22caf8
#rhbz 1123584
22caf8
Patch26028: HID-rmi-check-sanity-of-incoming-report.patch
22caf8
dbc4a9
#rhbz 1145318
dbc4a9
Patch26029: KEYS-Reinstate-EPERM-for-a-key-type-name-beginning-w.patch
dbc4a9
Kyle McMartin 0c652a
# git clone ssh://git.fedorahosted.org/git/kernel-arm64.git, git diff master...devel
Kyle McMartin 0c652a
Patch30000: kernel-arm64.patch
Kyle McMartin 0c652a
Josh Boyer 812ba1
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a3296
Jesse Keating 7a3296
%description
94ce4e
The kernel meta package
94ce4e
94ce4e
#
94ce4e
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
94ce4e
#	%%kernel_reqprovconf <subpackage>
94ce4e
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
94ce4e
# macros defined above.
94ce4e
#
94ce4e
%define kernel_reqprovconf \
94ce4e
Provides: kernel = %{rpmversion}-%{pkg_release}\
94ce4e
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
94ce4e
Provides: kernel-drm-nouveau = 16\
94ce4e
Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4e
Requires(pre): %{kernel_prereq}\
94ce4e
Requires(pre): %{initrd_prereq}\
94ce4e
Requires(pre): linux-firmware >= 20130724-29.git31f6b30\
94ce4e
Requires(preun): systemd >= 200\
94ce4e
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
94ce4e
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
94ce4e
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
94ce4e
# We can't let RPM do the dependencies automatic because it'll then pick up\
94ce4e
# a correct but undesirable perl dependency from the module headers which\
94ce4e
# isn't required for the kernel proper to function\
f19b8f
AutoReq: no\
f19b8f
AutoProv: yes\
94ce4e
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%package headers
Jesse Keating 7a3296
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a3296
Group: Development/System
Dave Jones d555d6
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a3296
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a3296
%description headers
Jesse Keating 7a3296
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a3296
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a3296
header files define structures and constants that are needed for
Jesse Keating 7a3296
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a3296
glibc package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package bootwrapper
Jesse Keating 7a3296
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a3296
Group: Development/System
Dave Jones 524b8c
Requires: gzip binutils
Jesse Keating 7a3296
%description bootwrapper
Jesse Keating 7a3296
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a3296
files combining both kernel and initial ramdisk.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a3296
Group: Development/Debug
Jesse Keating 7a3296
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a3296
It provides the kernel source files common to all builds.
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%package -n perf
Kyle McMartin 42d4c3
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c3
Group: Development/System
Kyle McMartin 42d4c3
License: GPLv2
Kyle McMartin 42d4c3
%description -n perf
Kyle McMartin 42d4c3
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c3
of the Linux kernel.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n perf-debuginfo
Kyle McMartin 42d4c3
Summary: Debug information for package perf
Kyle McMartin 42d4c3
Group: Development/Debug
Kyle McMartin 42d4c3
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c3
AutoReqProv: no
Kyle McMartin 42d4c3
%description -n perf-debuginfo
Kyle McMartin 42d4c3
This package provides debug information for the perf package.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c3
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c3
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c3
# of matching the pattern against the symlinks file.
Kyle McMartin bb584d
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/traceevent/plugins/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n python-perf
Kyle McMartin 42d4c3
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c3
Group: Development/Libraries
Kyle McMartin 42d4c3
%description -n python-perf
Kyle McMartin 42d4c3
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c3
written in the Python programming language to use the interface
Kyle McMartin 42d4c3
to manipulate perf events.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c3
Josh Boyer 27d8a0
%package -n python-perf-debuginfo
Josh Boyer 27d8a0
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0
Group: Development/Debug
Josh Boyer 27d8a0
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0
AutoReqProv: no
Josh Boyer 27d8a0
%description -n python-perf-debuginfo
Josh Boyer 27d8a0
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0
Josh Boyer 27d8a0
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0
Josh Boyer 27d8a0
Kyle McMartin 42d4c3
%endif # with_perf
Kyle McMartin 42d4c3
Dave Jones 1d18ad
%if %{with_tools}
Dave Jones 1d18ad
%package -n kernel-tools
Dave Jones 1d18ad
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
License: GPLv2
Josh Boyer 02587b
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 55e586
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad
%description -n kernel-tools
Dave Jones 1d18ad
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c3
and the supporting documentation.
Roland McGrath 3c4ea9
Josh Boyer 55e586
%package -n kernel-tools-libs
Josh Boyer 55e586
Summary: Libraries for the kernels-tools
Josh Boyer 55e586
Group: Development/System
Josh Boyer 55e586
License: GPLv2
Josh Boyer 55e586
%description -n kernel-tools-libs
Josh Boyer 55e586
This package contains the libraries built from the tools/ directory
Josh Boyer 55e586
from the kernel source.
Josh Boyer 55e586
Josh Boyer 55e586
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5
Group: Development/System
Josh Boyer 8addb5
License: GPLv2
Josh Boyer 02587b
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad371
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad371
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 55e586
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer a5b375
Provides: kernel-tools-devel
Josh Boyer 55e586
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5
the kernel source.
Josh Boyer 8addb5
Dave Jones 1d18ad
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9
Group: Development/Debug
Roland McGrath 3c4ea9
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9
AutoReqProv: no
Dave Jones 1d18ad
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9
# of matching the pattern against the symlinks file.
ec0fd9
%{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 ec31ef
Kyle McMartin 42d4c3
%endif # with_tools
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a3296
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_debuginfo_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a3296
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a3296
Group: Development/Debug\
Jesse Keating 7a3296
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a3296
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a3296
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
3e3a90
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}devel\
Jesse Keating 7a3296
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
faf252
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
faf252
Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\
faf252
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
Requires(pre): /usr/bin/find\
Jesse Keating 7a3296
Requires: perl\
Jesse Keating 7a3296
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a3296
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a3296
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Josh Boyer b8b278
# This macro creates a kernel-<subpackage>-modules-extra package.
Kyle McMartin de50ed
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b278
#
Kyle McMartin de50ed
%define kernel_modules_extra_package() \
Josh Boyer b8b278
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b278
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b278
Group: System Environment/Kernel\
Josh Boyer b8b278
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
3752c8
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
3752c8
Provides: kernel%{?1:-%{1}}-modules-extra = %{version}-%{release}%{?1:+%{1}}\
Josh Boyer 6721e4
Provides: installonlypkg(kernel-module)\
3752c8
Provides: kernel%{?1:-%{1}}-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
faf252
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
6d90aa
Requires: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
f19b8f
AutoReq: no\
f19b8f
AutoProv: yes\
Josh Boyer b8b278
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b278
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b278
%{nil}
Josh Boyer b8b278
Josh Boyer b8b278
#
aa7351
# This macro creates a kernel-<subpackage>-modules package.
aa7351
#	%%kernel_modules_package <subpackage> <pretty-name>
94ce4e
#
aa7351
%define kernel_modules_package() \
aa7351
%package %{?1:%{1}-}modules\
94ce4e
Summary: kernel modules to match the %{?2:%{2}-}core kernel\
94ce4e
Group: System Environment/Kernel\
aa7351
Provides: kernel%{?1:-%{1}}-modules-%{_target_cpu} = %{version}-%{release}\
aa7351
Provides: kernel-modules-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
aa7351
Provides: kernel-modules = %{version}-%{release}%{?1:+%{1}}\
94ce4e
Provides: installonlypkg(kernel-module)\
551aab
Provides: kernel%{?1:-%{1}}-modules-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4e
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
f19b8f
AutoReq: no\
f19b8f
AutoProv: yes\
aa7351
%description -n kernel%{?variant}%{?1:-%{1}}-modules\
94ce4e
This package provides commonly used kernel modules for the %{?2:%{2}-}core kernel package.\
94ce4e
%{nil}
94ce4e
94ce4e
#
335206
# this macro creates a kernel-<subpackage> meta package.
335206
#	%%kernel_meta_package <subpackage>
335206
#
335206
%define kernel_meta_package() \
335206
%package %{1}\
335206
summary: kernel meta-package for the %{1} kernel\
335206
group: system environment/kernel\
335206
Requires: kernel-%{1}-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant}+%{1}\
aa7351
Requires: kernel-%{1}-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}+%{1}\
335206
%description %{1}\
335206
The meta-package for the %{1} kernel\
335206
%{nil}
335206
335206
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a3296
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a3296
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_package(n:) \
94ce4e
%package %{?1:%{1}-}core\
Jesse Keating 7a3296
Summary: %{variant_summary}\
Jesse Keating 7a3296
Group: System Environment/Kernel\
94ce4e
Provides: kernel-%{?1:%{1}-}core-uname-r = %{KVERREL}%{?1:+%{1}}\
94ce4e
%{expand:%%kernel_reqprovconf}\
335206
%if %{?1:1} %{!?1:0} \
335206
%{expand:%%kernel_meta_package %{?1:%{1}}}\
335206
%endif\
94ce4e
%{expand:%%kernel_devel_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
aa7351
%{expand:%%kernel_modules_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
94ce4e
%{expand:%%kernel_modules_extra_package %{?1:%{1}} %{!?{-n}:%{1}}%{?{-n}:%{-n*}}}\
94ce4e
%{expand:%%kernel_debuginfo_package %{?1:%{1}}}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Now, each variant package.
Jesse Keating 7a3296
Kyle McMartin be52af
%ifnarch armv7hl
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for PAE capable machines
Kyle McMartin bc5f99
%kernel_variant_package %{pae}
94ce4e
%description %{pae}-core
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Kyle McMartin be52af
%else
Kyle McMartin bc5f99
%define variant_summary The Linux kernel compiled for Cortex-A15
Kyle McMartin bc5f99
%kernel_variant_package %{pae}
94ce4e
%description %{pae}-core
Kyle McMartin bc5f99
This package includes a version of the Linux kernel with support for
Kyle McMartin bc5f99
Cortex-A15 devices with LPAE and HW virtualisation support
Kyle McMartin bc5f99
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Kyle McMartin bc5f99
%kernel_variant_package %{pae}debug
Jesse Keating 7a3296
Obsoletes: kernel-PAE-debug
94ce4e
%description %{pae}debug-core
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a3296
%kernel_variant_package debug
94ce4e
%description debug-core
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
94ce4e
# And finally the main -core package
94ce4e
94ce4e
%define variant_summary The Linux kernel
94ce4e
%kernel_variant_package 
94ce4e
%description core
94ce4e
The kernel package contains the Linux kernel (vmlinuz), the core of any
94ce4e
Linux operating system.  The kernel handles the basic functions
94ce4e
of the operating system: memory allocation, process allocation, device
94ce4e
input and output, etc.
94ce4e
986a9f
Jesse Keating 7a3296
%prep
Jesse Keating 7a3296
# do a few sanity-checks for --with *only builds
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%if !%{with_up}%{with_pae}
Jesse Keating 7a3296
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c78a08
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763
exit 1
Chuck Ebbert 05e763
%endif
Chuck Ebbert 05e763
Jesse Keating 7a3296
# more sanity checking; do it quietly
Jesse Keating 7a3296
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a3296
  for patch in %{patches} ; do
Jesse Keating 7a3296
    if [ ! -f $patch ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
fi 2>/dev/null
Jesse Keating 7a3296
Jesse Keating 7a3296
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a3296
ApplyPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Dave Jones b89c80
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a291
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  fi 2>/dev/null
Jesse Keating 7a3296
  case "$patch" in
Jesse Keating 7a3296
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a3296
  esac
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't apply patch if it's empty
Jesse Keating 7a3296
ApplyOptionalPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a3296
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a3296
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# First we unpack the kernel tarball.
Jesse Keating 7a3296
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a3296
# which speeds things up quite a bit.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update to latest upstream.
Jesse Keating 7a3296
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a3296
%else
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a3296
Dave Jones 166b79
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c
# so we can prep different trees within a single git directory.
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a3296
Dave Jones 9e2943
# Delete all old stale trees.
Dave Jones 9e2943
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e2943
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e2943
  for i in linux-*
Dave Jones 9e2943
  do
Dave Jones 7bd4de
     if [ -d $i ]; then
Dave Jones 7bd4de
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4de
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4de
       # Move away the stale away, and delete in background.
Dave Jones 7bd4de
       mv $i deleteme-$i
Dave Jones 7bd4de
       rm -rf deleteme* &
Dave Jones 7bd4de
     fi
Dave Jones 9e2943
  done
Dave Jones 9e2943
  cd ..
Dave Jones 9e2943
fi
Dave Jones 9e2943
Dave Jones 9e2943
# Generate new tree
Chuck Ebbert 26d08c
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
    # The base vanilla version already exists.
Chuck Ebbert 26d08c
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a3296
    for dir in vanilla-*; do
Jesse Keating 7a3296
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f pax_global_header
Chuck Ebbert 26d08c
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a3296
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a3296
        break
Jesse Keating 7a3296
      fi
Jesse Keating 7a3296
    done
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c -T
16cb95
      cp -al $sharedir/vanilla-%{kversion} .
Jesse Keating 7a3296
    else
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a3296
Jesse Keating 7a3296
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
      break
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Chuck Ebbert 26d08c
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
16cb95
    cp -al $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    # Need to apply patches to the base vanilla version.
16cb95
    cp -al vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a3296
    cd vanilla-%{vanillaversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update vanilla to the latest upstream.
Jesse Keating 7a3296
# (non-released_kernel case only)
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
else
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Now build the fedora kernel tree.
16cb95
cp -al vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
# released_kernel with possible stable updates
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a3296
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a3296
cp %{SOURCE15} .
Jesse Keating 7a3296
Chuck Ebbert c6b36e
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee03
%if %{with_release}
Chuck Ebbert c6b36e
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee03
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a3296
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a3296
Jarod Wilson 5b6529
# Merge in any user-provided local config option changes
54a9e1
%ifnarch %nobuildarches
e57e8f
for i in %{all_arch_configs}
Jarod Wilson 5b6529
do
Jarod Wilson 5b6529
  mv $i $i.tmp
Jarod Wilson 5b6529
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b6529
  rm $i.tmp
Jarod Wilson 5b6529
done
54a9e1
%endif
Jarod Wilson 5b6529
dbc4a9
ApplyPatch kbuild-AFTER_LINK.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# misc small stuff to make things compile
Jesse Keating 7a3296
#
Dave Jones efd70b
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Jesse Keating 7a3296
# revert patches from upstream that conflict or that we get via other means
Dave Jones efd70b
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a3296
Jesse Keating 7a3296
# Architecture patches
Jesse Keating 7a3296
# x86(-64)
dbc4a9
ApplyPatch lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
dbc4a9
dbc4a9
# PPC
dbc4a9
ApplyPatch ppc64-fixtools.patch
Jesse Keating 7a3296
Kyle McMartin 575de6
# ARM64
Kyle McMartin 575de6
Jesse Keating 7a3296
#
986a9f
# ARM
986a9f
#
dbc4a9
ApplyPatch ARM-tegra-usb-no-reset.patch
dbc4a9
dbc4a9
ApplyPatch arm-dts-am335x-boneblack-lcdc-add-panel-info.patch
dbc4a9
ApplyPatch arm-dts-am335x-boneblack-add-cpu0-opp-points.patch
dbc4a9
ApplyPatch arm-dts-am335x-bone-common-enable-and-use-i2c2.patch
dbc4a9
ApplyPatch arm-dts-am335x-bone-common-setup-default-pinmux-http.patch
dbc4a9
ApplyPatch arm-dts-am335x-bone-common-add-uart2_pins-uart4_pins.patch
dbc4a9
ApplyPatch pinctrl-pinctrl-single-must-be-initialized-early.patch
dbc4a9
dbc4a9
ApplyPatch arm-i.MX6-Utilite-device-dtb.patch
dbc4a9
ApplyPatch arm-dts-sun7i-bananapi.patch
dbc4a9
dbc4a9
ApplyPatch arm-highbank-l2-reverts.patch
fceb35
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# bugfixes to drivers and filesystems
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ext4
Jesse Keating 7a3296
Jesse Keating 7a3296
# xfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# btrfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# eCryptfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# USB
Jesse Keating 7a3296
Jesse Keating 7a3296
# WMI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PCI
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SCSI Bits.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
e6fe38
ApplyPatch Revert-Revert-ACPI-video-change-acpi-video-brightnes.patch
e6fe38
Jesse Keating 7a3296
# ALSA
Jesse Keating 7a3296
Jesse Keating 7a3296
# Networking
Jesse Keating 7a3296
Jesse Keating 7a3296
# Misc fixes
Jesse Keating 7a3296
# The input layer spews crap no-one cares about.
Dave Jones efd70b
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a3296
ApplyPatch die-floppy-die.patch
Jesse Keating 7a3296
Dave Jones efd70b
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Silence some useless messages that still get printed with 'quiet'
dbc4a9
ApplyPatch input-silence-i8042-noise.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Make fbcon not show the penguins with 'quiet'
Dave Jones efd70b
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Changes to upstream defaults.
Jesse Keating 7a3296
Jesse Keating 7a3296
# /dev/crash driver.
Dave Jones efd70b
ApplyPatch crash-driver.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# crypto/
Josh Boyer 306dfc
Josh Boyer 306dfc
# secure boot
dbc4a9
ApplyPatch Add-secure_modules-call.patch
dbc4a9
ApplyPatch PCI-Lock-down-BAR-access-when-module-security-is-ena.patch
dbc4a9
ApplyPatch x86-Lock-down-IO-port-access-when-module-security-is.patch
dbc4a9
ApplyPatch ACPI-Limit-access-to-custom_method.patch
dbc4a9
ApplyPatch asus-wmi-Restrict-debugfs-interface-when-module-load.patch
dbc4a9
ApplyPatch Restrict-dev-mem-and-dev-kmem-when-module-loading-is.patch
dbc4a9
ApplyPatch acpi-Ignore-acpi_rsdp-kernel-parameter-when-module-l.patch
dbc4a9
ApplyPatch kexec-Disable-at-runtime-if-the-kernel-enforces-modu.patch
dbc4a9
ApplyPatch x86-Restrict-MSR-access-when-module-loading-is-restr.patch
dbc4a9
ApplyPatch Add-option-to-automatically-enforce-module-signature.patch
dbc4a9
ApplyPatch efi-Disable-secure-boot-if-shim-is-in-insecure-mode.patch
dbc4a9
ApplyPatch efi-Make-EFI_SECURE_BOOT_SIG_ENFORCE-depend-on-EFI.patch
dbc4a9
ApplyPatch efi-Add-EFI_SECURE_BOOT-bit.patch
dbc4a9
ApplyPatch hibernate-Disable-in-a-signed-modules-environment.patch
dbc4a9
dbc4a9
ApplyPatch Add-EFI-signature-data-types.patch
dbc4a9
ApplyPatch Add-an-EFI-signature-blob-parser-and-key-loader.patch
dbc4a9
ApplyPatch KEYS-Add-a-system-blacklist-keyring.patch
dbc4a9
ApplyPatch MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch
dbc4a9
ApplyPatch MODSIGN-Support-not-importing-certs-from-db.patch
dbc4a9
dbc4a9
ApplyPatch Add-sysrq-option-to-disable-secure-boot-mode.patch
Matthew Garrett 447e3a
Jesse Keating 7a3296
# Assorted Virt Fixes
Jesse Keating 7a3296
Kyle McMartin d3e4af
# DRM core
Jesse Keating 7a3296
Kyle McMartin d3e4af
# Nouveau DRM
Kyle McMartin d3e4af
Kyle McMartin d3e4af
# Intel DRM
049a74
ApplyPatch drm-i915-hush-check-crtc-state.patch
Dave Jones 19e378
Kyle McMartin b85304
# Radeon DRM
Kyle McMartin b85304
Jesse Keating 7a3296
# Patches headed upstream
Jesse Keating 7a3296
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Dave Jones 7bd4de
# FIXME: REBASE
Dave Jones 7bd4de
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
Dave Jones 18e50c
# Disable watchdog on virtual machines.
dbc4a9
ApplyPatch watchdog-Disable-watchdog-on-virtual-machines.patch
Dave Jones 18e50c
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
a0e7ea
#pplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0
Josh Boyer ebd1a1
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a1
ApplyPatch criu-no-expert.patch
Josh Boyer ebd1a1
Josh Boyer 27e48a
#rhbz 892811
dbc4a9
ApplyPatch ath9k-rx-dma-stop-check.patch
Josh Boyer 27e48a
4f6017
#rhbz 1025603
4f6017
ApplyPatch disable-libdw-unwind-on-non-x86.patch
4f6017
f22ebd
#rhbz 983342 1093120
dbc4a9
ApplyPatch acpi-video-Add-4-new-models-to-the-use_native_backli.patch
f22ebd
dbc4a9
ApplyPatch perf-install-trace-event-plugins.patch
Kyle McMartin bb584d
e8129d
# Patch series from Hans for various backlight and platform driver fixes
c25186
ApplyPatch samsung-laptop-Add-broken-acpi-video-quirk-for-NC210.patch
e6a4d3
ApplyPatch acpi-video-Add-use-native-backlight-quirk-for-the-Th.patch
7fd192
ApplyPatch acpi-video-Add-use_native_backlight-quirk-for-HP-Pro.patch
e8129d
52fafd
#rhbz 1134969
dbc4a9
ApplyPatch HID-wacom-Add-support-for-the-Cintiq-Companion.patch
52fafd
5fd278
#rhbz 1110011
5fd278
ApplyPatch psmouse-Add-psmouse_matches_pnp_id-helper-function.patch
5fd278
ApplyPatch psmouse-Add-support-for-detecting-FocalTech-PS-2-tou.patch
5fd278
dbc4a9
#rhbz 1138759
dbc4a9
ApplyPatch drm-vmwgfx-Fix-drm.h-include.patch
006828
22caf8
#rhbz 1123584
22caf8
ApplyPatch HID-rmi-check-sanity-of-incoming-report.patch
22caf8
dbc4a9
#rhbz 1145318
dbc4a9
ApplyPatch KEYS-Reinstate-EPERM-for-a-key-type-name-beginning-w.patch
dbc4a9
Kyle McMartin 0c652a
%if 0%{?aarch64patches}
Kyle McMartin 0c652a
ApplyPatch kernel-arm64.patch
Kyle McMartin 0c652a
%ifnarch aarch64 # this is stupid, but i want to notice before secondary koji does.
Kyle McMartin 0c652a
ApplyPatch kernel-arm64.patch -R
Kyle McMartin 0c652a
%endif
Kyle McMartin 0c652a
%endif
Kyle McMartin 0c652a
Jesse Keating 7a3296
# END OF PATCH APPLICATIONS
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a3296
Jesse Keating 7a3296
chmod +x scripts/checkpatch.pl
Jesse Keating 7a3296
Dave Jones ed3d26
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa0660
touch .scmversion
Kyle McMartin fa0660
Jesse Keating 7a3296
# only deal with configs if we are going to build for the arch
Jesse Keating 7a3296
%ifnarch %nobuildarches
Jesse Keating 7a3296
Jesse Keating 7a3296
mkdir configs
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 43d64b
%define make make %{?cross_opts}
Kyle McMartin 43d64b
Dave Jones 834dba
# now run oldconfig over all the config files
Dave Jones 834dba
for i in *.config
Dave Jones 834dba
do
Dave Jones 834dba
  mv $i .config
Dave Jones 834dba
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 834dba
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 834dba
%if %{listnewconfig_fail}
Dave Jones 834dba
  if [ -s .newoptions ]; then
Dave Jones 834dba
    cat .newoptions
Dave Jones 834dba
    exit 1
Dave Jones 834dba
  fi
Dave Jones 834dba
%endif
Dave Jones 834dba
  rm -f .newoptions
Dave Jones 834dba
  make ARCH=$Arch oldnoconfig
Dave Jones 834dba
  echo "# $Arch" > configs/$i
Dave Jones 834dba
  cat .config >> configs/$i
Dave Jones 834dba
done
Jesse Keating 7a3296
# end of kernel config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
John W. Linville fa580e
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e
Dave Jones 246f94
# remove unnecessary SCM files
Dave Jones 246f94
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94
Jesse Keating 7a3296
cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### build
Jesse Keating 7a3296
###
Jesse Keating 7a3296
%build
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
%define sparse_mflags	C=1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a3296
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a3296
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a3296
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a3296
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a3296
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a3296
export AFTER_LINK=\
Jesse Keating 7a3296
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a3296
    				-i $@ > $@.id"'
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
cp_vmlinux()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildKernel() {
Jesse Keating 7a3296
    MakeTarget=$1
Jesse Keating 7a3296
    KernelImage=$2
Jesse Keating 7a3296
    Flavour=$3
faf252
    Flav=${Flavour:++${Flavour}}
Jesse Keating 7a3296
    InstallName=${4:-vmlinuz}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Pick the right config file for the kernel we're building
Jesse Keating 7a3296
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Kyle McMartin 9fc584
    DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a3296
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a3296
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a3296
      CopyKernel=cp_vmlinux
Jesse Keating 7a3296
    else
Jesse Keating 7a3296
      CopyKernel=cp
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Kyle McMartin 9fc584
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flav}
Jesse Keating 7a3296
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a3296
Josh Boyer 740de5
    %if 0%{?stable_update}
Josh Boyer 740de5
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de5
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de5
    %endif
Josh Boyer 740de5
Jesse Keating 7a3296
    # make sure EXTRAVERSION says what we want it to say
Kyle McMartin 9fc584
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flav}/" Makefile
Jesse Keating 7a3296
Josh Boyer 9e4aea
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a3296
    %if !0%{?rcrev}
Jesse Keating 7a3296
    %if 0%{?gitrev}
Josh Boyer 9e4aea
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # and now to start the build process
Jesse Keating 7a3296
Kyle McMartin 3e75bb
    make -s mrproper
Jesse Keating 7a3296
    cp configs/$Config .config
Jesse Keating 7a3296
Josh Boyer 6e2d2c
    %if %{signmodules}
Josh Boyer 6e2d2c
    cp %{SOURCE11} .
Josh Boyer 6e2d2c
    %endif
Josh Boyer 6e2d2c
Josh Boyer ef06d4
    chmod +x scripts/sign-file
Josh Boyer ef06d4
Jesse Keating 7a3296
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a3296
    echo USING ARCH=$Arch
Jesse Keating 7a3296
Kyle McMartin da80d7
    make -s ARCH=$Arch oldnoconfig >/dev/null
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags}
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
783eee
Kyle McMartin 49ba08
%ifarch %{arm} aarch64
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 dtbs
783eee
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
Kyle McMartin 663b7f
    install -m 644 arch/$Arch/boot/dts/*.dtb $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer/
Kyle McMartin 49ba08
    rm -f arch/$Arch/boot/dts/*.dtb
e6eb2f
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Start installing the results
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a3296
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a3296
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a3296
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a3296
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a3296
Jesse Keating 7a3296
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a3296
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a3296
    fi
d3182f
    %if %{signmodules}
d3182f
    # Sign the image if we're using EFI
d3182f
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 42d219
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 42d219
        echo "pesigning failed"
Josh Boyer 42d219
        exit 1
Josh Boyer 42d219
    fi
d3182f
    mv vmlinuz.signed $KernelImage
d3182f
    %endif
Jesse Keating 7a3296
    $CopyKernel $KernelImage \
Jesse Keating 7a3296
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
Josh Boyer 70f813
    # hmac sign the kernel for FIPS
Josh Boyer 70f813
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f813
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f813
    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 70f813
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a3296
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d56
    # we'll get it from the linux-firmware package and we don't want conflicts
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12c
Jesse Keating 7a3296
%ifarch %{vdso_arches}
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a3296
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a3296
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a3296
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a3296
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
005b64
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/vdso/.build-id
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a3296
    # * all arch relevant include/ files
Jesse Keating 7a3296
    # * all Makefile/Kconfig files
Jesse Keating 7a3296
    # * all script/ files
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a3296
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a3296
    # first copy everything
Jesse Keating 7a3296
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -s Module.markers ]; then
Jesse Keating 7a3296
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
15e63c
%ifarch %{power64}
Jesse Keating 7a3296
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a3296
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
    fi
ea6c81
%ifarch aarch64
ea6c81
    # arch/arm64/include/asm/xen references arch/arm
ea6c81
    cp -a --parents arch/arm/include/asm/xen $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
ea6c81
%endif
3b024e
    # include the machine specific headers for ARM variants, if available.
3b024e
%ifarch %{arm}
3b024e
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024e
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024e
    fi
3b024e
%endif
Jesse Keating 7a3296
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a3296
    # external modules can be built
1ef1d3
    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 c80928
Jesse Keating 7a3296
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a3296
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
    if test -s vmlinux.id; then
Jesse Keating 7a3296
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a3296
    else
Roland McGrath 9b36e5
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e5
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a3296
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Generate a list of modules for block and networking.
Jesse Keating 7a3296
Dave Jones b89c80
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a3296
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list()
Jesse Keating 7a3296
    {
Jesse Keating 7a3296
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Kyle McMartin cdb790
        LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb790
      if [ ! -z "$3" ]; then
Kyle McMartin 399410
        sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb790
      fi
Jesse Keating 7a3296
    }
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list networking \
Kyle McMartin 52da9d
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
Jesse Keating 7a3296
    collect_modules_list block \
Kyle McMartin cdb790
    			 '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 7a3296
    collect_modules_list drm \
Jesse Keating 7a3296
    			 'drm_open|drm_init'
Jesse Keating 7a3296
    collect_modules_list modesetting \
Jesse Keating 7a3296
    			 'drm_crtc_init'
Jesse Keating 7a3296
Jesse Keating 7a3296
    # detect missing or incorrect license tags
Kyle McMartin 21284e
    ( find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \
Kyle McMartin 21284e
        grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
Jesse Keating 7a3296
Kyle McMartin 634522
    # remove files that will be auto generated by depmod at rpm -i time
Kyle McMartin 634522
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
Kyle McMartin 634522
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
Kyle McMartin 634522
    popd
Kyle McMartin 634522
Josh Boyer 0b4338
    # Call the modules-extra script to move things around
Josh Boyer 0b4338
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Josh Boyer b8b278
94ce4e
    #
aa7351
    # Generate the kernel-core and kernel-modules files lists
94ce4e
    #
94ce4e
94ce4e
    # Copy the System.map file for depmod to use, and create a backup of the
94ce4e
    # full module tree so we can restore it after we're done filtering
94ce4e
    cp System.map $RPM_BUILD_ROOT/.
94ce4e
    pushd $RPM_BUILD_ROOT
94ce4e
    mkdir restore
94ce4e
    cp -r lib/modules/$KernelVer/* restore/.
94ce4e
94ce4e
    # don't include anything going into k-m-e in the file lists
94ce4e
    rm -rf lib/modules/$KernelVer/extra
94ce4e
aa7351
    # Find all the module files and filter them out into the core and modules
aa7351
    # lists.  This actually removes anything going into -modules from the dir.
94ce4e
    find lib/modules/$KernelVer/kernel -name *.ko | sort -n > modules.list
94ce4e
	cp $RPM_SOURCE_DIR/filter-*.sh .
94ce4e
    %{SOURCE99} modules.list %{_target_cpu}
94ce4e
	rm filter-*.sh
94ce4e
94ce4e
    # Run depmod on the resulting module tree and make sure it isn't broken
069d85
    depmod -b . -aeF ./System.map $KernelVer &> depmod.out
069d85
    if [ -s depmod.out ]; then
069d85
        echo "Depmod failure"
069d85
        cat depmod.out
069d85
        exit 1
069d85
    else
069d85
        rm depmod.out
069d85
    fi
94ce4e
    # remove files that will be auto generated by depmod at rpm -i time
94ce4e
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
94ce4e
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
94ce4e
    popd
94ce4e
94ce4e
    # Go back and find all of the various directories in the tree.  We use this
94ce4e
    # for the dir lists in kernel-core
94ce4e
    find lib/modules/$KernelVer/kernel -type d | sort -n > module-dirs.list
94ce4e
94ce4e
    # Cleanup
94ce4e
    rm System.map
94ce4e
    cp -r restore/* lib/modules/$KernelVer/.
94ce4e
    rm -rf restore
94ce4e
    popd
94ce4e
94ce4e
    # Make sure the files lists start with absolute paths or rpmbuild fails.
94ce4e
    # Also add in the dir entries
Kyle McMartin 892262
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/k-d.list > ../kernel${Flavour:+-${Flavour}}-modules.list
Kyle McMartin 892262
    sed -e 's/^lib*/%dir \/lib/' %{?zipsed} $RPM_BUILD_ROOT/module-dirs.list > ../kernel${Flavour:+-${Flavour}}-core.list
Kyle McMartin 892262
    sed -e 's/^lib*/\/lib/' %{?zipsed} $RPM_BUILD_ROOT/modules.list >> ../kernel${Flavour:+-${Flavour}}-core.list
94ce4e
94ce4e
    # Cleanup
94ce4e
    rm -f $RPM_BUILD_ROOT/k-d.list
94ce4e
    rm -f $RPM_BUILD_ROOT/modules.list
94ce4e
    rm -f $RPM_BUILD_ROOT/module-dirs.list
94ce4e
Josh Boyer f0f4ff
%if %{signmodules}
Kyle McMartin 249d64
    # Save the signing keys so we can sign the modules in __modsign_install_post
Kyle McMartin 9fc584
    cp signing_key.priv signing_key.priv.sign${Flav}
Kyle McMartin 9fc584
    cp signing_key.x509 signing_key.x509.sign${Flav}
Josh Boyer f0f4ff
%endif
Josh Boyer f0f4ff
Jesse Keating 7a3296
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a3296
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7
Josh Boyer bddef7
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7
    # the F17 UsrMove feature.
Josh Boyer bddef7
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b40
Kyle McMartin 4b3b40
    # prune junk from kernel-devel
Kyle McMartin 4b3b40
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# DO it...
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# prepare directories
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae_debug}
Kyle McMartin bc5f99
BuildKernel %make_target %kernel_image %{pae}debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae}
Kyle McMartin bc5f99
BuildKernel %make_target %kernel_image %{pae}
986a9f
%endif
986a9f
Jesse Keating 7a3296
%if %{with_up}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 8bcddf
%global perf_make \
Josh Boyer d0e2e5
  make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf
Josh Boyer ed7ef3
%{perf_make} DESTDIR=$RPM_BUILD_ROOT all
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
# cpupower
Josh Boyer 8addb5
# make sure version-gen.sh is executable.
Josh Boyer 8addb5
chmod +x tools/power/cpupower/utils/version-gen.sh
Kyle McMartin 43d64b
%{make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba
%ifarch %{ix86}
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/i386
Kyle McMartin 43d64b
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/x86_64
Kyle McMartin 43d64b
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Kyle McMartin 076944
   pushd tools/power/x86/x86_energy_perf_policy/
Kyle McMartin 43d64b
   %{make}
Kyle McMartin 076944
   popd
Kyle McMartin 076944
   pushd tools/power/x86/turbostat
Kyle McMartin 43d64b
   %{make}
Kyle McMartin 076944
   popd
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
ec0fd9
pushd tools/thermal/tmon/
ec0fd9
%{make}
ec0fd9
popd
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer f0f4ff
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer f0f4ff
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer f0f4ff
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer f0f4ff
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer f0f4ff
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer f0f4ff
# signing the modules we actually built/installed in that flavour.  3) We
Kyle McMartin d0a8cf
# grab the arch and invoke mod-sign.sh command to actually sign the modules.
Josh Boyer f0f4ff
#
Josh Boyer f0f4ff
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer f0f4ff
# that will strip the signature off of the modules.
Josh Boyer f0f4ff
Kyle McMartin 92559e
%define __modsign_install_post \
Kyle McMartin f9a5fa
  if [ "%{signmodules}" -eq "1" ]; then \
Kyle McMartin 63cb38
    if [ "%{with_pae}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+%{pae} signing_key.x509.sign+%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin 63cb38
    if [ "%{with_debug}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+debug signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin 63cb38
    if [ "%{with_pae_debug}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+%{pae}debug signing_key.x509.sign+%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}debug/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin f9a5fa
    if [ "%{with_up}" -ne "0" ]; then \
Kyle McMartin 63cb38
      %{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
Josh Boyer f0f4ff
    fi \
Josh Boyer f0f4ff
  fi \
Kyle McMartin 892262
  if [ "%{zipmodules}" -eq "1" ]; then \
Kyle McMartin 892262
    find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz; \
Kyle McMartin 892262
  fi \
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Kyle McMartin 92559e
###
Kyle McMartin 92559e
### Special hacks for debuginfo subpackages.
Kyle McMartin 92559e
###
Kyle McMartin 92559e
Kyle McMartin 92559e
# This macro is used by %%install, so we must redefine it before that.
Kyle McMartin 92559e
%define debug_package %{nil}
Kyle McMartin 92559e
Kyle McMartin 92559e
%if %{with_debuginfo}
Kyle McMartin 92559e
Kyle McMartin 92559e
%define __debug_install_post \
Kyle McMartin 92559e
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Kyle McMartin 92559e
%{nil}
Kyle McMartin 92559e
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%global __debug_package 1
Jesse Keating 7a3296
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%endif
Kyle McMartin 92559e
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 92559e
#
Kyle McMartin 92559e
# Disgusting hack alert! We need to ensure we sign modules *after* all
Kyle McMartin 92559e
# invocations of strip occur, which is in __debug_install_post if
Kyle McMartin 92559e
# find-debuginfo.sh runs, and __os_install_post if not.
Kyle McMartin 92559e
#
Kyle McMartin 92559e
%define __spec_install_post \
Kyle McMartin 92559e
  %{?__debug_package:%{__debug_install_post}}\
Kyle McMartin 92559e
  %{__arch_install_post}\
Kyle McMartin 92559e
  %{__os_install_post}\
Kyle McMartin 92559e
  %{__modsign_install_post}
Kyle McMartin 92559e
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### install
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%install
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Josh Boyer 8addb5
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5
# it doesn't install itself.
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
# Install kernel headers
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a3296
Jesse Keating 7a3296
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a3296
     \( -name .install -o -name .check -o \
Jesse Keating 7a3296
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf tool binary and supporting scripts/binaries
Kyle McMartin bb584d
%{perf_make} DESTDIR=$RPM_BUILD_ROOT MULTILIBDIR=%{_lib} install-bin install-traceevent-plugins
713abc
# remove the 'trace' symlink.
713abc
rm -f %{buildroot}%{_bindir}/trace
Josh Boyer 8addb5
Kyle McMartin ec31ef
# python-perf extension
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31ef
Josh Boyer 8addb5
# perf man pages (note: implicit rpm magic compresses them later)
Josh Boyer ed7ef3
mkdir -p %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef3
pushd %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef3
tar -xf %{SOURCE10}
Josh Boyer ed7ef3
popd
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Kyle McMartin 43d64b
%{make} -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5
%find_lang cpupower
Josh Boyer 8addb5
mv cpupower.lang ../
Josh Boyer 9c44ba
%ifarch %{ix86}
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 8addb5
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   mkdir -p %{buildroot}%{_mandir}/man8
Kyle McMartin 076944
   pushd tools/power/x86/x86_energy_perf_policy
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Kyle McMartin 076944
   popd
Kyle McMartin 076944
   pushd tools/power/x86/turbostat
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Kyle McMartin 076944
   popd
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
ec0fd9
pushd tools/thermal/tmon
ec0fd9
make INSTALL_ROOT=%{buildroot} install
ec0fd9
popd
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### clean
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%clean
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### scripts
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Josh Boyer 93e777
%if %{with_tools}
Josh Boyer 8addb5
%post -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 8addb5
Josh Boyer 8addb5
%postun -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 93e777
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_post() \
Jesse Keating 7a3296
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a3296
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a3296
then\
faf252
    (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
Jesse Keating 7a3296
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a3296
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a3296
     done)\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Josh Boyer b8b278
#
Josh Boyer b8b278
# This macro defines a %%post script for a kernel*-modules-extra package.
94ce4e
# It also defines a %%postun script that does the same thing.
Kyle McMartin de50ed
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b278
#
Josh Boyer b8b278
%define kernel_modules_extra_post() \
Josh Boyer b8b278
%{expand:%%post %{?1:%{1}-}modules-extra}\
faf252
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4e
%{nil}\
94ce4e
%{expand:%%postun %{?1:%{1}-}modules-extra}\
94ce4e
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4e
%{nil}
94ce4e
94ce4e
#
aa7351
# This macro defines a %%post script for a kernel*-modules package.
94ce4e
# It also defines a %%postun script that does the same thing.
aa7351
#	%%kernel_modules_post [<subpackage>]
94ce4e
#
aa7351
%define kernel_modules_post() \
aa7351
%{expand:%%post %{?1:%{1}-}modules}\
94ce4e
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
94ce4e
%{nil}\
aa7351
%{expand:%%postun %{?1:%{1}-}modules}\
94ce4e
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b278
%{nil}
Josh Boyer 8addb5
Jesse Keating 7a3296
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_posttrans() \
94ce4e
%{expand:%%posttrans %{?1:%{1}-}core}\
faf252
/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a3296
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_post(v:r:) \
Jesse Keating 7a3296
%{expand:%%kernel_devel_post %{?-v*}}\
aa7351
%{expand:%%kernel_modules_post %{?-v*}}\
Josh Boyer b8b278
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%kernel_variant_posttrans %{?-v*}}\
94ce4e
%{expand:%%post %{?-v*:%{-v*}-}core}\
Jesse Keating 7a3296
%{-r:\
Jesse Keating 7a3296
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a3296
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a3296
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_preun() \
94ce4e
%{expand:%%preun %{?1:%{1}-}core}\
faf252
/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun
Jesse Keating 7a3296
%kernel_variant_post -r kernel-smp
Jesse Keating 7a3296
Kyle McMartin bc5f99
%kernel_variant_preun %{pae}
Kyle McMartin bc5f99
%kernel_variant_post -v %{pae} -r (kernel|kernel-smp)
Kyle McMartin bc5f99
Kyle McMartin bc5f99
%kernel_variant_post -v %{pae}debug -r (kernel|kernel-smp)
Kyle McMartin bc5f99
%kernel_variant_preun %{pae}debug
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun debug
Jesse Keating 7a3296
%kernel_variant_post -v debug
Jesse Keating 7a3296
Jesse Keating 7a3296
if [ -x /sbin/ldconfig ]
Jesse Keating 7a3296
then
Jesse Keating 7a3296
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### file lists
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
%files headers
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/include/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
%files bootwrapper
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/sbin/*
Jesse Keating 7a3296
%{_libdir}/kernel-wrapper
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%files -n perf
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_bindir}/perf
Kyle McMartin bb584d
%dir %{_libdir}/traceevent/plugins
Kyle McMartin bb584d
%{_libdir}/traceevent/plugins/*
Jesse Keating 7a3296
%dir %{_libexecdir}/perf-core
Jesse Keating 7a3296
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/perf*
6e82a6
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337c
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%files -n python-perf
Kyle McMartin 42d4c3
%defattr(-,root,root)
Kyle McMartin 42d4c3
%{python_sitearch}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%if %{with_debuginfo}
Kyle McMartin 42d4c3
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 27d8a0
Josh Boyer 27d8a0
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0
%defattr(-,root,root)
Kyle McMartin 42d4c3
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Roland McGrath 3c4ea9
Kyle McMartin 42d4c3
%if %{with_tools}
Kyle McMartin 42d4c3
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
%{_bindir}/cpupower
Josh Boyer 6ec053
%ifarch %{ix86} x86_64
Josh Boyer 8addb5
%{_bindir}/centrino-decode
Josh Boyer 8addb5
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053
%endif
Josh Boyer 8addb5
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
%{_bindir}/x86_energy_perf_policy
Josh Boyer b08093
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b08093
%{_bindir}/turbostat
Josh Boyer b08093
%{_mandir}/man8/turbostat*
Josh Boyer b08093
%endif
ec0fd9
%{_bindir}/tmon
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Roland McGrath 3c4ea9
%if %{with_debuginfo}
Josh Boyer 8addb5
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9
%defattr(-,root,root)
Roland McGrath 3c4ea9
%endif
Josh Boyer 8addb5
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 55e586
%files -n kernel-tools-libs
Josh Boyer 55e586
%{_libdir}/libcpupower.so.0
Josh Boyer 55e586
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 55e586
Josh Boyer 55e586
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5
%{_libdir}/libcpupower.so
Josh Boyer 8addb5
%{_includedir}/cpufreq.h
Josh Boyer 8addb5
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Jesse Keating 7a3296
94ce4e
# empty meta-package
94ce4e
%files
94ce4e
%defattr(-,root,root)
94ce4e
Dave Jones 166b79
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a3296
# or empty otherwise.
Jesse Keating 7a3296
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a3296
# and its devel and debuginfo packages.
Jesse Keating 7a3296
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_files(k:) \
Jesse Keating 7a3296
%if %{1}\
94ce4e
%{expand:%%files -f kernel-%{?2:%{2}-}core.list %{?2:%{2}-}core}\
Jesse Keating 7a3296
%defattr(-,root,root)\
1e17b3
%{!?_licensedir:%global license %%doc}\
1e17b3
%license linux-%{KVERREL}/COPYING\
faf252
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:+%{2}}\
faf252
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:+%{2}}.hmac \
Kyle McMartin 49ba08
%ifarch %{arm} aarch64\
faf252
/%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}} \
783eee
%endif\
faf252
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:+%{2}}\
faf252
/boot/config-%{KVERREL}%{?2:+%{2}}\
94ce4e
%ghost /boot/initramfs-%{KVERREL}%{?2:+%{2}}.img\
b7897a
%dir /lib/modules\
faf252
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}\
94ce4e
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/build\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/source\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/updates\
Jesse Keating 7a3296
%ifarch %{vdso_arches}\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/vdso\
faf252
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:+%{2}}.conf\
Jesse Keating 7a3296
%endif\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\
aa7351
%{expand:%%files -f kernel-%{?2:%{2}-}modules.list %{?2:%{2}-}modules}\
94ce4e
%defattr(-,root,root)\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a3296
%defattr(-,root,root)\
faf252
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
Josh Boyer b8b278
%{expand:%%files %{?2:%{2}-}modules-extra}\
Josh Boyer b8b278
%defattr(-,root,root)\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
Jesse Keating 7a3296
%if %{with_debuginfo}\
Jesse Keating 7a3296
%ifnarch noarch\
Jesse Keating 7a3296
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
335206
%if %{?2:1} %{!?2:0}\
335206
%{expand:%%files %{2}}\
335206
%defattr(-,root,root)\
335206
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_files %{with_up}
Jesse Keating 7a3296
%kernel_variant_files %{with_debug} debug
Kyle McMartin bc5f99
%kernel_variant_files %{with_pae} %{pae}
Kyle McMartin bc5f99
%kernel_variant_files %{with_pae_debug} %{pae}debug
Jesse Keating 7a3296
Jesse Keating 7a3296
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a3296
# and build.
Dave Jones 1d43b9
#
Dave Jones 1d43b9
# 
Dave Jones 1d43b9
#                        ___________________________________________________________
Dave Jones 1d43b9
#                       / This branch is for Fedora 21. You probably want to commit \
Dave Jones 1d43b9
#  _____ ____  _        \ to the F-20 branch instead, or in addition to this one.   /
Dave Jones 1d43b9
# |  ___|___ \/ |        -----------------------------------------------------------
Dave Jones 1d43b9
# | |_    __) | |             \   ^__^
Dave Jones 1d43b9
# |  _|  / __/| |              \  (@@)\_______
Dave Jones 1d43b9
# |_|   |_____|_|                 (__)\       )\/\
Dave Jones 1d43b9
#                                    ||----w |
Dave Jones 1d43b9
#                                    ||     ||
Jesse Keating 7a3296
%changelog
a58b43
* Mon Oct 06 2014 Kyle McMartin <kyle@fedoraproject.org>
a58b43
- enable 64K pages on arm64... (presently) needed to boot on amd seattle
a58b43
  platforms due to physical memory being unreachable.
a58b43
dbc4a9
* Mon Oct 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.17.0-300
dbc4a9
- Linux v3.17
dbc4a9
d92c81
* Thu Sep 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.3-302
a357c2
- Enable early microcode loading (rhbz 1083716)
d7c14f
- Bump prereq on dracut that defaults to early microcode
a357c2
22caf8
* Tue Sep 23 2014 Josh Boyer <jwboyer@fedoraproject.org>
22caf8
- Add patch to fix XPS 13 touchpad issue (rhbz 1123584)
22caf8
006828
* Mon Sep 22 2014 Josh Boyer <jwboyer@fedoraproject.org>
006828
- Add patch to fix i2c-hid touchpad resume (rhbz 1143812)
006828
304c6c
* Wed Sep 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.3-300
304c6c
- Linux v3.16.3
304c6c
80242f
* Mon Sep 15 2014 Josh Boyer <jwboyer@fedoraproject.org>
37af7e
- CVE-2014-6410 udf: avoid infinite loop on indirect ICBs (rhbz 1141809 1141810)
80242f
- CVE-2014-3186 HID: memory corruption via OOB write (rhbz 1141407 1141410)
80242f
2d278d
* Fri Sep 12 2014 Josh Boyer <jwboyer@fedoraproject.org>
2d278d
- CVE-2014-3181 HID: OOB write in magicmouse driver (rhbz 1141173 1141179)
2d278d
5fd278
* Thu Sep 11 2014 Josh Boyer <jwboyer@fedoraproject.org>
5fd278
- Add support for touchpad in Asus X450 and X550 (rhbz 1110011)
5fd278
a634cc
* Wed Sep 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.2-301
4b5c3c
- CVE-2014-3631 Add patch to fix oops on keyring gc (rhbz 1116347)
4b5c3c
a3f68e
* Mon Sep  8 2014 Peter Robinson <pbrobinson@fedoraproject.org>
a3f68e
- Build tools on ppc64le (rhbz 1138884)
a3f68e
- Some minor ppc64 cleanups
a3f68e
db4d06
* Fri Sep 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.2-300
db4d06
- Linux v3.16.2
db4d06
52fafd
* Thu Sep 04 2014 Josh Boyer <jwboyer@fedoraproject.org>
52fafd
- Add support for Wacom Cintiq Companion from Benjamin Tissoires (rhbz 1134969)
52fafd
88954b
* Tue Sep 02 2014 Josh Boyer <jwboyer@fedoraproject.org>
88954b
- Remove with_extra switch
88954b
0de60b
* Thu Aug 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
02f152
- Fix NFSv3 ACL regression (rhbz 1132786)
0de60b
- Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160)
0de60b
0d360d
* Wed Aug 27 2014 Justin M. Forbes <jforbes@fedoraproject.org>
0d360d
- CVE-2014-{5471,5472} isofs: Fix unbounded recursion when processing relocated
0d360d
  directories (rhbz 1134099 1134101)
0d360d
a36968
* Wed Aug 27 2014 Josh Boyer <jwboyer@fedoraproject.org>
a36968
- Disable streams on via XHCI (rhbz 1132666)
a36968
515ee0
* Tue Aug 26 2014 Peter Robinson <pbrobinson@fedoraproject.org>
515ee0
- Minor generic ARMv7 updates
515ee0
- Build tegra on both LPAE and general ARMv7 kernels (thank srwarren RHBZ 1110963)
515ee0
- Set CMA to 64mb on LPAE kernel (RHBZ 1127000)
515ee0
c7df19
* Fri Aug 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.1-301
e1ff27
- Drop userns revert patch (rhbz 917708)
e1ff27
e11f9a
* Tue Aug 19 2014 Josh Boyer <jwboyer@fedoraproject.org>
e11f9a
- Fix NFSv3 oops (rhbz 1131551)
e11f9a
d7bf64
* Fri Aug 15 2014 Peter Robinson <pbrobinson@fedoraproject.org>
d7bf64
- ARM updates for 3.16
d7bf64
- Cleanup some old removed options
d7bf64
- Disable legacy USB OTG (using new configfs equivilents)
d7bf64
- Upstream patch to fix display on qemu (VExpress A9)
d7bf64
1c39e3
* Thu Aug 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.1-300
1c39e3
- Linux v3.16.1
1c39e3
c6806e
* Thu Aug 14 2014 Hans de Goede <hdegoede@redhat.com>
c6806e
- Blacklist usb bulk streams on Etron EJ168 xhci controllers (rhbz#1121288)
c6806e
- UAS: Limit max number of requests over USB-2 to 32 (rhbz#1128472)
c6806e
14c8ba
* Wed Aug 13 2014 Josh Boyer <jwboyer@fedoraproject.org>
14c8ba
- CVE-2014-{5206,5207} ro bind mount bypass with namespaces (rhbz 1129662 1129669)
14c8ba
14c8ba
* Mon Aug 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-1
146b95
- Linux v3.16
146b95
- Disable debugging options.
146b95
82ae65
* Sun Aug  3 2014 Peter Robinson <pbrobinson@redhat.com>
82ae65
- Minor config updates for Armada and Sunxi ARM devices
82ae65
3b18c1
* Fri Aug 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git4.1
3b18c1
- Linux v3.16-rc7-84-g6f0928036bcb
3b18c1
73f882
* Thu Jul 31 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git3.1
73f882
- Linux v3.16-rc7-76-g3a1122d26c62
73f882
Kyle McMartin 3a3d32
* Wed Jul 30 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 3a3d32
- kernel-arm64.patch: fix up merge conflict and re-enable
Kyle McMartin 3a3d32
ecaa91
* Wed Jul 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git2.1
ecaa91
- Linux v3.16-rc7-64-g26bcd8b72563
ecaa91
- Temporarily disable aarch64patches
ecaa91
082b8c
* Wed Jul 30 2014 Josh Boyer <jwboyer@fedoraproject.org>
082b8c
- Apply different patch from Milan Broz to fix LUKS partitions (rhbz 1115120)
082b8c
Kyle McMartin d0ba43
* Tue Jul 29 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin d0ba43
- kernel-arm64.patch: update from upstream git.
Kyle McMartin d0ba43
b83add
* Tue Jul 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git1.1
b83add
- Linux v3.16-rc7-7-g31dab719fa50
b83add
- Reenable debugging options.
b83add
1416cd
* Mon Jul 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
e6fe38
- Make sure acpi brightness_switch is disabled (like forever in Fedora)
1416cd
- CVE-2014-5077 sctp: fix NULL ptr dereference (rhbz 1122982 1123696)
1416cd
f65a46
* Mon Jul 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc7.git0.1
f65a46
- Linux v3.16-rc7
f65a46
- Disable debugging options.
f65a46
4ff978
* Mon Jul 28 2014 Peter Robinson <pbrobinson@fedoraproject.org>
4ff978
- Add patch to fix loading of tegra drm using device tree
4ff978
5832c9
* Sat Jul 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc6.git3.1
5832c9
- Linux v3.16-rc6-139-g9c5502189fa0
5832c9
bb2e8d
* Fri Jul 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc6.git2.1
bb2e8d
- Linux v3.16-rc6-118-g82e13c71bc65
7d60e1
- Fix selinux sock_graft hook for AF_ALG address family (rhbz 1115120)
7d60e1
Kyle McMartin 2989ac
* Thu Jul 24 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 2989ac
- kernel-arm64.patch: update from upstream git.
Kyle McMartin 36ebbb
- arm64: update config-arm64 to include PCI support.
Kyle McMartin 2989ac
eae650
* Thu Jul 24 2014 Josh Boyer <jwboyer@fedoraproject.org>
b052f2
- CVE-2014-5045 vfs: refcount issues during lazy umount on symlink (rhbz 1122471 1122482)
eae650
- Fix regression in sched_setparam (rhbz 1117942)
eae650
0d6873
* Tue Jul 22 2014 Justin M. Forbes <jforbes@fedoraproject.org> - 3.16.0-0.rc6.git1.1
0d6873
- Linux v3.16-rc6-75-g15ba223
0d6873
- Reenable debugging options.
0d6873
8984fe
* Mon Jul 21 2014 Justin M. Forbes <jforbes@fedoraproject.org> - 3.16.0-0.rc6.git0.1
8984fe
- Linux v3.16-rc6
8984fe
- Disable debugging options.
8984fe
f225c0
* Mon Jul 21 2014 Peter Robinson <pbrobinson@fedoraproject.org>
f225c0
- Minor ARMv7 config update
f225c0
ed1c63
* Thu Jul 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git2.1
ed1c63
- Linux v3.16-rc5-143-gb6603fe574af
ed1c63
b8207b
* Wed Jul 16 2014 Josh Boyer <jwboyer@fedoraproject.org>
b8207b
- Enable hermes prism driver (rhbz 1120393)
b8207b
4eb107
* Wed Jul 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git1.1
4eb107
- Linux v3.16-rc5-130-g2da294474093
4eb107
- Reenable debugging options.
4eb107
1b96f5
* Mon Jul 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc5.git0.1
1b96f5
- Linux v3.16-rc5
1b96f5
- Fix i915 regression with external monitors (rhbz 1117008)
1b96f5
- Disable debugging options.
1b96f5
1e17b3
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org>
1e17b3
- Fix license handling (I hope)
1e17b3
566922
* Fri Jul 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git3.1
566922
- Linux v3.16-rc4-120-g85d90faed31e
566922
1e4c61
* Thu Jul 10 2014 Peter Robinson <pbrobinson@fedoraproject.org>
1e4c61
- Rebase Utilute and BeagleBone patches
31f322
- Minor ARM updates
55d9b1
- Enable ISL12057 RTC for ARM (NetGear ReadyNAS)
1e4c61
005b64
* Wed Jul 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git2.1
005b64
- Linux v3.16-rc4-28-g163e40743f73
005b64
- Fix bogus vdso .build-id links (rhbz 1117563)
005b64
e093b2
* Tue Jul 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git1.1
e093b2
- Linux v3.16-rc4-20-g448bfad8a185
e093b2
- Reenable debugging options.
e093b2
52d0f7
* Sun Jul 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc4.git0.1
52d0f7
- Linux v3.16-rc4
52d0f7
- Disable debugging options.
52d0f7
bce536
* Fri Jul 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc3.git3.1
bce536
- Linux v3.16-rc3-149-g034a0f6b7db7
bce536
ccf8f2
* Wed Jul 02 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc3.git2.1
ccf8f2
- Linux v3.16-rc3-62-gd92a333a65a1
ccf8f2
- Add patch to fix virt_blk oops (rhbz 1113805)
ccf8f2
Kyle McMartin 61a9ef
* Wed Jul 02 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 61a9ef
- arm64: build-in ahci, ethernet, and rtc drivers.
Kyle McMartin 61a9ef
23ff90
* Tue Jul 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc3.git1.1
23ff90
- Linux v3.16-rc3-6-g16874b2cb867
23ff90
- Reenable debugging options.
23ff90
fe0e7b
* Tue Jul  1 2014 Peter Robinson <pbrobinson@fedoraproject.org>
fe0e7b
- Minor ARMv7 cleanup
fe0e7b
Kyle McMartin e5f89c
* Mon Jun 30 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin e5f89c
- kernel-arm64.patch, update from git.
Kyle McMartin e5f89c
44fb75
* Mon Jun 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc3.git0.1.1
44fb75
- Linux v3.16-rc3
44fb75
- Enable USB rtsx drivers (rhbz 1114229)
44fb75
- Disable debugging options.
44fb75
53684d
* Fri Jun 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc2.git4.1
53684d
- Linux v3.16-rc2-222-g3493860c76eb
53684d
d52d17
* Fri Jun 27 2014 Hans de Goede <hdegoede@redhat.com>
d52d17
- Add patch to fix wifi on lenove yoga 2 series (rhbz#1021036)
d52d17
6344a4
* Thu Jun 26 2014 Josh Boyer <jwboyer@fedoraproject.org>
6344a4
- Enable rtl8192ee (rhbz 1113422)
6344a4
Kyle McMartin 0c652a
* Thu Jun 26 2014 Kyle McMartin <kyle@fedoraproject.org> - 3.16.0-0.rc2.git3.2
Kyle McMartin 0c652a
- Add kernel-arm64.patch, which contains AArch64 support destined for upstream.
Kyle McMartin 0c652a
  ssh://git.fedorahosted.org/git/kernel-arm64.git is Mark Salter's source tree
Kyle McMartin 0c652a
  integrating these patches on the devel branch. I've added a twiddle to the
Kyle McMartin 0c652a
  top of the spec file to disable the aarch64 patchset, and also set aarch64
Kyle McMartin 0c652a
  to nobuildarches, so we still get kernel-headers, but no one accidentally
Kyle McMartin 0c652a
  installs a non-booting kernel if the patchset causes rejects during a
Kyle McMartin 0c652a
  rebase.
Kyle McMartin 0c652a
b644e4
* Thu Jun 26 2014 Josh Boyer <jwboyer@fedoraproject.org>
b644e4
- Trimmed changelog, see fedpkg git for earlier history.
b644e4
0fe6ad
* Thu Jun 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc2.git3.1
0fe6ad
- Linux v3.16-rc2-211-gd7933ab727ed
0fe6ad
2a410d
* Wed Jun 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc2.git2.1
2a410d
- Linux v3.16-rc2-69-gd91d66e88ea9
2a410d
f60cfb
* Wed Jun 25 2014 Josh Boyer <jwboyer@fedoraproject.org>
f60cfb
- Revert commit that breaks Wacom Intuos4 from Benjamin Tissoires
f60cfb
350873
* Tue Jun 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc2.git1.1
350873
- Linux v3.16-rc2-35-g8b8f5d971584
350873
- Reenable debugging options.
350873
2c67cd
* Mon Jun 23 2014 Josh Boyer <jwboyer@fedoraproject.org>
2c67cd
- CVE-2014-4508 BUG in x86_32 syscall auditing (rhbz 1111590 1112073)
2c67cd
eb6836
* Mon Jun 23 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc2.git0.1
eb6836
- Linux v3.16-rc2
eb6836
- Disable debugging options.
eb6836
c9b2c4
* Sun Jun 22 2014 Peter Robinson <pbrobinson@fedoraproject.org>
c9b2c4
- Enable Exynos now it's finally multi platform capable
458f21
- Minor TI Keystone update
c2acdd
- ARM config cleanups
c9b2c4
eb6837
* Fri Jun 20 2014 Josh Boyer <jwboyer@fedoraproject.org>
2c67cd
- Bring in intel_pstate regression fixes for BayTrail (rhbz 1111920)
eb6837
7583b1
* Fri Jun 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc1.git4.1
7583b1
- Linux v3.16-rc1-215-g3c8fb5044583
7583b1
3933c6
* Thu Jun 19 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc1.git3.1
3933c6
- Linux v3.16-rc1-112-g894e552cfaa3
3933c6
09825c
* Thu Jun 19 2014 Peter Robinson <pbrobinson@fedoraproject.org>
09825c
- Add missing bits for NVIDIA Jetson TK1 (thanks Stephen Warren)
09825c
fb69b0
* Wed Jun 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc1.git2.1
fb69b0
- Linux v3.16-rc1-17-ge99cfa2d0634
fb69b0
c9c6ce
* Tue Jun 17 2014 Dennis Gilmore <dennis@ausil.us>
c9c6ce
- when ipuv3 moved out of staging the config was renamed
c9c6ce
- adjust the config to suit
c9c6ce
dd2be1
* Tue Jun 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc1.git1.1
dd2be1
- Linux v3.16-rc1-2-gebe06187bf2a
dd2be1
- Reenable debugging options.
dd2be1
03c28d
* Mon Jun 16 2014 Peter Robinson <pbrobinson@fedoraproject.org>
03c28d
- Enable Qualcomm SoCs on ARM
03c28d
ddd94f
* Mon Jun 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc1.git0.1
ddd94f
- Linux v3.16-rc1
ddd94f
- Disable debugging options.
ddd94f
b6e474
* Mon Jun 16 2014 Peter Robinson <pbrobinson@fedoraproject.org>
b6e474
- ARM config updates for 3.16
b6e474
79d682
* Sat Jun 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git11.1
79d682
- Linux v3.15-9930-g0e04c641b199
79d682
- Enable CONFIG_RCU_NOCB_CPU(_ALL) (rbhz 1109113)
79d682
9e4abb
* Fri Jun 13 2014 Peter Robinson <pbrobinson@fedoraproject.org>
9e4abb
- Add patch to fix build failure on aarch64
9e4abb
3bd5ee
* Fri Jun 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git10.1
3bd5ee
- Linux v3.15-9837-g682b7c1c8ea8
3bd5ee
1c9786
* Fri Jun 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git9.1
1c9786
- Linux v3.15-8981-g5c02c392cd23
1c9786
506ae8
* Fri Jun 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git8.1
506ae8
- Linux v3.15-8835-g859862ddd2b6
506ae8
39f3b4
* Fri Jun 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git7.1
39f3b4
- Linux v3.15-8556-gdfb945473ae8
39f3b4
d46442
* Fri Jun 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git6.1
d46442
- Linux v3.15-8351-g9ee4d7a65383
d46442
0fed18
* Thu Jun 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git5.1
0fed18
- Linux v3.15-8163-g5b174fd6472b
0fed18
8cc85e
* Thu Jun 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git4.1
8cc85e
- Linux v3.15-7926-gd53b47c08d8f
8cc85e
024732
* Thu Jun 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git3.1
024732
- Linux v3.15-7378-g14208b0ec569
024732
a2d52e
* Wed Jun 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git2.1
a2d52e
- Linux v3.15-7283-gda85d191f58a
a2d52e
a7fb62
* Tue Jun 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.16.0-0.rc0.git1.1
a7fb62
- Linux v3.15-7218-g3f17ea6dea8b
a7fb62
- Reenable debugging options.
a7fb62
2a04f7
* Mon Jun 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-1
2a04f7
- Linux v3.15
2a04f7
- Disable debugging options.
2a04f7
efc306
* Mon Jun  9 2014 Peter Robinson <pbrobinson@fedoraproject.org>
efc306
- Enable USB_EHCI_HCD_ORION to fix USB on Marvell (fix boot for some devices)
efc306
a279c6
* Fri Jun 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git4.1
dbcd35
- CVE-2014-3940 missing check during hugepage migration (rhbz 1104097 1105042)
a279c6
- Linux v3.15-rc8-81-g951e273060d1
a279c6
c78651
* Thu Jun 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git3.1
c78651
- Linux v3.15-rc8-72-g54539cd217d6
c78651
c414f2
* Wed Jun 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git2.1
c414f2
- Linux v3.15-rc8-58-gd2cfd3105094
c414f2
0d23ee
* Tue Jun 03 2014 Josh Boyer <jwboyer@fedoraproject.org>
0d23ee
- Add filter-ppc64p7.sh because ppc64p7 is an entirely separate RPM arch
0d23ee
be24dc
* Tue Jun 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git1.2
be24dc
- Fixes from Hans de Goede for backlight and platform drivers on various
be24dc
  machines.  (rhbz 1025690 1012674 1093171 1097436 861573)
be24dc
f5cb86
* Tue Jun 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git1.1
Kyle McMartin bb584d
- Add patch to install libtraceevent plugins from Kyle McMartin
f5cb86
- Linux v3.15-rc8-53-gcae61ba37b4c
f5cb86
- Reenable debugging options.
f5cb86
9954eb
* Mon Jun  2 2014 Peter Robinson <pbrobinson@fedoraproject.org>
9954eb
- Minor ARM MMC config updates
9954eb
d97bd1
* Mon Jun 02 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc8.git0.1
d97bd1
- Linux v3.15-rc8
d97bd1
- Disable debugging options.
d97bd1
2a0a85
* Sat May 31 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git4.2
2a0a85
- Add patch to fix dentry lockdep splat
2a0a85
f2b632
* Sat May 31 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git4.1
f2b632
- Linux v3.15-rc7-102-g1487385edb55
f2b632
a20632
* Fri May 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git3.1
a20632
- Linux v3.15-rc7-79-gfe45736f4134
a20632
- Disable CARL9170 on ppc64le
a20632
9532e0
* Thu May 29 2014 Josh Boyer <jwboyer@fedoraproject.org>
9532e0
- CVE-2014-3917 DoS with syscall auditing (rhbz 1102571 1102715)
9532e0
502439
* Wed May 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git2.1
502439
- Linux v3.15-rc7-53-g4efdedca9326
502439
d03100
* Wed May 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git1.1
d03100
- Linux v3.15-rc7-40-gcd79bde29f00
d03100
- Reenable debugging options.
d03100
ef9829
* Mon May 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc7.git0.1
ef9829
- Linux v3.15-rc7
ef9829
- Disable debugging options.
ef9829
591099
* Sun May 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc6.git1.1
591099
- Linux v3.15-rc6-213-gdb1003f23189
591099
- Reenable debugging options.
591099
89def1
* Thu May 22 2014 Josh Boyer <jwboyer@fedoraproject.org>
89def1
- Enable CONFIG_R8723AU (rhbz 1100162)
89def1
ae50ad
* Thu May 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc6.git0.1
ae50ad
- Linux v3.15-rc6
ae50ad
- Disable debugging options.
ae50ad
f47e67
* Wed May 21 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git4.1
f47e67
- Linux v3.15-rc5-270-gfba69f042ad9
f47e67
603143
* Tue May 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git3.1
603143
- Linux v3.15-rc5-157-g60b5f90d0fac
603143
a9cc54
* Mon May 19 2014 Dan Horák <dan@danny.cz>
a9cc54
- kernel metapackage shouldn't depend on subpackages we don't build
a9cc54
f05578
* Thu May 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git2.9
f05578
- Fix build fail on s390x
f05578
f19b8f
* Wed May 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git2.8
f19b8f
- Enable autoprov for kernel module Provides (rhbz 1058331)
f19b8f
- Enable xz compressed modules (from Kyle McMartin)
f19b8f
54a9e1
* Tue May 13 2014 Josh Boyer <jwboyer@fedoraproject.org>
54a9e1
- Don't try and merge local config changes on arches we aren't building
54a9e1
8ac1d4
* Tue May 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git2.1
8ac1d4
- Linux v3.15-rc5-77-g14186fea0cb0
8ac1d4
f14e7d
* Mon May 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git1.1
f14e7d
- Linux v3.15-rc5-9-g7e338c9991ec
f14e7d
- Reenable debugging options.
f14e7d
5f0cb5
* Sat May 10 2014 Peter Robinson <pbrobinson@fedoraproject.org>
5f0cb5
- Enable Marvell Dove support
5f0cb5
- Minor ARM cleanups
01fa90
- Disable some unneed drivers on ARM
5f0cb5
3db76a
* Sat May 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc5.git0.1
3db76a
- Linux v3.15-rc5
3db76a
- Disable debugging options.
3db76a
ccd294
* Fri May 09 2014 Josh Boyer <jwboyer@fedoraproject.org>
ccd294
- Move isofs to kernel-core
ccd294
64f88b
* Fri May 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc4.git4.1
64f88b
- Linux v3.15-rc4-320-gafcf0a2d9289
64f88b
5f24d8
* Thu May 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc4.git3.1
5f24d8
- Linux v3.15-rc4-298-g9f1eb57dc706
5f24d8
578819
* Wed May 07 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc4.git2.1
578819
- Linux v3.15-rc4-260-g38583f095c5a
578819
94665d
* Tue May 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc4.git1.1
94665d
- Linux v3.15-rc4-202-g30321c7b658a
94665d
- Reenable debugging options.
94665d
b597cb
* Mon May  5 2014 Peter Robinson <pbrobinson@fedoraproject.org>
b597cb
- Fix some USB on ARM LPAE kernels
b597cb
ea6c81
* Mon May 05 2014 Kyle McMartin <kyle@fedoraproject.org>
ea6c81
- Install arch/arm/include/asm/xen headers on aarch64, since the headers in
ea6c81
  arch/arm64/include/asm/xen reference them.
ea6c81
4e7d9b
* Mon May 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc4.git0.1
4e7d9b
- Linux v3.15-rc4
4e7d9b
- Disable debugging options.
4e7d9b
da8e53
* Mon May  5 2014 Hans de Goede <hdegoede@redhat.com>
da8e53
- Add use_native_brightness quirk for the ThinkPad T530 (rhbz 1089545)
da8e53
833254
* Sun May  4 2014 Peter Robinson <pbrobinson@fedoraproject.org>
833254
- General minor ARM cleanups
833254
6d90aa
* Sun May 04 2014 Josh Boyer <jwboyer@fedoraproject.org>
6d90aa
- Fix k-m-e requires on k-m-uname-r provides
6d90aa
- ONE MORE TIME WITH FEELING
6d90aa
44d2f9
* Sat May  3 2014 Peter Robinson <pbrobinson@fedoraproject.org>
44d2f9
- Disable OMAP-3 boards (use DT) and some minor omap3 config updates
44d2f9
c68aeb
* Sat May 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git5.1
c68aeb
- Linux v3.15-rc3-159-g6c6ca9c2a5b9
c68aeb
551aab
* Sat May 03 2014 Josh Boyer <jwboyer@fedoraproject.org>
1d2b6a
- Add patch to fix HID rmi driver from Benjamin Tissoires (rhbz 1090161)
1d2b6a
1d2b6a
* Sat May 03 2014 Josh Boyer <jwboyer@fedoraproject.org>
551aab
- Fix up Provides on kernel-module variant packages
551aab
- Enable CONFIG_USB_UAS unconditionally per Hans
551aab
57f790
* Fri May 02 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git4.1
57f790
- Linux v3.15-rc3-121-gb7270cce7db7
57f790
335206
* Thu May 01 2014 Josh Boyer <jwboyer@fedoraproject.org>
aa7351
- Rename kernel-drivers to kernel-modules
335206
- Add kernel metapackages for all flavors, not just debug
335206
f22ebd
* Thu May  1 2014 Hans de Goede <hdegoede@redhat.com>
f22ebd
- Add use_native_backlight quirk for 4 laptops (rhbz 983342 1093120)
f22ebd
a59a49
* Wed Apr 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git3.1
a59a49
- Linux v3.15-rc3-82-g8aa9e85adac6
a59a49
2721b2
* Wed Apr 30 2014 Josh Boyer <jwboyer@fedoraproject.org>
2721b2
- Add kernel-debug metapackage when debugbuildsenabled is set
2721b2
e3fa6f
* Wed Apr 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git2.1
e3fa6f
- Linux v3.15-rc3-62-ged8c37e158cb
e3fa6f
- Drop noarch from ExclusiveArch.  Nothing is built as noarch
e3fa6f
069d85
* Tue Apr 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.15.0-0.rc3.git1.10
069d85
- Make depmod call fatal if it errors or warns
069d85
94ce4e
* Tue Apr 29 2014 Josh Boyer <jwboyer@fedoraproject.org>
94ce4e
- Introduce kernel-core/kernel-drivers split for F21 Feature work