Jesse Keating 7a32965
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a32965
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a32965
Jesse Keating 7a32965
Summary: The Linux kernel
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a32965
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a32965
# be 0.
85cffef
%global released_kernel 1
Jesse Keating 7a32965
Josh Boyer c2a12cd
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12cd
# architectures are added.
Josh Boyer c2a12cd
%ifarch %{ix86} x86_64
Josh Boyer c2a12cd
%global signmodules 1
Josh Boyer c2a12cd
%else
Josh Boyer c2a12cd
%global signmodules 0
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Jesse Keating 7a32965
# Save original buildid for later if it's defined
Jesse Keating 7a32965
%if 0%{?buildid:1}
Jesse Keating 7a32965
%global orig_buildid %{buildid}
Jesse Keating 7a32965
%undefine buildid
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###################################################################
Jesse Keating 7a32965
# Polite request for people who spin their own kernel rpms:
Jesse Keating 7a32965
# please modify the "buildid" define in a way that identifies
Jesse Keating 7a32965
# that the kernel isn't the stock distribution kernel, for example,
Jesse Keating 7a32965
# by setting the define to ".local" or ".bz123456". This will be
Jesse Keating 7a32965
# appended to the full kernel version.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# (Uncomment the '#' and both spaces below to set the buildid.)
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# % define buildid .local
Jesse Keating 7a32965
###################################################################
Jesse Keating 7a32965
Jesse Keating 7a32965
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a32965
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a32965
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a32965
%if 0%{?orig_buildid:1}
Jesse Keating 7a32965
%if 0%{?buildid:1}
Jesse Keating 7a32965
%global srpm_buildid %{buildid}
Jesse Keating 7a32965
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define buildid %{orig_buildid}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Roland McGrath 377da6d
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6d
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6d
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a32965
#
Roland McGrath 377da6d
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6d
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6d
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6d
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6d
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6d
#
Chuck Ebbert 05e763b
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763b
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126dc
#
Chuck Ebbert 05e763b
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763b
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763b
#
697844d
%global baserelease 100
Roland McGrath 377da6d
%global fedora_build %{baserelease}
Jesse Keating 7a32965
Jesse Keating 7a32965
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8bb
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8bb
# which yields a base_sublevel of 0.
4e941e3
%define base_sublevel 11
Jesse Keating 7a32965
Jesse Keating 7a32965
## If this is a released kernel ##
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do we have a -stable update to apply?
6f3bcbe
%define stable_update 10
Jesse Keating 7a32965
# Is it a -stable RC?
Dave Jones acc1b9e
%define stable_rc 0
Jesse Keating 7a32965
# Set rpm version accordingly
Jesse Keating 7a32965
%if 0%{?stable_update}
Josh Boyer 740de53
%define stablerev %{stable_update}
Jesse Keating 7a32965
%define stable_base %{stable_update}
Jesse Keating 7a32965
%if 0%{?stable_rc}
Jesse Keating 7a32965
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a32965
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Kyle McMartin e8ba2bf
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a32965
Jesse Keating 7a32965
## The not-released-kernel case ##
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a20417
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a32965
# The rc snapshot level
85cffef
%define rcrev 0
Jesse Keating 7a32965
# The git snapshot level
f7c0765
%define gitrev 100
Jesse Keating 7a32965
# Set rpm version accordingly
Kyle McMartin e8ba2bf
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a32965
Jesse Keating 7a32965
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a32965
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a32965
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a32965
# by later arch-specific checks.
Jesse Keating 7a32965
Jesse Keating 7a32965
# The following build options are enabled by default.
Jesse Keating 7a32965
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a32965
# to 0 in here to disable them.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# standard kernel
Jesse Keating 7a32965
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a32965
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a32965
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Jarod Wilson 5b03275
# kernel-PAE (only valid for i686)
Jarod Wilson 5b03275
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a32965
# kernel-debug
Jesse Keating 7a32965
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a32965
# kernel-doc
Jesse Keating 7a32965
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a32965
# kernel-headers
Jesse Keating 7a32965
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 42d4c31
# perf
Kyle McMartin 42d4c31
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad9
# tools
Dave Jones 1d18ad9
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a32965
# kernel-debuginfo
Kyle McMartin 761d1c0
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a32965
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a32965
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a32965
# Want to build a the vsdo directories installed
Jesse Keating 7a32965
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
534352f
# kernel-kirkwood (only valid for arm)
534352f
%define with_kirkwood       %{?_without_kirkwood:       0} %{?!_without_kirkwood:       1}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Only build the base kernel (--with baseonly):
Jesse Keating 7a32965
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a32965
# Only build the smp kernel (--with smponly):
Jesse Keating 7a32965
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b03275
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b03275
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a32965
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a32965
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# should we do C=1 builds with sparse
Dave Jones 561b24a
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee033
#
Chuck Ebbert 11ee033
# build a release kernel on rawhide
Chuck Ebbert 11ee033
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a32965
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a32965
# See also 'make debug' and 'make release'.
85cffef
%define debugbuildsenabled 1
Jesse Keating 7a32965
Jesse Keating 7a32965
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a32965
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
# Build the kernel-doc package, but don't fail the build if it botches.
Chuck Ebbert c6b36e0
# Here "true" means "continue" and "false" means "fail the build".
Chuck Ebbert c6b36e0
%if 0%{?released_kernel}
Chuck Ebbert c6b36e0
%define doc_build_fail false
Chuck Ebbert c6b36e0
%else
Chuck Ebbert c6b36e0
%define doc_build_fail true
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
85cffef
%define rawhide_skip_docs 0
Chuck Ebbert c6b36e0
%if 0%{?rawhide_skip_docs}
Chuck Ebbert c6b36e0
%define with_doc 0
Chuck Ebbert c6b36e0
%define doc_build_fail true
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
Jesse Keating 7a32965
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{?stable_rc}
Jesse Keating 7a32965
%define stable_rctag .rc%{stable_rc}
Chuck Ebbert e6236b7
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
Chuck Ebbert e6236b7
%else
Chuck Ebbert e6236b7
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel
Jesse Keating 7a32965
%if 0%{?rcrev}
Jesse Keating 7a32965
%define rctag .rc%rcrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define rctag .rc0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if 0%{?gitrev}
Jesse Keating 7a32965
%define gittag .git%gitrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define gittag .git0
Jesse Keating 7a32965
%endif
Kyle McMartin 66ce81a
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# The kernel tarball/base version
Kyle McMartin e8ba2bf
%define kversion 3.%{base_sublevel}
Jesse Keating 7a32965
Jesse Keating 7a32965
%define make_target bzImage
Jesse Keating 7a32965
Jesse Keating 7a32965
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a32965
%define hdrarch %_target_cpu
Jesse Keating 7a32965
%define asmarch %_target_cpu
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{!?nopatches:1}
Jesse Keating 7a32965
%define nopatches 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vanilla}
Josh Boyer bcf7eac
# Vanilla kernels before 3.7 don't contain modsign support.  Remove this when
Josh Boyer bcf7eac
# we rebase to 3.7
Josh Boyer bcf7eac
%define signmodules 0
Jesse Keating 7a32965
%define nopatches 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{nopatches}
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%define variant -vanilla
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define variant_fedora -fedora
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define using_upstream_branch 0
Jesse Keating 7a32965
%if 0%{?upstream_branch:1}
Jesse Keating 7a32965
%define stable_update 0
Jesse Keating 7a32965
%define using_upstream_branch 1
Jesse Keating 7a32965
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a32965
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{with_debuginfo}
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define debuginfodir /usr/lib/debug
Jesse Keating 7a32965
Jesse Keating 7a32965
# kernel-PAE is only built on i686.
Jarod Wilson 5b03275
%ifnarch i686
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
534352f
# kernel-kirkwood is only built for armv5
534352f
%ifnarch armv5tel
d07b00d
%define with_kirkwood 0
a4e130d
%endif
986a9f3
Jesse Keating 7a32965
# if requested, only build base kernel
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%define with_smp 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build smp kernel
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jarod Wilson 5b03275
%define with_debug 0
Jarod Wilson 5b03275
%endif
Jarod Wilson 5b03275
Jarod Wilson 5b03275
# if requested, only build pae kernel
Jarod Wilson 5b03275
%if %{with_paeonly}
Jarod Wilson 5b03275
%define with_up 0
Jarod Wilson 5b03275
%define with_smp 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build debug kernel
Jesse Keating 7a32965
%if %{with_dbgonly}
Jesse Keating 7a32965
%if %{debugbuildsenabled}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define all_x86 i386 i686
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vdso_install}
Jesse Keating 7a32965
# These arches install vdso/ directories.
Josh Boyer 3b76903
%define vdso_arches %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Overrides for generic default options
Jesse Keating 7a32965
Josh Boyer 59694fb
# only ppc needs a separate smp kernel
Josh Boyer 59694fb
%ifnarch ppc 
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a32965
%ifnarch i686 x86_64
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# only package docs noarch
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%define with_doc 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't build noarch kernels or headers (duh)
Jesse Keating 7a32965
%ifarch noarch
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_headers 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# bootwrapper is only on ppc
Josh Boyer 3b76903
%ifnarch ppc ppc64 ppc64p7
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 1d052c7
# sparse blows up on ppc64
Dave Jones 1d052c7
%ifarch ppc64 ppc ppc64p7
Jesse Keating 7a32965
%define with_sparse 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Per-arch tweaks
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{all_x86}
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define hdrarch i386
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch x86_64
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 3b76903
%ifarch ppc64 ppc64p7
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch s390x
Jesse Keating 7a32965
%define asmarch s390
Jesse Keating 7a32965
%define hdrarch s390
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target image
Jesse Keating 7a32965
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch ppc
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{arm}
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a32965
%define image_install_path boot
Josh Boyer 8ffa0af
%define asmarch arm
Jesse Keating 7a32965
%define hdrarch arm
986a9f3
%define make_target bzImage
986a9f3
%define kernel_image arch/arm/boot/zImage
43fa717
# we only build headers/perf/tools on the base arm arches
94b0067
# just like we used to only build them on i386 for x86
be82bb8
%ifarch armv5tel
be82bb8
%define with_up 0
be82bb8
%endif
94b0067
%ifnarch armv5tel armv7hl
94b0067
%define with_headers 0
43fa717
%define with_perf 0
43fa717
%define with_tools 0
94b0067
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 03fb1ee
# Should make listnewconfig fail if there's config options
Dave Jones 03fb1ee
# printed out?
Dave Jones 03fb1ee
%if %{nopatches}%{using_upstream_branch}
Dave Jones 03fb1ee
%define listnewconfig_fail 0
Dave Jones 03fb1ee
%else
Dave Jones 03fb1ee
%define listnewconfig_fail 1
Dave Jones 03fb1ee
%endif
Dave Jones 03fb1ee
Jesse Keating 7a32965
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79a
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a32965
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a32965
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a32965
# Which is a BadThing(tm).
Jesse Keating 7a32965
Jesse Keating 7a32965
# We only build kernel-headers on the following...
Dave Jones 1d052c7
%define nobuildarches i386 s390
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %nobuildarches
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%define with_debuginfo 0
Kyle McMartin 42d4c31
%define with_perf 0
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define with_pae_debug 0
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
%define with_pae_debug %{with_debug}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 8addb5f
# Architectures we build tools/cpupower on
Josh Boyer 3b76903
%define cpupowerarchs %{ix86} x86_64 ppc ppc64 ppc64p7 %{arm}
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Three sets of minimum package version requirements in the form of Conflicts:
Jesse Keating 7a32965
# to versions below the minimum
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# First the general kernel 2.6 required versions as per
Jesse Keating 7a32965
# Documentation/Changes
Jesse Keating 7a32965
#
Dave Jones f3fbdcb
%define kernel_dot_org_conflicts  ppp < 2.4.3-3, isdn4k-utils < 3.2-32, nfs-utils < 1.2.5-7.fc17, e2fsprogs < 1.37-4, util-linux < 2.12, jfsutils < 1.1.7-2, reiserfs-utils < 3.6.19-2, xfsprogs < 2.6.13-4, procps < 3.2.5-6.3, oprofile < 0.9.1-2, device-mapper-libs < 1.02.63-2, mdadm < 3.2.1-5
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Then a series of requirements that are distribution specific, either
Jesse Keating 7a32965
# because we add patches for something, or the older versions have
Jesse Keating 7a32965
# problems with the newer kernel or lack certain things that make
Jesse Keating 7a32965
# integration in the distro harder than needed.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
Jesse Keating 7a32965
Jesse Keating 7a32965
# We moved the drm include files into kernel-headers, make sure there's
Jesse Keating 7a32965
# a recent enough libdrm-devel on the system that doesn't have those.
Jesse Keating 7a32965
%define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Dave Jones 166b79a
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a32965
# scripts use them.
Jesse Keating 7a32965
#
John W. Linville aeaaac5
%define kernel_prereq  fileutils, module-init-tools >= 3.16-4, initscripts >= 8.11.1-1, grubby >= 8.3-1
Jesse Keating 7a32965
%define initrd_prereq  dracut >= 001-7
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a32965
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a32965
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a32965
# macros defined above.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_reqprovconf \
Jesse Keating 7a32965
Provides: kernel = %{rpmversion}-%{pkg_release}\
Jesse Keating 7a32965
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-drm = 4.3.0\
Jesse Keating 7a32965
Provides: kernel-drm-nouveau = 16\
Jesse Keating 7a32965
Provides: kernel-modeset = 1\
Jesse Keating 7a32965
Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
a614d46
Provides: kernel-highbank\
a614d46
Provides: kernel-highbank-uname-r = %{KVERREL}%{?1:.%{1}}\
904ddb1
Provides: kernel-omap\
904ddb1
Provides: kernel-omap-uname-r = %{KVERREL}%{?1:.%{1}}\
3918610
Provides: kernel-tegra\
3918610
Provides: kernel-tegra-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a32965
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a32965
Requires(pre): %{initrd_prereq}\
ea640b1
Requires(pre): linux-firmware >= 20130724-0.3.git31f6b30\
Jesse Keating 7a32965
Requires(post): /sbin/new-kernel-pkg\
Jesse Keating 7a32965
Requires(preun): /sbin/new-kernel-pkg\
Jesse Keating 7a32965
Conflicts: %{kernel_dot_org_conflicts}\
Jesse Keating 7a32965
Conflicts: %{package_conflicts}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a32965
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a32965
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a32965
# isn't required for the kernel proper to function\
Jesse Keating 7a32965
AutoReq: no\
Jesse Keating 7a32965
AutoProv: yes\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Name: kernel%{?variant}
Jesse Keating 7a32965
Group: System Environment/Kernel
Dave Jones f98083c
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a32965
URL: http://www.kernel.org/
Jesse Keating 7a32965
Version: %{rpmversion}
Jesse Keating 7a32965
Release: %{pkg_release}
Jesse Keating 7a32965
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a32965
# SET %%nobuildarches (ABOVE) INSTEAD
Dave Jones 1d052c7
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm}
Jesse Keating 7a32965
ExclusiveOS: Linux
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_reqprovconf
Dave Jones efc71ad
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# List the packages used during the kernel build
Jesse Keating 7a32965
#
Jesse Keating 7a32965
BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
Chuck Ebbert 7cfa689
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
Josh Boyer 70f8133
BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config, hmaccalc
Dave Jones 70e5203
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a32965
BuildRequires: xmlto, asciidoc
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
BuildRequires: sparse >= 0.4.1
Jesse Keating 7a32965
%endif
Kyle McMartin 42d4c31
%if %{with_perf}
Dave Jones dc100f5
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison audit-libs-devel
Kyle McMartin 42d4c31
%endif
Dave Jones 1d18ad9
%if %{with_tools}
Kyle McMartin 42d4c31
BuildRequires: pciutils-devel gettext
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a32965
%if %{with_debuginfo}
Kyle McMartin 1bfd59b
# Fancy new debuginfo generation introduced in Fedora 8/RHEL 6.
Mark Wielaard ec9ad68
# The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
Mark Wielaard ec9ad68
# reduces the number of relocations in kernel module .ko.debug files and was
Mark Wielaard ec9ad68
# introduced with rpm 4.9 and elfutils 0.153.
Mark Wielaard ec9ad68
BuildRequires: rpm-build >= 4.9.0-1, elfutils >= elfutils-0.153-1
Mark Wielaard ec9ad68
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c2a12cd
%if %{signmodules}
Josh Boyer 8febe3d
BuildRequires: openssl
Josh Boyer bf81d15
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Dave Jones 8959a0e
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a32965
Josh Boyer c2a12cd
%if %{signmodules}
Josh Boyer 8febe3d
Source11: x509.genkey
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Jesse Keating 7a32965
Source15: merge.pl
Josh Boyer b8b2783
Source16: mod-extra.list
Josh Boyer 9da87a4
Source17: mod-extra.sh
Josh Boyer 8febe3d
Source18: mod-extra-sign.sh
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
Source19: Makefile.release
Jesse Keating 7a32965
Source20: Makefile.config
Jesse Keating 7a32965
Source21: config-debug
Jesse Keating 7a32965
Source22: config-nodebug
Jesse Keating 7a32965
Source23: config-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source30: config-x86-generic
Jesse Keating 7a32965
Source31: config-i686-PAE
Josh Boyer d71f188
Source32: config-x86-32-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source40: config-x86_64-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source50: config-powerpc-generic
Jesse Keating 7a32965
Source51: config-powerpc32-generic
Jesse Keating 7a32965
Source52: config-powerpc32-smp
Jesse Keating 7a32965
Source53: config-powerpc64
Josh Boyer 3b76903
Source54: config-powerpc64p7
Jesse Keating 7a32965
Jesse Keating 7a32965
Source70: config-s390x
Jesse Keating 7a32965
0f00853
# Unified ARM kernels
3918610
Source100: config-arm-generic
3918610
Source101: config-armv7
3918610
Source102: config-armv7-generic
0f00853
0f00853
# Legacy ARM kernels
3918610
Source103: config-arm-kirkwood
Jesse Keating 7a32965
Jarod Wilson 5b65297
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b65297
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b65297
Source1000: config-local
Jarod Wilson 5b65297
Josh Boyer 8addb5f
# Sources for kernel-tools
Josh Boyer 8addb5f
Source2000: cpupower.service
Josh Boyer 8addb5f
Source2001: cpupower.config
Josh Boyer 8addb5f
Jesse Keating 7a32965
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable release kernel
Jesse Keating 7a32965
%if 0%{?stable_update}
Jesse Keating 7a32965
%if 0%{?stable_base}
Josh Boyer fdb68da
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a32965
Patch00: %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if 0%{?stable_rc}
Dave Jones 7bd4dec
%define    stable_patch_01  patch-3.%{base_sublevel}.%{stable_update}-rc%{stable_rc}.xz
Jesse Keating 7a32965
Patch01: %{stable_patch_01}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a32965
# near the top of this spec file.
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{using_upstream_branch}
Jesse Keating 7a32965
### BRANCH PATCH ###
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# we also need compile fixes for -vanilla
Dave Jones e0af4e2
Patch04: compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# build tweak for build ID magic, even for -vanilla
Dave Jones e0af4e2
Patch05: makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Kyle McMartin 201b16f
Jesse Keating 7a32965
# revert upstream patches we get via other methods
Dave Jones e0af4e2
Patch09: upstream-reverts.patch
Jesse Keating 7a32965
# Git trees.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Standalone patches
Jesse Keating 7a32965
Dave Jones 64f1bc9
Patch100: taint-vbox.patch
Jesse Keating 7a32965
Dave Jones b37f31d
Patch110: vmbugon-warnon.patch
Dave Jones b37f31d
Dave Jones e0af4e2
Patch390: defaults-acpi-video.patch
20214bd
Dave Jones e0af4e2
Patch394: acpi-debug-infinite-loop.patch
Jesse Keating 7a32965
Dave Jones e0af4e2
Patch450: input-kill-stupid-messages.patch
Dave Jones e0af4e2
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a32965
Dave Jones e0af4e2
Patch460: serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch470: die-floppy-die.patch
Jesse Keating 7a32965
Dave Jones e0af4e2
Patch510: silence-noise.patch
Dave Jones e0af4e2
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a32965
Dave Jones e0af4e2
Patch800: crash-driver.patch
Jesse Keating 7a32965
Josh Boyer 306dfcc
# secure boot
85ccd6f
Patch1000: devel-pekey-secure-boot-20130502.patch
Matthew Garrett e681abd
Jesse Keating 7a32965
# virt + ksm patches
Jesse Keating 7a32965
Jesse Keating 7a32965
# DRM
Josh Boyer 0e0a3af
#atch1700: drm-edid-try-harder-to-fix-up-broken-headers.patch
dd2f784
#Patch1800: drm-vgem.patch
Kyle McMartin d3e4af8
Jesse Keating 7a32965
# nouveau + drm fixes
Jesse Keating 7a32965
# intel drm is all merged upstream
Jesse Keating 7a32965
Patch1824: drm-intel-next.patch
6df90aa
# mustard patch to shut abrt up. please drop (and notify ajax) whenever it
6df90aa
# fails to apply
6df90aa
Patch1826: drm-i915-tv-detect-hush.patch
Kyle McMartin 5acda93
Jesse Keating 7a32965
# Quiet boot fixes
Jesse Keating 7a32965
# silence the ACPI blacklist code
Dave Jones e0af4e2
Patch2802: silence-acpi-blacklist.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# media patches
Dave Jones e0af4e2
Patch2899: v4l-dvb-fixes.patch
Dave Jones e0af4e2
Patch2900: v4l-dvb-update.patch
Dave Jones e0af4e2
Patch2901: v4l-dvb-experimental.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# fs fixes
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# patches headed upstream
Dave Jones 6a501c4
Patch10000: fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c4
Jesse Keating 7a32965
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Josh Boyer fcbaf26
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
20a0130
Patch15000: nowatchdog-on-virt.patch
7a9e3a0
David Woodhouse 4f94f04
Patch20000: 0001-efifb-Skip-DMI-checks-if-the-bootloader-knows-what-i.patch
David Woodhouse 4f94f04
Patch20001: 0002-x86-EFI-Calculate-the-EFI-framebuffer-size-instead-o.patch
David Woodhouse 4f94f04
df483e6
# ARM
597b5bc
Patch21000: arm-export-read_current_timer.patch
597b5bc
3918610
# lpae
3918610
Patch21001: arm-lpae-ax88796.patch
3918610
597b5bc
# ARM omap
3918610
Patch21003: arm-omap-load-tfp410.patch
2ddf29a
df483e6
# ARM tegra
df483e6
Patch21005: arm-tegra-usb-no-reset-linux33.patch
Josh Boyer 220cb1c
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
Dave Jones 40b1a0c
Patch22000: weird-root-dentry-name-debug.patch
Dave Jones 40b1a0c
Josh Boyer 2256aa8
#rhbz 892811
Dave Jones 477047e
Patch22247: ath9k_rx_dma_stop_check.patch
Josh Boyer 2256aa8
030685d
#rhbz 927469
030685d
Patch25007: fix-child-thread-introspection.patch
030685d
Josh Boyer 82b878e
#rhbz 977040
Josh Boyer 82b878e
Patch25056: iwl3945-better-skb-management-in-rx-path.patch
Josh Boyer 82b878e
Patch25057: iwl4965-better-skb-management-in-rx-path.patch
Josh Boyer 82b878e
Josh Boyer 112c71d
#rhbz 963715
Josh Boyer 112c71d
Patch25077: media-cx23885-Fix-TeVii-S471-regression-since-introduction-of-ts2020.patch
Josh Boyer 112c71d
Neil Horman 38d9b67
#rhbz 971893
Neil Horman 38d9b67
Patch25106: bonding-driver-alb-learning.patch
Neil Horman 38d9b67
20a0130
#rhbz 985522
20a0130
Patch25107: ntp-Make-periodic-RTC-update-more-reliable.patch
20a0130
9827a32
#rhbz 902012
9827a32
Patch25114: elevator-Fix-a-race-in-elevator-switching-and-md.patch
9827a32
Patch25115: elevator-acquire-q-sysfs_lock-in-elevator_change.patch
9827a32
20a0130
#rhbz 974072
20a0130
Patch25117: rt2800-add-support-for-rf3070.patch
20a0130
088b8c8
#rhbz 1015989
088b8c8
Patch25122: netfilter-nf_conntrack-use-RCU-safe-kfree-for-conntr.patch
088b8c8
6fdf37f
#rhbz 982153
6fdf37f
Patch25123: iommu-Remove-stack-trace-from-broken-irq-remapping-warning.patch
6fdf37f
7fc3fa0
#rhbz 998732
7fc3fa0
Patch25125: vfio-iommu-Fixed-interaction-of-VFIO_IOMMU_MAP_DMA.patch
7fc3fa0
9f379b4
#rhbz 896695
9f379b4
Patch25126: 0001-iwlwifi-don-t-WARN-on-host-commands-sent-when-firmwa.patch
9f379b4
Patch25127: 0002-iwlwifi-don-t-WARN-on-bad-firmware-state.patch
9f379b4
58a132e
#rhbz 993744
58a132e
Patch25128: dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
58a132e
bc253d7
#rhbz 1000439
bc253d7
Patch25129: cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
bc253d7
6a04643
#rhbz 1010679
6a04643
Patch25130: fix-radeon-sound.patch
f0c371f
Patch25149: drm-radeon-24hz-audio-fixes.patch
6a04643
12c7ac7
#rhbz 984696
12c7ac7
Patch25132: rt2800usb-slow-down-TX-status-polling.patch
12c7ac7
24372f6
#rhbz 1023413
24372f6
Patch25135: alps-Support-for-Dell-XT2-model.patch
24372f6
56f4eb8
#rhbz 1011621
56f4eb8
Patch25137: cifs-Allow-LANMAN-auth-for-unencapsulated-auth-methods.patch
56f4eb8
288eb79
#rhbz 1025769
288eb79
Patch25142: iwlwifi-dvm-dont-override-mac80211-queue-setting.patch
288eb79
f2fe333
Patch25143: drm-qxl-backport-fixes-for-Fedora.patch
df42286
Patch25160: drm-qxl-fix-memory-leak-in-release-list-handling.patch
f2fe333
99f4e6a
Patch25144: Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch
99f4e6a
cd2a7b7
#CVE-2013-4563 rhbz 1030015 1030017
cd2a7b7
Patch25145: ipv6-fix-headroom-calculation-in-udp6_ufo_fragment.patch
cd2a7b7
741d874
#rhbz 1015905
741d874
Patch25146: 0001-ip6_output-fragment-outgoing-reassembled-skb-properl.patch
741d874
Patch25147: 0002-netfilter-push-reasm-skb-through-instead-of-original.patch
741d874
961cc93
#rhbz 1011362
961cc93
Patch25148: alx-Reset-phy-speed-after-resume.patch
961cc93
2771222
#rhbz 1031086
2771222
Patch25150: slab_common-Do-not-check-for-duplicate-slab-names.patch
2771222
be089ee
#rhbz 967652
be089ee
Patch25151: KVM-x86-fix-emulation-of-movzbl-bpl-eax.patch
be089ee
7306d34
# Fix 15sec NFS mount delay
7306d34
Patch25152: sunrpc-create-a-new-dummy-pipe-for-gssd-to-hold-open.patch
7306d34
Patch25153: sunrpc-replace-gssd_running-with-more-reliable-check.patch
7306d34
Patch25154: nfs-check-gssd-running-before-krb5i-auth.patch
7306d34
05b8b99
#CVE-2013-6382 rhbz 1033603 1034670
05b8b99
Patch25157: xfs-underflow-bug-in-xfs_attrlist_by_handle.patch
05b8b99
5b9366d
#rhbz 1022733
5b9366d
Patch25158: via-velocity-fix-netif_receive_skb-use-in-irq-disable.patch
5b9366d
fdd4605
#rhbz 998342
fdd4605
Patch25159: usbnet-fix-status-interrupt-urb-handling.patch
fdd4605
6d027eb
#CVE-2013-6405 rhbz 1035875 1035887
6d027eb
Patch25161: inet-prevent-leakage-of-uninitialized-memory-to-user.patch
6d027eb
Patch25162: inet-fix-addr_len-msg_namelen-assignment-in-recv_error-and-rxpmtu-functions.patch
6d027eb
45b5fd0
#rhbz 958826
4ec4a04
Patch25164: dell-laptop.patch
45b5fd0
26ef178
#CVE-2013-XXXX rhbz 1039845 1039874
26ef178
Patch25165: net-rework-recvmsg-handler-msg_name-and-msg_namelen-.patch
26ef178
841005a
#rhbz 1030802
841005a
Patch25170: Input-elantech-add-support-for-newer-August-2013-dev.patch
841005a
Patch25171: elantech-Properly-differentiate-between-clickpads-an.patch
26ef178
c519a21
#CVE-2013-6367 rhbz 1032207 1042081
c519a21
Patch25172: KVM-x86-Fix-potential-divide-by-0-in-lapic.patch
c519a21
537c688
#CVE-2013-6368 rhbz 1032210 1042090
537c688
Patch25173: KVM-x86-Convert-vapic-synchronization-to-_cached-functions.patch
537c688
20c5052
#CVE-2013-6376 rhbz 1033106 1042099
20c5052
Patch25174: KVM-x86-fix-guest-initiated-crash-with-x2apic.patch
20c5052
9f1cdfc
#CVE-2013-4587 rhbz 1030986 1042071
9f1cdfc
Patch25175: KVM-Improve-create-VCPU-parameter.patch
9f1cdfc
2916df0
#rhbz 1025770
2916df0
Patch25176: br-fix-use-of-rx_handler_data-in-code-executed-on-no.patch
2916df0
Josh Boyer 812ba1a
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1a
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a32965
Jesse Keating 7a32965
%description
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%package doc
Jesse Keating 7a32965
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a32965
Group: Documentation
Jesse Keating 7a32965
%description doc
Jesse Keating 7a32965
This package contains documentation files from the kernel
Jesse Keating 7a32965
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a32965
device drivers shipped with it are documented in these files.
Jesse Keating 7a32965
Jesse Keating 7a32965
You'll want to install this package if you need a reference to the
Jesse Keating 7a32965
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%package headers
Jesse Keating 7a32965
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a32965
Group: Development/System
Dave Jones d555d67
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a32965
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a32965
%description headers
Jesse Keating 7a32965
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a32965
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a32965
header files define structures and constants that are needed for
Jesse Keating 7a32965
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a32965
glibc package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package bootwrapper
Jesse Keating 7a32965
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a32965
Group: Development/System
Dave Jones 524b8cb
Requires: gzip binutils
Jesse Keating 7a32965
%description bootwrapper
Jesse Keating 7a32965
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a32965
files combining both kernel and initial ramdisk.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a32965
Group: Development/Debug
Jesse Keating 7a32965
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a32965
It provides the kernel source files common to all builds.
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%package -n perf
Kyle McMartin 42d4c31
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c31
Group: Development/System
Kyle McMartin 42d4c31
License: GPLv2
Kyle McMartin 42d4c31
%description -n perf
Kyle McMartin 42d4c31
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c31
of the Linux kernel.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n perf-debuginfo
Kyle McMartin 42d4c31
Summary: Debug information for package perf
Kyle McMartin 42d4c31
Group: Development/Debug
Kyle McMartin 42d4c31
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c31
AutoReqProv: no
Kyle McMartin 42d4c31
%description -n perf-debuginfo
Kyle McMartin 42d4c31
This package provides debug information for the perf package.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c31
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c31
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c31
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c31
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n python-perf
Kyle McMartin 42d4c31
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c31
Group: Development/Libraries
Kyle McMartin 42d4c31
%description -n python-perf
Kyle McMartin 42d4c31
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c31
written in the Python programming language to use the interface
Kyle McMartin 42d4c31
to manipulate perf events.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c31
Josh Boyer 27d8a0e
%package -n python-perf-debuginfo
Josh Boyer 27d8a0e
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0e
Group: Development/Debug
Josh Boyer 27d8a0e
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0e
AutoReqProv: no
Josh Boyer 27d8a0e
%description -n python-perf-debuginfo
Josh Boyer 27d8a0e
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0e
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
Kyle McMartin 42d4c31
%endif # with_perf
Kyle McMartin 42d4c31
Dave Jones 1d18ad9
%if %{with_tools}
Dave Jones 1d18ad9
%package -n kernel-tools
Dave Jones 1d18ad9
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a32965
Group: Development/System
Jesse Keating 7a32965
License: GPLv2
Josh Boyer 02587b4
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 3b80ddd
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad9
%description -n kernel-tools
Dave Jones 1d18ad9
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c31
and the supporting documentation.
Roland McGrath 3c4ea9a
Josh Boyer 3b80ddd
%package -n kernel-tools-libs
Josh Boyer 3b80ddd
Summary: Libraries for the kernels-tools
Josh Boyer 3b80ddd
Group: Development/System
Josh Boyer 3b80ddd
License: GPLv2
Josh Boyer 3b80ddd
%description -n kernel-tools-libs
Josh Boyer 3b80ddd
This package contains the libraries built from the tools/ directory
Josh Boyer 3b80ddd
from the kernel source.
Josh Boyer 3b80ddd
Josh Boyer 3b80ddd
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5f
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5f
Group: Development/System
Josh Boyer 8addb5f
License: GPLv2
Josh Boyer 02587b4
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad3713
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad3713
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 3b80ddd
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer b12047e
Provides: kernel-tools-devel
Josh Boyer 3b80ddd
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5f
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5f
the kernel source.
Josh Boyer 8addb5f
Dave Jones 1d18ad9
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad9
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9a
Group: Development/Debug
Roland McGrath 3c4ea9a
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9a
AutoReqProv: no
Dave Jones 1d18ad9
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad9
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9a
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9a
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9a
# of matching the pattern against the symlinks file.
Josh Boyer 3bcafa2
%{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)?|XXX' -o kernel-tools-debuginfo.list}
Kyle McMartin ec31efd
Kyle McMartin 42d4c31
%endif # with_tools
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a32965
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_debuginfo_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a32965
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a32965
Group: Development/Debug\
Jesse Keating 7a32965
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a32965
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a32965
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Jesse Keating 7a32965
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}devel\
Jesse Keating 7a32965
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
Requires(pre): /usr/bin/find\
Jesse Keating 7a32965
Requires: perl\
Jesse Keating 7a32965
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a32965
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a32965
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Josh Boyer b8b2783
# This macro creates a kernel-<subpackage>-modules-extra package.
d84177c
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b2783
#
d84177c
%define kernel_modules_extra_package() \
Josh Boyer b8b2783
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b2783
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b2783
Group: System Environment/Kernel\
Josh Boyer b8b2783
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
Josh Boyer b8b2783
Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer b8b2783
Provides: kernel-modules-extra = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer 6721e49
Provides: installonlypkg(kernel-module)\
Josh Boyer b8b2783
Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b66345b
Requires: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b2783
AutoReqProv: no\
Josh Boyer b8b2783
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b2783
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b2783
%{nil}
Josh Boyer b8b2783
Josh Boyer b8b2783
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a32965
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a32965
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_package(n:) \
Jesse Keating 7a32965
%package %1\
Jesse Keating 7a32965
Summary: %{variant_summary}\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
%kernel_reqprovconf\
Jesse Keating 7a32965
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
d84177c
%{expand:%%kernel_modules_extra_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Jesse Keating 7a32965
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a32965
%kernel_devel_package
d84177c
%kernel_modules_extra_package
Jesse Keating 7a32965
%kernel_debuginfo_package
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# Now, each variant package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a32965
%kernel_variant_package -n SMP smp
Jesse Keating 7a32965
%description smp
Jesse Keating 7a32965
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a32965
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a32965
hyperthreading technology.
Jesse Keating 7a32965
Jesse Keating 7a32965
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for PAE capable machines
Jesse Keating 7a32965
%kernel_variant_package PAE
Jesse Keating 7a32965
%description PAE
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Jesse Keating 7a32965
%kernel_variant_package PAEdebug
Jesse Keating 7a32965
Obsoletes: kernel-PAE-debug
Jesse Keating 7a32965
%description PAEdebug
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a32965
%kernel_variant_package debug
Jesse Keating 7a32965
%description debug
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
534352f
%define variant_summary The Linux kernel compiled for marvell kirkwood boards
534352f
%kernel_variant_package kirkwood
534352f
%description kirkwood
534352f
This package includes a version of the Linux kernel with support for
534352f
marvell kirkwood based systems, i.e., guruplug, sheevaplug
534352f
986a9f3
Jesse Keating 7a32965
%prep
Jesse Keating 7a32965
# do a few sanity-checks for --with *only builds
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%if !%{with_up}%{with_pae}
Jesse Keating 7a32965
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%if !%{with_smp}
Jesse Keating 7a32965
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c78a082
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763b
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763b
exit 1
Chuck Ebbert 05e763b
%endif
Chuck Ebbert 05e763b
Jesse Keating 7a32965
# more sanity checking; do it quietly
Jesse Keating 7a32965
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a32965
  for patch in %{patches} ; do
Jesse Keating 7a32965
    if [ ! -f $patch ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Jesse Keating 7a32965
fi 2>/dev/null
Jesse Keating 7a32965
Jesse Keating 7a32965
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a32965
ApplyPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
%if !%{using_upstream_branch}
Dave Jones b89c80f
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a2918
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  fi 2>/dev/null
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
  case "$patch" in
Jesse Keating 7a32965
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a32965
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a32965
  esac
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't apply patch if it's empty
Jesse Keating 7a32965
ApplyOptionalPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a32965
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a32965
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# First we unpack the kernel tarball.
Jesse Keating 7a32965
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a32965
# which speeds things up quite a bit.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update to latest upstream.
Jesse Keating 7a32965
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a32965
%else
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 166b79a
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79a
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a32965
Dave Jones 166b79a
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c0
# so we can prep different trees within a single git directory.
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c0
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9b
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c0
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a32965
Dave Jones 9e29439
# Delete all old stale trees.
Dave Jones 9e29439
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e29439
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e29439
  for i in linux-*
Dave Jones 9e29439
  do
Dave Jones 7bd4dec
     if [ -d $i ]; then
Dave Jones 7bd4dec
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4dec
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4dec
       # Move away the stale away, and delete in background.
Dave Jones 7bd4dec
       mv $i deleteme-$i
Dave Jones 7bd4dec
       rm -rf deleteme* &
Dave Jones 7bd4dec
     fi
Dave Jones 9e29439
  done
Dave Jones 9e29439
  cd ..
Dave Jones 9e29439
fi
Dave Jones 9e29439
Dave Jones 9e29439
# Generate new tree
Chuck Ebbert 26d08c0
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
    # The base vanilla version already exists.
Chuck Ebbert 26d08c0
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a32965
    for dir in vanilla-*; do
Jesse Keating 7a32965
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a32965
    done
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f pax_global_header
Chuck Ebbert 26d08c0
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a32965
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a32965
        break
Jesse Keating 7a32965
      fi
Jesse Keating 7a32965
    done
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c -T
Chuck Ebbert 26d08c0
      cp -rl $sharedir/vanilla-%{kversion} .
Jesse Keating 7a32965
    else
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14e
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a32965
Jesse Keating 7a32965
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
      break
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Chuck Ebbert 26d08c0
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
    cp -rl $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
    # Need to apply patches to the base vanilla version.
Jesse Keating 7a32965
    cp -rl vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a32965
    cd vanilla-%{vanillaversion}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update vanilla to the latest upstream.
Jesse Keating 7a32965
# (non-released_kernel case only)
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
else
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c0
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c0
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Now build the fedora kernel tree.
Josh Boyer 83337ce
cp -rl vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
# released_kernel with possible stable updates
Jesse Keating 7a32965
%if 0%{?stable_base}
Jesse Keating 7a32965
ApplyPatch %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if 0%{?stable_rc}
Jesse Keating 7a32965
ApplyPatch %{stable_patch_01}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{using_upstream_branch}
Jesse Keating 7a32965
### BRANCH APPLY ###
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a32965
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a32965
cp %{SOURCE15} .
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee033
%if %{with_release}
Chuck Ebbert c6b36e0
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee033
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e0
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
Jesse Keating 7a32965
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a32965
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a32965
Jarod Wilson 5b65297
# Merge in any user-provided local config option changes
Josh Boyer 033f53a
for i in kernel-%{version}-*.config
Jarod Wilson 5b65297
do
Jarod Wilson 5b65297
  mv $i $i.tmp
Jarod Wilson 5b65297
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b65297
  rm $i.tmp
Jarod Wilson 5b65297
done
Jarod Wilson 5b65297
Dave Jones e0af4e2
ApplyPatch makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# misc small stuff to make things compile
Jesse Keating 7a32965
#
Dave Jones e0af4e2
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Jesse Keating 7a32965
# revert patches from upstream that conflict or that we get via other means
Dave Jones e0af4e2
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a32965
Jesse Keating 7a32965
Dave Jones 64f1bc9
ApplyPatch taint-vbox.patch
Dave Jones 64f1bc9
Dave Jones b37f31d
ApplyPatch vmbugon-warnon.patch
Dave Jones b37f31d
Jesse Keating 7a32965
# Architecture patches
Jesse Keating 7a32965
# x86(-64)
Jesse Keating 7a32965
Jesse Keating 7a32965
#
986a9f3
# ARM
986a9f3
#
597b5bc
ApplyPatch arm-export-read_current_timer.patch
3918610
ApplyPatch arm-lpae-ax88796.patch
3918610
ApplyPatch arm-omap-load-tfp410.patch
df483e6
ApplyPatch arm-tegra-usb-no-reset-linux33.patch
Mauro Carvalho Chehab 0291edf
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# bugfixes to drivers and filesystems
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ext4
Jesse Keating 7a32965
Jesse Keating 7a32965
# xfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# btrfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# eCryptfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# USB
Jesse Keating 7a32965
Jesse Keating 7a32965
# WMI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Dave Jones e0af4e2
ApplyPatch defaults-acpi-video.patch
Dave Jones e0af4e2
ApplyPatch acpi-debug-infinite-loop.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# PCI
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# SCSI Bits.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ALSA
Jesse Keating 7a32965
Jesse Keating 7a32965
# Networking
Jesse Keating 7a32965
Jesse Keating 7a32965
# Misc fixes
Jesse Keating 7a32965
# The input layer spews crap no-one cares about.
Dave Jones e0af4e2
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a32965
ApplyPatch die-floppy-die.patch
Jesse Keating 7a32965
Dave Jones e0af4e2
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Allow to use 480600 baud on 16C950 UARTs
Dave Jones e0af4e2
ApplyPatch serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Silence some useless messages that still get printed with 'quiet'
Dave Jones e0af4e2
ApplyPatch silence-noise.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Make fbcon not show the penguins with 'quiet'
Dave Jones e0af4e2
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Changes to upstream defaults.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# /dev/crash driver.
Dave Jones e0af4e2
ApplyPatch crash-driver.patch
Jesse Keating 7a32965
Josh Boyer 306dfcc
# secure boot
85ccd6f
ApplyPatch devel-pekey-secure-boot-20130502.patch
Matthew Garrett e681abd
Jesse Keating 7a32965
# Assorted Virt Fixes
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# DRM core
Josh Boyer 0e0a3af
#ApplyPatch drm-edid-try-harder-to-fix-up-broken-headers.patch
dd2f784
#ApplyPatch drm-vgem.patch
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# Nouveau DRM
Kyle McMartin d3e4af8
Kyle McMartin d3e4af8
# Intel DRM
Jesse Keating 7a32965
ApplyOptionalPatch drm-intel-next.patch
6df90aa
ApplyPatch drm-i915-tv-detect-hush.patch
Dave Jones 19e3780
Jesse Keating 7a32965
# silence the ACPI blacklist code
Dave Jones e0af4e2
ApplyPatch silence-acpi-blacklist.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# V4L/DVB updates/fixes/experimental drivers
Jesse Keating 7a32965
#  apply if non-empty
Dave Jones e0af4e2
ApplyOptionalPatch v4l-dvb-fixes.patch
Dave Jones e0af4e2
ApplyOptionalPatch v4l-dvb-update.patch
Dave Jones e0af4e2
ApplyOptionalPatch v4l-dvb-experimental.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Patches headed upstream
Dave Jones 6a501c4
ApplyPatch fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c4
Jesse Keating 7a32965
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Dave Jones 7bd4dec
# FIXME: REBASE
Dave Jones 7bd4dec
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
20a0130
# Disable watchdog on virtual machines.
20a0130
ApplyPatch nowatchdog-on-virt.patch
20a0130
Dave Jones 03fb1ee
#ApplyPatch 0001-efifb-Skip-DMI-checks-if-the-bootloader-knows-what-i.patch
Dave Jones 03fb1ee
#ApplyPatch 0002-x86-EFI-Calculate-the-EFI-framebuffer-size-instead-o.patch
David Woodhouse 4f94f04
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
Dave Jones 40b1a0c
ApplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0c
Josh Boyer 2256aa8
#rhbz 892811
Josh Boyer 2256aa8
ApplyPatch ath9k_rx_dma_stop_check.patch
Josh Boyer 2256aa8
030685d
#rhbz 927469
030685d
ApplyPatch fix-child-thread-introspection.patch
030685d
Josh Boyer 82b878e
#rhbz 977040
Josh Boyer 82b878e
ApplyPatch iwl3945-better-skb-management-in-rx-path.patch
Josh Boyer 82b878e
ApplyPatch iwl4965-better-skb-management-in-rx-path.patch
Josh Boyer 82b878e
Josh Boyer 112c71d
#rhbz 963715
Josh Boyer 112c71d
ApplyPatch media-cx23885-Fix-TeVii-S471-regression-since-introduction-of-ts2020.patch
Josh Boyer 112c71d
20a0130
#rhbz 985522
20a0130
ApplyPatch ntp-Make-periodic-RTC-update-more-reliable.patch
20a0130
Neil Horman 38d9b67
#rhbz 971893
Neil Horman 38d9b67
ApplyPatch bonding-driver-alb-learning.patch
Neil Horman 38d9b67
9827a32
#rhbz 902012
9827a32
ApplyPatch elevator-Fix-a-race-in-elevator-switching-and-md.patch
9827a32
ApplyPatch elevator-acquire-q-sysfs_lock-in-elevator_change.patch
9827a32
20a0130
#rhbz 974072
20a0130
ApplyPatch rt2800-add-support-for-rf3070.patch
20a0130
088b8c8
#rhbz 1015989
088b8c8
ApplyPatch netfilter-nf_conntrack-use-RCU-safe-kfree-for-conntr.patch
088b8c8
6fdf37f
#rhbz 982153
6fdf37f
ApplyPatch iommu-Remove-stack-trace-from-broken-irq-remapping-warning.patch
6fdf37f
7fc3fa0
#rhbz 998732
7fc3fa0
ApplyPatch vfio-iommu-Fixed-interaction-of-VFIO_IOMMU_MAP_DMA.patch
7fc3fa0
9f379b4
#rhbz 896695
9f379b4
ApplyPatch 0001-iwlwifi-don-t-WARN-on-host-commands-sent-when-firmwa.patch
9f379b4
ApplyPatch 0002-iwlwifi-don-t-WARN-on-bad-firmware-state.patch
9f379b4
58a132e
#rhbz 993744
58a132e
ApplyPatch dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
58a132e
bc253d7
#rhbz 1000439
bc253d7
ApplyPatch cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
bc253d7
6a04643
#rhbz 1010679
6a04643
ApplyPatch fix-radeon-sound.patch
f0c371f
ApplyPatch drm-radeon-24hz-audio-fixes.patch
6a04643
12c7ac7
#rhbz 984696
12c7ac7
ApplyPatch rt2800usb-slow-down-TX-status-polling.patch
12c7ac7
24372f6
#rhbz 1023413
24372f6
ApplyPatch alps-Support-for-Dell-XT2-model.patch
24372f6
56f4eb8
#rhbz 1011621
56f4eb8
ApplyPatch cifs-Allow-LANMAN-auth-for-unencapsulated-auth-methods.patch
56f4eb8
288eb79
#rhbz 1025769
288eb79
ApplyPatch iwlwifi-dvm-dont-override-mac80211-queue-setting.patch
288eb79
f2fe333
ApplyPatch drm-qxl-backport-fixes-for-Fedora.patch
df42286
ApplyPatch drm-qxl-fix-memory-leak-in-release-list-handling.patch
f2fe333
99f4e6a
ApplyPatch Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch
99f4e6a
cd2a7b7
#CVE-2013-4563 rhbz 1030015 1030017
cd2a7b7
ApplyPatch ipv6-fix-headroom-calculation-in-udp6_ufo_fragment.patch
cd2a7b7
741d874
#rhbz 1015905
741d874
ApplyPatch 0001-ip6_output-fragment-outgoing-reassembled-skb-properl.patch
741d874
ApplyPatch 0002-netfilter-push-reasm-skb-through-instead-of-original.patch
741d874
961cc93
#rhbz 1011362
961cc93
ApplyPatch alx-Reset-phy-speed-after-resume.patch
961cc93
2771222
#rhbz 1031086
2771222
ApplyPatch slab_common-Do-not-check-for-duplicate-slab-names.patch
2771222
be089ee
#rhbz 967652
be089ee
ApplyPatch KVM-x86-fix-emulation-of-movzbl-bpl-eax.patch
be089ee
7306d34
# Fix 15sec NFS mount delay
7306d34
ApplyPatch sunrpc-create-a-new-dummy-pipe-for-gssd-to-hold-open.patch
7306d34
ApplyPatch sunrpc-replace-gssd_running-with-more-reliable-check.patch
7306d34
ApplyPatch nfs-check-gssd-running-before-krb5i-auth.patch
7306d34
05b8b99
#CVE-2013-6382 rhbz 1033603 1034670
05b8b99
ApplyPatch xfs-underflow-bug-in-xfs_attrlist_by_handle.patch
05b8b99
5b9366d
#rhbz 1022733
5b9366d
ApplyPatch via-velocity-fix-netif_receive_skb-use-in-irq-disable.patch
5b9366d
fdd4605
#rhbz 998342
fdd4605
ApplyPatch usbnet-fix-status-interrupt-urb-handling.patch
fdd4605
6d027eb
#CVE-2013-6405 rhbz 1035875 1035887
6d027eb
ApplyPatch inet-prevent-leakage-of-uninitialized-memory-to-user.patch
6d027eb
ApplyPatch inet-fix-addr_len-msg_namelen-assignment-in-recv_error-and-rxpmtu-functions.patch
6d027eb
45b5fd0
#rhbz 958826
4ec4a04
ApplyPatch dell-laptop.patch
45b5fd0
26ef178
#CVE-2013-XXXX rhbz 1039845 1039874
26ef178
ApplyPatch net-rework-recvmsg-handler-msg_name-and-msg_namelen-.patch
26ef178
841005a
#rhbz 1030802
841005a
ApplyPatch Input-elantech-add-support-for-newer-August-2013-dev.patch
841005a
ApplyPatch elantech-Properly-differentiate-between-clickpads-an.patch
841005a
c519a21
#CVE-2013-6367 rhbz 1032207 1042081
c519a21
ApplyPatch KVM-x86-Fix-potential-divide-by-0-in-lapic.patch
c519a21
537c688
#CVE-2013-6368 rhbz 1032210 1042090
537c688
ApplyPatch KVM-x86-Convert-vapic-synchronization-to-_cached-functions.patch
537c688
20c5052
#CVE-2013-6376 rhbz 1033106 1042099
20c5052
ApplyPatch KVM-x86-fix-guest-initiated-crash-with-x2apic.patch
20c5052
9f1cdfc
#CVE-2013-4587 rhbz 1030986 1042071
9f1cdfc
ApplyPatch KVM-Improve-create-VCPU-parameter.patch
9f1cdfc
2916df0
#rhbz 1025770
2916df0
ApplyPatch br-fix-use-of-rx_handler_data-in-code-executed-on-no.patch
2916df0
Jesse Keating 7a32965
# END OF PATCH APPLICATIONS
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a32965
Jesse Keating 7a32965
chmod +x scripts/checkpatch.pl
Jesse Keating 7a32965
Dave Jones ed3d267
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa06609
touch .scmversion
Kyle McMartin fa06609
Jesse Keating 7a32965
# only deal with configs if we are going to build for the arch
Jesse Keating 7a32965
%ifnarch %nobuildarches
Jesse Keating 7a32965
Jesse Keating 7a32965
mkdir configs
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 2123b28
Dave Jones 03fb1ee
# now run oldconfig over all the config files
Dave Jones 03fb1ee
for i in *.config
Dave Jones 03fb1ee
do
Dave Jones 03fb1ee
  mv $i .config
Dave Jones 03fb1ee
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 03fb1ee
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 03fb1ee
%if %{listnewconfig_fail}
Dave Jones 03fb1ee
  if [ -s .newoptions ]; then
Dave Jones 03fb1ee
    cat .newoptions
Dave Jones 03fb1ee
    exit 1
Dave Jones 03fb1ee
  fi
Dave Jones 03fb1ee
%endif
Dave Jones 03fb1ee
  rm -f .newoptions
Dave Jones 03fb1ee
  make ARCH=$Arch oldnoconfig
Dave Jones 03fb1ee
  echo "# $Arch" > configs/$i
Dave Jones 03fb1ee
  cat .config >> configs/$i
Dave Jones 03fb1ee
done
Jesse Keating 7a32965
# end of kernel config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
John W. Linville fa580e5
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e5
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e5
Dave Jones 246f94f
# remove unnecessary SCM files
Dave Jones 246f94f
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94f
Jesse Keating 7a32965
cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### build
Jesse Keating 7a32965
###
Jesse Keating 7a32965
%build
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
%define sparse_mflags	C=1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a32965
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a32965
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a32965
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a32965
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a32965
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a32965
export AFTER_LINK=\
Jesse Keating 7a32965
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a32965
    				-i $@ > $@.id"'
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
cp_vmlinux()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildKernel() {
Jesse Keating 7a32965
    MakeTarget=$1
Jesse Keating 7a32965
    KernelImage=$2
Jesse Keating 7a32965
    Flavour=$3
Jesse Keating 7a32965
    InstallName=${4:-vmlinuz}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Pick the right config file for the kernel we're building
Jesse Keating 7a32965
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Jesse Keating 7a32965
    DevelDir=/usr/src/kernels/%{KVERREL}${Flavour:+.${Flavour}}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a32965
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a32965
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a32965
      CopyKernel=cp_vmlinux
Jesse Keating 7a32965
    else
Jesse Keating 7a32965
      CopyKernel=cp
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}
Jesse Keating 7a32965
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a32965
Josh Boyer 740de53
    %if 0%{?stable_update}
Josh Boyer 740de53
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de53
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de53
    %endif
Josh Boyer 740de53
Jesse Keating 7a32965
    # make sure EXTRAVERSION says what we want it to say
Josh Boyer 740de53
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
Jesse Keating 7a32965
Josh Boyer 9e4aeab
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a32965
    %if !0%{?rcrev}
Jesse Keating 7a32965
    %if 0%{?gitrev}
Josh Boyer 9e4aeab
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # and now to start the build process
Jesse Keating 7a32965
Jesse Keating 7a32965
    make -s mrproper
Jesse Keating 7a32965
    cp configs/$Config .config
Jesse Keating 7a32965
Josh Boyer f8f8ccf
    %if %{signmodules}
Josh Boyer f8f8ccf
    cp %{SOURCE11} .
Josh Boyer f8f8ccf
    chmod +x scripts/sign-file
Josh Boyer bcf7eac
    %endif
Josh Boyer f8f8ccf
Jesse Keating 7a32965
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a32965
    echo USING ARCH=$Arch
Jesse Keating 7a32965
Kyle McMartin da80d72
    make -s ARCH=$Arch oldnoconfig >/dev/null
e6eb2f8
%ifarch %{arm}
e6eb2f8
    # http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
e6eb2f8
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} KALLSYMS_EXTRA_PASS=1
556ae3e
556ae3e
    make -s ARCH=$Arch V=1 dtbs
556ae3e
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
6e30b2b
    install -m 644 arch/arm/boot/dts/*.dtb $RPM_BUILD_ROOT/boot/dtb-$KernelVer/
3b5b67b
    rm -f arch/arm/boot/dts/*.dtb
e6eb2f8
%else
Dave Jones 4d4f51e
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
e6eb2f8
%endif
Dave Jones 4d4f51e
    make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Start installing the results
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a32965
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a32965
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a32965
Jesse Keating 7a32965
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a32965
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a32965
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a32965
Jesse Keating 7a32965
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a32965
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a32965
    fi
d3182f8
    %if %{signmodules}
d3182f8
    # Sign the image if we're using EFI
d3182f8
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 48fa95f
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 48fa95f
        echo "pesigning failed"
Josh Boyer 48fa95f
        exit 1
Josh Boyer 48fa95f
    fi
d3182f8
    mv vmlinuz.signed $KernelImage
d3182f8
    %endif
Jesse Keating 7a32965
    $CopyKernel $KernelImage \
Jesse Keating 7a32965
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
Josh Boyer 70f8133
    # hmac sign the kernel for FIPS
Josh Boyer 70f8133
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f8133
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f8133
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
Josh Boyer 70f8133
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a32965
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d563
    # we'll get it from the linux-firmware package and we don't want conflicts
Jesse Keating 7a32965
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12cd
Jesse Keating 7a32965
%ifarch %{vdso_arches}
Jesse Keating 7a32965
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a32965
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a32965
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a32965
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a32965
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a32965
    # * all arch relevant include/ files
Jesse Keating 7a32965
    # * all Makefile/Kconfig files
Jesse Keating 7a32965
    # * all script/ files
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a32965
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a32965
    # first copy everything
Jesse Keating 7a32965
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -s Module.markers ]; then
Jesse Keating 7a32965
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Josh Boyer 3b76903
%ifarch ppc ppc64 ppc64p7
Jesse Keating 7a32965
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a32965
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
    fi
3b024eb
    # include the machine specific headers for ARM variants, if available.
3b024eb
%ifarch %{arm}
3b024eb
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024eb
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024eb
    fi
3b024eb
%endif
Jesse Keating 7a32965
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a32965
    # external modules can be built
Josh Boyer 34e02d7
    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 7fd125c
Jesse Keating 7a32965
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a32965
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
    if test -s vmlinux.id; then
Jesse Keating 7a32965
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a32965
    else
Roland McGrath 9b36e58
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e58
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a32965
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Generate a list of modules for block and networking.
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a32965
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list()
Jesse Keating 7a32965
    {
Jesse Keating 7a32965
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Jesse Keating 7a32965
      LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Jesse Keating 7a32965
    }
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list networking \
Josh Boyer 4215bf0
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe'
Jesse Keating 7a32965
    collect_modules_list block \
Jesse Keating 7a32965
    			 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler'
Jesse Keating 7a32965
    collect_modules_list drm \
Jesse Keating 7a32965
    			 'drm_open|drm_init'
Jesse Keating 7a32965
    collect_modules_list modesetting \
Jesse Keating 7a32965
    			 'drm_crtc_init'
Jesse Keating 7a32965
Jesse Keating 7a32965
    # detect missing or incorrect license tags
Jesse Keating 7a32965
    rm -f modinfo
Jesse Keating 7a32965
    while read i
Jesse Keating 7a32965
    do
Jesse Keating 7a32965
      echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo
Jesse Keating 7a32965
      /sbin/modinfo -l $i >> modinfo
Jesse Keating 7a32965
    done < modnames
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -E -v \
Jesse Keating 7a32965
    	  'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \
Jesse Keating 7a32965
	  modinfo && exit 1
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f modinfo modnames
Jesse Keating 7a32965
Josh Boyer 9da87a4
    # Call the modules-extra script to move things around
Josh Boyer 9da87a4
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Josh Boyer b8b2783
Josh Boyer 8febe3d
%if %{signmodules}
Josh Boyer 8febe3d
    # Save off the .tmp_versions/ directory.  We'll use it in the 
Josh Boyer 8febe3d
    # __debug_install_post macro below to sign the right things
Josh Boyer de28018
    # Also save the signing keys so we actually sign the modules with the
Josh Boyer de28018
    # right key.
Josh Boyer 8febe3d
    cp -r .tmp_versions .tmp_versions.sign${Flavour:+.${Flavour}}
Josh Boyer de28018
    cp signing_key.priv signing_key.priv.sign${Flavour:+.${Flavour}}
Josh Boyer de28018
    cp signing_key.x509 signing_key.x509.sign${Flavour:+.${Flavour}}
Josh Boyer 8febe3d
%endif
Josh Boyer 8febe3d
John W. Linville fa580e5
    # remove files that will be auto generated by depmod at rpm -i time
Josh Boyer 035f913
    for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap devname softdep
John W. Linville fa580e5
    do
John W. Linville fa580e5
      rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i
John W. Linville fa580e5
    done
John W. Linville fa580e5
Jesse Keating 7a32965
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae1
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a32965
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7d
Josh Boyer bddef7d
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7d
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7d
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7d
    # the F17 UsrMove feature.
Josh Boyer bddef7d
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b407
Kyle McMartin 4b3b407
    # prune junk from kernel-devel
Kyle McMartin 4b3b407
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
# DO it...
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# prepare directories
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image PAEdebug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image PAE
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
534352f
%if %{with_kirkwood}
534352f
BuildKernel %make_target %kernel_image kirkwood
534352f
%endif
534352f
Jesse Keating 7a32965
%if %{with_up}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smp}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 8bcddfb
%global perf_make \
Dave Jones 6bffb49
  make %{?_smp_mflags} -C tools/perf -s V=1 WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf
Kyle McMartin 8bcddfb
%{perf_make} all
Kyle McMartin 8bcddfb
%{perf_make} man || %{doc_build_fail}
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
# cpupower
Josh Boyer 8addb5f
# make sure version-gen.sh is executable.
Josh Boyer 8addb5f
chmod +x tools/power/cpupower/utils/version-gen.sh
Josh Boyer 9c44ba9
make %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba9
%ifarch %{ix86}
Josh Boyer 8addb5f
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5f
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 8addb5f
    cd -
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Josh Boyer 9c44ba9
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba9
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 9c44ba9
    cd -
Josh Boyer 9c44ba9
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
   cd tools/power/x86/x86_energy_perf_policy/
Josh Boyer b080939
   make
Josh Boyer b080939
   cd -
Josh Boyer b080939
   cd tools/power/x86/turbostat
Josh Boyer b080939
   make
Josh Boyer b080939
   cd -
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5f
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
# Make the HTML and man pages.
Chuck Ebbert 2247721
make htmldocs mandocs || %{doc_build_fail}
Jesse Keating 7a32965
Jesse Keating 7a32965
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a32965
chmod -R a=rX Documentation
Jesse Keating 7a32965
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### Special hacks for debuginfo subpackages.
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# This macro is used by %%install, so we must redefine it before that.
Jesse Keating 7a32965
%define debug_package %{nil}
Jesse Keating 7a32965
Josh Boyer 8febe3d
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer 8febe3d
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer 8febe3d
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer 8febe3d
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer 8febe3d
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer 8febe3d
# signing the modules we actually built/installed in that flavour.  3) We
Josh Boyer 8febe3d
# grab the arch and invoke 'make modules_sign' and the mod-extra-sign.sh
Josh Boyer 8febe3d
# commands to actually sign the modules.
Josh Boyer 8febe3d
#
Josh Boyer 8febe3d
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer 8febe3d
# that will strip the signature off of the modules.
Josh Boyer 8febe3d
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
%define __debug_install_post \
Jesse Keating 7a32965
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Josh Boyer 8febe3d
  if [ "%{signmodules}" == "1" ]; \
Josh Boyer 8febe3d
  then \
Josh Boyer 8febe3d
    if [ "%{with_pae}" != "0" ]; \
Josh Boyer 8febe3d
    then \
Josh Boyer 8febe3d
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-PAE.config | cut -b 3-` \
Josh Boyer 8febe3d
      rm -rf .tmp_versions \
Josh Boyer 8febe3d
      mv .tmp_versions.sign.PAE .tmp_versions \
Josh Boyer de28018
      mv signing_key.priv.sign.PAE signing_key.priv \
Josh Boyer de28018
      mv signing_key.x509.sign.PAE signing_key.x509 \
Josh Boyer 8febe3d
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.PAE \
Josh Boyer 8febe3d
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAE/extra/ \
Josh Boyer 8febe3d
    fi \
Josh Boyer 8febe3d
    if [ "%{with_debug}" != "0" ]; \
Josh Boyer 8febe3d
    then \
Josh Boyer 8febe3d
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-debug.config | cut -b 3-` \
Josh Boyer 8febe3d
      rm -rf .tmp_versions \
Josh Boyer 8febe3d
      mv .tmp_versions.sign.debug .tmp_versions \
Josh Boyer de28018
      mv signing_key.priv.sign.debug signing_key.priv \
Josh Boyer de28018
      mv signing_key.x509.sign.debug signing_key.x509 \
Josh Boyer 8febe3d
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.debug \
Josh Boyer 8febe3d
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.debug/extra/ \
Josh Boyer 8febe3d
    fi \
Josh Boyer 8febe3d
    if [ "%{with_pae_debug}" != "0" ]; \
Josh Boyer 8febe3d
    then \
Josh Boyer 8febe3d
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-PAEdebug.config | cut -b 3-` \
Josh Boyer 8febe3d
      rm -rf .tmp_versions \
Josh Boyer 8febe3d
      mv .tmp_versions.sign.PAEdebug .tmp_versions \
Josh Boyer de28018
      mv signing_key.priv.sign.PAEdebug signing_key.priv \
Josh Boyer de28018
      mv signing_key.x509.sign.PAEdebug signing_key.x509 \
Josh Boyer 8febe3d
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.PAEdebug \
Josh Boyer 8febe3d
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAEdebug/extra/ \
Josh Boyer 8febe3d
    fi \
Josh Boyer 8febe3d
    if [ "%{with_up}" != "0" ]; \
Josh Boyer 8febe3d
    then \
Josh Boyer 8febe3d
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}.config | cut -b 3-` \
Josh Boyer 8febe3d
      rm -rf .tmp_versions \
Josh Boyer 8febe3d
      mv .tmp_versions.sign .tmp_versions \
Josh Boyer de28018
      mv signing_key.priv.sign signing_key.priv \
Josh Boyer de28018
      mv signing_key.x509.sign signing_key.x509 \
Josh Boyer 8febe3d
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL} \
Josh Boyer 8febe3d
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/extra/ \
Josh Boyer 8febe3d
    fi \
Josh Boyer 8febe3d
  fi \
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%global __debug_package 1
Jesse Keating 7a32965
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### install
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%install
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a32965
man9dir=$RPM_BUILD_ROOT%{_datadir}/man/man9
Jesse Keating 7a32965
Jesse Keating 7a32965
# copy the source over
Jesse Keating 7a32965
mkdir -p $docdir
Josh Boyer 08ed142
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a32965
Jesse Keating 7a32965
# Install man pages for the kernel API.
Jesse Keating 7a32965
mkdir -p $man9dir
Jesse Keating 7a32965
find Documentation/DocBook/man -name '*.9.gz' -print0 |
Jesse Keating 7a32965
xargs -0 --no-run-if-empty %{__install} -m 444 -t $man9dir $m
Jesse Keating 7a32965
ls $man9dir | grep -q '' || > $man9dir/BROKEN
Jesse Keating 7a32965
%endif # with_doc
Jesse Keating 7a32965
Josh Boyer 8addb5f
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5f
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5f
# it doesn't install itself.
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
# Install kernel headers
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do headers_check but don't die if it fails.
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a32965
     > hdrwarnings.txt || :
Jesse Keating 7a32965
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a32965
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a32965
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a32965
   # exit 1
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a32965
     \( -name .install -o -name .check -o \
Jesse Keating 7a32965
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf tool binary and supporting scripts/binaries
Kyle McMartin 8bcddfb
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
Josh Boyer 8addb5f
Kyle McMartin ec31efd
# python-perf extension
Kyle McMartin 8bcddfb
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31efd
Josh Boyer 8addb5f
# perf man pages (note: implicit rpm magic compresses them later)
Kyle McMartin 8bcddfb
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 9c44ba9
make -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5f
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5f
%find_lang cpupower
Josh Boyer 8addb5f
mv cpupower.lang ../
Josh Boyer 9c44ba9
%ifarch %{ix86}
Josh Boyer 8addb5f
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5f
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5f
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 8addb5f
    cd -
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Josh Boyer 9c44ba9
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba9
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba9
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 9c44ba9
    cd -
Josh Boyer 9c44ba9
%endif
Josh Boyer 8addb5f
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5f
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5f
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5f
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5f
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
   mkdir -p %{buildroot}%{_mandir}/man8
Josh Boyer b080939
   cd tools/power/x86/x86_energy_perf_policy
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Josh Boyer b080939
   cd -
Josh Boyer b080939
   cd tools/power/x86/turbostat
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Josh Boyer b080939
   cd -
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### clean
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%clean
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### scripts
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Josh Boyer 93e7772
%if %{with_tools}
Josh Boyer 8addb5f
%post -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%postun -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 93e7772
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_post() \
Jesse Keating 7a32965
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a32965
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
Jesse Keating 7a32965
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a32965
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a32965
     done)\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Josh Boyer b8b2783
#
Josh Boyer b8b2783
# This macro defines a %%post script for a kernel*-modules-extra package.
d84177c
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b2783
#
Josh Boyer b8b2783
%define kernel_modules_extra_post() \
Josh Boyer b8b2783
%{expand:%%post %{?1:%{1}-}modules-extra}\
Josh Boyer b8b2783
/sbin/depmod -a %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b2783
%{nil}
Josh Boyer 8addb5f
Jesse Keating 7a32965
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_posttrans() \
Jesse Keating 7a32965
%{expand:%%posttrans %{?1}}\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --mkinitrd --dracut --depmod --update %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?1:-%{1}} --rpmposttrans %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a32965
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_post(v:r:) \
Jesse Keating 7a32965
%{expand:%%kernel_devel_post %{?-v*}}\
Josh Boyer b8b2783
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%post %{?-v*}}\
Jesse Keating 7a32965
%{-r:\
Jesse Keating 7a32965
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a32965
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a32965
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi}\
Jesse Keating 7a32965
%{expand:\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --install %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a32965
}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_preun() \
Jesse Keating 7a32965
%{expand:%%preun %{?1}}\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun
Jesse Keating 7a32965
%kernel_variant_post -r kernel-smp
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun smp
Jesse Keating 7a32965
%kernel_variant_post -v smp
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun PAE
Jesse Keating 7a32965
%kernel_variant_post -v PAE -r (kernel|kernel-smp)
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun debug
Jesse Keating 7a32965
%kernel_variant_post -v debug
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp)
Jesse Keating 7a32965
%kernel_variant_preun PAEdebug
Jesse Keating 7a32965
534352f
%kernel_variant_preun kirkwood
534352f
%kernel_variant_post -v kirkwood
534352f
Jesse Keating 7a32965
if [ -x /sbin/ldconfig ]
Jesse Keating 7a32965
then
Jesse Keating 7a32965
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### file lists
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
%files headers
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/include/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
%files bootwrapper
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/sbin/*
Jesse Keating 7a32965
%{_libdir}/kernel-wrapper
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# only some architecture builds need kernel-doc
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
%files doc
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a32965
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a32965
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a32965
%{_datadir}/man/man9/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%files -n perf
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_bindir}/perf
Jesse Keating 7a32965
%dir %{_libexecdir}/perf-core
Jesse Keating 7a32965
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/perf*
Josh Boyer 5b55e64
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337ce
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%files -n python-perf
Kyle McMartin 42d4c31
%defattr(-,root,root)
Kyle McMartin 42d4c31
%{python_sitearch}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%if %{with_debuginfo}
Kyle McMartin 42d4c31
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0e
%defattr(-,root,root)
Kyle McMartin 42d4c31
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Roland McGrath 3c4ea9a
Kyle McMartin 42d4c31
%if %{with_tools}
Kyle McMartin 42d4c31
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
%{_bindir}/cpupower
Josh Boyer 6ec053a
%ifarch %{ix86} x86_64
Josh Boyer 8addb5f
%{_bindir}/centrino-decode
Josh Boyer 8addb5f
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053a
%endif
Josh Boyer 8addb5f
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5f
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
%{_bindir}/x86_energy_perf_policy
Josh Boyer b080939
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b080939
%{_bindir}/turbostat
Josh Boyer b080939
%{_mandir}/man8/turbostat*
Josh Boyer b080939
%endif
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Roland McGrath 3c4ea9a
%if %{with_debuginfo}
Josh Boyer 8addb5f
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9a
%defattr(-,root,root)
Roland McGrath 3c4ea9a
%endif
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 3b80ddd
%files -n kernel-tools-libs
Josh Boyer 3b80ddd
%{_libdir}/libcpupower.so.0
Josh Boyer 3b80ddd
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 3b80ddd
Josh Boyer 3b80ddd
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5f
%{_libdir}/libcpupower.so
Josh Boyer 8addb5f
%{_includedir}/cpufreq.h
Josh Boyer 8addb5f
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Jesse Keating 7a32965
Dave Jones 166b79a
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a32965
# or empty otherwise.
Jesse Keating 7a32965
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a32965
# and its devel and debuginfo packages.
Jesse Keating 7a32965
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_files(k:) \
Jesse Keating 7a32965
%if %{1}\
Jesse Keating 7a32965
%{expand:%%files %{?2}}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Kyle McMartin f6dd1f4
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
Josh Boyer 70f8133
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:.%{2}}.hmac \
556ae3e
%ifarch %{arm}\
556ae3e
/%{image_install_path}/dtb-%{KVERREL}%{?2:.%{2}} \
556ae3e
%endif\
Kyle McMartin d287769
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
/boot/config-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
Jesse Keating 7a32965
%ifarch %{vdso_arches}\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
Jesse Keating 7a32965
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
Jesse Keating 7a32965
%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
Jesse Keating 7a32965
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Josh Boyer b8b2783
%{expand:%%files %{?2:%{2}-}modules-extra}\
Josh Boyer b8b2783
%defattr(-,root,root)\
Josh Boyer b8b2783
/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
Jesse Keating 7a32965
%if %{with_debuginfo}\
Jesse Keating 7a32965
%ifnarch noarch\
Jesse Keating 7a32965
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_files %{with_up}
Jesse Keating 7a32965
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a32965
%kernel_variant_files %{with_debug} debug
Jesse Keating 7a32965
%kernel_variant_files %{with_pae} PAE
Jesse Keating 7a32965
%kernel_variant_files %{with_pae_debug} PAEdebug
534352f
%kernel_variant_files %{with_kirkwood} kirkwood
Jesse Keating 7a32965
Jesse Keating 7a32965
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a32965
# and build.
Jesse Keating 7a32965
Josh Boyer 3575ffb
#  ___________________________________________________________
Josh Boyer 49977fe
# / This branch is for Fedora 18. You probably want to commit \
Josh Boyer 49977fe
# \ to the F-17 branch instead, or in addition to this one.   /
Josh Boyer 3575ffb
#  -----------------------------------------------------------
Josh Boyer 3575ffb
#         \   ^__^
Josh Boyer 3575ffb
#          \  (@@)\_______
Josh Boyer 3575ffb
#             (__)\       )\/\
Josh Boyer 3575ffb
#                 ||----w |
Josh Boyer 3575ffb
#                 ||     ||
Jesse Keating 7a32965
%changelog
2916df0
* Mon Dec 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
2916df0
- Fix host lockup in bridge code when starting from virt guest (rhbz 1025770)
2916df0
c519a21
* Thu Dec 12 2013 Josh Boyer <jwboyer@fedoraproject.org>
9f1cdfc
- CVE-2013-4587 kvm: out-of-bounds access (rhbz 1030986 1042071)
20c5052
- CVE-2013-6376 kvm: BUG_ON in apic_cluster_id (rhbz 1033106 1042099)
537c688
- CVE-2013-6368 kvm: cross page vapic_addr access (rhbz 1032210 1042090)
c519a21
- CVE-2013-6367 kvm: division by 0 in apic_get_tmcct (rhbz 1032207 1042081)
c519a21
841005a
* Wed Dec 11 2013 Josh Boyer <jwboyer@fedoraproject.org>
841005a
- Add patches to support ETPS/2 Elantech touchpads (rhbz 1030802)
841005a
26ef178
* Tue Dec 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
26ef178
- CVE-2013-XXXX net: memory leak in recvmsg (rhbz 1039845 1039874)
26ef178
45b5fd0
* Tue Dec 03 2013 Josh Boyer <jwboyer@fedoraproject.org>
45b5fd0
- Add patches to fix rfkill switch on Dell machines (rhbz 958826)
45b5fd0
6d027eb
* Sat Nov 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
6d027eb
- CVE-2013-6405 net: leak of uninited mem to userspace via recv syscalls (rhbz 1035875 1035887)
6d027eb
6f3bcbe
* Fri Nov 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.10-100
6f3bcbe
- Linux v3.11.10
df42286
- Fix memory leak in qxl (from Dave Airlie)
df42286
05b8b99
* Tue Nov 26 2013 Josh Boyer <jwboyer@fedoraproject.org>
fdd4605
- Add patch to fix usbnet URB handling (rhbz 998342)
5b9366d
- Fix crash in via-velocity driver (rhbz 1022733)
05b8b99
- CVE-2013-6382 xfs: missing check for ZERO_SIZE_PTR (rhbz 1033603 1034670)
05b8b99
e76774d
* Mon Nov 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
457c715
- CVE-2013-6380 aacraid: invalid pointer dereference (rhbz 1033593 1034304)
e76774d
- CVE-2013-6378 libertas: potential oops in debugfs (rhbz 1033578 1034183)
e76774d
7306d34
* Fri Nov 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
7306d34
- Add patches from Jeff Layton to fix 15sec NFS mount hang
7306d34
98d2c80
* Wed Nov 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.9-100
98d2c80
- Linux v3.11.9
98d2c80
741d874
* Mon Nov 18 2013 Josh Boyer <jwboyer@fedoraproject.org>
be089ee
- Add patch to fix rhel5.9 KVM guests (rhbz 967652)
2771222
- Add patch to fix crash from slab when using md-raid mirrors (rhbz 1031086)
f0c371f
- Add patches from Pierre Ossman to fix 24Hz/24p radeon audio (rhbz 1010679)
961cc93
- Add patch to fix ALX phy issues after resume (rhbz 1011362)
741d874
- Fix ipv6 sit panic with packet size > mtu (from Michele Baldessari) (rbhz 1015905)
741d874
cd2a7b7
* Thu Nov 14 2013 Josh Boyer <jwboyer@fedoraproject.org>
cd2a7b7
- CVE-2013-4563: net: large udp packet over IPv6 over UFO-enabled device with TBF qdisc panic (rhbz 1030015 1030017)
cd2a7b7
73a4ef0
* Wed Nov 13 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.8-100
73a4ef0
- Linux v3.11.8
73a4ef0
f2fe333
* Sat Nov 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
99f4e6a
- Add patch from Daniel Stone to avoid high order allocations in evdev
f2fe333
- Add qxl backport fixes from Dave Airlie
f2fe333
288eb79
* Mon Nov 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.7-100
288eb79
- Add patch to fix iwlwifi queue settings backtrace (rhbz 1025769)
288eb79
288eb79
* Mon Nov 04 2013 Justin M. Forbes <jforbes@fedoraproject.org>
697844d
- Linux v3.11.7
697844d
f1987ed
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.6-101
f1987ed
- Revert blocking patches causing systemd to crash on resume (rhbz 1010603)
65f14f4
- CVE-2013-4348 net: deadloop path in skb_flow_dissect (rhbz 1007939 1025647)
65f14f4
26d3ee3
* Thu Oct 31 2013 Josh Boyer <jwboyer@fedoraprorject.org>
26d3ee3
- Fix display regression on Dell XPS 13 machines (rhbz 995782)
26d3ee3
56f4eb8
* Tue Oct 29 2013 Josh Boyer <jwboyer@fedoraproject.org>
56f4eb8
- Fix plaintext auth regression in cifs (rhbz 1011621)
56f4eb8
24372f6
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
c8cb072
- CVE-2013-4470 net: memory corruption with UDP_CORK and UFO (rhbz 1023477 1023495)
24372f6
- Add touchpad support for Dell XT2 (rhbz 1023413)
24372f6
10ef192
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
10ef192
- Add patch to fix warning in tcp_fastretrans_alert (rhbz 989251)
10ef192
e097dca
* Fri Oct 18 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.6-100
e097dca
- Linux v3.11.6
e097dca
12c7ac7
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
d840512
- Add patch to fix BusLogic error (rhbz 1015558)
12c7ac7
- Fix rt2800usb polling timeouts and throughput issues (rhbz 984696)
12c7ac7
be5fc16
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org> 
be5fc16
- Fix btrfs balance/scrub issue (rhbz 1011714)
be5fc16
6a04643
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org>
6a04643
- Fix regression in radeon sound (rhbz 1010679)
6a04643
Kyle McMartin 3b13d95
* Mon Oct 14 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 3b13d95
- Fix crash-driver.patch to properly use page_is_ram. 
Kyle McMartin 3b13d95
8acf10e
* Mon Oct 14 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.5-100
8acf10e
- Linux v3.11.5
8acf10e
bc253d7
* Fri Oct 11 2013 Josh Boyer <jwboyer@fedoraproject.org>
bc253d7
- Fix segfault in cpupower set (rhbz 1000439)
bc253d7
ea640b1
* Thu Oct 10 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.4-101
ea640b1
- Fix linux-firmware requirement
ea640b1
58a132e
* Thu Oct 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
8b0a702
- USB OHCI accept very late isochronous URBs (in 3.11.4) (rhbz 975158)
58a132e
- Fix large order allocation in dm mq policy (rhbz 993744)
58a132e
7fc3fa0
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
9f379b4
- Don't trigger a stack trace on crashing iwlwifi firmware (rhbz 896695)
7fc3fa0
- Add patch to fix VFIO IOMMU crash (rhbz 998732)
7fc3fa0
6d371dd
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org>
6d371dd
- Add patch to fix nouveau crash (rhbz 1015920)
6d371dd
4e941e3
* Tue Oct 08 2013 Justin M. Forbes <jforbes@fedoraproject.org>
4e941e3
- Linux v3.11.4
20a0130
- Add missing 3.11 patches from F19
4e941e3
088b8c8
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org>
6fdf37f
- Quiet irq remapping stack trace (rhbz 982153)
088b8c8
- Use RCU safe kfree for conntrack (rhbz 1015989)
088b8c8
7d5ba37
* Fri Oct 4 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.14-100
7d5ba37
- Linux v3.10.14
7d5ba37
00be9c0
* Thu Oct 3 2013 Josh Boyer <jwboyer@fedoraproject.org>
00be9c0
- CVE-2013-4387 ipv6: panic when UFO=On for an interface (rhbz 1011927 1015166)
00be9c0
5023d7a
* Mon Sep 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
5023d7a
- Drop VC_MUTE patch (rhbz 859485)
5023d7a
1fdfb52
* Fri Sep 27 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.13-101
1fdfb52
- Bump and tag for build
1fdfb52
9827a32
* Fri Sep 27 2013 Josh Boyer <jwboyer@fedoraproject.org>
945a21d
- Add HID revert patch to fix logitech unifying devices (rhbz 1013000)
9827a32
- Add patches to fix soft lockup from elevator changes (rhbz 902012)
9827a32
2838ee0
* Fri Sep 27 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.13-100
2838ee0
- Linux v3.10.13
2838ee0
Neil Horman 38d9b67
* Mon Sep 23 2013 Neil Horman <nhorman@redhat.com>
Neil Horman 38d9b67
- Add alb learning packet config knob (rhbz 971893)
Neil Horman 38d9b67
b3ab680
* Fri Sep 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
b3ab680
- Fix multimedia keys on Genius GX keyboard (rhbz 928561)
b3ab680
8362713
* Tue Sep 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
8362713
- CVE-2013-4345 ansi_cprng: off by one error in non-block size request (rhbz 1007690 1009136)
8362713
ef6fcfd
* Mon Sep 16 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.12-100
ef6fcfd
- Linux v3.10.12
ef6fcfd
b5802b6
* Fri Sep 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
cddf6d8
- CVE-2013-4350 net: sctp: ipv6 ipsec encryption bug in sctp_v6_xmit (rhbz 1007872 1007903)
b5802b6
- CVE-2013-4343 net: use-after-free TUNSETIFF (rhbz 1007733 1007741)
b5802b6
a227754
* Thu Sep 12 2013 Josh Boyer <jwboyer@fedoraproject.org>
a227754
- Update HID CVE fixes to fix crash from lenovo-tpkbd driver (rhbz 1003998)
a227754
Neil Horman f9abad3
* Wed Sep 11 2013 Neil Horman <nhorman@redhat.com>
Neil Horman f9abad3
- Fix race in crypto larval lookup
Neil Horman f9abad3
4949ed8
* Mon Sep 09 2013 Josh Boyer <jwboyer@fedoraproject.org> 3.10.11-100
dd3844f
- Fix system freeze due to incorrect rt2800 initialization (rhbz 1000679)
dd3844f
4949ed8
* Mon Sep 09 2013 Justin M. Forbes <jforbes@fedoraproject.org>
e0efd04
- Linux v3.10.11
e0efd04
2392a89
* Fri Aug 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
2392a89
- Fix HID CVEs.  Absurd.
2392a89
- CVE-2013-2888 rhbz 1000451 1002543 CVE-2013-2889 rhbz 999890 1002548
2392a89
- CVE-2013-2891 rhbz 999960 1002555  CVE-2013-2892 rhbz 1000429 1002570
2392a89
- CVE-2013-2893 rhbz 1000414 1002575 CVE-2013-2894 rhbz 1000137 1002579
2392a89
- CVE-2013-2895 rhbz 1000360 1002581 CVE-2013-2896 rhbz 1000494 1002594
2392a89
- CVE-2013-2897 rhbz 1000536 1002600 CVE-2013-2899 rhbz 1000373 1002604
2392a89
6f9dd97
* Thu Aug 29 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.10-100
6f9dd97
- Linux v3.10.10
6f9dd97
c6db3c3
* Wed Aug 28 2013 Josh Boyer <jwboyer@fedoraproject.org>
c6db3c3
- Add mei patches that fix various s/r issues (rhbz 994824 989373)
c6db3c3
33cc777
* Wed Aug 21 2013 Josh Boyer <jwboyer@fedoraproject.org>
97e85a3
- Add patch to fix brcmsmac oops (rhbz 989269)
33cc777
- CVE-2013-0343 handling of IPv6 temporary addresses (rhbz 914664 999380)
33cc777
33cc777
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
611904c
- Linux v3.10.9
611904c
611904c
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.10.8-100
5bf1cd4
- Linux v3.10.8
5bf1cd4
- CVE-2013-4254 ARM: perf: NULL pointer dereference in validate_event (rhbz 998878 998881)
5bf1cd4
9238c21
* Fri Aug 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
9238c21
- Add patch from Nathanael Noblet to fix mic on Gateway LT27 (rhbz 845699)
9238c21
Josh Boyer a5e751a
* Thu Aug 15 2013 Josh Boyer <jwboyer@redhat.com> - 3.10.7-100
Josh Boyer 112c71d
- Add patch to fix regression on TeVII S471 devices (rhbz 963715)
Josh Boyer a5e751a
- Linux v3.10.7
Josh Boyer a5e751a
781a64a
* Mon Aug 12 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.6-100
781a64a
- Linux v3.10.6
781a64a
15b4cca
* Wed Aug 07 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.5-101
15b4cca
- Bump for rebuild after koji hiccup
15b4cca
Josh Boyer 48fa95f
* Wed Aug 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 48fa95f
- Add zero file length check to make sure pesign didn't fail (rhbz 991808)
Josh Boyer 48fa95f
eee591e
* Tue Aug 06 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.5-100
eee591e
- update s390x config [Dan HorĂ¡k]
eee591e
d84177c
* Mon Aug 05 2013 Justin M. Forbes <jforbes@redhat.com>
9a45702
- Linux v3.10.5
9a45702
1ff229f
* Thu Aug  1 2013 Peter Robinson <pbrobinson@fedoraproject.org> - 3.10.4-100
3918610
- Rebase ARM config
3918610
85ccd6f
* Thu Aug 01 2013 Justin M. Forbes <jforbes@redhat.com>
07ec886
- Update s390x config
07ec886
07ec886
* Thu Aug 01 2013 Justin M. Forbes <jforbes@redhat.com>
85ccd6f
- Rebase to 3.10.4
85ccd6f
  dropped:
85ccd6f
   debug-bad-pte-dmi.patch
85ccd6f
   debug-bad-pte-modules.patch
85ccd6f
   VMX-x86-handle-host-TSC-calibration-failure.patch
85ccd6f
   ipv6-ip6_sk_dst_check-must-not-assume-ipv6-dst.patch
85ccd6f
   af_key-fix-info-leaks-in-notify-messages.patch
85ccd6f
   arm-tegra-fixclk.patch
85ccd6f
   vhost-net-fix-use-after-free-in-vhost_net_flush.patch
85ccd6f
   0001-drivers-crypto-nx-fix-init-race-alignmasks-and-GCM-b.patch
85ccd6f
   i7300_edac_single_mode_fixup.patch
85ccd6f
   drivers-hwmon-nct6775.patch
85ccd6f
   iwlwifi-pcie-fix-race-in-queue-unmapping.patch
85ccd6f
   iwlwifi-pcie-wake-the-queue-if-stopped-when-being-unmapped.patch
85ccd6f
   cve-2013-4125.patch
85ccd6f
   iwlwifi-add-new-pci-id-for-6x35-series.patch
85ccd6f
   ipv6-ip6_append_data_mtu-did-not-care-about-pmtudisc-and_frag_size.patch
85ccd6f
   ipv6-call-udp_push_pending_frames-when-uncorking-a-socket-with-AF_INET-pending-data.patch
85ccd6f
Josh Boyer 652a694
* Thu Aug 01 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 5499ee0
- Fix mac80211 connection issues (rhbz 981445)
Josh Boyer 652a694
- Fix firmware issues with iwl4965 and rfkill (rhbz 977053)
Josh Boyer 652a694
Josh Boyer 0a6c27a
* Mon Jul 29 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 0a6c27a
- Add support for elantech v7 devices (rhbz 969473)
Josh Boyer 0a6c27a
Josh Boyer 131f0a4
* Fri Jul 26 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 131f0a4
- Add patch to fix NULL deref in iwlwifi (rhbz 979581)
Josh Boyer 131f0a4
Josh Boyer a4d3618
* Wed Jul 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8077478
- CVE-2013-4162 net: panic while pushing pending data out of a IPv6 socket with UDP_CORK enabled (rhbz 987627 987656)
Josh Boyer a4d3618
- CVE-2013-4163 net: panic while appending data to a corked IPv6 socket in ip6_append_data_mtu (rhbz 987633 987639)
Josh Boyer a4d3618
Josh Boyer 5596f3e
* Mon Jul 22 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.11-200
Josh Boyer 6dcbc36
- Fix timer issue in bridge code (rhbz 980254)
Josh Boyer 833d99d
- Add patch for iwlwifi 6x35 devices (rhbz 986538)
Josh Boyer 53399c5
- Linux v3.9.11
Josh Boyer 53399c5
Dave Jones 2667cae
* Fri Jul 19 2013 Dave Jones <davej@redhat.com>
Dave Jones 2667cae
- CVE-2013-4125  ipv6: BUG_ON in fib6_add_rt2node() (rhbz 984664)
Dave Jones 2667cae
Josh Boyer 7eabed4
* Sat Jul 13 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.10-200
Josh Boyer 7eabed4
- Linux v3.9.10
Josh Boyer 7eabed4
Dave Jones 16dbebb
* Fri Jul 12 2013 Dave Jones <davej@redhat.com> - 3.9.9-203
Dave Jones 16dbebb
- Disable LATENCYTOP/SCHEDSTATS in non-debug builds.
Dave Jones 16dbebb
Josh Boyer 6c78bc0
* Fri Jul 12 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8c58af1
- Fix various overflow issues in ext4 (rhbz 976837)
Josh Boyer 6c78bc0
- Add iwlwifi fix for connection issue (rhbz 885407)
Josh Boyer 6c78bc0
Josh Boyer b311053
* Fri Jul 05 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b9f0d98
- Add report fixup for Genius Gila mouse from Benjamin Tissoires (rhbz 959721)
Josh Boyer 15eecb8
- Add vhost-net use-after-free fix (rhbz 976789 980643)
Josh Boyer e7d7a62
- Add fix for timer issue in bridge code (rhbz 980254)
Josh Boyer b311053
- CVE-2013-2232 ipv6: using ipv4 vs ipv6 structure during routing lookup in sendmsg (rhbz 981552 981564)
Josh Boyer b311053
Josh Boyer 3e6b75e
* Wed Jul 03 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.9-200
Josh Boyer a80f0d1
- CVE-2013-1059 libceph: Fix NULL pointer dereference in auth client code (rhbz 977356 980341)
Josh Boyer d85f8a3
- CVE-2013-2234 net: information leak in AF_KEY notify (rhbz 980995 981007)
Josh Boyer 1afd520
- Linux v3.9.9
Josh Boyer 1afd520
Josh Boyer 1afd520
* Wed Jul 03 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 82b878e
- Add patches to fix iwl skb managment (rhbz 977040)
Josh Boyer 82b878e
7ac2c9d
* Thu Jun 27 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.8-200
7ac2c9d
- Linux v3.9.8
7ac2c9d
Josh Boyer 3514094
* Thu Jun 27 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3514094
- Fix stack memory usage for DMA in ath3k (rhbz 977558)
Josh Boyer 3514094
Josh Boyer e7af473
* Wed Jun 26 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer e7af473
- Add two patches to fix bridge networking issues (rhbz 880035)
Josh Boyer e7af473
Josh Boyer d09da5d
* Mon Jun 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer d09da5d
- Fix battery issue with bluetooth keyboards (rhbz 903741)
Josh Boyer d09da5d
Josh Boyer f08e8e1
* Fri Jun 21 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 78b9117
- Add two patches to fix iwlwifi issues in unmapping
Josh Boyer f08e8e1
- Add patch to fix carl9170 oops (rhbz 967271)
Josh Boyer f08e8e1
0d22b06
* Thu Jun 20 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.7-200
0d22b06
- Linux v3.9.7
0d22b06
Mauro Carvalho Chehab c2c10b0
* Wed Jun 19 2013 Mauro Carvalho Chehab
Mauro Carvalho Chehab c2c10b0
- Add and enable upstream kernel driver for nct6775 sensors
Mauro Carvalho Chehab c2c10b0
Dave Jones 7c4fd19
* Tue Jun 18 2013 Dave Jones <davej@redhat.com>
Dave Jones 7c4fd19
- Disable MTRR sanitizer by default.
Dave Jones 7c4fd19
Josh Boyer 73be2dc
* Thu Jun 13 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.6-200
Josh Boyer 73be2dc
- Linux v3.9.6
Josh Boyer 73be2dc
Josh Boyer 729afc3
* Wed Jun 12 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c98aa69
- Fix KVM divide by zero error (rhbz 969644)
Josh Boyer 729afc3
- Add fix for rt5390/rt3290 regression (rhbz 950735)
Josh Boyer 729afc3
Josh Boyer 6bca203
* Tue Jun 11 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.5-201
Josh Boyer d6d68e3
- Add patches to fix MTRR issues in 3.9.5 (rhbz 973185)
Josh Boyer ce5fae0
- Add two patches to fix issues with vhost_net and macvlan (rhbz 954181)
Josh Boyer 2bd4b14
- CVE-2013-2164 information leak in cdrom driver (rhbz 973100 973109)
Josh Boyer 2bd4b14
Josh Boyer 6bb7417
* Mon Jun 10 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.5-200
Josh Boyer a5e016d
- Linux v3.9.5
Josh Boyer a5e016d
Josh Boyer 4c6eb69
* Fri Jun 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 33c1a67
- CVE-2013-2851 block: passing disk names as format strings (rhbz 969515 971662)
Josh Boyer 4c6eb69
- CVE-2013-2852 b43: format string leaking into error msgs (rhbz 969518 971665)
Josh Boyer 4c6eb69
Josh Boyer aec19f2
* Thu Jun 06 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 21d9566
- CVE-2013-2148 fanotify: info leak in copy_event_to_user (rhbz 971258 971261)
Josh Boyer aec19f2
- CVE-2013-2147 cpqarray/cciss: information leak via ioctl (rhbz 971242 971249)
Josh Boyer aec19f2
Josh Boyer 3339e89
* Wed Jun 05 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3339e89
- CVE-2013-2140 xen: blkback: insufficient permission checks for BLKIF_OP_DISCARD (rhbz 971146 971148)
Josh Boyer 3339e89
Josh Boyer 342e723
* Mon Jun 03 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 342e723
- Fix UEFI anti-bricking code (rhbz 964335)
Josh Boyer 342e723
Josh Boyer 4ae2403
* Fri May 31 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 4ae2403
- CVE-2013-2850 iscsi-target: heap buffer overflow on large key error (rhbz 968036 969272)
Josh Boyer 4ae2403
805d0e4
* Fri May 24 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.4-200
805d0e4
- Linux v3.9.4
805d0e4
Josh Boyer b51f2e3
* Fri May 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b51f2e3
- Add patch to quiet irq remapping failures (rhbz 948262)
Josh Boyer b51f2e3
Josh Boyer afcba0a
* Thu May 23 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer afcba0a
- Fix oops from incorrect rfkill set in hp-wmi (rhbz 964367)
Josh Boyer afcba0a
Josh Boyer 5d01e49
* Wed May 22 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 08acba8
- Fix memcmp error in iwlwifi
Josh Boyer 5d01e49
Josh Boyer ea06f64
* Tue May 21 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.3-201
Josh Boyer ea06f64
- Fix modules-extra signing with 3.9 kernels (rhbz 965181)
Josh Boyer ea06f64
Josh Boyer 58f6125
* Mon May 20 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.3-200
Josh Boyer 58f6125
- Linux 3.9.3
Josh Boyer d039438
- Update s390x config
Josh Boyer 58f6125
Josh Boyer 033f53a
* Thu May 16 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 033f53a
- Fix config-local usage (rhbz 950841)
Josh Boyer 033f53a
Dave Jones acc1b9e
* Mon May 13 2013 Dave Jones <davej@redhat.com> - 3.9.2-200
Dave Jones acc1b9e
- Linux 3.9.2
Dave Jones acc1b9e
Dave Jones e32be25
* Fri May 10 2013 Dave Jones <davej@redhat.com> - 3.9.2-0.rc1.200
Dave Jones e32be25
- Linux 3.9.2-rc1
Dave Jones e32be25
9d5f83d
* Thu May 9 2013 Peter Robinson <pbrobinson@fedoraproject.org>
9d5f83d
- Disable PL330 on ARM as it's broken on highbank
9d5f83d
597b5bc
* Wed May  8 2013 Peter Robinson <pbrobinson@fedoraproject.org>
597b5bc
- Add the ARM patches needed for 3.9 :-/
597b5bc
Dave Jones a76c0c4
* Wed May 08 2013 Dave Jones <davej@redhat.com> - 3.9.1-200
Dave Jones a76c0c4
- Linux 3.9.1
Dave Jones a76c0c4
Josh Boyer 05b62ee
* Wed May 08 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 05b62ee
- Don't remove headers explicitly exported via UAPI (rhbz 959467)
Josh Boyer 05b62ee
Josh Boyer c2a687e
* Tue May 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c2a687e
- Fix dmesg_restrict patch to avoid regression (rhbz 952655)
Josh Boyer c2a687e
Dave Jones 1ddb555
* Mon May 06 2013 Dave Jones <davej@redhat.com> - 3.9.1-0.rc1.201
Dave Jones 06b327f
- Linux 3.9.1-rc1
Dave Jones 06b327f
  merged: wireless-regulatory-fix-channel-disabling-race-condition.patch
Dave Jones 06b327f
  merged: iwlwifi-fix-freeing-uninitialized-pointer.patch
Dave Jones 06b327f
Josh Boyer f10fcf7
* Mon May 06 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f10fcf7
- Rebase F18 secure-boot patchset to Linux v3.9
Josh Boyer f10fcf7
904ddb1
* Mon May  6 2013 Peter Robinson <pbrobinson@fedoraproject.org>
904ddb1
- Initial rebase of ARM to 3.9
904ddb1
Dave Jones 2123b28
* Mon May 06 2013 Dave Jones <davej@redhat.com> - 3.9.0-200
Dave Jones 2123b28
- Rebase to Linux 3.9
Dave Jones 2123b28
  merged: silence-empty-ipi-mask-warning.patch
Dave Jones 2123b28
  merged: quiet-apm.patch
Dave Jones 2123b28
  merged: Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
Dave Jones 2123b28
  merged: Input-add-support-for-Cypress-PS2-Trackpads.patch
Dave Jones 2123b28
  merged: Input-cypress_ps2-fix-trackpadi-found-in-Dell-XPS12.patch
Dave Jones 2123b28
  merged: alps-v2.patch
Dave Jones 2123b28
  merged: userns-avoid-recursion-in-put_user_ns.patch
Dave Jones 2123b28
  merged: amd64_edac_fix_rank_count.patch
Dave Jones 2123b28
  merged: team-net-next-update-20130307.patch
Dave Jones 2123b28
  merged: uvcvideo-suspend-fix.patch
Dave Jones 2123b28
  merged: cfg80211-mac80211-disconnect-on-suspend.patch
Dave Jones 2123b28
  merged: mac80211_fixes_for_ieee80211_do_stop_while_suspend_v3.8.patch
Dave Jones 2123b28
  merged: mac80211-Dont-restart-sta-timer-if-not-running.patch
Dave Jones 2123b28
  merged: 0001-bluetooth-Add-support-for-atheros-04ca-3004-device-t.patch
Dave Jones 2123b28
  TODO: secure-boot
Dave Jones 2123b28
  TODO: ARM configs.
Dave Jones 2123b28
a7a3b25
* Wed May 01 2013 Justin M. Forbes <jforbes@redhat.com> - 3.8.11-200
a7a3b25
- Linux v3.8.11
a7a3b25
53d61ba
* Mon Apr 29 2013 Justin M. Forbes <jforbes@redhat.com> - 3.8.10-200
53d61ba
- Linux v3.8.10
53d61ba
Josh Boyer a1255c4
* Fri Apr 26 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.9-200
Josh Boyer a1255c4
- Linux v3.8.9
Josh Boyer a1255c4
Josh Boyer 8f4049f
* Wed Apr 24 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-203
Josh Boyer 24030d8
- CVE-2013-3228 irda: missing msg_namelen update in irda_recvmsg_dgram (rhbz 956069 956071)
Josh Boyer aba5c50
- CVE-2013-3230 l2tp: info leak in l2tp_ip6_recvmsg (rhbz 956088 956089)
Josh Boyer c416a99
- CVE-2013-3231 llc: Fix missing msg_namelen update in llc_ui_recvmsg (rhbz 956094 956104)
Josh Boyer 82eda85
- CVE-2013-3232 netrom: information leak via msg_name in nr_recvmsg (rhbz 956110 956113)
Josh Boyer 8499d94
- CVE-2013-3233 NFC: llcp: info leaks via msg_name in llcp_sock_recvmsg (rhbz 956125 956129)
Josh Boyer eaa7646
- CVE-2013-3234 rose: info leak via msg_name in rose_recvmsg (rhbz 956135 956139)
Josh Boyer d698a10
- CVE-2013-3076 crypto: algif suppress sending src addr info in recvmsg (rhbz 956162 956168)
Josh Boyer d698a10
Josh Boyer d698a10
* Tue Apr 23 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f300ffd
- CVE-2013-3223 ax25: information leak via msg_name in ax25_recvmsg (rhbz 955662 955666)
Josh Boyer 8addbb8
- CVE-2013-3225 Bluetooth: RFCOMM missing msg_namelen update in rfcomm_sock_recvmsg (rhbz 955649 955658)
Josh Boyer 66a9977
- CVE-2013-1979 net: incorrect SCM_CREDENTIALS passing (rhbz 955629 955647)
Josh Boyer 875e72c
- CVE-2013-3224 Bluetooth: possible info leak in bt_sock_recvmsg (rhbz 955599 955607)
Josh Boyer 875e72c
Josh Boyer 811fc75
* Mon Apr 22 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 811fc75
- CVE-2013-3222 atm: update msg_namelen in vcc_recvmsg (rhbz 955216 955228)
Josh Boyer 811fc75
Josh Boyer e299ee3
* Wed Apr 17 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-202
Josh Boyer e299ee3
- Fix missing raid REQ_WRITE_SAME flag commit (rhbz 947539)
Josh Boyer e299ee3
Josh Boyer c000c59
* Wed Apr 17 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-201
Josh Boyer c000c59
- Linux v3.8.8
Josh Boyer c000c59
Josh Boyer 9266085
* Tue Apr 16 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f6772cc
- Fix uninitialized variable free in iwlwifi (rhbz 951241)
Josh Boyer 9266085
- Fix race in regulatory code (rhbz 919176)
Josh Boyer 9266085
Josh Boyer 5117b24
* Mon Apr 15 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 5117b24
- tracing: NULL pointer dereference (rhbz 952197 952217)
Josh Boyer 5df5912
- Fix debug patches to build on s390x/ppc
Josh Boyer 5117b24
Josh Boyer