Jesse Keating 7a3296
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a3296
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a3296
Jesse Keating 7a3296
Summary: The Linux kernel
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a3296
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a3296
# be 0.
85cffe
%global released_kernel 1
Jesse Keating 7a3296
Josh Boyer c2a12c
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12c
# architectures are added.
Josh Boyer c2a12c
%ifarch %{ix86} x86_64
Josh Boyer c2a12c
%global signmodules 1
Josh Boyer c2a12c
%else
Josh Boyer c2a12c
%global signmodules 0
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Jesse Keating 7a3296
# Save original buildid for later if it's defined
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global orig_buildid %{buildid}
Jesse Keating 7a3296
%undefine buildid
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
# Polite request for people who spin their own kernel rpms:
Jesse Keating 7a3296
# please modify the "buildid" define in a way that identifies
Jesse Keating 7a3296
# that the kernel isn't the stock distribution kernel, for example,
Jesse Keating 7a3296
# by setting the define to ".local" or ".bz123456". This will be
Jesse Keating 7a3296
# appended to the full kernel version.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# (Uncomment the '#' and both spaces below to set the buildid.)
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# % define buildid .local
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
Jesse Keating 7a3296
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a3296
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a3296
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a3296
%if 0%{?orig_buildid:1}
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global srpm_buildid %{buildid}
Jesse Keating 7a3296
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define buildid %{orig_buildid}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Roland McGrath 377da6
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a3296
#
Roland McGrath 377da6
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6
#
Chuck Ebbert 05e763
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126d
#
Chuck Ebbert 05e763
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763
#
697844
%global baserelease 100
Roland McGrath 377da6
%global fedora_build %{baserelease}
Jesse Keating 7a3296
Jesse Keating 7a3296
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8b
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8b
# which yields a base_sublevel of 0.
4e941e
%define base_sublevel 11
Jesse Keating 7a3296
Jesse Keating 7a3296
## If this is a released kernel ##
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do we have a -stable update to apply?
6f3bcb
%define stable_update 10
Jesse Keating 7a3296
# Is it a -stable RC?
Dave Jones acc1b9
%define stable_rc 0
Jesse Keating 7a3296
# Set rpm version accordingly
Jesse Keating 7a3296
%if 0%{?stable_update}
Josh Boyer 740de5
%define stablerev %{stable_update}
Jesse Keating 7a3296
%define stable_base %{stable_update}
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a3296
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Kyle McMartin e8ba2b
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a3296
Jesse Keating 7a3296
## The not-released-kernel case ##
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a2041
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a3296
# The rc snapshot level
85cffe
%define rcrev 0
Jesse Keating 7a3296
# The git snapshot level
f7c076
%define gitrev 100
Jesse Keating 7a3296
# Set rpm version accordingly
Kyle McMartin e8ba2b
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a3296
Jesse Keating 7a3296
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a3296
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a3296
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a3296
# by later arch-specific checks.
Jesse Keating 7a3296
Jesse Keating 7a3296
# The following build options are enabled by default.
Jesse Keating 7a3296
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a3296
# to 0 in here to disable them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# standard kernel
Jesse Keating 7a3296
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a3296
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a3296
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Jarod Wilson 5b0327
# kernel-PAE (only valid for i686)
Jarod Wilson 5b0327
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a3296
# kernel-debug
Jesse Keating 7a3296
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a3296
# kernel-doc
Jesse Keating 7a3296
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a3296
# kernel-headers
Jesse Keating 7a3296
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 42d4c3
# perf
Kyle McMartin 42d4c3
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad
# tools
Dave Jones 1d18ad
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a3296
# kernel-debuginfo
Kyle McMartin 761d1c
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a3296
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a3296
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a3296
# Want to build a the vsdo directories installed
Jesse Keating 7a3296
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
534352
# kernel-kirkwood (only valid for arm)
534352
%define with_kirkwood       %{?_without_kirkwood:       0} %{?!_without_kirkwood:       1}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Only build the base kernel (--with baseonly):
Jesse Keating 7a3296
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a3296
# Only build the smp kernel (--with smponly):
Jesse Keating 7a3296
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b0327
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b0327
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a3296
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a3296
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# should we do C=1 builds with sparse
Dave Jones 561b24
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee03
#
Chuck Ebbert 11ee03
# build a release kernel on rawhide
Chuck Ebbert 11ee03
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a3296
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a3296
# See also 'make debug' and 'make release'.
85cffe
%define debugbuildsenabled 1
Jesse Keating 7a3296
Jesse Keating 7a3296
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a3296
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a3296
Chuck Ebbert c6b36e
# Build the kernel-doc package, but don't fail the build if it botches.
Chuck Ebbert c6b36e
# Here "true" means "continue" and "false" means "fail the build".
Chuck Ebbert c6b36e
%if 0%{?released_kernel}
Chuck Ebbert c6b36e
%define doc_build_fail false
Chuck Ebbert c6b36e
%else
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
85cffe
%define rawhide_skip_docs 0
Chuck Ebbert c6b36e
%if 0%{?rawhide_skip_docs}
Chuck Ebbert c6b36e
%define with_doc 0
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
%define stable_rctag .rc%{stable_rc}
Chuck Ebbert e6236b
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
Chuck Ebbert e6236b
%else
Chuck Ebbert e6236b
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define rctag .rc%rcrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define rctag .rc0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define gittag .git%gitrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define gittag .git0
Jesse Keating 7a3296
%endif
Kyle McMartin 66ce81
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# The kernel tarball/base version
Kyle McMartin e8ba2b
%define kversion 3.%{base_sublevel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%define make_target bzImage
Jesse Keating 7a3296
Jesse Keating 7a3296
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a3296
%define hdrarch %_target_cpu
Jesse Keating 7a3296
%define asmarch %_target_cpu
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{!?nopatches:1}
Jesse Keating 7a3296
%define nopatches 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vanilla}
Josh Boyer bcf7ea
# Vanilla kernels before 3.7 don't contain modsign support.  Remove this when
Josh Boyer bcf7ea
# we rebase to 3.7
Josh Boyer bcf7ea
%define signmodules 0
Jesse Keating 7a3296
%define nopatches 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define variant -vanilla
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define variant_fedora -fedora
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define using_upstream_branch 0
Jesse Keating 7a3296
%if 0%{?upstream_branch:1}
Jesse Keating 7a3296
%define stable_update 0
Jesse Keating 7a3296
%define using_upstream_branch 1
Jesse Keating 7a3296
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a3296
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{with_debuginfo}
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define debuginfodir /usr/lib/debug
Jesse Keating 7a3296
Jesse Keating 7a3296
# kernel-PAE is only built on i686.
Jarod Wilson 5b0327
%ifnarch i686
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
534352
# kernel-kirkwood is only built for armv5
534352
%ifnarch armv5tel
d07b00
%define with_kirkwood 0
a4e130
%endif
986a9f
Jesse Keating 7a3296
# if requested, only build base kernel
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%define with_smp 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build smp kernel
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jarod Wilson 5b0327
%define with_debug 0
Jarod Wilson 5b0327
%endif
Jarod Wilson 5b0327
Jarod Wilson 5b0327
# if requested, only build pae kernel
Jarod Wilson 5b0327
%if %{with_paeonly}
Jarod Wilson 5b0327
%define with_up 0
Jarod Wilson 5b0327
%define with_smp 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build debug kernel
Jesse Keating 7a3296
%if %{with_dbgonly}
Jesse Keating 7a3296
%if %{debugbuildsenabled}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define all_x86 i386 i686
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vdso_install}
Jesse Keating 7a3296
# These arches install vdso/ directories.
Josh Boyer 3b7690
%define vdso_arches %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Overrides for generic default options
Jesse Keating 7a3296
Josh Boyer 59694f
# only ppc needs a separate smp kernel
Josh Boyer 59694f
%ifnarch ppc 
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a3296
%ifnarch i686 x86_64
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only package docs noarch
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%define with_doc 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't build noarch kernels or headers (duh)
Jesse Keating 7a3296
%ifarch noarch
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_headers 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# bootwrapper is only on ppc
Josh Boyer 3b7690
%ifnarch ppc ppc64 ppc64p7
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 1d052c
# sparse blows up on ppc64
Dave Jones 1d052c
%ifarch ppc64 ppc ppc64p7
Jesse Keating 7a3296
%define with_sparse 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Per-arch tweaks
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{all_x86}
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define hdrarch i386
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch x86_64
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 3b7690
%ifarch ppc64 ppc64p7
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch s390x
Jesse Keating 7a3296
%define asmarch s390
Jesse Keating 7a3296
%define hdrarch s390
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target image
Jesse Keating 7a3296
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch ppc
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{arm}
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a3296
%define image_install_path boot
Josh Boyer 8ffa0a
%define asmarch arm
Jesse Keating 7a3296
%define hdrarch arm
986a9f
%define make_target bzImage
986a9f
%define kernel_image arch/arm/boot/zImage
43fa71
# we only build headers/perf/tools on the base arm arches
94b006
# just like we used to only build them on i386 for x86
be82bb
%ifarch armv5tel
be82bb
%define with_up 0
be82bb
%endif
94b006
%ifnarch armv5tel armv7hl
94b006
%define with_headers 0
43fa71
%define with_perf 0
43fa71
%define with_tools 0
94b006
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 03fb1e
# Should make listnewconfig fail if there's config options
Dave Jones 03fb1e
# printed out?
Dave Jones 03fb1e
%if %{nopatches}%{using_upstream_branch}
Dave Jones 03fb1e
%define listnewconfig_fail 0
Dave Jones 03fb1e
%else
Dave Jones 03fb1e
%define listnewconfig_fail 1
Dave Jones 03fb1e
%endif
Dave Jones 03fb1e
Jesse Keating 7a3296
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a3296
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a3296
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a3296
# Which is a BadThing(tm).
Jesse Keating 7a3296
Jesse Keating 7a3296
# We only build kernel-headers on the following...
Dave Jones 1d052c
%define nobuildarches i386 s390
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %nobuildarches
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_debuginfo 0
Kyle McMartin 42d4c3
%define with_perf 0
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define with_pae_debug 0
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
%define with_pae_debug %{with_debug}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 8addb5
# Architectures we build tools/cpupower on
Josh Boyer 3b7690
%define cpupowerarchs %{ix86} x86_64 ppc ppc64 ppc64p7 %{arm}
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Three sets of minimum package version requirements in the form of Conflicts:
Jesse Keating 7a3296
# to versions below the minimum
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# First the general kernel 2.6 required versions as per
Jesse Keating 7a3296
# Documentation/Changes
Jesse Keating 7a3296
#
Dave Jones f3fbdc
%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 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Then a series of requirements that are distribution specific, either
Jesse Keating 7a3296
# because we add patches for something, or the older versions have
Jesse Keating 7a3296
# problems with the newer kernel or lack certain things that make
Jesse Keating 7a3296
# integration in the distro harder than needed.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%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 7a3296
Jesse Keating 7a3296
# We moved the drm include files into kernel-headers, make sure there's
Jesse Keating 7a3296
# a recent enough libdrm-devel on the system that doesn't have those.
Jesse Keating 7a3296
%define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Dave Jones 166b79
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a3296
# scripts use them.
Jesse Keating 7a3296
#
John W. Linville aeaaac
%define kernel_prereq  fileutils, module-init-tools >= 3.16-4, initscripts >= 8.11.1-1, grubby >= 8.3-1
Jesse Keating 7a3296
%define initrd_prereq  dracut >= 001-7
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a3296
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a3296
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a3296
# macros defined above.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_reqprovconf \
Jesse Keating 7a3296
Provides: kernel = %{rpmversion}-%{pkg_release}\
Jesse Keating 7a3296
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-drm = 4.3.0\
Jesse Keating 7a3296
Provides: kernel-drm-nouveau = 16\
Jesse Keating 7a3296
Provides: kernel-modeset = 1\
Jesse Keating 7a3296
Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
a614d4
Provides: kernel-highbank\
a614d4
Provides: kernel-highbank-uname-r = %{KVERREL}%{?1:.%{1}}\
904ddb
Provides: kernel-omap\
904ddb
Provides: kernel-omap-uname-r = %{KVERREL}%{?1:.%{1}}\
391861
Provides: kernel-tegra\
391861
Provides: kernel-tegra-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a3296
Requires(pre): %{initrd_prereq}\
ea640b
Requires(pre): linux-firmware >= 20130724-0.3.git31f6b30\
Jesse Keating 7a3296
Requires(post): /sbin/new-kernel-pkg\
Jesse Keating 7a3296
Requires(preun): /sbin/new-kernel-pkg\
Jesse Keating 7a3296
Conflicts: %{kernel_dot_org_conflicts}\
Jesse Keating 7a3296
Conflicts: %{package_conflicts}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a3296
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a3296
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a3296
# isn't required for the kernel proper to function\
Jesse Keating 7a3296
AutoReq: no\
Jesse Keating 7a3296
AutoProv: yes\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Name: kernel%{?variant}
Jesse Keating 7a3296
Group: System Environment/Kernel
Dave Jones f98083
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a3296
URL: http://www.kernel.org/
Jesse Keating 7a3296
Version: %{rpmversion}
Jesse Keating 7a3296
Release: %{pkg_release}
Jesse Keating 7a3296
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a3296
# SET %%nobuildarches (ABOVE) INSTEAD
Dave Jones 1d052c
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm}
Jesse Keating 7a3296
ExclusiveOS: Linux
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_reqprovconf
Dave Jones efc71a
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# List the packages used during the kernel build
Jesse Keating 7a3296
#
Jesse Keating 7a3296
BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
Chuck Ebbert 7cfa68
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
Josh Boyer 70f813
BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config, hmaccalc
Dave Jones 70e520
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a3296
BuildRequires: xmlto, asciidoc
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
BuildRequires: sparse >= 0.4.1
Jesse Keating 7a3296
%endif
Kyle McMartin 42d4c3
%if %{with_perf}
Dave Jones dc100f
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison audit-libs-devel
Kyle McMartin 42d4c3
%endif
Dave Jones 1d18ad
%if %{with_tools}
Kyle McMartin 42d4c3
BuildRequires: pciutils-devel gettext
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a3296
%if %{with_debuginfo}
Kyle McMartin 1bfd59
# Fancy new debuginfo generation introduced in Fedora 8/RHEL 6.
Mark Wielaard ec9ad6
# The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
Mark Wielaard ec9ad6
# reduces the number of relocations in kernel module .ko.debug files and was
Mark Wielaard ec9ad6
# introduced with rpm 4.9 and elfutils 0.153.
Mark Wielaard ec9ad6
BuildRequires: rpm-build >= 4.9.0-1, elfutils >= elfutils-0.153-1
Mark Wielaard ec9ad6
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c2a12c
%if %{signmodules}
Josh Boyer 8febe3
BuildRequires: openssl
Josh Boyer bf81d1
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Dave Jones 8959a0
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a3296
Josh Boyer c2a12c
%if %{signmodules}
Josh Boyer 8febe3
Source11: x509.genkey
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Jesse Keating 7a3296
Source15: merge.pl
Josh Boyer b8b278
Source16: mod-extra.list
Josh Boyer 9da87a
Source17: mod-extra.sh
Josh Boyer 8febe3
Source18: mod-extra-sign.sh
Jesse Keating 7a3296
Chuck Ebbert c6b36e
Source19: Makefile.release
Jesse Keating 7a3296
Source20: Makefile.config
Jesse Keating 7a3296
Source21: config-debug
Jesse Keating 7a3296
Source22: config-nodebug
Jesse Keating 7a3296
Source23: config-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source30: config-x86-generic
Jesse Keating 7a3296
Source31: config-i686-PAE
Josh Boyer d71f18
Source32: config-x86-32-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source40: config-x86_64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source50: config-powerpc-generic
Jesse Keating 7a3296
Source51: config-powerpc32-generic
Jesse Keating 7a3296
Source52: config-powerpc32-smp
Jesse Keating 7a3296
Source53: config-powerpc64
Josh Boyer 3b7690
Source54: config-powerpc64p7
Jesse Keating 7a3296
Jesse Keating 7a3296
Source70: config-s390x
Jesse Keating 7a3296
0f0085
# Unified ARM kernels
391861
Source100: config-arm-generic
391861
Source101: config-armv7
391861
Source102: config-armv7-generic
0f0085
0f0085
# Legacy ARM kernels
391861
Source103: config-arm-kirkwood
Jesse Keating 7a3296
Jarod Wilson 5b6529
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b6529
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b6529
Source1000: config-local
Jarod Wilson 5b6529
Josh Boyer 8addb5
# Sources for kernel-tools
Josh Boyer 8addb5
Source2000: cpupower.service
Josh Boyer 8addb5
Source2001: cpupower.config
Josh Boyer 8addb5
Jesse Keating 7a3296
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable release kernel
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%if 0%{?stable_base}
Josh Boyer fdb68d
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a3296
Patch00: %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Dave Jones 7bd4de
%define    stable_patch_01  patch-3.%{base_sublevel}.%{stable_update}-rc%{stable_rc}.xz
Jesse Keating 7a3296
Patch01: %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a3296
# near the top of this spec file.
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH PATCH ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# we also need compile fixes for -vanilla
Dave Jones e0af4e
Patch04: compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# build tweak for build ID magic, even for -vanilla
Dave Jones e0af4e
Patch05: makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Kyle McMartin 201b16
Jesse Keating 7a3296
# revert upstream patches we get via other methods
Dave Jones e0af4e
Patch09: upstream-reverts.patch
Jesse Keating 7a3296
# Git trees.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Standalone patches
Jesse Keating 7a3296
Dave Jones 64f1bc
Patch100: taint-vbox.patch
Jesse Keating 7a3296
Dave Jones b37f31
Patch110: vmbugon-warnon.patch
Dave Jones b37f31
Dave Jones e0af4e
Patch390: defaults-acpi-video.patch
20214b
Dave Jones e0af4e
Patch394: acpi-debug-infinite-loop.patch
Jesse Keating 7a3296
Dave Jones e0af4e
Patch450: input-kill-stupid-messages.patch
Dave Jones e0af4e
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a3296
Dave Jones e0af4e
Patch460: serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch470: die-floppy-die.patch
Jesse Keating 7a3296
Dave Jones e0af4e
Patch510: silence-noise.patch
Dave Jones e0af4e
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a3296
Dave Jones e0af4e
Patch800: crash-driver.patch
Jesse Keating 7a3296
Josh Boyer 306dfc
# secure boot
85ccd6
Patch1000: devel-pekey-secure-boot-20130502.patch
Matthew Garrett e681ab
Jesse Keating 7a3296
# virt + ksm patches
Jesse Keating 7a3296
Jesse Keating 7a3296
# DRM
Josh Boyer 0e0a3a
#atch1700: drm-edid-try-harder-to-fix-up-broken-headers.patch
dd2f78
#Patch1800: drm-vgem.patch
Kyle McMartin d3e4af
Jesse Keating 7a3296
# nouveau + drm fixes
Jesse Keating 7a3296
# intel drm is all merged upstream
Jesse Keating 7a3296
Patch1824: drm-intel-next.patch
6df90a
# mustard patch to shut abrt up. please drop (and notify ajax) whenever it
6df90a
# fails to apply
6df90a
Patch1826: drm-i915-tv-detect-hush.patch
Kyle McMartin 5acda9
Jesse Keating 7a3296
# Quiet boot fixes
Jesse Keating 7a3296
# silence the ACPI blacklist code
Dave Jones e0af4e
Patch2802: silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# media patches
Dave Jones e0af4e
Patch2899: v4l-dvb-fixes.patch
Dave Jones e0af4e
Patch2900: v4l-dvb-update.patch
Dave Jones e0af4e
Patch2901: v4l-dvb-experimental.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# fs fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# patches headed upstream
Dave Jones 6a501c
Patch10000: fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c
Jesse Keating 7a3296
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Josh Boyer fcbaf2
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
20a013
Patch15000: nowatchdog-on-virt.patch
7a9e3a
David Woodhouse 4f94f0
Patch20000: 0001-efifb-Skip-DMI-checks-if-the-bootloader-knows-what-i.patch
David Woodhouse 4f94f0
Patch20001: 0002-x86-EFI-Calculate-the-EFI-framebuffer-size-instead-o.patch
David Woodhouse 4f94f0
df483e
# ARM
597b5b
Patch21000: arm-export-read_current_timer.patch
597b5b
391861
# lpae
391861
Patch21001: arm-lpae-ax88796.patch
391861
597b5b
# ARM omap
391861
Patch21003: arm-omap-load-tfp410.patch
2ddf29
df483e
# ARM tegra
df483e
Patch21005: arm-tegra-usb-no-reset-linux33.patch
Josh Boyer 220cb1
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
Dave Jones 40b1a0
Patch22000: weird-root-dentry-name-debug.patch
Dave Jones 40b1a0
Josh Boyer 2256aa
#rhbz 892811
Dave Jones 477047
Patch22247: ath9k_rx_dma_stop_check.patch
Josh Boyer 2256aa
030685
#rhbz 927469
030685
Patch25007: fix-child-thread-introspection.patch
030685
Josh Boyer 82b878
#rhbz 977040
Josh Boyer 82b878
Patch25056: iwl3945-better-skb-management-in-rx-path.patch
Josh Boyer 82b878
Patch25057: iwl4965-better-skb-management-in-rx-path.patch
Josh Boyer 82b878
Josh Boyer 112c71
#rhbz 963715
Josh Boyer 112c71
Patch25077: media-cx23885-Fix-TeVii-S471-regression-since-introduction-of-ts2020.patch
Josh Boyer 112c71
Neil Horman 38d9b6
#rhbz 971893
Neil Horman 38d9b6
Patch25106: bonding-driver-alb-learning.patch
Neil Horman 38d9b6
20a013
#rhbz 985522
20a013
Patch25107: ntp-Make-periodic-RTC-update-more-reliable.patch
20a013
9827a3
#rhbz 902012
9827a3
Patch25114: elevator-Fix-a-race-in-elevator-switching-and-md.patch
9827a3
Patch25115: elevator-acquire-q-sysfs_lock-in-elevator_change.patch
9827a3
20a013
#rhbz 974072
20a013
Patch25117: rt2800-add-support-for-rf3070.patch
20a013
088b8c
#rhbz 1015989
088b8c
Patch25122: netfilter-nf_conntrack-use-RCU-safe-kfree-for-conntr.patch
088b8c
6fdf37
#rhbz 982153
6fdf37
Patch25123: iommu-Remove-stack-trace-from-broken-irq-remapping-warning.patch
6fdf37
7fc3fa
#rhbz 998732
7fc3fa
Patch25125: vfio-iommu-Fixed-interaction-of-VFIO_IOMMU_MAP_DMA.patch
7fc3fa
9f379b
#rhbz 896695
9f379b
Patch25126: 0001-iwlwifi-don-t-WARN-on-host-commands-sent-when-firmwa.patch
9f379b
Patch25127: 0002-iwlwifi-don-t-WARN-on-bad-firmware-state.patch
9f379b
58a132
#rhbz 993744
58a132
Patch25128: dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
58a132
bc253d
#rhbz 1000439
bc253d
Patch25129: cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
bc253d
6a0464
#rhbz 1010679
6a0464
Patch25130: fix-radeon-sound.patch
f0c371
Patch25149: drm-radeon-24hz-audio-fixes.patch
6a0464
12c7ac
#rhbz 984696
12c7ac
Patch25132: rt2800usb-slow-down-TX-status-polling.patch
12c7ac
24372f
#rhbz 1023413
24372f
Patch25135: alps-Support-for-Dell-XT2-model.patch
24372f
56f4eb
#rhbz 1011621
56f4eb
Patch25137: cifs-Allow-LANMAN-auth-for-unencapsulated-auth-methods.patch
56f4eb
288eb7
#rhbz 1025769
288eb7
Patch25142: iwlwifi-dvm-dont-override-mac80211-queue-setting.patch
288eb7
f2fe33
Patch25143: drm-qxl-backport-fixes-for-Fedora.patch
df4228
Patch25160: drm-qxl-fix-memory-leak-in-release-list-handling.patch
f2fe33
99f4e6
Patch25144: Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch
99f4e6
cd2a7b
#CVE-2013-4563 rhbz 1030015 1030017
cd2a7b
Patch25145: ipv6-fix-headroom-calculation-in-udp6_ufo_fragment.patch
cd2a7b
741d87
#rhbz 1015905
741d87
Patch25146: 0001-ip6_output-fragment-outgoing-reassembled-skb-properl.patch
741d87
Patch25147: 0002-netfilter-push-reasm-skb-through-instead-of-original.patch
741d87
961cc9
#rhbz 1011362
961cc9
Patch25148: alx-Reset-phy-speed-after-resume.patch
961cc9
277122
#rhbz 1031086
277122
Patch25150: slab_common-Do-not-check-for-duplicate-slab-names.patch
277122
be089e
#rhbz 967652
be089e
Patch25151: KVM-x86-fix-emulation-of-movzbl-bpl-eax.patch
be089e
7306d3
# Fix 15sec NFS mount delay
7306d3
Patch25152: sunrpc-create-a-new-dummy-pipe-for-gssd-to-hold-open.patch
7306d3
Patch25153: sunrpc-replace-gssd_running-with-more-reliable-check.patch
7306d3
Patch25154: nfs-check-gssd-running-before-krb5i-auth.patch
7306d3
05b8b9
#CVE-2013-6382 rhbz 1033603 1034670
05b8b9
Patch25157: xfs-underflow-bug-in-xfs_attrlist_by_handle.patch
05b8b9
5b9366
#rhbz 1022733
5b9366
Patch25158: via-velocity-fix-netif_receive_skb-use-in-irq-disable.patch
5b9366
fdd460
#rhbz 998342
fdd460
Patch25159: usbnet-fix-status-interrupt-urb-handling.patch
fdd460
6d027e
#CVE-2013-6405 rhbz 1035875 1035887
6d027e
Patch25161: inet-prevent-leakage-of-uninitialized-memory-to-user.patch
6d027e
Patch25162: inet-fix-addr_len-msg_namelen-assignment-in-recv_error-and-rxpmtu-functions.patch
6d027e
45b5fd
#rhbz 958826
4ec4a0
Patch25164: dell-laptop.patch
45b5fd
26ef17
#CVE-2013-XXXX rhbz 1039845 1039874
26ef17
Patch25165: net-rework-recvmsg-handler-msg_name-and-msg_namelen-.patch
26ef17
841005
#rhbz 1030802
841005
Patch25170: Input-elantech-add-support-for-newer-August-2013-dev.patch
841005
Patch25171: elantech-Properly-differentiate-between-clickpads-an.patch
26ef17
c519a2
#CVE-2013-6367 rhbz 1032207 1042081
c519a2
Patch25172: KVM-x86-Fix-potential-divide-by-0-in-lapic.patch
c519a2
537c68
#CVE-2013-6368 rhbz 1032210 1042090
537c68
Patch25173: KVM-x86-Convert-vapic-synchronization-to-_cached-functions.patch
537c68
20c505
#CVE-2013-6376 rhbz 1033106 1042099
20c505
Patch25174: KVM-x86-fix-guest-initiated-crash-with-x2apic.patch
20c505
9f1cdf
#CVE-2013-4587 rhbz 1030986 1042071
9f1cdf
Patch25175: KVM-Improve-create-VCPU-parameter.patch
9f1cdf
2916df
#rhbz 1025770
2916df
Patch25176: br-fix-use-of-rx_handler_data-in-code-executed-on-no.patch
2916df
Josh Boyer 812ba1
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a3296
Jesse Keating 7a3296
%description
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package doc
Jesse Keating 7a3296
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a3296
Group: Documentation
Jesse Keating 7a3296
%description doc
Jesse Keating 7a3296
This package contains documentation files from the kernel
Jesse Keating 7a3296
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a3296
device drivers shipped with it are documented in these files.
Jesse Keating 7a3296
Jesse Keating 7a3296
You'll want to install this package if you need a reference to the
Jesse Keating 7a3296
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package headers
Jesse Keating 7a3296
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a3296
Group: Development/System
Dave Jones d555d6
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a3296
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a3296
%description headers
Jesse Keating 7a3296
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a3296
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a3296
header files define structures and constants that are needed for
Jesse Keating 7a3296
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a3296
glibc package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package bootwrapper
Jesse Keating 7a3296
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a3296
Group: Development/System
Dave Jones 524b8c
Requires: gzip binutils
Jesse Keating 7a3296
%description bootwrapper
Jesse Keating 7a3296
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a3296
files combining both kernel and initial ramdisk.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a3296
Group: Development/Debug
Jesse Keating 7a3296
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a3296
It provides the kernel source files common to all builds.
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%package -n perf
Kyle McMartin 42d4c3
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c3
Group: Development/System
Kyle McMartin 42d4c3
License: GPLv2
Kyle McMartin 42d4c3
%description -n perf
Kyle McMartin 42d4c3
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c3
of the Linux kernel.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n perf-debuginfo
Kyle McMartin 42d4c3
Summary: Debug information for package perf
Kyle McMartin 42d4c3
Group: Development/Debug
Kyle McMartin 42d4c3
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c3
AutoReqProv: no
Kyle McMartin 42d4c3
%description -n perf-debuginfo
Kyle McMartin 42d4c3
This package provides debug information for the perf package.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c3
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c3
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c3
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c3
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n python-perf
Kyle McMartin 42d4c3
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c3
Group: Development/Libraries
Kyle McMartin 42d4c3
%description -n python-perf
Kyle McMartin 42d4c3
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c3
written in the Python programming language to use the interface
Kyle McMartin 42d4c3
to manipulate perf events.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c3
Josh Boyer 27d8a0
%package -n python-perf-debuginfo
Josh Boyer 27d8a0
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0
Group: Development/Debug
Josh Boyer 27d8a0
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0
AutoReqProv: no
Josh Boyer 27d8a0
%description -n python-perf-debuginfo
Josh Boyer 27d8a0
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0
Josh Boyer 27d8a0
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0
Josh Boyer 27d8a0
Kyle McMartin 42d4c3
%endif # with_perf
Kyle McMartin 42d4c3
Dave Jones 1d18ad
%if %{with_tools}
Dave Jones 1d18ad
%package -n kernel-tools
Dave Jones 1d18ad
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
License: GPLv2
Josh Boyer 02587b
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 3b80dd
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad
%description -n kernel-tools
Dave Jones 1d18ad
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c3
and the supporting documentation.
Roland McGrath 3c4ea9
Josh Boyer 3b80dd
%package -n kernel-tools-libs
Josh Boyer 3b80dd
Summary: Libraries for the kernels-tools
Josh Boyer 3b80dd
Group: Development/System
Josh Boyer 3b80dd
License: GPLv2
Josh Boyer 3b80dd
%description -n kernel-tools-libs
Josh Boyer 3b80dd
This package contains the libraries built from the tools/ directory
Josh Boyer 3b80dd
from the kernel source.
Josh Boyer 3b80dd
Josh Boyer 3b80dd
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5
Group: Development/System
Josh Boyer 8addb5
License: GPLv2
Josh Boyer 02587b
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad371
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad371
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 3b80dd
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer b12047
Provides: kernel-tools-devel
Josh Boyer 3b80dd
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5
the kernel source.
Josh Boyer 8addb5
Dave Jones 1d18ad
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9
Group: Development/Debug
Roland McGrath 3c4ea9
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9
AutoReqProv: no
Dave Jones 1d18ad
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9
# of matching the pattern against the symlinks file.
Josh Boyer 3bcafa
%{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 ec31ef
Kyle McMartin 42d4c3
%endif # with_tools
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a3296
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_debuginfo_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a3296
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a3296
Group: Development/Debug\
Jesse Keating 7a3296
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a3296
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a3296
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Jesse Keating 7a3296
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}devel\
Jesse Keating 7a3296
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
Requires(pre): /usr/bin/find\
Jesse Keating 7a3296
Requires: perl\
Jesse Keating 7a3296
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a3296
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a3296
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Josh Boyer b8b278
# This macro creates a kernel-<subpackage>-modules-extra package.
d84177
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b278
#
d84177
%define kernel_modules_extra_package() \
Josh Boyer b8b278
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b278
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b278
Group: System Environment/Kernel\
Josh Boyer b8b278
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
Josh Boyer b8b278
Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer b8b278
Provides: kernel-modules-extra = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer 6721e4
Provides: installonlypkg(kernel-module)\
Josh Boyer b8b278
Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b66345
Requires: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b278
AutoReqProv: no\
Josh Boyer b8b278
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b278
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b278
%{nil}
Josh Boyer b8b278
Josh Boyer b8b278
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a3296
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a3296
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_package(n:) \
Jesse Keating 7a3296
%package %1\
Jesse Keating 7a3296
Summary: %{variant_summary}\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
%kernel_reqprovconf\
Jesse Keating 7a3296
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
d84177
%{expand:%%kernel_modules_extra_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Jesse Keating 7a3296
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a3296
%kernel_devel_package
d84177
%kernel_modules_extra_package
Jesse Keating 7a3296
%kernel_debuginfo_package
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# Now, each variant package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a3296
%kernel_variant_package -n SMP smp
Jesse Keating 7a3296
%description smp
Jesse Keating 7a3296
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a3296
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a3296
hyperthreading technology.
Jesse Keating 7a3296
Jesse Keating 7a3296
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAE
Jesse Keating 7a3296
%description PAE
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAEdebug
Jesse Keating 7a3296
Obsoletes: kernel-PAE-debug
Jesse Keating 7a3296
%description PAEdebug
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a3296
%kernel_variant_package debug
Jesse Keating 7a3296
%description debug
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
534352
%define variant_summary The Linux kernel compiled for marvell kirkwood boards
534352
%kernel_variant_package kirkwood
534352
%description kirkwood
534352
This package includes a version of the Linux kernel with support for
534352
marvell kirkwood based systems, i.e., guruplug, sheevaplug
534352
986a9f
Jesse Keating 7a3296
%prep
Jesse Keating 7a3296
# do a few sanity-checks for --with *only builds
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%if !%{with_up}%{with_pae}
Jesse Keating 7a3296
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%if !%{with_smp}
Jesse Keating 7a3296
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c78a08
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763
exit 1
Chuck Ebbert 05e763
%endif
Chuck Ebbert 05e763
Jesse Keating 7a3296
# more sanity checking; do it quietly
Jesse Keating 7a3296
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a3296
  for patch in %{patches} ; do
Jesse Keating 7a3296
    if [ ! -f $patch ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
fi 2>/dev/null
Jesse Keating 7a3296
Jesse Keating 7a3296
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a3296
ApplyPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
%if !%{using_upstream_branch}
Dave Jones b89c80
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a291
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  fi 2>/dev/null
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
  case "$patch" in
Jesse Keating 7a3296
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a3296
  esac
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't apply patch if it's empty
Jesse Keating 7a3296
ApplyOptionalPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a3296
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a3296
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# First we unpack the kernel tarball.
Jesse Keating 7a3296
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a3296
# which speeds things up quite a bit.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update to latest upstream.
Jesse Keating 7a3296
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a3296
%else
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a3296
Dave Jones 166b79
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c
# so we can prep different trees within a single git directory.
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a3296
Dave Jones 9e2943
# Delete all old stale trees.
Dave Jones 9e2943
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e2943
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e2943
  for i in linux-*
Dave Jones 9e2943
  do
Dave Jones 7bd4de
     if [ -d $i ]; then
Dave Jones 7bd4de
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4de
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4de
       # Move away the stale away, and delete in background.
Dave Jones 7bd4de
       mv $i deleteme-$i
Dave Jones 7bd4de
       rm -rf deleteme* &
Dave Jones 7bd4de
     fi
Dave Jones 9e2943
  done
Dave Jones 9e2943
  cd ..
Dave Jones 9e2943
fi
Dave Jones 9e2943
Dave Jones 9e2943
# Generate new tree
Chuck Ebbert 26d08c
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
    # The base vanilla version already exists.
Chuck Ebbert 26d08c
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a3296
    for dir in vanilla-*; do
Jesse Keating 7a3296
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f pax_global_header
Chuck Ebbert 26d08c
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a3296
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a3296
        break
Jesse Keating 7a3296
      fi
Jesse Keating 7a3296
    done
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c -T
Chuck Ebbert 26d08c
      cp -rl $sharedir/vanilla-%{kversion} .
Jesse Keating 7a3296
    else
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a3296
Jesse Keating 7a3296
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
      break
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Chuck Ebbert 26d08c
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    cp -rl $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    # Need to apply patches to the base vanilla version.
Jesse Keating 7a3296
    cp -rl vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a3296
    cd vanilla-%{vanillaversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update vanilla to the latest upstream.
Jesse Keating 7a3296
# (non-released_kernel case only)
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
else
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Now build the fedora kernel tree.
Josh Boyer 83337c
cp -rl vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
# released_kernel with possible stable updates
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH APPLY ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a3296
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a3296
cp %{SOURCE15} .
Jesse Keating 7a3296
Chuck Ebbert c6b36e
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee03
%if %{with_release}
Chuck Ebbert c6b36e
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee03
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a3296
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a3296
Jarod Wilson 5b6529
# Merge in any user-provided local config option changes
Josh Boyer 033f53
for i in kernel-%{version}-*.config
Jarod Wilson 5b6529
do
Jarod Wilson 5b6529
  mv $i $i.tmp
Jarod Wilson 5b6529
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b6529
  rm $i.tmp
Jarod Wilson 5b6529
done
Jarod Wilson 5b6529
Dave Jones e0af4e
ApplyPatch makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# misc small stuff to make things compile
Jesse Keating 7a3296
#
Dave Jones e0af4e
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Jesse Keating 7a3296
# revert patches from upstream that conflict or that we get via other means
Dave Jones e0af4e
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a3296
Jesse Keating 7a3296
Dave Jones 64f1bc
ApplyPatch taint-vbox.patch
Dave Jones 64f1bc
Dave Jones b37f31
ApplyPatch vmbugon-warnon.patch
Dave Jones b37f31
Jesse Keating 7a3296
# Architecture patches
Jesse Keating 7a3296
# x86(-64)
Jesse Keating 7a3296
Jesse Keating 7a3296
#
986a9f
# ARM
986a9f
#
597b5b
ApplyPatch arm-export-read_current_timer.patch
391861
ApplyPatch arm-lpae-ax88796.patch
391861
ApplyPatch arm-omap-load-tfp410.patch
df483e
ApplyPatch arm-tegra-usb-no-reset-linux33.patch
Mauro Carvalho Chehab 0291ed
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# bugfixes to drivers and filesystems
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ext4
Jesse Keating 7a3296
Jesse Keating 7a3296
# xfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# btrfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# eCryptfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# USB
Jesse Keating 7a3296
Jesse Keating 7a3296
# WMI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Dave Jones e0af4e
ApplyPatch defaults-acpi-video.patch
Dave Jones e0af4e
ApplyPatch acpi-debug-infinite-loop.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PCI
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SCSI Bits.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ALSA
Jesse Keating 7a3296
Jesse Keating 7a3296
# Networking
Jesse Keating 7a3296
Jesse Keating 7a3296
# Misc fixes
Jesse Keating 7a3296
# The input layer spews crap no-one cares about.
Dave Jones e0af4e
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a3296
ApplyPatch die-floppy-die.patch
Jesse Keating 7a3296
Dave Jones e0af4e
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Allow to use 480600 baud on 16C950 UARTs
Dave Jones e0af4e
ApplyPatch serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Silence some useless messages that still get printed with 'quiet'
Dave Jones e0af4e
ApplyPatch silence-noise.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Make fbcon not show the penguins with 'quiet'
Dave Jones e0af4e
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Changes to upstream defaults.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# /dev/crash driver.
Dave Jones e0af4e
ApplyPatch crash-driver.patch
Jesse Keating 7a3296
Josh Boyer 306dfc
# secure boot
85ccd6
ApplyPatch devel-pekey-secure-boot-20130502.patch
Matthew Garrett e681ab
Jesse Keating 7a3296
# Assorted Virt Fixes
Jesse Keating 7a3296
Kyle McMartin d3e4af
# DRM core
Josh Boyer 0e0a3a
#ApplyPatch drm-edid-try-harder-to-fix-up-broken-headers.patch
dd2f78
#ApplyPatch drm-vgem.patch
Jesse Keating 7a3296
Kyle McMartin d3e4af
# Nouveau DRM
Kyle McMartin d3e4af
Kyle McMartin d3e4af
# Intel DRM
Jesse Keating 7a3296
ApplyOptionalPatch drm-intel-next.patch
6df90a
ApplyPatch drm-i915-tv-detect-hush.patch
Dave Jones 19e378
Jesse Keating 7a3296
# silence the ACPI blacklist code
Dave Jones e0af4e
ApplyPatch silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# V4L/DVB updates/fixes/experimental drivers
Jesse Keating 7a3296
#  apply if non-empty
Dave Jones e0af4e
ApplyOptionalPatch v4l-dvb-fixes.patch
Dave Jones e0af4e
ApplyOptionalPatch v4l-dvb-update.patch
Dave Jones e0af4e
ApplyOptionalPatch v4l-dvb-experimental.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Patches headed upstream
Dave Jones 6a501c
ApplyPatch fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c
Jesse Keating 7a3296
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Dave Jones 7bd4de
# FIXME: REBASE
Dave Jones 7bd4de
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
20a013
# Disable watchdog on virtual machines.
20a013
ApplyPatch nowatchdog-on-virt.patch
20a013
Dave Jones 03fb1e
#ApplyPatch 0001-efifb-Skip-DMI-checks-if-the-bootloader-knows-what-i.patch
Dave Jones 03fb1e
#ApplyPatch 0002-x86-EFI-Calculate-the-EFI-framebuffer-size-instead-o.patch
David Woodhouse 4f94f0
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
Dave Jones 40b1a0
ApplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0
Josh Boyer 2256aa
#rhbz 892811
Josh Boyer 2256aa
ApplyPatch ath9k_rx_dma_stop_check.patch
Josh Boyer 2256aa
030685
#rhbz 927469
030685
ApplyPatch fix-child-thread-introspection.patch
030685
Josh Boyer 82b878
#rhbz 977040
Josh Boyer 82b878
ApplyPatch iwl3945-better-skb-management-in-rx-path.patch
Josh Boyer 82b878
ApplyPatch iwl4965-better-skb-management-in-rx-path.patch
Josh Boyer 82b878
Josh Boyer 112c71
#rhbz 963715
Josh Boyer 112c71
ApplyPatch media-cx23885-Fix-TeVii-S471-regression-since-introduction-of-ts2020.patch
Josh Boyer 112c71
20a013
#rhbz 985522
20a013
ApplyPatch ntp-Make-periodic-RTC-update-more-reliable.patch
20a013
Neil Horman 38d9b6
#rhbz 971893
Neil Horman 38d9b6
ApplyPatch bonding-driver-alb-learning.patch
Neil Horman 38d9b6
9827a3
#rhbz 902012
9827a3
ApplyPatch elevator-Fix-a-race-in-elevator-switching-and-md.patch
9827a3
ApplyPatch elevator-acquire-q-sysfs_lock-in-elevator_change.patch
9827a3
20a013
#rhbz 974072
20a013
ApplyPatch rt2800-add-support-for-rf3070.patch
20a013
088b8c
#rhbz 1015989
088b8c
ApplyPatch netfilter-nf_conntrack-use-RCU-safe-kfree-for-conntr.patch
088b8c
6fdf37
#rhbz 982153
6fdf37
ApplyPatch iommu-Remove-stack-trace-from-broken-irq-remapping-warning.patch
6fdf37
7fc3fa
#rhbz 998732
7fc3fa
ApplyPatch vfio-iommu-Fixed-interaction-of-VFIO_IOMMU_MAP_DMA.patch
7fc3fa
9f379b
#rhbz 896695
9f379b
ApplyPatch 0001-iwlwifi-don-t-WARN-on-host-commands-sent-when-firmwa.patch
9f379b
ApplyPatch 0002-iwlwifi-don-t-WARN-on-bad-firmware-state.patch
9f379b
58a132
#rhbz 993744
58a132
ApplyPatch dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
58a132
bc253d
#rhbz 1000439
bc253d
ApplyPatch cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
bc253d
6a0464
#rhbz 1010679
6a0464
ApplyPatch fix-radeon-sound.patch
f0c371
ApplyPatch drm-radeon-24hz-audio-fixes.patch
6a0464
12c7ac
#rhbz 984696
12c7ac
ApplyPatch rt2800usb-slow-down-TX-status-polling.patch
12c7ac
24372f
#rhbz 1023413
24372f
ApplyPatch alps-Support-for-Dell-XT2-model.patch
24372f
56f4eb
#rhbz 1011621
56f4eb
ApplyPatch cifs-Allow-LANMAN-auth-for-unencapsulated-auth-methods.patch
56f4eb
288eb7
#rhbz 1025769
288eb7
ApplyPatch iwlwifi-dvm-dont-override-mac80211-queue-setting.patch
288eb7
f2fe33
ApplyPatch drm-qxl-backport-fixes-for-Fedora.patch
df4228
ApplyPatch drm-qxl-fix-memory-leak-in-release-list-handling.patch
f2fe33
99f4e6
ApplyPatch Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch
99f4e6
cd2a7b
#CVE-2013-4563 rhbz 1030015 1030017
cd2a7b
ApplyPatch ipv6-fix-headroom-calculation-in-udp6_ufo_fragment.patch
cd2a7b
741d87
#rhbz 1015905
741d87
ApplyPatch 0001-ip6_output-fragment-outgoing-reassembled-skb-properl.patch
741d87
ApplyPatch 0002-netfilter-push-reasm-skb-through-instead-of-original.patch
741d87
961cc9
#rhbz 1011362
961cc9
ApplyPatch alx-Reset-phy-speed-after-resume.patch
961cc9
277122
#rhbz 1031086
277122
ApplyPatch slab_common-Do-not-check-for-duplicate-slab-names.patch
277122
be089e
#rhbz 967652
be089e
ApplyPatch KVM-x86-fix-emulation-of-movzbl-bpl-eax.patch
be089e
7306d3
# Fix 15sec NFS mount delay
7306d3
ApplyPatch sunrpc-create-a-new-dummy-pipe-for-gssd-to-hold-open.patch
7306d3
ApplyPatch sunrpc-replace-gssd_running-with-more-reliable-check.patch
7306d3
ApplyPatch nfs-check-gssd-running-before-krb5i-auth.patch
7306d3
05b8b9
#CVE-2013-6382 rhbz 1033603 1034670
05b8b9
ApplyPatch xfs-underflow-bug-in-xfs_attrlist_by_handle.patch
05b8b9
5b9366
#rhbz 1022733
5b9366
ApplyPatch via-velocity-fix-netif_receive_skb-use-in-irq-disable.patch
5b9366
fdd460
#rhbz 998342
fdd460
ApplyPatch usbnet-fix-status-interrupt-urb-handling.patch
fdd460
6d027e
#CVE-2013-6405 rhbz 1035875 1035887
6d027e
ApplyPatch inet-prevent-leakage-of-uninitialized-memory-to-user.patch
6d027e
ApplyPatch inet-fix-addr_len-msg_namelen-assignment-in-recv_error-and-rxpmtu-functions.patch
6d027e
45b5fd
#rhbz 958826
4ec4a0
ApplyPatch dell-laptop.patch
45b5fd
26ef17
#CVE-2013-XXXX rhbz 1039845 1039874
26ef17
ApplyPatch net-rework-recvmsg-handler-msg_name-and-msg_namelen-.patch
26ef17
841005
#rhbz 1030802
841005
ApplyPatch Input-elantech-add-support-for-newer-August-2013-dev.patch
841005
ApplyPatch elantech-Properly-differentiate-between-clickpads-an.patch
841005
c519a2
#CVE-2013-6367 rhbz 1032207 1042081
c519a2
ApplyPatch KVM-x86-Fix-potential-divide-by-0-in-lapic.patch
c519a2
537c68
#CVE-2013-6368 rhbz 1032210 1042090
537c68
ApplyPatch KVM-x86-Convert-vapic-synchronization-to-_cached-functions.patch
537c68
20c505
#CVE-2013-6376 rhbz 1033106 1042099
20c505
ApplyPatch KVM-x86-fix-guest-initiated-crash-with-x2apic.patch
20c505
9f1cdf
#CVE-2013-4587 rhbz 1030986 1042071
9f1cdf
ApplyPatch KVM-Improve-create-VCPU-parameter.patch
9f1cdf
2916df
#rhbz 1025770
2916df
ApplyPatch br-fix-use-of-rx_handler_data-in-code-executed-on-no.patch
2916df
Jesse Keating 7a3296
# END OF PATCH APPLICATIONS
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a3296
Jesse Keating 7a3296
chmod +x scripts/checkpatch.pl
Jesse Keating 7a3296
Dave Jones ed3d26
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa0660
touch .scmversion
Kyle McMartin fa0660
Jesse Keating 7a3296
# only deal with configs if we are going to build for the arch
Jesse Keating 7a3296
%ifnarch %nobuildarches
Jesse Keating 7a3296
Jesse Keating 7a3296
mkdir configs
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 2123b2
Dave Jones 03fb1e
# now run oldconfig over all the config files
Dave Jones 03fb1e
for i in *.config
Dave Jones 03fb1e
do
Dave Jones 03fb1e
  mv $i .config
Dave Jones 03fb1e
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 03fb1e
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 03fb1e
%if %{listnewconfig_fail}
Dave Jones 03fb1e
  if [ -s .newoptions ]; then
Dave Jones 03fb1e
    cat .newoptions
Dave Jones 03fb1e
    exit 1
Dave Jones 03fb1e
  fi
Dave Jones 03fb1e
%endif
Dave Jones 03fb1e
  rm -f .newoptions
Dave Jones 03fb1e
  make ARCH=$Arch oldnoconfig
Dave Jones 03fb1e
  echo "# $Arch" > configs/$i
Dave Jones 03fb1e
  cat .config >> configs/$i
Dave Jones 03fb1e
done
Jesse Keating 7a3296
# end of kernel config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
John W. Linville fa580e
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e
Dave Jones 246f94
# remove unnecessary SCM files
Dave Jones 246f94
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94
Jesse Keating 7a3296
cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### build
Jesse Keating 7a3296
###
Jesse Keating 7a3296
%build
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
%define sparse_mflags	C=1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a3296
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a3296
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a3296
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a3296
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a3296
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a3296
export AFTER_LINK=\
Jesse Keating 7a3296
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a3296
    				-i $@ > $@.id"'
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
cp_vmlinux()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildKernel() {
Jesse Keating 7a3296
    MakeTarget=$1
Jesse Keating 7a3296
    KernelImage=$2
Jesse Keating 7a3296
    Flavour=$3
Jesse Keating 7a3296
    InstallName=${4:-vmlinuz}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Pick the right config file for the kernel we're building
Jesse Keating 7a3296
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Jesse Keating 7a3296
    DevelDir=/usr/src/kernels/%{KVERREL}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a3296
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a3296
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a3296
      CopyKernel=cp_vmlinux
Jesse Keating 7a3296
    else
Jesse Keating 7a3296
      CopyKernel=cp
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a3296
Josh Boyer 740de5
    %if 0%{?stable_update}
Josh Boyer 740de5
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de5
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de5
    %endif
Josh Boyer 740de5
Jesse Keating 7a3296
    # make sure EXTRAVERSION says what we want it to say
Josh Boyer 740de5
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
Jesse Keating 7a3296
Josh Boyer 9e4aea
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a3296
    %if !0%{?rcrev}
Jesse Keating 7a3296
    %if 0%{?gitrev}
Josh Boyer 9e4aea
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # and now to start the build process
Jesse Keating 7a3296
Jesse Keating 7a3296
    make -s mrproper
Jesse Keating 7a3296
    cp configs/$Config .config
Jesse Keating 7a3296
Josh Boyer f8f8cc
    %if %{signmodules}
Josh Boyer f8f8cc
    cp %{SOURCE11} .
Josh Boyer f8f8cc
    chmod +x scripts/sign-file
Josh Boyer bcf7ea
    %endif
Josh Boyer f8f8cc
Jesse Keating 7a3296
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a3296
    echo USING ARCH=$Arch
Jesse Keating 7a3296
Kyle McMartin da80d7
    make -s ARCH=$Arch oldnoconfig >/dev/null
e6eb2f
%ifarch %{arm}
e6eb2f
    # http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
e6eb2f
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} KALLSYMS_EXTRA_PASS=1
556ae3
556ae3
    make -s ARCH=$Arch V=1 dtbs
556ae3
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
6e30b2
    install -m 644 arch/arm/boot/dts/*.dtb $RPM_BUILD_ROOT/boot/dtb-$KernelVer/
3b5b67
    rm -f arch/arm/boot/dts/*.dtb
e6eb2f
%else
Dave Jones 4d4f51
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
e6eb2f
%endif
Dave Jones 4d4f51
    make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Start installing the results
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a3296
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a3296
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a3296
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a3296
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a3296
Jesse Keating 7a3296
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a3296
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a3296
    fi
d3182f
    %if %{signmodules}
d3182f
    # Sign the image if we're using EFI
d3182f
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 48fa95
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 48fa95
        echo "pesigning failed"
Josh Boyer 48fa95
        exit 1
Josh Boyer 48fa95
    fi
d3182f
    mv vmlinuz.signed $KernelImage
d3182f
    %endif
Jesse Keating 7a3296
    $CopyKernel $KernelImage \
Jesse Keating 7a3296
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
Josh Boyer 70f813
    # hmac sign the kernel for FIPS
Josh Boyer 70f813
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f813
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f813
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
Josh Boyer 70f813
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a3296
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d56
    # we'll get it from the linux-firmware package and we don't want conflicts
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12c
Jesse Keating 7a3296
%ifarch %{vdso_arches}
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a3296
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a3296
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a3296
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a3296
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a3296
    # * all arch relevant include/ files
Jesse Keating 7a3296
    # * all Makefile/Kconfig files
Jesse Keating 7a3296
    # * all script/ files
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a3296
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a3296
    # first copy everything
Jesse Keating 7a3296
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -s Module.markers ]; then
Jesse Keating 7a3296
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Josh Boyer 3b7690
%ifarch ppc ppc64 ppc64p7
Jesse Keating 7a3296
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a3296
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
    fi
3b024e
    # include the machine specific headers for ARM variants, if available.
3b024e
%ifarch %{arm}
3b024e
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024e
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024e
    fi
3b024e
%endif
Jesse Keating 7a3296
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a3296
    # external modules can be built
Josh Boyer 34e02d
    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 7fd125
Jesse Keating 7a3296
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a3296
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
    if test -s vmlinux.id; then
Jesse Keating 7a3296
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a3296
    else
Roland McGrath 9b36e5
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e5
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a3296
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Generate a list of modules for block and networking.
Jesse Keating 7a3296
Dave Jones b89c80
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a3296
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list()
Jesse Keating 7a3296
    {
Jesse Keating 7a3296
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Jesse Keating 7a3296
      LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Jesse Keating 7a3296
    }
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list networking \
Josh Boyer 4215bf
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe'
Jesse Keating 7a3296
    collect_modules_list block \
Jesse Keating 7a3296
    			 '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 7a3296
    collect_modules_list drm \
Jesse Keating 7a3296
    			 'drm_open|drm_init'
Jesse Keating 7a3296
    collect_modules_list modesetting \
Jesse Keating 7a3296
    			 'drm_crtc_init'
Jesse Keating 7a3296
Jesse Keating 7a3296
    # detect missing or incorrect license tags
Jesse Keating 7a3296
    rm -f modinfo
Jesse Keating 7a3296
    while read i
Jesse Keating 7a3296
    do
Jesse Keating 7a3296
      echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo
Jesse Keating 7a3296
      /sbin/modinfo -l $i >> modinfo
Jesse Keating 7a3296
    done < modnames
Jesse Keating 7a3296
Dave Jones b89c80
    grep -E -v \
Jesse Keating 7a3296
    	  'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \
Jesse Keating 7a3296
	  modinfo && exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f modinfo modnames
Jesse Keating 7a3296
Josh Boyer 9da87a
    # Call the modules-extra script to move things around
Josh Boyer 9da87a
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Josh Boyer b8b278
Josh Boyer 8febe3
%if %{signmodules}
Josh Boyer 8febe3
    # Save off the .tmp_versions/ directory.  We'll use it in the 
Josh Boyer 8febe3
    # __debug_install_post macro below to sign the right things
Josh Boyer de2801
    # Also save the signing keys so we actually sign the modules with the
Josh Boyer de2801
    # right key.
Josh Boyer 8febe3
    cp -r .tmp_versions .tmp_versions.sign${Flavour:+.${Flavour}}
Josh Boyer de2801
    cp signing_key.priv signing_key.priv.sign${Flavour:+.${Flavour}}
Josh Boyer de2801
    cp signing_key.x509 signing_key.x509.sign${Flavour:+.${Flavour}}
Josh Boyer 8febe3
%endif
Josh Boyer 8febe3
John W. Linville fa580e
    # remove files that will be auto generated by depmod at rpm -i time
Josh Boyer 035f91
    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 fa580e
    do
John W. Linville fa580e
      rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i
John W. Linville fa580e
    done
John W. Linville fa580e
Jesse Keating 7a3296
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a3296
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7
Josh Boyer bddef7
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7
    # the F17 UsrMove feature.
Josh Boyer bddef7
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b40
Kyle McMartin 4b3b40
    # prune junk from kernel-devel
Kyle McMartin 4b3b40
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# DO it...
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# prepare directories
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAEdebug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAE
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
534352
%if %{with_kirkwood}
534352
BuildKernel %make_target %kernel_image kirkwood
534352
%endif
534352
Jesse Keating 7a3296
%if %{with_up}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smp}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 8bcddf
%global perf_make \
Dave Jones 6bffb4
  make %{?_smp_mflags} -C tools/perf -s V=1 WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf
Kyle McMartin 8bcddf
%{perf_make} all
Kyle McMartin 8bcddf
%{perf_make} man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
# cpupower
Josh Boyer 8addb5
# make sure version-gen.sh is executable.
Josh Boyer 8addb5
chmod +x tools/power/cpupower/utils/version-gen.sh
Josh Boyer 9c44ba
make %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba
%ifarch %{ix86}
Josh Boyer 8addb5
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 8addb5
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Josh Boyer 9c44ba
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 9c44ba
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   cd tools/power/x86/x86_energy_perf_policy/
Josh Boyer b08093
   make
Josh Boyer b08093
   cd -
Josh Boyer b08093
   cd tools/power/x86/turbostat
Josh Boyer b08093
   make
Josh Boyer b08093
   cd -
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
# Make the HTML and man pages.
Chuck Ebbert 224772
make htmldocs mandocs || %{doc_build_fail}
Jesse Keating 7a3296
Jesse Keating 7a3296
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a3296
chmod -R a=rX Documentation
Jesse Keating 7a3296
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### Special hacks for debuginfo subpackages.
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# This macro is used by %%install, so we must redefine it before that.
Jesse Keating 7a3296
%define debug_package %{nil}
Jesse Keating 7a3296
Josh Boyer 8febe3
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer 8febe3
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer 8febe3
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer 8febe3
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer 8febe3
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer 8febe3
# signing the modules we actually built/installed in that flavour.  3) We
Josh Boyer 8febe3
# grab the arch and invoke 'make modules_sign' and the mod-extra-sign.sh
Josh Boyer 8febe3
# commands to actually sign the modules.
Josh Boyer 8febe3
#
Josh Boyer 8febe3
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer 8febe3
# that will strip the signature off of the modules.
Josh Boyer 8febe3
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
%define __debug_install_post \
Jesse Keating 7a3296
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Josh Boyer 8febe3
  if [ "%{signmodules}" == "1" ]; \
Josh Boyer 8febe3
  then \
Josh Boyer 8febe3
    if [ "%{with_pae}" != "0" ]; \
Josh Boyer 8febe3
    then \
Josh Boyer 8febe3
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-PAE.config | cut -b 3-` \
Josh Boyer 8febe3
      rm -rf .tmp_versions \
Josh Boyer 8febe3
      mv .tmp_versions.sign.PAE .tmp_versions \
Josh Boyer de2801
      mv signing_key.priv.sign.PAE signing_key.priv \
Josh Boyer de2801
      mv signing_key.x509.sign.PAE signing_key.x509 \
Josh Boyer 8febe3
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.PAE \
Josh Boyer 8febe3
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAE/extra/ \
Josh Boyer 8febe3
    fi \
Josh Boyer 8febe3
    if [ "%{with_debug}" != "0" ]; \
Josh Boyer 8febe3
    then \
Josh Boyer 8febe3
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-debug.config | cut -b 3-` \
Josh Boyer 8febe3
      rm -rf .tmp_versions \
Josh Boyer 8febe3
      mv .tmp_versions.sign.debug .tmp_versions \
Josh Boyer de2801
      mv signing_key.priv.sign.debug signing_key.priv \
Josh Boyer de2801
      mv signing_key.x509.sign.debug signing_key.x509 \
Josh Boyer 8febe3
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.debug \
Josh Boyer 8febe3
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.debug/extra/ \
Josh Boyer 8febe3
    fi \
Josh Boyer 8febe3
    if [ "%{with_pae_debug}" != "0" ]; \
Josh Boyer 8febe3
    then \
Josh Boyer 8febe3
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}-PAEdebug.config | cut -b 3-` \
Josh Boyer 8febe3
      rm -rf .tmp_versions \
Josh Boyer 8febe3
      mv .tmp_versions.sign.PAEdebug .tmp_versions \
Josh Boyer de2801
      mv signing_key.priv.sign.PAEdebug signing_key.priv \
Josh Boyer de2801
      mv signing_key.x509.sign.PAEdebug signing_key.x509 \
Josh Boyer 8febe3
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL}.PAEdebug \
Josh Boyer 8febe3
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAEdebug/extra/ \
Josh Boyer 8febe3
    fi \
Josh Boyer 8febe3
    if [ "%{with_up}" != "0" ]; \
Josh Boyer 8febe3
    then \
Josh Boyer 8febe3
      Arch=`head -1 configs/kernel-%{version}-%{_target_cpu}.config | cut -b 3-` \
Josh Boyer 8febe3
      rm -rf .tmp_versions \
Josh Boyer 8febe3
      mv .tmp_versions.sign .tmp_versions \
Josh Boyer de2801
      mv signing_key.priv.sign signing_key.priv \
Josh Boyer de2801
      mv signing_key.x509.sign signing_key.x509 \
Josh Boyer 8febe3
      make -s ARCH=$Arch V=1 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_sign KERNELRELEASE=%{KVERREL} \
Josh Boyer 8febe3
      %{SOURCE18} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/extra/ \
Josh Boyer 8febe3
    fi \
Josh Boyer 8febe3
  fi \
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%global __debug_package 1
Jesse Keating 7a3296
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### install
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%install
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
man9dir=$RPM_BUILD_ROOT%{_datadir}/man/man9
Jesse Keating 7a3296
Jesse Keating 7a3296
# copy the source over
Jesse Keating 7a3296
mkdir -p $docdir
Josh Boyer 08ed14
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a3296
Jesse Keating 7a3296
# Install man pages for the kernel API.
Jesse Keating 7a3296
mkdir -p $man9dir
Jesse Keating 7a3296
find Documentation/DocBook/man -name '*.9.gz' -print0 |
Jesse Keating 7a3296
xargs -0 --no-run-if-empty %{__install} -m 444 -t $man9dir $m
Jesse Keating 7a3296
ls $man9dir | grep -q '' || > $man9dir/BROKEN
Jesse Keating 7a3296
%endif # with_doc
Jesse Keating 7a3296
Josh Boyer 8addb5
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5
# it doesn't install itself.
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
# Install kernel headers
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do headers_check but don't die if it fails.
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a3296
     > hdrwarnings.txt || :
Jesse Keating 7a3296
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a3296
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a3296
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a3296
   # exit 1
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a3296
     \( -name .install -o -name .check -o \
Jesse Keating 7a3296
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf tool binary and supporting scripts/binaries
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
Josh Boyer 8addb5
Kyle McMartin ec31ef
# python-perf extension
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31ef
Josh Boyer 8addb5
# perf man pages (note: implicit rpm magic compresses them later)
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 9c44ba
make -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5
%find_lang cpupower
Josh Boyer 8addb5
mv cpupower.lang ../
Josh Boyer 9c44ba
%ifarch %{ix86}
Josh Boyer 8addb5
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 8addb5
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Josh Boyer 9c44ba
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 9c44ba
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 8addb5
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   mkdir -p %{buildroot}%{_mandir}/man8
Josh Boyer b08093
   cd tools/power/x86/x86_energy_perf_policy
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Josh Boyer b08093
   cd -
Josh Boyer b08093
   cd tools/power/x86/turbostat
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Josh Boyer b08093
   cd -
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### clean
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%clean
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### scripts
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Josh Boyer 93e777
%if %{with_tools}
Josh Boyer 8addb5
%post -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 8addb5
Josh Boyer 8addb5
%postun -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 93e777
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_post() \
Jesse Keating 7a3296
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a3296
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
Jesse Keating 7a3296
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a3296
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a3296
     done)\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Josh Boyer b8b278
#
Josh Boyer b8b278
# This macro defines a %%post script for a kernel*-modules-extra package.
d84177
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b278
#
Josh Boyer b8b278
%define kernel_modules_extra_post() \
Josh Boyer b8b278
%{expand:%%post %{?1:%{1}-}modules-extra}\
Josh Boyer b8b278
/sbin/depmod -a %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b278
%{nil}
Josh Boyer 8addb5
Jesse Keating 7a3296
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_posttrans() \
Jesse Keating 7a3296
%{expand:%%posttrans %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --mkinitrd --dracut --depmod --update %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?1:-%{1}} --rpmposttrans %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a3296
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_post(v:r:) \
Jesse Keating 7a3296
%{expand:%%kernel_devel_post %{?-v*}}\
Josh Boyer b8b278
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%post %{?-v*}}\
Jesse Keating 7a3296
%{-r:\
Jesse Keating 7a3296
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a3296
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a3296
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi}\
Jesse Keating 7a3296
%{expand:\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --install %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_preun() \
Jesse Keating 7a3296
%{expand:%%preun %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun
Jesse Keating 7a3296
%kernel_variant_post -r kernel-smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun smp
Jesse Keating 7a3296
%kernel_variant_post -v smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun PAE
Jesse Keating 7a3296
%kernel_variant_post -v PAE -r (kernel|kernel-smp)
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun debug
Jesse Keating 7a3296
%kernel_variant_post -v debug
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp)
Jesse Keating 7a3296
%kernel_variant_preun PAEdebug
Jesse Keating 7a3296
534352
%kernel_variant_preun kirkwood
534352
%kernel_variant_post -v kirkwood
534352
Jesse Keating 7a3296
if [ -x /sbin/ldconfig ]
Jesse Keating 7a3296
then
Jesse Keating 7a3296
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### file lists
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
%files headers
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/include/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
%files bootwrapper
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/sbin/*
Jesse Keating 7a3296
%{_libdir}/kernel-wrapper
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only some architecture builds need kernel-doc
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
%files doc
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
%{_datadir}/man/man9/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%files -n perf
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_bindir}/perf
Jesse Keating 7a3296
%dir %{_libexecdir}/perf-core
Jesse Keating 7a3296
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/perf*
Josh Boyer 5b55e6
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337c
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%files -n python-perf
Kyle McMartin 42d4c3
%defattr(-,root,root)
Kyle McMartin 42d4c3
%{python_sitearch}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%if %{with_debuginfo}
Kyle McMartin 42d4c3
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 27d8a0
Josh Boyer 27d8a0
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0
%defattr(-,root,root)
Kyle McMartin 42d4c3
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Roland McGrath 3c4ea9
Kyle McMartin 42d4c3
%if %{with_tools}
Kyle McMartin 42d4c3
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
%{_bindir}/cpupower
Josh Boyer 6ec053
%ifarch %{ix86} x86_64
Josh Boyer 8addb5
%{_bindir}/centrino-decode
Josh Boyer 8addb5
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053
%endif
Josh Boyer 8addb5
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
%{_bindir}/x86_energy_perf_policy
Josh Boyer b08093
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b08093
%{_bindir}/turbostat
Josh Boyer b08093
%{_mandir}/man8/turbostat*
Josh Boyer b08093
%endif
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Roland McGrath 3c4ea9
%if %{with_debuginfo}
Josh Boyer 8addb5
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9
%defattr(-,root,root)
Roland McGrath 3c4ea9
%endif
Josh Boyer 8addb5
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 3b80dd
%files -n kernel-tools-libs
Josh Boyer 3b80dd
%{_libdir}/libcpupower.so.0
Josh Boyer 3b80dd
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 3b80dd
Josh Boyer 3b80dd
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5
%{_libdir}/libcpupower.so
Josh Boyer 8addb5
%{_includedir}/cpufreq.h
Josh Boyer 8addb5
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Jesse Keating 7a3296
Dave Jones 166b79
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a3296
# or empty otherwise.
Jesse Keating 7a3296
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a3296
# and its devel and debuginfo packages.
Jesse Keating 7a3296
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_files(k:) \
Jesse Keating 7a3296
%if %{1}\
Jesse Keating 7a3296
%{expand:%%files %{?2}}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Kyle McMartin f6dd1f
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
Josh Boyer 70f813
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:.%{2}}.hmac \
556ae3
%ifarch %{arm}\
556ae3
/%{image_install_path}/dtb-%{KVERREL}%{?2:.%{2}} \
556ae3
%endif\
Kyle McMartin d28776
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/boot/config-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
Jesse Keating 7a3296
%ifarch %{vdso_arches}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
Jesse Keating 7a3296
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
Jesse Keating 7a3296
%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Josh Boyer b8b278
%{expand:%%files %{?2:%{2}-}modules-extra}\
Josh Boyer b8b278
%defattr(-,root,root)\
Josh Boyer b8b278
/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
Jesse Keating 7a3296
%if %{with_debuginfo}\
Jesse Keating 7a3296
%ifnarch noarch\
Jesse Keating 7a3296
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_files %{with_up}
Jesse Keating 7a3296
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a3296
%kernel_variant_files %{with_debug} debug
Jesse Keating 7a3296
%kernel_variant_files %{with_pae} PAE
Jesse Keating 7a3296
%kernel_variant_files %{with_pae_debug} PAEdebug
534352
%kernel_variant_files %{with_kirkwood} kirkwood
Jesse Keating 7a3296
Jesse Keating 7a3296
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a3296
# and build.
Jesse Keating 7a3296
Josh Boyer 3575ff
#  ___________________________________________________________
Josh Boyer 49977f
# / This branch is for Fedora 18. You probably want to commit \
Josh Boyer 49977f
# \ to the F-17 branch instead, or in addition to this one.   /
Josh Boyer 3575ff
#  -----------------------------------------------------------
Josh Boyer 3575ff
#         \   ^__^
Josh Boyer 3575ff
#          \  (@@)\_______
Josh Boyer 3575ff
#             (__)\       )\/\
Josh Boyer 3575ff
#                 ||----w |
Josh Boyer 3575ff
#                 ||     ||
Jesse Keating 7a3296
%changelog
2916df
* Mon Dec 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
2916df
- Fix host lockup in bridge code when starting from virt guest (rhbz 1025770)
2916df
c519a2
* Thu Dec 12 2013 Josh Boyer <jwboyer@fedoraproject.org>
9f1cdf
- CVE-2013-4587 kvm: out-of-bounds access (rhbz 1030986 1042071)
20c505
- CVE-2013-6376 kvm: BUG_ON in apic_cluster_id (rhbz 1033106 1042099)
537c68
- CVE-2013-6368 kvm: cross page vapic_addr access (rhbz 1032210 1042090)
c519a2
- CVE-2013-6367 kvm: division by 0 in apic_get_tmcct (rhbz 1032207 1042081)
c519a2
841005
* Wed Dec 11 2013 Josh Boyer <jwboyer@fedoraproject.org>
841005
- Add patches to support ETPS/2 Elantech touchpads (rhbz 1030802)
841005
26ef17
* Tue Dec 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
26ef17
- CVE-2013-XXXX net: memory leak in recvmsg (rhbz 1039845 1039874)
26ef17
45b5fd
* Tue Dec 03 2013 Josh Boyer <jwboyer@fedoraproject.org>
45b5fd
- Add patches to fix rfkill switch on Dell machines (rhbz 958826)
45b5fd
6d027e
* Sat Nov 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
6d027e
- CVE-2013-6405 net: leak of uninited mem to userspace via recv syscalls (rhbz 1035875 1035887)
6d027e
6f3bcb
* Fri Nov 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.10-100
6f3bcb
- Linux v3.11.10
df4228
- Fix memory leak in qxl (from Dave Airlie)
df4228
05b8b9
* Tue Nov 26 2013 Josh Boyer <jwboyer@fedoraproject.org>
fdd460
- Add patch to fix usbnet URB handling (rhbz 998342)
5b9366
- Fix crash in via-velocity driver (rhbz 1022733)
05b8b9
- CVE-2013-6382 xfs: missing check for ZERO_SIZE_PTR (rhbz 1033603 1034670)
05b8b9
e76774
* Mon Nov 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
457c71
- CVE-2013-6380 aacraid: invalid pointer dereference (rhbz 1033593 1034304)
e76774
- CVE-2013-6378 libertas: potential oops in debugfs (rhbz 1033578 1034183)
e76774
7306d3
* Fri Nov 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
7306d3
- Add patches from Jeff Layton to fix 15sec NFS mount hang
7306d3
98d2c8
* Wed Nov 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.9-100
98d2c8
- Linux v3.11.9
98d2c8
741d87
* Mon Nov 18 2013 Josh Boyer <jwboyer@fedoraproject.org>
be089e
- Add patch to fix rhel5.9 KVM guests (rhbz 967652)
277122
- Add patch to fix crash from slab when using md-raid mirrors (rhbz 1031086)
f0c371
- Add patches from Pierre Ossman to fix 24Hz/24p radeon audio (rhbz 1010679)
961cc9
- Add patch to fix ALX phy issues after resume (rhbz 1011362)
741d87
- Fix ipv6 sit panic with packet size > mtu (from Michele Baldessari) (rbhz 1015905)
741d87
cd2a7b
* Thu Nov 14 2013 Josh Boyer <jwboyer@fedoraproject.org>
cd2a7b
- CVE-2013-4563: net: large udp packet over IPv6 over UFO-enabled device with TBF qdisc panic (rhbz 1030015 1030017)
cd2a7b
73a4ef
* Wed Nov 13 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.8-100
73a4ef
- Linux v3.11.8
73a4ef
f2fe33
* Sat Nov 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
99f4e6
- Add patch from Daniel Stone to avoid high order allocations in evdev
f2fe33
- Add qxl backport fixes from Dave Airlie
f2fe33
288eb7
* Mon Nov 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.7-100
288eb7
- Add patch to fix iwlwifi queue settings backtrace (rhbz 1025769)
288eb7
288eb7
* Mon Nov 04 2013 Justin M. Forbes <jforbes@fedoraproject.org>
697844
- Linux v3.11.7
697844
f1987e
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.6-101
f1987e
- Revert blocking patches causing systemd to crash on resume (rhbz 1010603)
65f14f
- CVE-2013-4348 net: deadloop path in skb_flow_dissect (rhbz 1007939 1025647)
65f14f
26d3ee
* Thu Oct 31 2013 Josh Boyer <jwboyer@fedoraprorject.org>
26d3ee
- Fix display regression on Dell XPS 13 machines (rhbz 995782)
26d3ee
56f4eb
* Tue Oct 29 2013 Josh Boyer <jwboyer@fedoraproject.org>
56f4eb
- Fix plaintext auth regression in cifs (rhbz 1011621)
56f4eb
24372f
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
c8cb07
- CVE-2013-4470 net: memory corruption with UDP_CORK and UFO (rhbz 1023477 1023495)
24372f
- Add touchpad support for Dell XT2 (rhbz 1023413)
24372f
10ef19
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
10ef19
- Add patch to fix warning in tcp_fastretrans_alert (rhbz 989251)
10ef19
e097dc
* Fri Oct 18 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.6-100
e097dc
- Linux v3.11.6
e097dc
12c7ac
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
d84051
- Add patch to fix BusLogic error (rhbz 1015558)
12c7ac
- Fix rt2800usb polling timeouts and throughput issues (rhbz 984696)
12c7ac
be5fc1
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org> 
be5fc1
- Fix btrfs balance/scrub issue (rhbz 1011714)
be5fc1
6a0464
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org>
6a0464
- Fix regression in radeon sound (rhbz 1010679)
6a0464
Kyle McMartin 3b13d9
* Mon Oct 14 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 3b13d9
- Fix crash-driver.patch to properly use page_is_ram. 
Kyle McMartin 3b13d9
8acf10
* Mon Oct 14 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.5-100
8acf10
- Linux v3.11.5
8acf10
bc253d
* Fri Oct 11 2013 Josh Boyer <jwboyer@fedoraproject.org>
bc253d
- Fix segfault in cpupower set (rhbz 1000439)
bc253d
ea640b
* Thu Oct 10 2013 Justin M. Forbes <jforbes@fedoraproject.org> - 3.11.4-101
ea640b
- Fix linux-firmware requirement
ea640b
58a132
* Thu Oct 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
8b0a70
- USB OHCI accept very late isochronous URBs (in 3.11.4) (rhbz 975158)
58a132
- Fix large order allocation in dm mq policy (rhbz 993744)
58a132
7fc3fa
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
9f379b
- Don't trigger a stack trace on crashing iwlwifi firmware (rhbz 896695)
7fc3fa
- Add patch to fix VFIO IOMMU crash (rhbz 998732)
7fc3fa
6d371d
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org>
6d371d
- Add patch to fix nouveau crash (rhbz 1015920)
6d371d
4e941e
* Tue Oct 08 2013 Justin M. Forbes <jforbes@fedoraproject.org>
4e941e
- Linux v3.11.4
20a013
- Add missing 3.11 patches from F19
4e941e
088b8c
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org>
6fdf37
- Quiet irq remapping stack trace (rhbz 982153)
088b8c
- Use RCU safe kfree for conntrack (rhbz 1015989)
088b8c
7d5ba3
* Fri Oct 4 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.14-100
7d5ba3
- Linux v3.10.14
7d5ba3
00be9c
* Thu Oct 3 2013 Josh Boyer <jwboyer@fedoraproject.org>
00be9c
- CVE-2013-4387 ipv6: panic when UFO=On for an interface (rhbz 1011927 1015166)
00be9c
5023d7
* Mon Sep 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
5023d7
- Drop VC_MUTE patch (rhbz 859485)
5023d7
1fdfb5
* Fri Sep 27 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.13-101
1fdfb5
- Bump and tag for build
1fdfb5
9827a3
* Fri Sep 27 2013 Josh Boyer <jwboyer@fedoraproject.org>
945a21
- Add HID revert patch to fix logitech unifying devices (rhbz 1013000)
9827a3
- Add patches to fix soft lockup from elevator changes (rhbz 902012)
9827a3
2838ee
* Fri Sep 27 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.13-100
2838ee
- Linux v3.10.13
2838ee
Neil Horman 38d9b6
* Mon Sep 23 2013 Neil Horman <nhorman@redhat.com>
Neil Horman 38d9b6
- Add alb learning packet config knob (rhbz 971893)
Neil Horman 38d9b6
b3ab68
* Fri Sep 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
b3ab68
- Fix multimedia keys on Genius GX keyboard (rhbz 928561)
b3ab68
836271
* Tue Sep 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
836271
- CVE-2013-4345 ansi_cprng: off by one error in non-block size request (rhbz 1007690 1009136)
836271
ef6fcf
* Mon Sep 16 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.12-100
ef6fcf
- Linux v3.10.12
ef6fcf
b5802b
* Fri Sep 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
cddf6d
- CVE-2013-4350 net: sctp: ipv6 ipsec encryption bug in sctp_v6_xmit (rhbz 1007872 1007903)
b5802b
- CVE-2013-4343 net: use-after-free TUNSETIFF (rhbz 1007733 1007741)
b5802b
a22775
* Thu Sep 12 2013 Josh Boyer <jwboyer@fedoraproject.org>
a22775
- Update HID CVE fixes to fix crash from lenovo-tpkbd driver (rhbz 1003998)
a22775
Neil Horman f9abad
* Wed Sep 11 2013 Neil Horman <nhorman@redhat.com>
Neil Horman f9abad
- Fix race in crypto larval lookup
Neil Horman f9abad
4949ed
* Mon Sep 09 2013 Josh Boyer <jwboyer@fedoraproject.org> 3.10.11-100
dd3844
- Fix system freeze due to incorrect rt2800 initialization (rhbz 1000679)
dd3844
4949ed
* Mon Sep 09 2013 Justin M. Forbes <jforbes@fedoraproject.org>
e0efd0
- Linux v3.10.11
e0efd0
2392a8
* Fri Aug 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
2392a8
- Fix HID CVEs.  Absurd.
2392a8
- CVE-2013-2888 rhbz 1000451 1002543 CVE-2013-2889 rhbz 999890 1002548
2392a8
- CVE-2013-2891 rhbz 999960 1002555  CVE-2013-2892 rhbz 1000429 1002570
2392a8
- CVE-2013-2893 rhbz 1000414 1002575 CVE-2013-2894 rhbz 1000137 1002579
2392a8
- CVE-2013-2895 rhbz 1000360 1002581 CVE-2013-2896 rhbz 1000494 1002594
2392a8
- CVE-2013-2897 rhbz 1000536 1002600 CVE-2013-2899 rhbz 1000373 1002604
2392a8
6f9dd9
* Thu Aug 29 2013 Justin M. Forbes <jforbes@fedoraproject.org> 3.10.10-100
6f9dd9
- Linux v3.10.10
6f9dd9
c6db3c
* Wed Aug 28 2013 Josh Boyer <jwboyer@fedoraproject.org>
c6db3c
- Add mei patches that fix various s/r issues (rhbz 994824 989373)
c6db3c
33cc77
* Wed Aug 21 2013 Josh Boyer <jwboyer@fedoraproject.org>
97e85a
- Add patch to fix brcmsmac oops (rhbz 989269)
33cc77
- CVE-2013-0343 handling of IPv6 temporary addresses (rhbz 914664 999380)
33cc77
33cc77
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
611904
- Linux v3.10.9
611904
611904
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.10.8-100
5bf1cd
- Linux v3.10.8
5bf1cd
- CVE-2013-4254 ARM: perf: NULL pointer dereference in validate_event (rhbz 998878 998881)
5bf1cd
9238c2
* Fri Aug 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
9238c2
- Add patch from Nathanael Noblet to fix mic on Gateway LT27 (rhbz 845699)
9238c2
Josh Boyer a5e751
* Thu Aug 15 2013 Josh Boyer <jwboyer@redhat.com> - 3.10.7-100
Josh Boyer 112c71
- Add patch to fix regression on TeVII S471 devices (rhbz 963715)
Josh Boyer a5e751
- Linux v3.10.7
Josh Boyer a5e751
781a64
* Mon Aug 12 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.6-100
781a64
- Linux v3.10.6
781a64
15b4cc
* Wed Aug 07 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.5-101
15b4cc
- Bump for rebuild after koji hiccup
15b4cc
Josh Boyer 48fa95
* Wed Aug 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 48fa95
- Add zero file length check to make sure pesign didn't fail (rhbz 991808)
Josh Boyer 48fa95
eee591
* Tue Aug 06 2013 Justin M. Forbes <jforbes@redhat.com> 3.10.5-100
eee591
- update s390x config [Dan Horรกk]
eee591
d84177
* Mon Aug 05 2013 Justin M. Forbes <jforbes@redhat.com>
9a4570
- Linux v3.10.5
9a4570
1ff229
* Thu Aug  1 2013 Peter Robinson <pbrobinson@fedoraproject.org> - 3.10.4-100
391861
- Rebase ARM config
391861
85ccd6
* Thu Aug 01 2013 Justin M. Forbes <jforbes@redhat.com>
07ec88
- Update s390x config
07ec88
07ec88
* Thu Aug 01 2013 Justin M. Forbes <jforbes@redhat.com>
85ccd6
- Rebase to 3.10.4
85ccd6
  dropped:
85ccd6
   debug-bad-pte-dmi.patch
85ccd6
   debug-bad-pte-modules.patch
85ccd6
   VMX-x86-handle-host-TSC-calibration-failure.patch
85ccd6
   ipv6-ip6_sk_dst_check-must-not-assume-ipv6-dst.patch
85ccd6
   af_key-fix-info-leaks-in-notify-messages.patch
85ccd6
   arm-tegra-fixclk.patch
85ccd6
   vhost-net-fix-use-after-free-in-vhost_net_flush.patch
85ccd6
   0001-drivers-crypto-nx-fix-init-race-alignmasks-and-GCM-b.patch
85ccd6
   i7300_edac_single_mode_fixup.patch
85ccd6
   drivers-hwmon-nct6775.patch
85ccd6
   iwlwifi-pcie-fix-race-in-queue-unmapping.patch
85ccd6
   iwlwifi-pcie-wake-the-queue-if-stopped-when-being-unmapped.patch
85ccd6
   cve-2013-4125.patch
85ccd6
   iwlwifi-add-new-pci-id-for-6x35-series.patch
85ccd6
   ipv6-ip6_append_data_mtu-did-not-care-about-pmtudisc-and_frag_size.patch
85ccd6
   ipv6-call-udp_push_pending_frames-when-uncorking-a-socket-with-AF_INET-pending-data.patch
85ccd6
Josh Boyer 652a69
* Thu Aug 01 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 5499ee
- Fix mac80211 connection issues (rhbz 981445)
Josh Boyer 652a69
- Fix firmware issues with iwl4965 and rfkill (rhbz 977053)
Josh Boyer 652a69
Josh Boyer 0a6c27
* Mon Jul 29 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 0a6c27
- Add support for elantech v7 devices (rhbz 969473)
Josh Boyer 0a6c27
Josh Boyer 131f0a
* Fri Jul 26 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 131f0a
- Add patch to fix NULL deref in iwlwifi (rhbz 979581)
Josh Boyer 131f0a
Josh Boyer a4d361
* Wed Jul 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 807747
- CVE-2013-4162 net: panic while pushing pending data out of a IPv6 socket with UDP_CORK enabled (rhbz 987627 987656)
Josh Boyer a4d361
- CVE-2013-4163 net: panic while appending data to a corked IPv6 socket in ip6_append_data_mtu (rhbz 987633 987639)
Josh Boyer a4d361
Josh Boyer 5596f3
* Mon Jul 22 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.11-200
Josh Boyer 6dcbc3
- Fix timer issue in bridge code (rhbz 980254)
Josh Boyer 833d99
- Add patch for iwlwifi 6x35 devices (rhbz 986538)
Josh Boyer 53399c
- Linux v3.9.11
Josh Boyer 53399c
Dave Jones 2667ca
* Fri Jul 19 2013 Dave Jones <davej@redhat.com>
Dave Jones 2667ca
- CVE-2013-4125  ipv6: BUG_ON in fib6_add_rt2node() (rhbz 984664)
Dave Jones 2667ca
Josh Boyer 7eabed
* Sat Jul 13 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.10-200
Josh Boyer 7eabed
- Linux v3.9.10
Josh Boyer 7eabed
Dave Jones 16dbeb
* Fri Jul 12 2013 Dave Jones <davej@redhat.com> - 3.9.9-203
Dave Jones 16dbeb
- Disable LATENCYTOP/SCHEDSTATS in non-debug builds.
Dave Jones 16dbeb
Josh Boyer 6c78bc
* Fri Jul 12 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8c58af
- Fix various overflow issues in ext4 (rhbz 976837)
Josh Boyer 6c78bc
- Add iwlwifi fix for connection issue (rhbz 885407)
Josh Boyer 6c78bc
Josh Boyer b31105
* Fri Jul 05 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b9f0d9
- Add report fixup for Genius Gila mouse from Benjamin Tissoires (rhbz 959721)
Josh Boyer 15eecb
- Add vhost-net use-after-free fix (rhbz 976789 980643)
Josh Boyer e7d7a6
- Add fix for timer issue in bridge code (rhbz 980254)
Josh Boyer b31105
- CVE-2013-2232 ipv6: using ipv4 vs ipv6 structure during routing lookup in sendmsg (rhbz 981552 981564)
Josh Boyer b31105
Josh Boyer 3e6b75
* Wed Jul 03 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.9-200
Josh Boyer a80f0d
- CVE-2013-1059 libceph: Fix NULL pointer dereference in auth client code (rhbz 977356 980341)
Josh Boyer d85f8a
- CVE-2013-2234 net: information leak in AF_KEY notify (rhbz 980995 981007)
Josh Boyer 1afd52
- Linux v3.9.9
Josh Boyer 1afd52
Josh Boyer 1afd52
* Wed Jul 03 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 82b878
- Add patches to fix iwl skb managment (rhbz 977040)
Josh Boyer 82b878
7ac2c9
* Thu Jun 27 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.8-200
7ac2c9
- Linux v3.9.8
7ac2c9
Josh Boyer 351409
* Thu Jun 27 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 351409
- Fix stack memory usage for DMA in ath3k (rhbz 977558)
Josh Boyer 351409
Josh Boyer e7af47
* Wed Jun 26 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer e7af47
- Add two patches to fix bridge networking issues (rhbz 880035)
Josh Boyer e7af47
Josh Boyer d09da5
* Mon Jun 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer d09da5
- Fix battery issue with bluetooth keyboards (rhbz 903741)
Josh Boyer d09da5
Josh Boyer f08e8e
* Fri Jun 21 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 78b911
- Add two patches to fix iwlwifi issues in unmapping
Josh Boyer f08e8e
- Add patch to fix carl9170 oops (rhbz 967271)
Josh Boyer f08e8e
0d22b0
* Thu Jun 20 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.7-200
0d22b0
- Linux v3.9.7
0d22b0
Mauro Carvalho Chehab c2c10b
* Wed Jun 19 2013 Mauro Carvalho Chehab
Mauro Carvalho Chehab c2c10b
- Add and enable upstream kernel driver for nct6775 sensors
Mauro Carvalho Chehab c2c10b
Dave Jones 7c4fd1
* Tue Jun 18 2013 Dave Jones <davej@redhat.com>
Dave Jones 7c4fd1
- Disable MTRR sanitizer by default.
Dave Jones 7c4fd1
Josh Boyer 73be2d
* Thu Jun 13 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.6-200
Josh Boyer 73be2d
- Linux v3.9.6
Josh Boyer 73be2d
Josh Boyer 729afc
* Wed Jun 12 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c98aa6
- Fix KVM divide by zero error (rhbz 969644)
Josh Boyer 729afc
- Add fix for rt5390/rt3290 regression (rhbz 950735)
Josh Boyer 729afc
Josh Boyer 6bca20
* Tue Jun 11 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.5-201
Josh Boyer d6d68e
- Add patches to fix MTRR issues in 3.9.5 (rhbz 973185)
Josh Boyer ce5fae
- Add two patches to fix issues with vhost_net and macvlan (rhbz 954181)
Josh Boyer 2bd4b1
- CVE-2013-2164 information leak in cdrom driver (rhbz 973100 973109)
Josh Boyer 2bd4b1
Josh Boyer 6bb741
* Mon Jun 10 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.5-200
Josh Boyer a5e016
- Linux v3.9.5
Josh Boyer a5e016
Josh Boyer 4c6eb6
* Fri Jun 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 33c1a6
- CVE-2013-2851 block: passing disk names as format strings (rhbz 969515 971662)
Josh Boyer 4c6eb6
- CVE-2013-2852 b43: format string leaking into error msgs (rhbz 969518 971665)
Josh Boyer 4c6eb6
Josh Boyer aec19f
* Thu Jun 06 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 21d956
- CVE-2013-2148 fanotify: info leak in copy_event_to_user (rhbz 971258 971261)
Josh Boyer aec19f
- CVE-2013-2147 cpqarray/cciss: information leak via ioctl (rhbz 971242 971249)
Josh Boyer aec19f
Josh Boyer 3339e8
* Wed Jun 05 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3339e8
- CVE-2013-2140 xen: blkback: insufficient permission checks for BLKIF_OP_DISCARD (rhbz 971146 971148)
Josh Boyer 3339e8
Josh Boyer 342e72
* Mon Jun 03 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 342e72
- Fix UEFI anti-bricking code (rhbz 964335)
Josh Boyer 342e72
Josh Boyer 4ae240
* Fri May 31 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 4ae240
- CVE-2013-2850 iscsi-target: heap buffer overflow on large key error (rhbz 968036 969272)
Josh Boyer 4ae240
805d0e
* Fri May 24 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.4-200
805d0e
- Linux v3.9.4
805d0e
Josh Boyer b51f2e
* Fri May 24 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b51f2e
- Add patch to quiet irq remapping failures (rhbz 948262)
Josh Boyer b51f2e
Josh Boyer afcba0
* Thu May 23 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer afcba0
- Fix oops from incorrect rfkill set in hp-wmi (rhbz 964367)
Josh Boyer afcba0
Josh Boyer 5d01e4
* Wed May 22 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 08acba
- Fix memcmp error in iwlwifi
Josh Boyer 5d01e4
Josh Boyer ea06f6
* Tue May 21 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.3-201
Josh Boyer ea06f6
- Fix modules-extra signing with 3.9 kernels (rhbz 965181)
Josh Boyer ea06f6
Josh Boyer 58f612
* Mon May 20 2013 Josh Boyer <jwboyer@redhat.com> - 3.9.3-200
Josh Boyer 58f612
- Linux 3.9.3
Josh Boyer d03943
- Update s390x config
Josh Boyer 58f612
Josh Boyer 033f53
* Thu May 16 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 033f53
- Fix config-local usage (rhbz 950841)
Josh Boyer 033f53
Dave Jones acc1b9
* Mon May 13 2013 Dave Jones <davej@redhat.com> - 3.9.2-200
Dave Jones acc1b9
- Linux 3.9.2
Dave Jones acc1b9
Dave Jones e32be2
* Fri May 10 2013 Dave Jones <davej@redhat.com> - 3.9.2-0.rc1.200
Dave Jones e32be2
- Linux 3.9.2-rc1
Dave Jones e32be2
9d5f83
* Thu May 9 2013 Peter Robinson <pbrobinson@fedoraproject.org>
9d5f83
- Disable PL330 on ARM as it's broken on highbank
9d5f83
597b5b
* Wed May  8 2013 Peter Robinson <pbrobinson@fedoraproject.org>
597b5b
- Add the ARM patches needed for 3.9 :-/
597b5b
Dave Jones a76c0c
* Wed May 08 2013 Dave Jones <davej@redhat.com> - 3.9.1-200
Dave Jones a76c0c
- Linux 3.9.1
Dave Jones a76c0c
Josh Boyer 05b62e
* Wed May 08 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 05b62e
- Don't remove headers explicitly exported via UAPI (rhbz 959467)
Josh Boyer 05b62e
Josh Boyer c2a687
* Tue May 07 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c2a687
- Fix dmesg_restrict patch to avoid regression (rhbz 952655)
Josh Boyer c2a687
Dave Jones 1ddb55
* Mon May 06 2013 Dave Jones <davej@redhat.com> - 3.9.1-0.rc1.201
Dave Jones 06b327
- Linux 3.9.1-rc1
Dave Jones 06b327
  merged: wireless-regulatory-fix-channel-disabling-race-condition.patch
Dave Jones 06b327
  merged: iwlwifi-fix-freeing-uninitialized-pointer.patch
Dave Jones 06b327
Josh Boyer f10fcf
* Mon May 06 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f10fcf
- Rebase F18 secure-boot patchset to Linux v3.9
Josh Boyer f10fcf
904ddb
* Mon May  6 2013 Peter Robinson <pbrobinson@fedoraproject.org>
904ddb
- Initial rebase of ARM to 3.9
904ddb
Dave Jones 2123b2
* Mon May 06 2013 Dave Jones <davej@redhat.com> - 3.9.0-200
Dave Jones 2123b2
- Rebase to Linux 3.9
Dave Jones 2123b2
  merged: silence-empty-ipi-mask-warning.patch
Dave Jones 2123b2
  merged: quiet-apm.patch
Dave Jones 2123b2
  merged: Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
Dave Jones 2123b2
  merged: Input-add-support-for-Cypress-PS2-Trackpads.patch
Dave Jones 2123b2
  merged: Input-cypress_ps2-fix-trackpadi-found-in-Dell-XPS12.patch
Dave Jones 2123b2
  merged: alps-v2.patch
Dave Jones 2123b2
  merged: userns-avoid-recursion-in-put_user_ns.patch
Dave Jones 2123b2
  merged: amd64_edac_fix_rank_count.patch
Dave Jones 2123b2
  merged: team-net-next-update-20130307.patch
Dave Jones 2123b2
  merged: uvcvideo-suspend-fix.patch
Dave Jones 2123b2
  merged: cfg80211-mac80211-disconnect-on-suspend.patch
Dave Jones 2123b2
  merged: mac80211_fixes_for_ieee80211_do_stop_while_suspend_v3.8.patch
Dave Jones 2123b2
  merged: mac80211-Dont-restart-sta-timer-if-not-running.patch
Dave Jones 2123b2
  merged: 0001-bluetooth-Add-support-for-atheros-04ca-3004-device-t.patch
Dave Jones 2123b2
  TODO: secure-boot
Dave Jones 2123b2
  TODO: ARM configs.
Dave Jones 2123b2
a7a3b2
* Wed May 01 2013 Justin M. Forbes <jforbes@redhat.com> - 3.8.11-200
a7a3b2
- Linux v3.8.11
a7a3b2
53d61b
* Mon Apr 29 2013 Justin M. Forbes <jforbes@redhat.com> - 3.8.10-200
53d61b
- Linux v3.8.10
53d61b
Josh Boyer a1255c
* Fri Apr 26 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.9-200
Josh Boyer a1255c
- Linux v3.8.9
Josh Boyer a1255c
Josh Boyer 8f4049
* Wed Apr 24 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-203
Josh Boyer 24030d
- CVE-2013-3228 irda: missing msg_namelen update in irda_recvmsg_dgram (rhbz 956069 956071)
Josh Boyer aba5c5
- CVE-2013-3230 l2tp: info leak in l2tp_ip6_recvmsg (rhbz 956088 956089)
Josh Boyer c416a9
- CVE-2013-3231 llc: Fix missing msg_namelen update in llc_ui_recvmsg (rhbz 956094 956104)
Josh Boyer 82eda8
- CVE-2013-3232 netrom: information leak via msg_name in nr_recvmsg (rhbz 956110 956113)
Josh Boyer 8499d9
- CVE-2013-3233 NFC: llcp: info leaks via msg_name in llcp_sock_recvmsg (rhbz 956125 956129)
Josh Boyer eaa764
- CVE-2013-3234 rose: info leak via msg_name in rose_recvmsg (rhbz 956135 956139)
Josh Boyer d698a1
- CVE-2013-3076 crypto: algif suppress sending src addr info in recvmsg (rhbz 956162 956168)
Josh Boyer d698a1
Josh Boyer d698a1
* Tue Apr 23 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f300ff
- CVE-2013-3223 ax25: information leak via msg_name in ax25_recvmsg (rhbz 955662 955666)
Josh Boyer 8addbb
- CVE-2013-3225 Bluetooth: RFCOMM missing msg_namelen update in rfcomm_sock_recvmsg (rhbz 955649 955658)
Josh Boyer 66a997
- CVE-2013-1979 net: incorrect SCM_CREDENTIALS passing (rhbz 955629 955647)
Josh Boyer 875e72
- CVE-2013-3224 Bluetooth: possible info leak in bt_sock_recvmsg (rhbz 955599 955607)
Josh Boyer 875e72
Josh Boyer 811fc7
* Mon Apr 22 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 811fc7
- CVE-2013-3222 atm: update msg_namelen in vcc_recvmsg (rhbz 955216 955228)
Josh Boyer 811fc7
Josh Boyer e299ee
* Wed Apr 17 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-202
Josh Boyer e299ee
- Fix missing raid REQ_WRITE_SAME flag commit (rhbz 947539)
Josh Boyer e299ee
Josh Boyer c000c5
* Wed Apr 17 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.8-201
Josh Boyer c000c5
- Linux v3.8.8
Josh Boyer c000c5
Josh Boyer 926608
* Tue Apr 16 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer f6772c
- Fix uninitialized variable free in iwlwifi (rhbz 951241)
Josh Boyer 926608
- Fix race in regulatory code (rhbz 919176)
Josh Boyer 926608
Josh Boyer 5117b2
* Mon Apr 15 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 5117b2
- tracing: NULL pointer dereference (rhbz 952197 952217)
Josh Boyer 5df591
- Fix debug patches to build on s390x/ppc
Josh Boyer 5117b2
Josh Boyer 1eac3c
* Fri Apr 12 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.7-201
Josh Boyer 1eac3c
- Linux v3.8.7
Josh Boyer 8924cb
- Enable CONFIG_LDM_PARTITION (rhbz 948636)
Josh Boyer 8924cb
Dave Jones ee5b17
* Thu Apr 11 2013 Dave Jones <davej@redhat.com>
Dave Jones ee5b17
- Print out some extra debug information when we hit bad page tables.
Dave Jones ee5b17
Josh Boyer 3e5379
* Thu Apr 11 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3e5379
- Fix ALPS backport patch (rhbz 812111)
Josh Boyer 3e5379
Josh Boyer 1afd52
* Tue Apr 09 2013 Josh Boyer <jwboyer@redhat.com> - 3.8.6-203
Josh Boyer 32c7b9
- Temporarily work around pci device assignment issues (rhbz 908888)
Josh Boyer e72a53
- CVE-2013-1929 tg3: len overflow in VPD firmware parsing (rhbz 949932 949946)
Josh Boyer d79c15
- Backport intel brightness quirk for emachines (rhbz 871932)
Josh Boyer d79c15
fbcca0
* Mon Apr  8 2013 Peter Robinson <pbrobinson@fedoraproject.org>
fbcca0
- Enable CMA on ARM tegra
fbcca0
- Minor tweeks to ARM OMAP
fbcca0
Josh Boyer 97aee9
* Mon Apr 08 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 97aee9
- Add patch from Benjamin Tissoires to fix race in HID magicmouse (rhbz 908604)
Josh Boyer 97aee9
14ff3d