Jesse Keating 7a32965
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a32965
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a32965
Jesse Keating 7a32965
Summary: The Linux kernel
Jesse Keating 7a32965
Jesse Keating 7a32965
# Save original buildid for later if it's defined
Jesse Keating 7a32965
%if 0%{?buildid:1}
Jesse Keating 7a32965
%global orig_buildid %{buildid}
Jesse Keating 7a32965
%undefine buildid
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###################################################################
Jesse Keating 7a32965
# Polite request for people who spin their own kernel rpms:
Jesse Keating 7a32965
# please modify the "buildid" define in a way that identifies
Jesse Keating 7a32965
# that the kernel isn't the stock distribution kernel, for example,
Jesse Keating 7a32965
# by setting the define to ".local" or ".bz123456". This will be
Jesse Keating 7a32965
# appended to the full kernel version.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# (Uncomment the '#' and both spaces below to set the buildid.)
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# % define buildid .local
Jesse Keating 7a32965
###################################################################
Jesse Keating 7a32965
Jesse Keating 7a32965
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a32965
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a32965
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a32965
%if 0%{?orig_buildid:1}
Jesse Keating 7a32965
%if 0%{?buildid:1}
Jesse Keating 7a32965
%global srpm_buildid %{buildid}
Jesse Keating 7a32965
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define buildid %{orig_buildid}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Roland McGrath 377da6d
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6d
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6d
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a32965
#
Roland McGrath 377da6d
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6d
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Chuck Ebbert 8728f9c
# When changing real_sublevel below, reset this by hand to 1
Chuck Ebbert 8728f9c
# (or to 0 and then use rpmdev-bumpspec).
Chuck Ebbert c3126dc
#
e250736
%global baserelease 3
Roland McGrath 377da6d
%global fedora_build %{baserelease}
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
# real_sublevel is the 3.x kernel version we're starting with
Dave Jones 8c3a2d0
%define real_sublevel 2
Chuck Ebbert 8728f9c
# fake_sublevel is the 2.6.x version we're faking
Chuck Ebbert 8728f9c
%define fake_sublevel %(echo $((40 + %{real_sublevel})))
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do we have a -stable update to apply?
4801056
%define stable_update 9
Jesse Keating 7a32965
# Is it a -stable RC?
f906e02
%define stable_rc 0
Jesse Keating 7a32965
# Set rpm version accordingly
Jesse Keating 7a32965
%if 0%{?stable_update}
Jesse Keating 7a32965
%define stablerev .%{stable_update}
Jesse Keating 7a32965
%define stable_base %{stable_update}
Jesse Keating 7a32965
%if 0%{?stable_rc}
Jesse Keating 7a32965
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a32965
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Dave Jones 7f4ef57
%define rpmversion 2.6.%{fake_sublevel}%{?stablerev}
Jesse Keating 7a32965
Jesse Keating 7a32965
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a32965
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a32965
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a32965
# by later arch-specific checks.
Jesse Keating 7a32965
Jesse Keating 7a32965
# The following build options are enabled by default.
Jesse Keating 7a32965
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a32965
# to 0 in here to disable them.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# standard kernel
Jesse Keating 7a32965
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a32965
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a32965
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Jarod Wilson 5b03275
# kernel-PAE (only valid for i686)
Jarod Wilson 5b03275
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a32965
# kernel-debug
Jesse Keating 7a32965
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a32965
# kernel-doc
Jesse Keating 7a32965
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a32965
# kernel-headers
Jesse Keating 7a32965
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Jesse Keating 7a32965
# kernel-firmware
Jesse Keating 7a32965
%define with_firmware  %{?_with_firmware:     1} %{?!_with_firmware:     0}
Jesse Keating 7a32965
# tools/perf
Jesse Keating 7a32965
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Jesse Keating 7a32965
# kernel-debuginfo
Jesse Keating 7a32965
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a32965
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a32965
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a32965
# Want to build a the vsdo directories installed
Jesse Keating 7a32965
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
bfb05f2
# ARM OMAP (Beagle/Panda Board)
bfb05f2
%define with_omap      %{?_without_omap:      0} %{?!_without_omap:      1}
bfb05f2
# kernel-tegra (only valid for arm)
bfb05f2
%define with_tegra       %{?_without_tegra:       0} %{?!_without_tegra:       1}
2205d2a
# kernel-kirkwood (only valid for arm)
2205d2a
%define with_kirkwood       %{?_without_kirkwood:       0} %{?!_without_kirkwood:       1}
2205d2a
# kernel-imx (only valid for arm)
2205d2a
%define with_imx       %{?_without_imx:       0} %{?!_without_imx:       1}
2205d2a
# kernel-highbank (only valid for arm)
2205d2a
%define with_highbank       %{?_without_highbank:       0} %{?!_without_highbank:       1}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Build the kernel-doc package, but don't fail the build if it botches.
Jesse Keating 7a32965
# Here "true" means "continue" and "false" means "fail the build".
Jesse Keating 7a32965
%define doc_build_fail false
Jesse Keating 7a32965
Kyle McMartin c3b3bb2
%define rawhide_skip_docs 0
Jesse Keating 7a32965
%if 0%{?rawhide_skip_docs}
Jesse Keating 7a32965
%define with_doc 0
Jesse Keating 7a32965
%define doc_build_fail true
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Only build the base kernel (--with baseonly):
Jesse Keating 7a32965
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a32965
# Only build the smp kernel (--with smponly):
Jesse Keating 7a32965
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b03275
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b03275
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a32965
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a32965
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# should we do C=1 builds with sparse
Dave Jones 561b24a
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a32965
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a32965
# See also 'make debug' and 'make release'.
Kyle McMartin c3b3bb2
%define debugbuildsenabled 1
Jesse Keating 7a32965
Jesse Keating 7a32965
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a32965
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{?stable_rc}
Jesse Keating 7a32965
%define stable_rctag .rc%{stable_rc}
Chuck Ebbert 97c2a18
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
Chuck Ebbert 97c2a18
%else
Chuck Ebbert 97c2a18
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# The kernel tarball/base version
Chuck Ebbert 8728f9c
%define realversion 3.%{real_sublevel}
Chuck Ebbert 8728f9c
%define fakeversion 2.6.%{fake_sublevel}
Jesse Keating 7a32965
Jesse Keating 7a32965
%define make_target bzImage
Jesse Keating 7a32965
Jesse Keating 7a32965
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a32965
%define hdrarch %_target_cpu
Jesse Keating 7a32965
%define asmarch %_target_cpu
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{!?nopatches:1}
Jesse Keating 7a32965
%define nopatches 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vanilla}
Jesse Keating 7a32965
%define nopatches 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{nopatches}
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%define variant -vanilla
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define variant_fedora -fedora
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define using_upstream_branch 0
Jesse Keating 7a32965
%if 0%{?upstream_branch:1}
Jesse Keating 7a32965
%define stable_update 0
Jesse Keating 7a32965
%define using_upstream_branch 1
Jesse Keating 7a32965
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a32965
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{with_debuginfo}
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define debuginfodir /usr/lib/debug
Jesse Keating 7a32965
Jesse Keating 7a32965
# kernel-PAE is only built on i686.
Jarod Wilson 5b03275
%ifnarch i686
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
2205d2a
# kernel-tegra, omap, imx and highbank are only built on armv7 hard and softfp
7c90685
%ifnarch armv7hl armv7l
bfb05f2
%define with_tegra 0
bfb05f2
%define with_omap 0
2205d2a
%define with_imx 0
2205d2a
%define with_highbank 0
2205d2a
%endif
2205d2a
2205d2a
# kernel-kirkwood is only built for armv5
2205d2a
%ifnarch armv5tel
2205d2a
%define with_kirkwood 0
bfb05f2
%endif
bfb05f2
Jesse Keating 7a32965
# if requested, only build base kernel
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%define with_smp 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build smp kernel
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jarod Wilson 5b03275
%define with_debug 0
Jarod Wilson 5b03275
%endif
Jarod Wilson 5b03275
Jarod Wilson 5b03275
# if requested, only build pae kernel
Jarod Wilson 5b03275
%if %{with_paeonly}
Jarod Wilson 5b03275
%define with_up 0
Jarod Wilson 5b03275
%define with_smp 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build debug kernel
Jesse Keating 7a32965
%if %{with_dbgonly}
Jesse Keating 7a32965
%if %{debugbuildsenabled}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%define with_perf 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define all_x86 i386 i686
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vdso_install}
Jesse Keating 7a32965
# These arches install vdso/ directories.
Jesse Keating 7a32965
%define vdso_arches %{all_x86} x86_64 ppc ppc64
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Overrides for generic default options
Jesse Keating 7a32965
Jesse Keating 7a32965
# only ppc and alphav56 need separate smp kernels
Jesse Keating 7a32965
%ifnarch ppc alphaev56
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a32965
%ifnarch i686 x86_64
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# only package docs noarch
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%define with_doc 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't build noarch kernels or headers (duh)
Jesse Keating 7a32965
%ifarch noarch
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_headers 0
Jesse Keating 7a32965
%define with_perf 0
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a32965
%define with_firmware  %{?_with_firmware:     1} %{?!_with_firmware:     0}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# bootwrapper is only on ppc
Jesse Keating 7a32965
%ifnarch ppc ppc64
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# sparse blows up on ppc64 alpha and sparc64
Jesse Keating 7a32965
%ifarch ppc64 ppc alpha sparc64
Jesse Keating 7a32965
%define with_sparse 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Per-arch tweaks
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{all_x86}
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define hdrarch i386
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch x86_64
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch ppc64
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch s390x
Jesse Keating 7a32965
%define asmarch s390
Jesse Keating 7a32965
%define hdrarch s390
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target image
Jesse Keating 7a32965
%define kernel_image arch/s390/boot/image
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch sparc64
Jesse Keating 7a32965
%define asmarch sparc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-sparc64*.config
eae267f
%define make_target vmlinux
eae267f
%define kernel_image vmlinux
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define with_perf 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
9c74977
%ifarch sparcv9
9c74977
%define hdrarch sparc
9c74977
%endif
9c74977
Jesse Keating 7a32965
%ifarch ppc
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{arm}
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a32965
%define image_install_path boot
408089c
%define asmarch arm
Jesse Keating 7a32965
%define hdrarch arm
bfb05f2
%define make_target bzImage
bfb05f2
%define kernel_image arch/arm/boot/zImage
82a003a
# we build a up kernel on armv5tel. its used for qemu.
82a003a
%ifnarch armv5tel
bfb05f2
%define with_up 0
Dave Jones 5937336
%define with_perf 0
82a003a
%endif
e76e70c
%ifarch armv7hl
e76e70c
%define with_perf 1
e76e70c
%endif
92be6ab
# we only build headers on the base arm arches
92be6ab
# just like we used to only build them on i386 for x86
92be6ab
%ifnarch armv5tel armv7hl
92be6ab
%define with_headers 0
92be6ab
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{nopatches}
Jesse Keating 7a32965
# XXX temporary until last vdso patches are upstream
Jesse Keating 7a32965
%define vdso_arches ppc ppc64
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin da80d72
# Should make listnewconfig fail if there's config options
Kyle McMartin da80d72
# printed out?
Jesse Keating 7a32965
%if %{nopatches}%{using_upstream_branch}
Kyle McMartin da80d72
%define listnewconfig_fail 0
Jesse Keating 7a32965
%else
Kyle McMartin da80d72
%define listnewconfig_fail 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79a
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a32965
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a32965
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a32965
# Which is a BadThing(tm).
Jesse Keating 7a32965
Jesse Keating 7a32965
# We only build kernel-headers on the following...
bfb05f2
%define nobuildarches i386 s390 sparc sparcv9
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %nobuildarches
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%define with_debuginfo 0
Jesse Keating 7a32965
%define with_perf 0
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define with_pae_debug 0
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
%define with_pae_debug %{with_debug}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Three sets of minimum package version requirements in the form of Conflicts:
Jesse Keating 7a32965
# to versions below the minimum
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# First the general kernel 2.6 required versions as per
Jesse Keating 7a32965
# Documentation/Changes
Jesse Keating 7a32965
#
Dave Jones 144f5a9
%define kernel_dot_org_conflicts  ppp < 2.4.3-3, isdn4k-utils < 3.2-32, nfs-utils < 1.0.7-12, e2fsprogs < 1.37-4, util-linux < 2.12, jfsutils < 1.1.7-2, reiserfs-utils < 3.6.19-2, xfsprogs < 2.6.13-4, procps < 3.2.5-6.3, oprofile < 0.9.1-2, device-mapper-libs < 1.02.63-2, mdadm < 3.2.1-5
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Then a series of requirements that are distribution specific, either
Jesse Keating 7a32965
# because we add patches for something, or the older versions have
Jesse Keating 7a32965
# problems with the newer kernel or lack certain things that make
Jesse Keating 7a32965
# integration in the distro harder than needed.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
Jesse Keating 7a32965
Jesse Keating 7a32965
# We moved the drm include files into kernel-headers, make sure there's
Jesse Keating 7a32965
# a recent enough libdrm-devel on the system that doesn't have those.
Jesse Keating 7a32965
%define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Dave Jones 166b79a
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a32965
# scripts use them.
Jesse Keating 7a32965
#
Dave Jones 1f93f04
%define kernel_prereq  fileutils, module-init-tools >= 3.16-2, initscripts >= 8.11.1-1, grubby >= 7.0.16-5
Jesse Keating 7a32965
%define initrd_prereq  dracut >= 001-7
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a32965
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a32965
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a32965
# macros defined above.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_reqprovconf \
Jesse Keating 7a32965
Provides: kernel = %{rpmversion}-%{pkg_release}\
Jesse Keating 7a32965
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-drm = 4.3.0\
Jesse Keating 7a32965
Provides: kernel-drm-nouveau = 16\
Jesse Keating 7a32965
Provides: kernel-modeset = 1\
Jesse Keating 7a32965
Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a32965
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a32965
Requires(pre): %{initrd_prereq}\
Jesse Keating 7a32965
%if %{with_firmware}\
Jesse Keating 7a32965
Requires(pre): kernel-firmware >= %{rpmversion}-%{pkg_release}\
Jesse Keating 7a32965
%else\
3ee3622
Requires(pre): linux-firmware >= 20120206-0.1.git06c8f81\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
Requires(post): /sbin/new-kernel-pkg\
Jesse Keating 7a32965
Requires(preun): /sbin/new-kernel-pkg\
Jesse Keating 7a32965
Conflicts: %{kernel_dot_org_conflicts}\
Jesse Keating 7a32965
Conflicts: %{package_conflicts}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a32965
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a32965
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a32965
# isn't required for the kernel proper to function\
Jesse Keating 7a32965
AutoReq: no\
Jesse Keating 7a32965
AutoProv: yes\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Name: kernel%{?variant}
Jesse Keating 7a32965
Group: System Environment/Kernel
Jesse Keating 7a32965
License: GPLv2
Jesse Keating 7a32965
URL: http://www.kernel.org/
Jesse Keating 7a32965
Version: %{rpmversion}
Jesse Keating 7a32965
Release: %{pkg_release}
Jesse Keating 7a32965
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a32965
# SET %%nobuildarches (ABOVE) INSTEAD
Dave Jones 8c3a2d0
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 %{sparc} s390 s390x alpha alphaev56 %{arm}
Jesse Keating 7a32965
ExclusiveOS: Linux
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_reqprovconf
Dave Jones efc71ad
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# List the packages used during the kernel build
Jesse Keating 7a32965
#
Jesse Keating 7a32965
BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
Dave Jones 8c3a2d0
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
Jesse Keating 7a32965
BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config
Jesse Keating 7a32965
BuildRequires: net-tools
Jesse Keating 7a32965
BuildRequires: xmlto, asciidoc
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
BuildRequires: sparse >= 0.4.1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if %{with_perf}
Chuck Ebbert e0bf239
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed)
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a32965
Jesse Keating 7a32965
%define fancy_debuginfo 0
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
%if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
Jesse Keating 7a32965
%define fancy_debuginfo 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{fancy_debuginfo}
Jesse Keating 7a32965
# Fancy new debuginfo generation introduced in Fedora 8.
Jesse Keating 7a32965
BuildRequires: rpm-build >= 4.4.2.1-4
Jesse Keating 7a32965
%define debuginfo_args --strict-build-id
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 8c3a2d0
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-%{realversion}.tar.xz
Jesse Keating 7a32965
Jesse Keating 7a32965
Source11: genkey
Jesse Keating 7a32965
Source14: find-provides
Jesse Keating 7a32965
Source15: merge.pl
Jesse Keating 7a32965
Jesse Keating 7a32965
Source20: Makefile.config
Jesse Keating 7a32965
Source21: config-debug
Jesse Keating 7a32965
Source22: config-nodebug
Jesse Keating 7a32965
Source23: config-generic
Jesse Keating 7a32965
Source24: config-rhel-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source30: config-x86-generic
Jesse Keating 7a32965
Source31: config-i686-PAE
Dave Jones 1f93f04
Source32: config-x86-32-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source40: config-x86_64-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source50: config-powerpc-generic
Jesse Keating 7a32965
Source51: config-powerpc32-generic
Jesse Keating 7a32965
Source52: config-powerpc32-smp
Jesse Keating 7a32965
Source53: config-powerpc64
Jesse Keating 7a32965
Jesse Keating 7a32965
Source70: config-s390x
Jesse Keating 7a32965
Jesse Keating 7a32965
Source90: config-sparc64-generic
Jesse Keating 7a32965
408089c
Source100: config-arm-generic
408089c
Source110: config-arm-omap-generic
bfb05f2
Source111: config-arm-tegra
2205d2a
Source112: config-arm-kirkwood
2205d2a
Source113: config-arm-imx
2205d2a
Source114: config-arm-highbank
Jesse Keating 7a32965
Jarod Wilson 5b65297
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b65297
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b65297
Source1000: config-local
Jarod Wilson 5b65297
Jesse Keating 7a32965
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
# For a stable release kernel
Chuck Ebbert 8728f9c
%if 0%{?stable_update}
Chuck Ebbert 8728f9c
%if 0%{?stable_base}
Dave Jones 8c3a2d0
%define    stable_patch_00  patch-3.%{real_sublevel}.%{stable_base}.xz
Chuck Ebbert 8728f9c
Patch00: %{stable_patch_00}
Chuck Ebbert 8728f9c
%endif
Chuck Ebbert 8728f9c
%if 0%{?stable_rc}
Dave Jones 8c3a2d0
%define    stable_patch_01  patch-3.%{real_sublevel}.%{stable_update}-rc%{stable_rc}.xz
Chuck Ebbert 8728f9c
Patch01: %{stable_patch_01}
Chuck Ebbert 8728f9c
%endif
Chuck Ebbert 8728f9c
%endif
Dave Jones 7f4ef57
Chuck Ebbert 51b4bd8
# Patches from git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git
Chuck Ebbert 51b4bd8
Patch02: stable-queue.patch
Chuck Ebbert 51b4bd8
Jesse Keating 7a32965
# we also need compile fixes for -vanilla
Jesse Keating 7a32965
Patch04: linux-2.6-compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# build tweak for build ID magic, even for -vanilla
Jesse Keating 7a32965
Patch05: linux-2.6-makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Dave Jones 1f93f04
Jesse Keating 7a32965
# revert upstream patches we get via other methods
Jesse Keating 7a32965
Patch09: linux-2.6-upstream-reverts.patch
Dave Jones 1f93f04
# Git trees.
Dave Jones 5d9335e
Jesse Keating 7a32965
# Standalone patches
Chuck Ebbert ced86e1
Dave Jones 1f93f04
Patch100: taint-vbox.patch
Jesse Keating 7a32965
Patch160: linux-2.6-32bit-mmap-exec-randomization.patch
Jesse Keating 7a32965
Patch161: linux-2.6-i386-nx-emulation.patch
Jesse Keating 7a32965
Chuck Ebbert 238fde1
Patch350: force-version-2.6.patch
Chuck Ebbert 238fde1
Jesse Keating 7a32965
Patch383: linux-2.6-defaults-aspm.patch
Kyle McMartin 9ecbc01
Jesse Keating 7a32965
Patch390: linux-2.6-defaults-acpi-video.patch
Jesse Keating 7a32965
Patch391: linux-2.6-acpi-video-dos.patch
Jesse Keating 7a32965
Patch394: linux-2.6-acpi-debug-infinite-loop.patch
f2b0200
Patch395: acpi-ensure-thermal-limits-match-cpu-freq.patch
Dave Jones e8a2ce7
Patch396: acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch450: linux-2.6-input-kill-stupid-messages.patch
Jesse Keating 7a32965
Patch452: linux-2.6.30-no-pcspkr-modalias.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch460: linux-2.6-serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch470: die-floppy-die.patch
08e5f61
Patch471: floppy-drop-disable_hlt-warning.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch510: linux-2.6-silence-noise.patch
12d4c0b
Patch520: quite-apm.patch
Jesse Keating 7a32965
Patch530: linux-2.6-silence-fbcon-logo.patch
Jesse Keating 7a32965
Dave Jones f737348
Patch700: linux-2.6-e1000-ich9-montevina.patch
Dave Jones f737348
Jesse Keating 7a32965
Patch800: linux-2.6-crash-driver.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# crypto/
Jesse Keating 7a32965
Jesse Keating 7a32965
# virt + ksm patches
Dave Jones d1998c6
Patch1500: fix_xen_guest_on_old_EC2.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# DRM
Kyle McMartin d3e4af8
Jesse Keating 7a32965
# nouveau + drm fixes
Jesse Keating 7a32965
Patch1810: drm-nouveau-updates.patch
Jesse Keating 7a32965
# intel drm is all merged upstream
Jesse Keating 7a32965
Patch1824: drm-intel-next.patch
b2fb454
Patch1825: drm-intel-crtc-dpms-fix.patch
Dave Jones 1f93f04
# hush the i915 fbc noise
Dave Jones 1f93f04
Patch1826: drm-i915-fbc-stfu.patch
Dave Jones 70cad04
Jesse Keating 7a32965
Patch1900: linux-2.6-intel-iommu-igfx.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Quiet boot fixes
Jesse Keating 7a32965
# silence the ACPI blacklist code
Jesse Keating 7a32965
Patch2802: linux-2.6-silence-acpi-blacklist.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# media patches
Jesse Keating 7a32965
Patch2899: linux-2.6-v4l-dvb-fixes.patch
Jesse Keating 7a32965
Patch2900: linux-2.6-v4l-dvb-update.patch
Jesse Keating 7a32965
Patch2901: linux-2.6-v4l-dvb-experimental.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# fs fixes
Jesse Keating 7a32965
8edf5c6
#rhbz 753346
8edf5c6
Patch3500: jbd-jbd2-validate-sb-s_first-in-journal_get_superblo.patch
8edf5c6
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# patches headed upstream
Kyle McMartin 0ca5626
Jesse Keating 7a32965
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Dave Jones c93c7e5
Patch12026: bsg-fix-sysfs-link-remove-warning.patch
Dave Jones c93c7e5
Kyle McMartin dbda5f5
Patch12303: dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f5
Dave Jones 1f93f04
Patch13002: revert-efi-rtclock.patch
Dave Jones 1f93f04
Patch13003: efi-dont-map-boot-services-on-32bit.patch
John W. Linville af3abd4
Dave Jones aef732d
Patch14000: cdc-acm-tiocgserial.patch
Dave Jones aef732d
Dave Jones 90bc499
Patch15000: hibernate-freeze-filesystems.patch
Dave Jones 90bc499
Dave Jones 7052360
Patch15010: lis3-improve-handling-of-null-rate.patch
Dave Jones 7052360
Dave Jones 725a196
Patch20000: utrace.patch
Dave Jones 725a196
bfb05f2
# Flattened devicetree support
bfb05f2
Patch21000: arm-omap-dt-compat.patch
bfb05f2
Patch21001: arm-smsc-support-reading-mac-address-from-device-tree.patch
4fc891d
Patch21002: arm-build-bug-on.patch
49cb174
Patch21003: arm-stmmac-mmc-core.patch
8b0318d
Patch21004: arm-tegra-nvec-kconfig.patch
Dave Jones e23ae9f
504b3ab
#rhbz 717735
504b3ab
Patch21045: nfs-client-freezer.patch
504b3ab
340d8af
#rhbz 590880
Dave Jones 14843a4
Patch21050: alps.patch
340d8af
Dave Jones 8c3a2d0
Patch21070: ext4-Support-check-none-nocheck-mount-options.patch
5e42663
Patch21071: ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
d45e462
Patch21072: ext3-Fix-error-handling-on-inode-bitmap-corruption.patch
5e42663
dc54a7e
#rhbz 769766
dc54a7e
Patch21073: mac80211-fix-rx-key-NULL-ptr-deref-in-promiscuous-mode.patch
dc54a7e
a7fae8f
#rhbz 773392
a7fae8f
Patch21074: KVM-x86-extend-struct-x86_emulate_ops-with-get_cpuid.patch
a7fae8f
Patch21075: KVM-x86-fix-missing-checks-in-syscall-emulation.patch
a7fae8f
63af6b0
#rhbz 728740
63af6b0
Patch21076: rtl8192cu-Fix-WARNING-on-suspend-resume.patch
63af6b0
Dave Jones 8c3a2d0
#rhbz752176
Dave Jones 8c3a2d0
Patch21080: sysfs-msi-irq-per-device.patch
94aa5a9
64fa2d2
#rhbz 782686
64fa2d2
Patch21082: procfs-parse-mount-options.patch
64fa2d2
Patch21083: procfs-add-hidepid-and-gid-mount-options.patch
64fa2d2
Patch21084: proc-fix-null-pointer-deref-in-proc_pid_permission.patch
64fa2d2
c2a76c7
#rhbz 788260
c2a76c7
Patch21085: jbd2-clear-BH_Delay-and-BH_Unwritten-in-journal_unmap_buf.patch
c2a76c7
John W. Linville 652c2c1
# Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
John W. Linville 652c2c1
Patch21091: bcma-brcmsmac-compat.patch
John W. Linville 652c2c1
71aea6e
#rhbz 785806
71aea6e
Patch21092: e1000e-Avoid-wrong-check-on-TX-hang.patch
71aea6e
0b719f3
#rhbz 754518
Dave Jones a36c81d
#Patch21093: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Dave Jones a36c81d
Patch21093: scsi-fix-sd_revalidate_disk-oops.patch
0b719f3
Dave Jones 8c3a2d0
#rhbz 771058
Dave Jones 8c3a2d0
Patch21100: msi-irq-sysfs-warning.patch
c6aa69e
c6aa69e
# rhbz 754907
c6aa69e
Patch21101: hpsa-add-irqf-shared.patch
c6aa69e
853703e
#rhbz 727865 730007
853703e
Patch21102: ACPICA-Fix-regression-in-FADT-revision-checks.patch
853703e
5c51b13
# rhbz 798296
5c51b13
Patch21103: cifs-fix-dentry-refcount-leak-when-opening-a-FIFO.patch
5c51b13
d76ff50
#rhbz 728478
d76ff50
Patch21104: sony-laptop-Enable-keyboard-backlight-by-default.patch
d76ff50
93f9c95
# Disable threading in hibernate compression
93f9c95
Patch21105: disable-threading-in-compression-for-hibernate.patch
93f9c95
3bb9478
#rhbz 799782 CVE-2012-1097
3bb9478
Patch21106: regset-Prevent-null-pointer-reference-on-readonly-re.patch
3bb9478
Patch21107: regset-Return-EFAULT-not-EIO-on-host-side-memory-fau.patch
3bb9478
d826f97
#rhbz 786632
d826f97
Patch21108: mm-thp-fix-BUG-on-mm-nr_ptes.patch
d826f97
e250736
#rhbz 800817
e250736
Patch21109: mm-memcg-Correct-unregistring-of-events-attached-to-.patch
e250736
Dave Jones 1fbb428
Patch21200: unhandled-irqs-switch-to-polling.patch
Dave Jones 1fbb428
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a32965
Jesse Keating 7a32965
%description
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%package doc
Jesse Keating 7a32965
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a32965
Group: Documentation
Jesse Keating 7a32965
%description doc
Jesse Keating 7a32965
This package contains documentation files from the kernel
Jesse Keating 7a32965
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a32965
device drivers shipped with it are documented in these files.
Jesse Keating 7a32965
Jesse Keating 7a32965
You'll want to install this package if you need a reference to the
Jesse Keating 7a32965
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%package headers
Jesse Keating 7a32965
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a32965
Group: Development/System
Dave Jones d555d67
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a32965
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a32965
%description headers
Jesse Keating 7a32965
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a32965
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a32965
header files define structures and constants that are needed for
Jesse Keating 7a32965
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a32965
glibc package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package firmware
Jesse Keating 7a32965
Summary: Firmware files used by the Linux kernel
Jesse Keating 7a32965
Group: Development/System
Jesse Keating 7a32965
# This is... complicated.
Jesse Keating 7a32965
# Look at the WHENCE file.
Jesse Keating 7a32965
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
Jesse Keating 7a32965
%if "x%{?variant}" != "x"
Jesse Keating 7a32965
Provides: kernel-firmware = %{rpmversion}-%{pkg_release}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%description firmware
Jesse Keating 7a32965
Kernel-firmware includes firmware files required for some devices to
Jesse Keating 7a32965
operate.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package bootwrapper
Jesse Keating 7a32965
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a32965
Group: Development/System
Dave Jones 1f93f04
Requires: gzip binutils
Jesse Keating 7a32965
%description bootwrapper
Jesse Keating 7a32965
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a32965
files combining both kernel and initial ramdisk.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a32965
Group: Development/Debug
Jesse Keating 7a32965
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a32965
It provides the kernel source files common to all builds.
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_perf}
Jesse Keating 7a32965
%package -n perf
Jesse Keating 7a32965
Summary: Performance monitoring for the Linux kernel
Jesse Keating 7a32965
Group: Development/System
Jesse Keating 7a32965
License: GPLv2
Jesse Keating 7a32965
%description -n perf
Jesse Keating 7a32965
This package provides the perf tool and the supporting documentation.
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
%package -n perf-debuginfo
Roland McGrath 3c4ea9a
Summary: Debug information for package perf
Roland McGrath 3c4ea9a
Group: Development/Debug
Roland McGrath 3c4ea9a
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9a
AutoReqProv: no
Roland McGrath 3c4ea9a
%description -n perf-debuginfo
Roland McGrath 3c4ea9a
This package provides debug information for package perf.
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9a
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9a
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9a
# of matching the pattern against the symlinks file.
Roland McGrath 3c4ea9a
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a32965
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_debuginfo_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a32965
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a32965
Group: Development/Debug\
Jesse Keating 7a32965
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a32965
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a32965
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Jesse Keating 7a32965
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}devel\
Jesse Keating 7a32965
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a32965
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
Requires(pre): /usr/bin/find\
Jesse Keating 7a32965
Requires: perl\
Jesse Keating 7a32965
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Dave Jones 1f93f04
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a32965
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a32965
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a32965
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_package(n:) \
Jesse Keating 7a32965
%package %1\
Jesse Keating 7a32965
Summary: %{variant_summary}\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
%kernel_reqprovconf\
Jesse Keating 7a32965
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Jesse Keating 7a32965
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a32965
%kernel_devel_package
Jesse Keating 7a32965
%kernel_debuginfo_package
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# Now, each variant package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a32965
%kernel_variant_package -n SMP smp
Jesse Keating 7a32965
%description smp
Jesse Keating 7a32965
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a32965
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a32965
hyperthreading technology.
Jesse Keating 7a32965
Jesse Keating 7a32965
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for PAE capable machines
Jesse Keating 7a32965
%kernel_variant_package PAE
Jesse Keating 7a32965
%description PAE
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Jesse Keating 7a32965
%kernel_variant_package PAEdebug
Jesse Keating 7a32965
Obsoletes: kernel-PAE-debug
Jesse Keating 7a32965
%description PAEdebug
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a32965
%kernel_variant_package debug
Jesse Keating 7a32965
%description debug
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
2205d2a
%define variant_summary The Linux kernel compiled for marvell kirkwood boards
2205d2a
%kernel_variant_package kirkwood
2205d2a
%description kirkwood
2205d2a
This package includes a version of the Linux kernel with support for
2205d2a
marvell kirkwood based systems, i.e., guruplug, sheevaplug
2205d2a
2205d2a
%define variant_summary The Linux kernel compiled for freescale boards
2205d2a
%kernel_variant_package imx
2205d2a
%description imx
2205d2a
This package includes a version of the Linux kernel with support for
2205d2a
freescale based systems, i.e., efika smartbook.
2205d2a
2205d2a
%define variant_summary The Linux kernel compiled for Calxeda boards
2205d2a
%kernel_variant_package highbank
2205d2a
%description highbank
2205d2a
This package includes a version of the Linux kernel with support for
2205d2a
Calxeda based systems, i.e., HP arm servers.
Jesse Keating 7a32965
bfb05f2
%define variant_summary The Linux kernel compiled for TI-OMAP boards
bfb05f2
%kernel_variant_package omap
bfb05f2
%description omap
bfb05f2
This package includes a version of the Linux kernel with support for
bfb05f2
TI-OMAP based systems, i.e., BeagleBoard-xM.
bfb05f2
bfb05f2
%define variant_summary The Linux kernel compiled for tegra boards
bfb05f2
%kernel_variant_package tegra
bfb05f2
%description tegra
bfb05f2
This package includes a version of the Linux kernel with support for
bfb05f2
nvidia tegra based systems, i.e., trimslice, ac-100.
bfb05f2
bfb05f2
Jesse Keating 7a32965
%prep
Jesse Keating 7a32965
# do a few sanity-checks for --with *only builds
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%if !%{with_up}%{with_pae}
Jesse Keating 7a32965
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%if !%{with_smp}
Jesse Keating 7a32965
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
03734dd
%if "%{baserelease}" == "0"
Chuck Ebbert 97c2a18
echo "baserelease must be greater than zero"
Chuck Ebbert 97c2a18
exit 1
Chuck Ebbert 97c2a18
%endif
Chuck Ebbert 97c2a18
Jesse Keating 7a32965
# more sanity checking; do it quietly
Jesse Keating 7a32965
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a32965
  for patch in %{patches} ; do
Jesse Keating 7a32965
    if [ ! -f $patch ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Jesse Keating 7a32965
fi 2>/dev/null
Jesse Keating 7a32965
Jesse Keating 7a32965
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a32965
ApplyPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
%if !%{using_upstream_branch}
Dave Jones b89c80f
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Dave Jones 7f4ef57
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  fi 2>/dev/null
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
  case "$patch" in
Jesse Keating 7a32965
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a32965
  *.gz) gunzip < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Dave Jones 8c3a2d0
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a32965
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a32965
  esac
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't apply patch if it's empty
Jesse Keating 7a32965
ApplyOptionalPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a32965
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a32965
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# we don't want a .config file when building firmware: it just confuses the build system
Jesse Keating 7a32965
%define build_firmware \
Jesse Keating 7a32965
   mv .config .config.firmware_save \
Jesse Keating 7a32965
   make INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install \
Jesse Keating 7a32965
   mv .config.firmware_save .config
Jesse Keating 7a32965
Jesse Keating 7a32965
# First we unpack the kernel tarball.
Jesse Keating 7a32965
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a32965
# which speeds things up quite a bit.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update to latest upstream.
Chuck Ebbert 8728f9c
# Use kernel-%%{fakeversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c0
# so we can prep different trees within a single git directory.
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c0
# This will be used to hardlink identical vanilla subdirs.
Dave Jones 7f4ef57
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 8728f9c
            | grep -x -v "$PWD"/kernel-%{fakeversion}%{?dist}) ||:
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
if [ ! -d kernel-%{fakeversion}%{?dist}/vanilla-%{realversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 8728f9c
  if [ -d kernel-%{fakeversion}%{?dist}/vanilla-%{realversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
    # The base vanilla version already exists.
Chuck Ebbert 8728f9c
    cd kernel-%{fakeversion}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a32965
    for dir in vanilla-*; do
Chuck Ebbert 8728f9c
      [ "$dir" = vanilla-%{realversion} ] || rm -rf $dir &
Jesse Keating 7a32965
    done
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f pax_global_header
Chuck Ebbert 26d08c0
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a32965
    for sharedir in $sharedirs ; do
Chuck Ebbert 8728f9c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{realversion} ]] ; then
Jesse Keating 7a32965
        break
Jesse Keating 7a32965
      fi
Jesse Keating 7a32965
    done
Chuck Ebbert 8728f9c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{realversion} ]] ; then
Chuck Ebbert 8728f9c
%setup -q -n kernel-%{fakeversion}%{?dist} -c -T
Chuck Ebbert 8728f9c
      cp -rl $sharedir/vanilla-%{realversion} .
Jesse Keating 7a32965
    else
Chuck Ebbert 8728f9c
%setup -q -n kernel-%{fakeversion}%{?dist} -c
Chuck Ebbert 8728f9c
      mv linux-%{realversion} vanilla-%{realversion}
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
else
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 8728f9c
  cd kernel-%{fakeversion}%{?dist}
Chuck Ebbert 26d08c0
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Now build the fedora kernel tree.
Chuck Ebbert 8728f9c
if [ -d linux-%{fakeversion}.%{_target_cpu} ]; then
Jesse Keating 7a32965
  # Just in case we ctrl-c'd a prep already
Jesse Keating 7a32965
  rm -rf deleteme.%{_target_cpu}
Jesse Keating 7a32965
  # Move away the stale away, and delete in background.
Chuck Ebbert 8728f9c
  mv linux-%{fakeversion}.%{_target_cpu} deleteme.%{_target_cpu}
Jesse Keating 7a32965
  rm -rf deleteme.%{_target_cpu} &
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
cp -rl vanilla-%{realversion} linux-%{fakeversion}.%{_target_cpu}
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
cd linux-%{fakeversion}.%{_target_cpu}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{using_upstream_branch}
Jesse Keating 7a32965
### BRANCH APPLY ###
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a32965
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a32965
cp %{SOURCE15} .
Jesse Keating 7a32965
Jesse Keating 7a32965
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a32965
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a32965
cfdfd01
%if %{?all_arch_configs:1}%{!?all_arch_configs:0}
Jesse Keating 7a32965
#if a rhel kernel, apply the rhel config options
Jesse Keating 7a32965
%if 0%{?rhel}
Jesse Keating 7a32965
  for i in %{all_arch_configs}
Jesse Keating 7a32965
  do
Jesse Keating 7a32965
    mv $i $i.tmp
Jesse Keating 7a32965
    ./merge.pl config-rhel-generic $i.tmp > $i
Jesse Keating 7a32965
    rm $i.tmp
Jesse Keating 7a32965
  done
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jarod Wilson 5b65297
# Merge in any user-provided local config option changes
Jarod Wilson 5b65297
for i in %{all_arch_configs}
Jarod Wilson 5b65297
do
Jarod Wilson 5b65297
  mv $i $i.tmp
Jarod Wilson 5b65297
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b65297
  rm $i.tmp
Jarod Wilson 5b65297
done
cfdfd01
%endif
Jarod Wilson 5b65297
Chuck Ebbert 8728f9c
# released_kernel with possible stable updates
Chuck Ebbert 8728f9c
%if 0%{?stable_base}
Chuck Ebbert 8728f9c
ApplyPatch %{stable_patch_00}
Chuck Ebbert 8728f9c
%endif
Chuck Ebbert 8728f9c
%if 0%{?stable_rc}
Chuck Ebbert 8728f9c
ApplyPatch %{stable_patch_01}
Chuck Ebbert 8728f9c
%endif
Jesse Keating 7a32965
Chuck Ebbert 51b4bd8
ApplyOptionalPatch stable-queue.patch
Chuck Ebbert 51b4bd8
Jesse Keating 7a32965
ApplyPatch linux-2.6-makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# misc small stuff to make things compile
Jesse Keating 7a32965
#
Jesse Keating 7a32965
ApplyOptionalPatch linux-2.6-compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Jesse Keating 7a32965
# revert patches from upstream that conflict or that we get via other means
Jesse Keating 7a32965
ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
Jesse Keating 7a32965
Chuck Ebbert ced86e1
Dave Jones 1f93f04
# Architecture patches
Dave Jones 1f93f04
# x86(-64)
Jesse Keating 7a32965
Jesse Keating 7a32965
#
bfb05f2
# ARM
bfb05f2
#
bfb05f2
ApplyPatch arm-omap-dt-compat.patch
bfb05f2
ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
4fc891d
ApplyPatch arm-build-bug-on.patch
49cb174
ApplyPatch arm-stmmac-mmc-core.patch
8b0318d
ApplyPatch arm-tegra-nvec-kconfig.patch
bfb05f2
Dave Jones 1f93f04
ApplyPatch taint-vbox.patch
bfb05f2
#
Dave Jones 1f93f04
# NX Emulation
Jesse Keating 7a32965
#
Jesse Keating 7a32965
ApplyPatch linux-2.6-32bit-mmap-exec-randomization.patch
Dave Jones 1f93f04
ApplyPatch linux-2.6-i386-nx-emulation.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# bugfixes to drivers and filesystems
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ext4
8edf5c6
#rhbz 753346
8edf5c6
ApplyPatch jbd-jbd2-validate-sb-s_first-in-journal_get_superblo.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# xfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# btrfs
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# eCryptfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# USB
Jesse Keating 7a32965
Jesse Keating 7a32965
# WMI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
ApplyPatch linux-2.6-defaults-acpi-video.patch
Jesse Keating 7a32965
ApplyPatch linux-2.6-acpi-video-dos.patch
Jesse Keating 7a32965
ApplyPatch linux-2.6-acpi-debug-infinite-loop.patch
f2b0200
ApplyPatch acpi-ensure-thermal-limits-match-cpu-freq.patch
Dave Jones e8a2ce7
ApplyPatch acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a32965
Chuck Ebbert 238fde1
# force UTSNAME to show version 2.6.4X
Chuck Ebbert 238fde1
ApplyPatch force-version-2.6.patch
Chuck Ebbert 238fde1
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# PCI
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# enable ASPM by default on hardware we expect to work
Jesse Keating 7a32965
ApplyPatch linux-2.6-defaults-aspm.patch
Kyle McMartin 9ecbc01
Jesse Keating 7a32965
#
Dave Jones 7f4ef57
# SCSI Bits.
Jesse Keating 7a32965
#
Chuck Ebbert 7562ee4
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ALSA
Jesse Keating 7a32965
Jesse Keating 7a32965
# Networking
John W. Linville af3abd4
Dave Jones 1f93f04
Jesse Keating 7a32965
# Misc fixes
Jesse Keating 7a32965
# The input layer spews crap no-one cares about.
Jesse Keating 7a32965
ApplyPatch linux-2.6-input-kill-stupid-messages.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a32965
ApplyPatch die-floppy-die.patch
08e5f61
ApplyPatch floppy-drop-disable_hlt-warning.patch
Jesse Keating 7a32965
Dave Jones 7f4ef57
ApplyPatch linux-2.6.30-no-pcspkr-modalias.patch
Dave Jones 7f4ef57
Jesse Keating 7a32965
# Allow to use 480600 baud on 16C950 UARTs
Jesse Keating 7a32965
ApplyPatch linux-2.6-serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Silence some useless messages that still get printed with 'quiet'
Jesse Keating 7a32965
ApplyPatch linux-2.6-silence-noise.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Make fbcon not show the penguins with 'quiet'
Jesse Keating 7a32965
ApplyPatch linux-2.6-silence-fbcon-logo.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Changes to upstream defaults.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# /dev/crash driver.
Jesse Keating 7a32965
ApplyPatch linux-2.6-crash-driver.patch
Jesse Keating 7a32965
Dave Jones f737348
# Hack e1000e to work on Montevina SDV
Dave Jones f737348
ApplyPatch linux-2.6-e1000-ich9-montevina.patch
Dave Jones f737348
Jesse Keating 7a32965
# crypto/
Jesse Keating 7a32965
Jesse Keating 7a32965
# Assorted Virt Fixes
Jesse Keating 7a32965
ApplyPatch fix_xen_guest_on_old_EC2.patch
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# DRM core
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# Nouveau DRM
Kyle McMartin d3e4af8
ApplyOptionalPatch drm-nouveau-updates.patch
Kyle McMartin d3e4af8
Kyle McMartin d3e4af8
# Intel DRM
Jesse Keating 7a32965
ApplyOptionalPatch drm-intel-next.patch
b2fb454
ApplyPatch drm-intel-crtc-dpms-fix.patch
Dave Jones 1f93f04
ApplyPatch drm-i915-fbc-stfu.patch
Dave Jones 70cad04
Jesse Keating 7a32965
ApplyPatch linux-2.6-intel-iommu-igfx.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# silence the ACPI blacklist code
Jesse Keating 7a32965
ApplyPatch linux-2.6-silence-acpi-blacklist.patch
12d4c0b
ApplyPatch quite-apm.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# V4L/DVB updates/fixes/experimental drivers
Jesse Keating 7a32965
#  apply if non-empty
Jesse Keating 7a32965
ApplyOptionalPatch linux-2.6-v4l-dvb-fixes.patch
Jesse Keating 7a32965
ApplyOptionalPatch linux-2.6-v4l-dvb-update.patch
Jesse Keating 7a32965
ApplyOptionalPatch linux-2.6-v4l-dvb-experimental.patch
Jesse Keating 7a32965
Dave Jones 1f93f04
# Patches headed upstream
Dave Jones 2b8c61a
Jesse Keating 7a32965
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Dave Jones c93c7e5
ApplyPatch bsg-fix-sysfs-link-remove-warning.patch
Dave Jones c93c7e5
Kyle McMartin dbda5f5
# rhbz#605888
Kyle McMartin dbda5f5
ApplyPatch dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f5
Dave Jones 1f93f04
ApplyPatch revert-efi-rtclock.patch
Dave Jones 1f93f04
ApplyPatch efi-dont-map-boot-services-on-32bit.patch
Chuck Ebbert 8b2df4b
Dave Jones aef732d
# https://bugzilla.redhat.com/show_bug.cgi?id=787607
Dave Jones aef732d
ApplyPatch cdc-acm-tiocgserial.patch
Dave Jones aef732d
Dave Jones 90bc499
ApplyPatch hibernate-freeze-filesystems.patch
Dave Jones 90bc499
Dave Jones 7052360
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones 7052360
Dave Jones 1f93f04
# utrace.
Dave Jones 1f93f04
ApplyPatch utrace.patch
Dave Jones 1f93f04
Dave Jones 8c3a2d0
#rhbz 752176
Dave Jones 8c3a2d0
ApplyPatch sysfs-msi-irq-per-device.patch
John W. Linville d836bc7
Chuck Ebbert 238fde1
# rhbz 754907
Chuck Ebbert 238fde1
ApplyPatch hpsa-add-irqf-shared.patch
Chuck Ebbert 1dfe369
504b3ab
#rhbz 717735
504b3ab
ApplyPatch nfs-client-freezer.patch
504b3ab
340d8af
#rhbz 590880
340d8af
ApplyPatch alps.patch
340d8af
Dave Jones 8c3a2d0
#rhbz 771058
Dave Jones 8c3a2d0
ApplyPatch msi-irq-sysfs-warning.patch
97d0260
Dave Jones 8c3a2d0
ApplyPatch ext4-Support-check-none-nocheck-mount-options.patch
5e42663
ApplyPatch ext4-Fix-error-handling-on-inode-bitmap-corruption.patch
d45e462
ApplyPatch ext3-Fix-error-handling-on-inode-bitmap-corruption.patch
5e42663
a7fae8f
#rhbz 773392
a7fae8f
ApplyPatch KVM-x86-extend-struct-x86_emulate_ops-with-get_cpuid.patch
a7fae8f
ApplyPatch KVM-x86-fix-missing-checks-in-syscall-emulation.patch
a7fae8f
63af6b0
#rhbz 728740
63af6b0
ApplyPatch rtl8192cu-Fix-WARNING-on-suspend-resume.patch
63af6b0
64fa2d2
#rhbz 782686
64fa2d2
ApplyPatch procfs-parse-mount-options.patch
64fa2d2
ApplyPatch procfs-add-hidepid-and-gid-mount-options.patch
64fa2d2
ApplyPatch proc-fix-null-pointer-deref-in-proc_pid_permission.patch
64fa2d2
c2a76c7
#rhbz 788260
c2a76c7
ApplyPatch jbd2-clear-BH_Delay-and-BH_Unwritten-in-journal_unmap_buf.patch
c2a76c7
71aea6e
#rhbz 785806
71aea6e
ApplyPatch e1000e-Avoid-wrong-check-on-TX-hang.patch
71aea6e
0b719f3
#rhbz 754518
Dave Jones a36c81d
#ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Dave Jones a36c81d
ApplyPatch scsi-fix-sd_revalidate_disk-oops.patch
0b719f3
John W. Linville 652c2c1
# Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
John W. Linville 652c2c1
ApplyPatch bcma-brcmsmac-compat.patch
John W. Linville 652c2c1
853703e
#rhbz 727865 730007
853703e
ApplyPatch ACPICA-Fix-regression-in-FADT-revision-checks.patch
853703e
5c51b13
# rhbz 798296
5c51b13
ApplyPatch cifs-fix-dentry-refcount-leak-when-opening-a-FIFO.patch
5c51b13
d76ff50
#rhbz 728478
d76ff50
ApplyPatch sony-laptop-Enable-keyboard-backlight-by-default.patch
d76ff50
93f9c95
#Disable threading in hibernate compression
93f9c95
ApplyPatch disable-threading-in-compression-for-hibernate.patch
93f9c95
3bb9478
#rhbz 799782 CVE-2012-1097
3bb9478
ApplyPatch regset-Prevent-null-pointer-reference-on-readonly-re.patch
3bb9478
ApplyPatch regset-Return-EFAULT-not-EIO-on-host-side-memory-fau.patch
3bb9478
Dave Jones 1fbb428
ApplyPatch unhandled-irqs-switch-to-polling.patch
Dave Jones 1fbb428
e250736
#rhbz 786632
d826f97
ApplyPatch mm-thp-fix-BUG-on-mm-nr_ptes.patch
d826f97
e250736
#rhbz 800817
e250736
ApplyPatch mm-memcg-Correct-unregistring-of-events-attached-to-.patch
e250736
Jesse Keating 7a32965
# END OF PATCH APPLICATIONS
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a32965
Jesse Keating 7a32965
chmod +x scripts/checkpatch.pl
Jesse Keating 7a32965
Kyle McMartin fa06609
touch .scmversion
Kyle McMartin fa06609
Jesse Keating 7a32965
# only deal with configs if we are going to build for the arch
Jesse Keating 7a32965
%ifnarch %nobuildarches
Jesse Keating 7a32965
Jesse Keating 7a32965
mkdir configs
Jesse Keating 7a32965
Jesse Keating 7a32965
# Remove configs not for the buildarch
Jesse Keating 7a32965
for cfg in kernel-%{version}-*.config; do
Jesse Keating 7a32965
  if [ `echo %{all_arch_configs} | grep -c $cfg` -eq 0 ]; then
Jesse Keating 7a32965
    rm -f $cfg
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
done
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# now run oldconfig over all the config files
Jesse Keating 7a32965
for i in *.config
Jesse Keating 7a32965
do
Jesse Keating 7a32965
  mv $i .config
Jesse Keating 7a32965
  Arch=`head -1 .config | cut -b 3-`
Dave Jones b89c80f
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Kyle McMartin da80d72
%if %{listnewconfig_fail}
Kyle McMartin da80d72
  if [ -s .newoptions ]; then
Kyle McMartin da80d72
    cat .newoptions
Chuck Ebbert 3a78e4b
    exit 1
Kyle McMartin da80d72
  fi
Kyle McMartin da80d72
%endif
Kyle McMartin da80d72
  rm -f .newoptions
Kyle McMartin a62b0aa
  make ARCH=$Arch oldnoconfig
Jesse Keating 7a32965
  echo "# $Arch" > configs/$i
Jesse Keating 7a32965
  cat .config >> configs/$i
Jesse Keating 7a32965
done
Jesse Keating 7a32965
# end of kernel config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# get rid of unwanted files resulting from patch fuzz
Jesse Keating 7a32965
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
Jesse Keating 7a32965
Dave Jones 246f94f
# remove unnecessary SCM files
Dave Jones 246f94f
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94f
Jesse Keating 7a32965
cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### build
Jesse Keating 7a32965
###
Jesse Keating 7a32965
%build
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
%define sparse_mflags	C=1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{fancy_debuginfo}
Jesse Keating 7a32965
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a32965
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a32965
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a32965
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a32965
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a32965
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a32965
export AFTER_LINK=\
Jesse Keating 7a32965
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a32965
    				-i $@ > $@.id"'
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
cp_vmlinux()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildKernel() {
Jesse Keating 7a32965
    MakeTarget=$1
Jesse Keating 7a32965
    KernelImage=$2
Jesse Keating 7a32965
    Flavour=$3
Jesse Keating 7a32965
    InstallName=${4:-vmlinuz}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Pick the right config file for the kernel we're building
Jesse Keating 7a32965
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Jesse Keating 7a32965
    DevelDir=/usr/src/kernels/%{KVERREL}${Flavour:+.${Flavour}}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a32965
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a32965
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a32965
      CopyKernel=cp_vmlinux
Jesse Keating 7a32965
    else
Jesse Keating 7a32965
      CopyKernel=cp
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}
Jesse Keating 7a32965
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a32965
Jesse Keating 7a32965
    # make sure EXTRAVERSION says what we want it to say
Jesse Keating 7a32965
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = %{?stablerev}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
Jesse Keating 7a32965
Jesse Keating 7a32965
    # and now to start the build process
Jesse Keating 7a32965
Jesse Keating 7a32965
    make -s mrproper
Jesse Keating 7a32965
    cp configs/$Config .config
Jesse Keating 7a32965
Jesse Keating 7a32965
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a32965
    echo USING ARCH=$Arch
Jesse Keating 7a32965
Kyle McMartin da80d72
    make -s ARCH=$Arch oldnoconfig >/dev/null
Jesse Keating 7a32965
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
Jesse Keating 7a32965
    make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Start installing the results
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a32965
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a32965
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a32965
Jesse Keating 7a32965
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a32965
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a32965
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a32965
Jesse Keating 7a32965
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a32965
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    $CopyKernel $KernelImage \
Jesse Keating 7a32965
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a32965
    # Override $(mod-fw) because we don't want it to install any firmware
Jesse Keating 7a32965
    # We'll do that ourselves with 'make firmware_install'
Jesse Keating 7a32965
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Jesse Keating 7a32965
%ifarch %{vdso_arches}
Jesse Keating 7a32965
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a32965
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a32965
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a32965
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a32965
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a32965
    # * all arch relevant include/ files
Jesse Keating 7a32965
    # * all Makefile/Kconfig files
Jesse Keating 7a32965
    # * all script/ files
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a32965
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a32965
    # first copy everything
Jesse Keating 7a32965
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -s Module.markers ]; then
Jesse Keating 7a32965
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Jesse Keating 7a32965
%ifarch ppc
Jesse Keating 7a32965
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a32965
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
    fi
2205d2a
    # include the machine specific headers for ARM variants, if available.
2205d2a
%ifarch %{arm}
2205d2a
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
2205d2a
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
2205d2a
    fi
2205d2a
%endif
Jesse Keating 7a32965
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a32965
    # external modules can be built
Jesse Keating 7a32965
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/version.h
Jesse Keating 7a32965
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/autoconf.h
Jesse Keating 7a32965
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a32965
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a32965
Roland McGrath 9b36e58
%if %{fancy_debuginfo}
Jesse Keating 7a32965
    if test -s vmlinux.id; then
Jesse Keating 7a32965
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a32965
    else
Roland McGrath 9b36e58
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e58
      exit 1
Jesse Keating 7a32965
    fi
Roland McGrath 9b36e58
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a32965
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Generate a list of modules for block and networking.
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a32965
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list()
Jesse Keating 7a32965
    {
Jesse Keating 7a32965
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Jesse Keating 7a32965
      LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Jesse Keating 7a32965
    }
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list networking \
c981342
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe'
Jesse Keating 7a32965
    collect_modules_list block \
Jesse Keating 7a32965
    			 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler'
Jesse Keating 7a32965
    collect_modules_list drm \
Jesse Keating 7a32965
    			 'drm_open|drm_init'
Jesse Keating 7a32965
    collect_modules_list modesetting \
Jesse Keating 7a32965
    			 'drm_crtc_init'
Jesse Keating 7a32965
Jesse Keating 7a32965
    # detect missing or incorrect license tags
Jesse Keating 7a32965
    rm -f modinfo
Jesse Keating 7a32965
    while read i
Jesse Keating 7a32965
    do
Jesse Keating 7a32965
      echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo
Jesse Keating 7a32965
      /sbin/modinfo -l $i >> modinfo
Jesse Keating 7a32965
    done < modnames
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -E -v \
Jesse Keating 7a32965
    	  'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \
Jesse Keating 7a32965
	  modinfo && exit 1
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f modinfo modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # remove files that will be auto generated by depmod at rpm -i time
Chuck Ebbert 482441b
    for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap
Jesse Keating 7a32965
    do
Jesse Keating 7a32965
      rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i
Jesse Keating 7a32965
    done
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae1
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a32965
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Jesse Keating 7a32965
    ln -sf ../../..$DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b407
Kyle McMartin 4b3b407
    # prune junk from kernel-devel
Kyle McMartin 4b3b407
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
# DO it...
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# prepare directories
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
cd linux-%{fakeversion}.%{_target_cpu}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image PAEdebug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image PAE
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
2205d2a
%if %{with_kirkwood}
2205d2a
BuildKernel %make_target %kernel_image kirkwood
2205d2a
%endif
2205d2a
2205d2a
%if %{with_imx}
2205d2a
BuildKernel %make_target %kernel_image imx
2205d2a
%endif
2205d2a
2205d2a
%if %{with_highbank}
2205d2a
BuildKernel %make_target %kernel_image highbank
2205d2a
%endif
2205d2a
bfb05f2
%if %{with_omap}
bfb05f2
BuildKernel %make_target %kernel_image omap
bfb05f2
%endif
bfb05f2
bfb05f2
%if %{with_tegra}
bfb05f2
BuildKernel %make_target %kernel_image tegra
bfb05f2
%endif
bfb05f2
Jesse Keating 7a32965
%if %{with_up}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smp}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%global perf_make \
Kyle McMartin c8de255
  make %{?_smp_mflags} -C tools/perf -s V=1 HAVE_CPLUS_DEMANGLE=1 EXTRA_CFLAGS="-Wno-error=array-bounds" prefix=%{_prefix}
Jesse Keating 7a32965
%if %{with_perf}
Kyle McMartin c8de255
%{perf_make} all
Jesse Keating 7a32965
%{perf_make} man || %{doc_build_fail}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
# Make the HTML and man pages.
Chuck Ebbert 2247721
make htmldocs mandocs || %{doc_build_fail}
Jesse Keating 7a32965
Jesse Keating 7a32965
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a32965
chmod -R a=rX Documentation
Jesse Keating 7a32965
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### Special hacks for debuginfo subpackages.
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# This macro is used by %%install, so we must redefine it before that.
Jesse Keating 7a32965
%define debug_package %{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{fancy_debuginfo}
Jesse Keating 7a32965
%define __debug_install_post \
Jesse Keating 7a32965
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%global __debug_package 1
Jesse Keating 7a32965
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### install
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%install
Jesse Keating 7a32965
Chuck Ebbert 8728f9c
cd linux-%{fakeversion}.%{_target_cpu}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a32965
man9dir=$RPM_BUILD_ROOT%{_datadir}/man/man9
Jesse Keating 7a32965
Jesse Keating 7a32965
# copy the source over
Jesse Keating 7a32965
mkdir -p $docdir
aebb47b
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a32965
Jesse Keating 7a32965
# Install man pages for the kernel API.
Jesse Keating 7a32965
mkdir -p $man9dir
Jesse Keating 7a32965
find Documentation/DocBook/man -name '*.9.gz' -print0 |
Jesse Keating 7a32965
xargs -0 --no-run-if-empty %{__install} -m 444 -t $man9dir $m
Jesse Keating 7a32965
ls $man9dir | grep -q '' || > $man9dir/BROKEN
Jesse Keating 7a32965
%endif # with_doc
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_perf}
Jesse Keating 7a32965
# perf tool binary and supporting scripts/binaries
Jesse Keating 7a32965
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
Jesse Keating 7a32965
Jesse Keating 7a32965
# perf man pages (note: implicit rpm magic compresses them later)
Jesse Keating 7a32965
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
# Install kernel headers
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do headers_check but don't die if it fails.
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a32965
     > hdrwarnings.txt || :
Jesse Keating 7a32965
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a32965
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a32965
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a32965
   # exit 1
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a32965
     \( -name .install -o -name .check -o \
Jesse Keating 7a32965
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a32965
Jesse Keating 7a32965
# glibc provides scsi headers for itself, for now
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT/usr/include/scsi
Jesse Keating 7a32965
rm -f $RPM_BUILD_ROOT/usr/include/asm*/atomic.h
Jesse Keating 7a32965
rm -f $RPM_BUILD_ROOT/usr/include/asm*/io.h
Jesse Keating 7a32965
rm -f $RPM_BUILD_ROOT/usr/include/asm*/irq.h
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_firmware}
Jesse Keating 7a32965
%{build_firmware}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### clean
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%clean
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### scripts
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_post() \
Jesse Keating 7a32965
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a32965
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
Jesse Keating 7a32965
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a32965
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a32965
     done)\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_posttrans() \
Jesse Keating 7a32965
%{expand:%%posttrans %{?1}}\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --mkinitrd --dracut --depmod --update %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?1:-%{1}} --rpmposttrans %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a32965
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_post(v:r:) \
Jesse Keating 7a32965
%{expand:%%kernel_devel_post %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%post %{?-v*}}\
Jesse Keating 7a32965
%{-r:\
Jesse Keating 7a32965
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a32965
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a32965
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi}\
Jesse Keating 7a32965
%{expand:\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --install %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a32965
}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_preun() \
Jesse Keating 7a32965
%{expand:%%preun %{?1}}\
Jesse Keating 7a32965
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun
Jesse Keating 7a32965
%kernel_variant_post -r kernel-smp
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun smp
Jesse Keating 7a32965
%kernel_variant_post -v smp
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun PAE
Jesse Keating 7a32965
%kernel_variant_post -v PAE -r (kernel|kernel-smp)
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun debug
Jesse Keating 7a32965
%kernel_variant_post -v debug
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp)
Jesse Keating 7a32965
%kernel_variant_preun PAEdebug
Jesse Keating 7a32965
2205d2a
%kernel_variant_preun kirkwood
2205d2a
%kernel_variant_post -v kirkwood
2205d2a
2205d2a
%kernel_variant_preun imx
2205d2a
%kernel_variant_post -v imx
2205d2a
2205d2a
%kernel_variant_preun highbank
2205d2a
%kernel_variant_post -v highbank
2205d2a
bfb05f2
%kernel_variant_preun omap
bfb05f2
%kernel_variant_post -v omap
bfb05f2
bfb05f2
%kernel_variant_preun tegra
bfb05f2
%kernel_variant_post -v tegra
bfb05f2
Jesse Keating 7a32965
if [ -x /sbin/ldconfig ]
Jesse Keating 7a32965
then
Jesse Keating 7a32965
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### file lists
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
%files headers
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/include/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_firmware}
Jesse Keating 7a32965
%files firmware
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/lib/firmware/*
Chuck Ebbert 8728f9c
%doc linux-%{fakeversion}.%{_target_cpu}/firmware/WHENCE
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
%files bootwrapper
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/sbin/*
Jesse Keating 7a32965
%{_libdir}/kernel-wrapper
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# only some architecture builds need kernel-doc
Jesse Keating 7a32965
%if %{with_doc}
Jesse Keating 7a32965
%files doc
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a32965
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a32965
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a32965
%{_datadir}/man/man9/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_perf}
Jesse Keating 7a32965
%files -n perf
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_bindir}/perf
Jesse Keating 7a32965
%dir %{_libexecdir}/perf-core
Jesse Keating 7a32965
%{_libexecdir}/perf-core/*
Jesse Keating 7a32965
%{_mandir}/man[1-8]/*
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
%if %{with_debuginfo}
Roland McGrath 3c4ea9a
%files -f perf-debuginfo.list -n perf-debuginfo
Roland McGrath 3c4ea9a
%defattr(-,root,root)
Roland McGrath 3c4ea9a
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 166b79a
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a32965
# or empty otherwise.
Jesse Keating 7a32965
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a32965
# and its devel and debuginfo packages.
Jesse Keating 7a32965
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_files(k:) \
Jesse Keating 7a32965
%if %{1}\
Jesse Keating 7a32965
%{expand:%%files %{?2}}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Kyle McMartin f6dd1f4
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
Kyle McMartin d287769
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
/boot/config-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
Jesse Keating 7a32965
%ifarch %{vdso_arches}\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
Jesse Keating 7a32965
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
Jesse Keating 7a32965
%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
Jesse Keating 7a32965
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
%if %{with_debuginfo}\
Jesse Keating 7a32965
%ifnarch noarch\
Jesse Keating 7a32965
%if %{fancy_debuginfo}\
Jesse Keating 7a32965
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a32965
%else\
Jesse Keating 7a32965
%{expand:%%files %{?2:%{2}-}debuginfo}\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
%if !%{fancy_debuginfo}\
Jesse Keating 7a32965
%if "%{elf_image_install_path}" != ""\
Jesse Keating 7a32965
%{debuginfodir}/%{elf_image_install_path}/*-%{KVERREL}%{?2:.%{2}}.debug\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%{debuginfodir}/lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
%{debuginfodir}/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_files %{with_up}
Jesse Keating 7a32965
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a32965
%kernel_variant_files %{with_debug} debug
Jesse Keating 7a32965
%kernel_variant_files %{with_pae} PAE
Jesse Keating 7a32965
%kernel_variant_files %{with_pae_debug} PAEdebug
2205d2a
%kernel_variant_files %{with_kirkwood} kirkwood
2205d2a
%kernel_variant_files %{with_imx} imx
2205d2a
%kernel_variant_files %{with_highbank} highbank
bfb05f2
%kernel_variant_files %{with_omap} omap
bfb05f2
%kernel_variant_files %{with_tegra} tegra
Jesse Keating 7a32965
Jesse Keating 7a32965
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a32965
# and build.
Jesse Keating 7a32965
Jesse Keating 7a32965
%changelog
e250736
* Wed Mar 07 2012 Josh Boye <jwboyer@redhat.com>
761d970
- CVE-2012-1146: memcg: unregister events attached to the same eventfd can
761d970
  oops (rhbz 800817)
e250736
3bb9478
* Mon Mar 05 2012 Josh Boyer <jwboyer@redhat.com>
3bb9478
- CVE-2012-1097 regset: Prevent null pointer reference on readonly regsets
d826f97
- Add patch to fix BUG_ON mm->nr_ptes (rhbz 786632)
3bb9478
Dave Jones be72cc4
* Fri Mar 02 2012 Dave Jones <davej@redhat.com>
Dave Jones be72cc4
- Enable VM debugging in non-debug kernels too.
Dave Jones be72cc4
93f9c95
* Fri Mar 02 2012 Justin M. Forbes <jforbes@redhat.com> 
93f9c95
- Disable threading in hibernate compression/decompression
93f9c95
b2fb454
* Fri Mar 02 2012 Adam Jackson <ajax@redhat.com>
b2fb454
- drm-intel-crtc-dpms-fix.patch: Fix system hang on gen2 kit on DPMS (#730853)
b2fb454
4801056
* Thu Mar 01 2012 Justin M. Forbes <jforbes@redhat.com> 2.6.42.9-1
4801056
- Linux 3.2.9
4801056
Dave Jones 1fbb428
* Thu Mar 01 2012 Dave Jones <davej@redhat.com>
Dave Jones 4f70627
- Temporarily enable CONFIG_DEBUG_PAGEALLOC in -debug builds to help track
Dave Jones 4f70627
  down some long-standing bugs.
Dave Jones 4f70627
  Note: This will make -debug builds even slower than normal.
Dave Jones 4f70627
Dave Jones 4f70627
* Thu Mar 01 2012 Dave Jones <davej@redhat.com>
Dave Jones 1fbb428
- temporarily switch to low-performance polling IRQ mode when
Dave Jones 1fbb428
  unexpected IRQs occur.
Dave Jones 1fbb428
d76ff50
* Tue Feb 28 2012 Josh Boyer <jwboyer@redhat.com>
d76ff50
- Add patch to enable keyboard backlight on Sony laptops (rhbz 728478)
d76ff50
5c51b13
* Tue Feb 28 2012 Justin M. Forbes <jforbes@redhat.com> 2.6.42.7-3
5c51b13
- CVE-2012-1090 CIFS: fix dentry refcount leak when opening a FIFO on lookup (rhbz 798296)
5c51b13
853703e
* Mon Feb 27 2012 Josh Boyer <jwboyer@redhat.com>
853703e
- Add patch to fix regression in FADT revision checks (rhbz 730007 727865)
853703e
Dave Jones a36c81d
* Mon Feb 20 2012 Dave Jones <davej@redhat.com> 2.6.42.7-1
Dave Jones a36c81d
- Do not call drivers when invalidating partitions for -ENOMEDIUM
Dave Jones a36c81d
Dave Jones 14843a4
* Mon Feb 20 2012 Dave Jones <davej@redhat.com>
Dave Jones 361557c
- Linux 3.2.7
Dave Jones 361557c
Dave Jones 361557c
* Mon Feb 20 2012 Dave Jones <davej@redhat.com>
Dave Jones 14843a4
- NFSv4: Fix an Oops in the NFSv4 getacl code
Dave Jones 14843a4
Dave Jones 8559739
* Fri Feb 17 2012 Dave Jones <davej@redhat.com>
Dave Jones 7052360
- improve handling of null rate in LIS3LV02Dx accelerometer driver. (rhbz 785814)
Dave Jones 7052360
Dave Jones 7052360
* Fri Feb 17 2012 Dave Jones <davej@redhat.com>
Dave Jones 8559739
- Reenable radio drivers. (rhbz 784824)
Dave Jones 8559739
Dave Jones 90bc499
* Thu Feb 16 2012 Dave Jones <davej@redhat.com>
Dave Jones 90bc499
- Freeze all filesystems during system suspend/hibernate.
Dave Jones 90bc499
3ee3622
* Wed Feb 15 2012 Josh Boyer <jwboyer@redhat.com>
3ee3622
- Require newer linux-firmware for updated bnx2/bnx2x drivers
3ee3622
Dave Jones 2d5a4c9
* Mon Feb 13 2012 Dave Jones <davej@redhat.com> 2.6.42.6-3
Dave Jones 2d5a4c9
- Linux 3.2.6
Dave Jones 2d5a4c9
0b719f3
* Fri Feb 10 2012 Josh Boyer <jwboyer@redhat.com>
0b719f3
- Patch to prevent NULL pointer dereference in sd_revalidate_disk (rhbz 754518)
0b719f3
Dave Jones aef732d
* Fri Feb 10 2012 Dave Jones <davej@redhat.com>
Dave Jones aef732d
- Implement TIOCGSERIAL for acm_tty_ioctl (rhbz 787607)
Dave Jones aef732d
Dave Jones c93c7e5
* Thu Feb 09 2012 Dave Jones <davej@redhat.com>
Dave Jones c93c7e5
- bsg: fix sysfs link remove warning (#787862)
Dave Jones c93c7e5
Dave Jones c93c7e5
* Wed Feb 08 2012 Josh Boyer <jwboyer@redhat.com> 2.6.42.3-2.fc15
c2a76c7
- CVE-2011-4086: jbd2: unmapped buffer with _Unwritten or _Delay flags
c2a76c7
  set can lead to DoS (rhbz 788260)
9f1f3a3
- Drop patch that was NAKd upstream (rhbz 783211)
71aea6e
- Fix e1000e Tx hang check (rhbz 785806)
9f1f3a3
Dave Jones ebc6e50
* Sun Feb 05 2012 Dave Jones <davej@redhat.com>
Dave Jones ebc6e50
- Remove unnecessary block-stray-block-put-after-teardown.patch
Dave Jones ebc6e50
- readahead: fix pipeline break caused by block plug
Dave Jones ebc6e50
Dave Jones 85243fe
* Fri Feb 03 2012 Dave Jones <davej@redhat.com>
Dave Jones 85243fe
- Linux 3.2.3
Dave Jones 85243fe
8b0318d
* Thu Feb 02 2012 Dennis Gilmore <dennis@ausil.us>
8b0318d
- add patch to ensure that mfd-core is builtin when building nvec on tegra
8b0318d
- build nvec-leds on tegra kernel
8b0318d
Dave Jones 1648faf
* Wed Feb 01 2012 Dave Jones <davej@redhat.com>
Dave Jones 2c860b0
- Revert more f16 config changes that shouldn't be in f15.
Dave Jones 2c860b0
Dave Jones 2c860b0
* Wed Feb 01 2012 Dave Jones <davej@redhat.com>
Dave Jones 1648faf
- Revert the f16 use-ext4-for-ext2/ext3 change.
Dave Jones 1648faf
c24ab00
* Tue Jan 31 2012 Dennis Gilmore <dennis@ausil.us>
c24ab00
- diable TOUCHSCREEN_EETI on all arm arches 
4fc891d
- add patch for arm mtd
49cb174
- add patch for stmmac on arm
327c797
- disable USB_IMX21_HCD pn imx
327c797
- enable CACHE_L2X0 on imx
c24ab00
Dave Jones 2984100
* Mon Jan 30 2012 Dave Jones <davej@redhat.com>
Dave Jones d8fd9cb
- Enable kmemleak (off by default) in kernel-debug (rhbz 782419)
Dave Jones d8fd9cb
Dave Jones d8fd9cb
* Mon Jan 30 2012 Dave Jones <davej@redhat.com>
Dave Jones d8fd9cb
- Test fix for realtek_async_autopm oops from Stanislaw Gruszka (rhbz 784345)
Dave Jones d8fd9cb
Dave Jones d8fd9cb
* Mon Jan 30 2012 Dave Jones <davej@redhat.com>
Dave Jones 2984100
- Restore the Savage DRM and several others that were accidentally early-deprecated.
Dave Jones 2984100
John W. Linville 652c2c1
* Mon Jan 30 2012 John W. Linville <linville@redhat.com>
John W. Linville 652c2c1
- Reinstate patch to remove overlap between bcma/b43 and brcmsmac
John W. Linville 652c2c1
Dave Jones 8c3a2d0
* Mon Jan 30 2012 Dave Jones <davej@redhat.com> 2.6.42.2-1
Dave Jones 8c3a2d0
- Rebase to 3.2.2
Dave Jones 8c3a2d0
b25c4b3
* Mon Jan 23 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.10-3
c0e1933
- Fix NULL pointer dereference in sym53c8xx module (rhbz 781625)
c0e1933
11fe6a0
* Fri Jan 20 2012 Josh Boyer <jwboyer@redhat.com>
11fe6a0
- Add mac80211 deauth fix pointed out by Stanislaw Gruszka
11fe6a0
386367a
* Wed Jan 18 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.10-2
386367a
- Fix broken procfs backport (rhbz 782961)
386367a
7655e85
* Wed Jan 18 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.10-1
7655e85
- Linux 3.1.10
64fa2d2
- /proc/pid/* information leak (rhbz 782686)
7655e85
e76e70c
* Wed Jan 18 2012 Dennis Gilmore <dennis@ausil.us>
e76e70c
- build perf on armv7hl
e76e70c
304903f
* Wed Jan 18 2012 Josh Boyer <jwboyer@redhat.com>
304903f
- CVE-2012-0056 proc: clean up and fix /proc/<pid>/mem (rhbz 782681)
cd4ffd1
- loop: prevent information leak after failed read (rhbz 782687)
304903f
94aa5a9
* Tue Jan 17 2012 Josh Boyer <jwboyer@redhat.com>
94aa5a9
- CVE-2011-4127 possible privilege escalation via SG_IO ioctl (rhbz 769911)
94aa5a9
aebb47b
* Sun Jan 15 2012 Josh Boyer <jwboyer@redhat.com>
aebb47b
- Avoid packaging symlinks for kernel-doc files (rhbz 767351)
aebb47b
63af6b0
* Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com>
63af6b0
- Fix verbose logging messages in the rtl8192cu driver (rhbz 728740)
63af6b0
a7fae8f
* Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.9-1
a7fae8f
- Linux 3.1.9
a7fae8f
- CVE-2012-0045 kvm: syscall instruction induced guest panic (rhbz 773392)
a7fae8f
dc54a7e
* Wed Jan 11 2012 Josh Boyer <jwboyer@redhat.com>
dc54a7e
- Patch from Stanislaw Gruszka to fix NULL ptr deref in mac80211 (rhbz 769766)
dc54a7e
5e42663
* Tue Jan 10 2012 Josh Boyer <jwboyer@redhat.com>
d45e462
- Fix ext3/ext4 corrupted bitmap error path (pointed out by Eric Sandeen)
5e42663
dba7dc5
* Fri Jan 06 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.8-1
dba7dc5
- Linux 3.1.8
dba7dc5
0456a2e
* Wed Jan 04 2012 Josh Boyer <jwboyer@redhat.com>
0456a2e
- CVE-2011-4347 kvm: device assignment DoS (rhbz 770096)
0456a2e
4537a47
* Tue Jan 03 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.7-1
4537a47
- Linux 3.1.7
4537a47
97d0260
* Tue Jan 03 2012 Josh Boyer <jwboyer@redhat.com>
97d0260
- Add bluetooth support for BCM20102A0 (rhbz 770233)
97d0260
12b320b
* Tue Jan 03 2012 Josh Boyer <jwboyer@redhat.com>
12b320b
- CVE-2011-4622 kvm: pit timer with no irqchip crashes the system (rhbz 770102)
12b320b
Dave Jones 2ec5a5f
* Tue Jan 03 2012 Dave Jones <davej@redhat.com>
Dave Jones 2ec5a5f
- thp: reduce khugepaged freezing latency (rhbz 771006)
Dave Jones 2ec5a5f
Dave Jones 0ae65ec
* Wed Dec 21 2011 Dave Jones <davej@redhat.com> 2.6.41.6-1
Dave Jones 0ae65ec
- Linux 3.1.6 (Fedora 2.6.31.6)
Dave Jones 0ae65ec
Dave Jones 3454da3
* Wed Dec 21 2011 Dave Jones <davej@redhat.com> 2.6.41.5-5
Dave Jones 3454da3
- Reinstate the route cache garbage collector.
Dave Jones 3454da3
2d4a348
* Tue Dec 20 2011 Josh Boyer <jwboyer@redhat.com>
2d4a348
- Fix config options in arm configs after latest commits
4c6625a
- Backport upstream fix for b44_poll oops (rhbz #741117)
2d4a348
Dave Jones e23ae9f
* Mon Dec 19 2011 Dave Jones <davej@redhat.com>
Dave Jones e23ae9f
- x86, dumpstack: Fix code bytes breakage due to missing KERN_CONT
Dave Jones e23ae9f
2d99735
* Thu Dec 15 2011 Dennis Gilmore <dennis@ausil.us>
5085a82
- build imx highbank and kirkwood kernel variants on arm
5085a82
- add patch for tegra usb storage resets
5085a82
- omap config cleanups from dmarlin
5085a82
ddeb239
* Thu Dec 15 2011 Josh Boyer <jwboyer@redhat.com> - 2.6.41.5-4
ddeb239
- Add patch to fix Intel wifi regression in 3.1.5 (rhbz 767173)
504b3ab
- Add patch from Jeff Layton to fix suspend with NFS (rhbz #717735)
340d8af
- Backport ALPS touchpad patches from input/next branch (rhbz #590880)
504b3ab
Dave Jones 94f063e
* Thu Dec 15 2011 Dave Jones <davej@redhat.com> - 2.6.41.5-3
Dave Jones 94f063e
- Disable Intel IOMMU by default.
Dave Jones 94f063e
f906e02
* Fri Dec 09 2011 Josh Boyer <jwboyer@redhat.com> 2.6.41.5-1
f906e02
- Linux 3.1.5 (Fedora 2.6.41.5)
f906e02
Chuck Ebbert 8b4e9ae
* Thu Dec 08 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.5-0.rc2.1
Chuck Ebbert 8b4e9ae
- Linux 3.1.5-rc2 (Fedora 2.6.41.5-rc2)
Chuck Ebbert 2da231f
- Fix wrong link speed on some sky2 network adapters (rhbz #757839)
Chuck Ebbert 8b4e9ae
Chuck Ebbert 8b4e9ae
* Wed Dec 07 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 16571df
- Linux 3.1.5-rc1 (Fedora 2.6.41.5-rc1)
Chuck Ebbert 16571df
- Comment out merged patches:
Chuck Ebbert 16571df
  xfs-Fix-possible-memory-corruption-in-xfs_readlink.patch
Chuck Ebbert 16571df
  rtlwifi-fix-lps_lock-deadlock.patch
Chuck Ebbert 16571df
Chuck Ebbert 1d542ed
* Tue Dec 06 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 1d542ed
- Disable uas until someone can fix it (rhbz #717633)
Chuck Ebbert 1d542ed
428eca2
* Tue Dec 06 2011 Josh Boyer <jwboyer@redhat.com>
428eca2
- Add reworked pci ASPM patch from Matthew Garrett
428eca2
2fcc12a
* Mon Dec 05 2011 Josh Boyer <jwboyer@redhat.com>
2fcc12a
- Only print the apm_cpu_idle message once (rhbz #760341)
2fcc12a
Dave Jones 0564a40
* Mon Dec 05 2011 Dave Jones <davej@redhat.com>
Dave Jones 0564a40
- Switch from -Os to -O2
Dave Jones 0564a40
ef5737b
* Thu Dec 01 2011 Josh Boyer <jwboyer@redhat.com>
ef5737b
- Apply patch to revert mac80211 scan optimizations (rhbz #731365)
5ff2da4
- Disable the existing brcm80211 staging drivers (rhbz #759109)
ef5737b
8eb2e2e
* Wed Nov 30 2011 Josh Boyer <jwboyer@redhat.com>
8eb2e2e
- Include commit 3940d6185 from JJ Ding in elantech.patch
8eb2e2e
ce96d75
* Tue Nov 29 2011 Josh Boyer <jwboyer@redhat.com>
ce96d75
- Add patch to fix deadlock in rtlwifi (rhbz #755154)
0b706c8
- Drop drm-intel-make-lvds-work.patch (rhbz #731296)
ce96d75
Chuck Ebbert 650b778
* Mon Nov 28 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.4-1
Chuck Ebbert 650b778
- Linux 3.1.4 (Fedora 2.6.41.4)
Chuck Ebbert 650b778
ce96d75
* Mon Nov 28 2011 Chuck Ebbert <cebbert@redhat.com> 3.1.4-1
ce96d75
- Linux 3.1.4
ce96d75
Chuck Ebbert 238fde1
* Mon Nov 28 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 238fde1
- Fix IRQ error preventing load of cciss module (rhbz#754907)
Chuck Ebbert 238fde1
Chuck Ebbert 238fde1
* Mon Nov 28 2011 Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs 27ec4e1
- nouveau: fix two instances of an oops in ttm clear() (rhbz#751753)
Ben Skeggs 27ec4e1
Chuck Ebbert 1dfe369
* Mon Nov 28 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.3-1
Chuck Ebbert 1dfe369
- Fake version 2.6.4X by changing UTSNAME
Chuck Ebbert 1dfe369
  (instead of changing the internal kernel version)
Chuck Ebbert 1dfe369
Chuck Ebbert 1dfe369
* Sun Nov 27 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 74c0f68
- Linux 3.1.3 (Fedora 2.6.41.3)
Chuck Ebbert 74c0f68
Chuck Ebbert 99b2575
* Wed Nov 23 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.3-0.rc1.1
Chuck Ebbert 99b2575
- Linux 3.1.3-rc1 (Fedora 2.6.41.3-rc1)
Chuck Ebbert 99b2575
- Comment out merged patches:
Chuck Ebbert 99b2575
  usb-add-quirk-for-logitech-webcams.patch
Chuck Ebbert 99b2575
  ip6_tunnel-copy-parms.name-after-register_netdevice.patch
Chuck Ebbert 99b2575
Chuck Ebbert 73d2291
* Tue Nov 22 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.2-1
Chuck Ebbert 73d2291
- Linux 3.1.2 (Fedora 2.6.41.2)
Chuck Ebbert 73d2291
Chuck Ebbert 1933ff1
* Sat Nov 19 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.2-0.rc1.1
Chuck Ebbert 1933ff1
- Linux 3.1.2-rc1 (Fedora 2.6.41.2-rc1)
Chuck Ebbert 1933ff1
202bf79
* Fri Nov 18 2011 Dennis Gilmore <dennis@ausil.us>
202bf79
- enable selinux to work on arm
202bf79
Kyle McMartin a770668
* Wed Nov 16 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin a770668
- Work around #663080 on s390x and restore building perf there.
Kyle McMartin a770668
Dave Jones b4cf83d
* Tue Nov 15 2011 Dave Jones <davej@redhat.com>
Dave Jones b4cf83d
- mm: Do not stall in synchronous compaction for THP allocations
Dave Jones b4cf83d
c981342
* Mon Nov 14 2011 Josh Boyer <jwboyer@redhat.com>
c981342
- Patch from Joshua Roys to add rtl8192* to modules.networking (rhbz 753645)
14a0317
- Add patch for wacom tablets for Bastien Nocera (upstream 3797ef6b6)
824676c
- Add patch to fix ip6_tunnel naming (rhbz 751165)
12d4c0b
- Quite warning in apm_cpu_idle (rhbz 753776)
c981342
8edf5c6
* Mon Nov 14 2011 Josh Boyer <jwboyer@redhat.com> 2.6.41.1-2
8edf5c6
- CVE-2011-4131: nfs4_getfacl decoding kernel oops (rhbz 753236)
8edf5c6
- CVE-2011-4132: jbd/jbd2: invalid value of first log block leads to oops (rhbz 753346)
8edf5c6
Chuck Ebbert 97c2a18
* Fri Nov 11 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 97c2a18
- Use the same naming scheme as rawhide for -stable RC kernels
Chuck Ebbert 97c2a18
  (e.g. 2.6.41.1-0.rc1.1 instead of 2.6.41.1-1.rc1)
Chuck Ebbert 97c2a18
8ee8a6f
* Fri Nov 11 2011 Josh Boyer <jwboyer@redhat.com> 2.6.41.1-1
8ee8a6f
- Linux 3.1.1
8ee8a6f
John W. Linville b480412
* Fri Nov 11 2011 John W. Linville <linville@redhat.com>
John W. Linville b480412
- Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
John W. Linville b480412
Chuck Ebbert 37120dd
* Thu Nov 10 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 37120dd
- Sync samsung-laptop driver with what's in 3.2 (rhbz 747560)
Chuck Ebbert 37120dd
Chuck Ebbert e6f683f
* Wed Nov 09 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.41.1-1.rc1
Chuck Ebbert e6f683f
- Linux 3.1.1-rc1 (Fedora 2.6.41.1-rc1)
Chuck Ebbert e6f683f
- Comment out merged patches, will drop when release is final:
Chuck Ebbert e6f683f
   ums-realtek-driver-uses-stack-memory-for-DMA.patch
Chuck Ebbert e6f683f
   epoll-fix-spurious-lockdep-warnings.patch
Chuck Ebbert e6f683f
   crypto-register-cryptd-first.patch
Chuck Ebbert e6f683f
   add-macbookair41-keyboard.patch
Chuck Ebbert e6f683f
   powerpc-Fix-deadlock-in-icswx-code.patch
Chuck Ebbert e6f683f
   iwlagn-fix-ht_params-NULL-pointer-dereference.patch
Chuck Ebbert e6f683f
   mmc-Always-check-for-lower-base-frequency-quirk-for-.patch
Chuck Ebbert e6f683f
   media-DiBcom-protect-the-I2C-bufer-access.patch
Chuck Ebbert e6f683f
   media-dib0700-protect-the-dib0700-buffer-access.patch
Chuck Ebbert e6f683f
   WMI-properly-cleanup-devices-to-avoid-crashes.patch
Chuck Ebbert e6f683f
John W. Linville d836bc7
* Wed Nov 09 2011 John W. Linville <linville@redhat.com>
John W. Linville d836bc7
- Backport brcm80211 from 3.2-rc1
John W. Linville d836bc7
Dave Jones 1f93f04
* Mon Nov 07 2011 Dave Jones <davej@redhat.com>
Dave Jones 1f93f04
- Rebase to 3.1.0
Dave Jones 1f93f04
c7fa63c
* Thu Nov 03 2011 Josh Boyer <jwboyer@redhat.com>
c7fa63c
- Add patches queued for 3.2 for elantech driver (rhbz 728607)
c7fa63c
6bb8ae8
* Wed Nov 02 2011 Josh Boyer <jwboyer@redhat.com>
6bb8ae8
- Add patch to fix oops when removing wmi module (rhbz 706574)
6bb8ae8
Dave Jones 5937336
* Tue Nov 01 2011 Dave Jones <davej@redhat.com> 2.6.40.8-5
Dave Jones 5937336
- allow building the perf rpm for ARM (rhbz 741325)
Dave Jones 5937336
e517e66
* Tue Nov 01 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.8-4
e517e66
- Drop x86-efi-Calling-__pa-with-an-ioremap-address-is-invalid (rhbz 748516)
e517e66
e517e66
* Tue Nov 01 2011 Dave Jones <davej@redhat.com>
Dave Jones 158235a
- Add another Sony laptop to the nonvs blacklist. (rhbz 641789)
Dave Jones 158235a
3845060
* Mon Oct 31 2011 Josh Boyer <jwboyer@redhat.com>
Dave Jones 158235a
- CVE-2011-4097: oom_badness() integer overflow (rhbz 750402)
3845060
08e5f61
* Fri Oct 28 2011 Josh Boyer <jwboyer@redhat.com>
08e5f61
- Add patch to prevent tracebacks on a warning in floppy.c (rhbz 749887)
08e5f61
d40de00
* Wed Oct 26 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.8-2
ae6e0e8
- CVE-2011-4077: xfs: potential buffer overflow in xfs_readlink() (rhbz 749166)
2725a26
1c10438
* Tue Oct 25 2011 Josh Boyer <jwboyer@redhat.com>
8cbfe5c
- CVE-2011-3347: be2net: promiscuous mode and non-member VLAN packets DoS (rhbz 748691)
45fb062
- CVE-2011-1083: excessive in kernel CPU consumption when creating large nested epoll structures (rhbz 748668)
45fb062
45fb062
* Tue Oct 25 2011 Josh Boyer <jwboyer@redhat.com>
1c10438
- Linux 3.0.8 stable release
1c10438
Chuck Ebbert 5d467e5
* Mon Oct 24 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 5d467e5
- Add patch from LKML to fix Samsung notebook brightness flicker (rhbz 737108)
Chuck Ebbert 5d467e5
Dave Jones a38747f
* Mon Oct 24 2011 Dave Jones <davej@redhat.com>
Dave Jones a38747f
- Print modules list from bad_page()
Dave Jones a38747f
7eb4ded
* Mon Oct 24 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.7-3
4ab6a85
- Backport 3 fixed from linux-next to fix dib0700 playback (rhbz 733827)
4ab6a85
Dave Jones 70cad04
* Fri Oct 21 2011 Dave Jones <davej@redhat.com>
Dave Jones 70cad04
- Lower severity of Radeon lockup messages.
Dave Jones 70cad04
73fbe46
* Thu Oct 20 2011 Josh Boyer <jwboyer@redhat.com>
73fbe46
- Add backport for P4 watchdog and perf support from Don Zickus (rhbz 713675)
73fbe46
Dave Jones e8a2ce7
* Wed Oct 19 2011 Dave Jones <davej@redhat.com>
Dave Jones e8a2ce7
- Add Sony VGN-FW21E to nonvs blacklist. (rhbz 641789)
Dave Jones e8a2ce7
a7fc75d
* Tue Oct 18 2011 Josh Boyer <jwboyer@redhat.com>
f6d62ef
- Add patch to fix invalid EFI remap calls from Matt Fleming
a7fc75d
- Add patch to fix lock inversion introduced in 3.0.7
a7fc75d
7be21bb
* Mon Oct 17 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.7-0
7be21bb
- Linux 3.0.7 stable release
bcd1989
- Add two patches to fix stalls in khugepaged (rhbz 735946)
bcd1989
ab000f3
* Thu Oct 13 2011 Josh Boyer <jwboyer@redhat.com>
ab000f3
- Update usb-add-quirk-for-logitech-webcams.patch with C600 ID (rhbz 742010)
ab000f3
4b7f4d3
* Thu Oct 13 2011 Adam Jackson <ajax@redhat.com>
4b7f4d3
- drm/i915: Treat SDVO LVDS as digital when parsing EDID (#729882)
4b7f4d3
38f9751
* Tue Oct 11 2011 Josh Boyer <jwboyer@redhat.com>
38f9751
- fix memory leak in fuse (rhbz 745241)
38f9751
Dave Jones 7ba24c3
* Tue Oct 11 2011 Dave Jones <davej@redhat.com>
Dave Jones 7ba24c3
- add e1000e workaround for packet drop on 82579 at 100Mbps (rhbz 713315)
Dave Jones 7ba24c3
71ac22d
* Thu Oct 06 2011 Josh Boyer <jwboyer@redhat.com>
71ac22d
- Add patch to fix base frequency check for Ricoh e823 devices (rhbz 722509)
71ac22d
9788e32
* Mon Oct 03 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.6-0
9788e32
- Linux 3.0.6 stable release
9788e32
9788e32
* Mon Oct 03 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.4-6
e0adc28
- Add patch to fix PIE execution when ASLR is disabled at runtime (rhbz 708563)
e0adc28
ea16694
* Thu Sep 29 2011 Josh Boyer <jwboyer@redhat.com>
ea16694
- Backport two upstream patches to fix rhbz 700718
ea16694
ea16694
* Wed Sep 28 2011 Josh Boyer <jwboyer@redhat.com>
74f5c02
- Backport upstream block patch to try and fix a number of oopses we're seeing
74f5c02
  with USB drive removals
cd74086
- Update usb-add-quirk-for-logitech-webcams.patch (rhbz 742010)
74f5c02
e1bdb50
* Tue Sep 27 2011 Josh Boyer <jwboyer@redhat.com>
e1bdb50
- Backport support for Samsung n150 class machines (rhbz 496975)
e1bdb50
Chuck Ebbert 41645d5
* Mon Sep 26 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 41645d5
- Fix breakage of Apple MagicMouse/Trackpad (rhbz #714381)
Chuck Ebbert 41645d5
bbc0f03
* Fri Sep 23 2011 Josh Boyer <jwboyer@redhat.com>
a949670
- Add patch to fix 1 second delay from MD driver during shutdown (rhbz 740645)
bbc0f03
- CVE-2011-1161 CVE-2011-1162: tpm: infoleaks
bbc0f03
eae267f
* Thu Sep 22 2011 Dennis Gilmore <dennis@ausil.us>
eae267f
- build a vmlinux image on sparc64 
eae267f
8aa7f7a
* Thu Sep 15 2011 Josh Boyer <jwboyer@redhat.com>
8aa7f7a
- CVE-2011-3191: cifs: fix possible memory corruption in CIFSFindNext
8aa7f7a
13db154
* Wed Sep 07 2011 Josh Boyer <jwboyer@redhat.com>
13db154
- Add patch to fix oops when linking entities in ucvideo (rhbz 735437)
13db154
Dave Jones 144f5a9
* Wed Aug 31 2011 Dave Jones <davej@redhat.com>
Dave Jones 144f5a9
- Reinstate some conflicts: that disappeared during the rebase (rhbz 710646)
Dave Jones 144f5a9
1c81403
* Tue Aug 30 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40.4-5
1c81403
- Fix kconfig error in patch for rhbz 606017
1c81403
Chuck Ebbert d6189c7
* Tue Aug 30 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.40.4-4
Chuck Ebbert d6189c7
- Fix unsafe pointer access in sendmsg/sendmmsg
Chuck Ebbert d6189c7
f2b0200
* Tue Aug 30 2011 Josh Boyer <jwboyer@redhat.com>
f2b0200
- Add patch to fix rhbz 606017
f2b0200
Chuck Ebbert 9c11a50
* Mon Aug 29 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.40.4-3
Chuck Ebbert 9c11a50
- Linux 3.0.4
Chuck Ebbert 9c11a50
Dave Jones 333fe2a
* Sat Aug 27 2011 Dave Jones <davej@redhat.com>
Dave Jones 333fe2a
- Fix get_gate_vma usage in 32bit NX emulation.
Dave Jones 333fe2a
Chuck Ebbert bd7673d
* Fri Aug 26 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert bd7673d
- Add fixes for cifs mount oopses (rhbz#727927 rhbz#731278 rhbz#732934)
Chuck Ebbert bd7673d
Chuck Ebbert fbbfcd6
* Thu Aug 25 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert fbbfcd6
- Reduce severity of host bridge window conflict warnings (rhbz#729652)
Chuck Ebbert fbbfcd6
Chuck Ebbert 51b4bd8
* Thu Aug 25 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.40.3-2
Chuck Ebbert 51b4bd8
- Add patches queued for 3.0.4
Chuck Ebbert 51b4bd8
- Comment out xen-blkfront-name-adjust.patch, now queued for -stable
Chuck Ebbert 51b4bd8
Chuck Ebbert 8b2df4b
* Thu Aug 25 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 8b2df4b
- VFS: Fix automount for negative autofs dentries (rhbz#719607)
Chuck Ebbert 8b2df4b
Ben Skeggs a22cd81
* Thu Aug 25 2011 Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs a22cd81
- nouveau: add patch fixing ttm issues that lead to oopses/corruption (rhbz#699551)
Ben Skeggs a22cd81
Chuck Ebbert 8728f9c
* Wed Aug 24 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 8728f9c
- Automate the kernel version faking.
Chuck Ebbert 8728f9c
Ben Skeggs 7acacb7
* Tue Aug 23 2011 Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs 7acacb7
- nouveau: pull patches from 3.1 to fix some suspend/hibernate problems (rhbz#730582)
Ben Skeggs 7acacb7
Dave Jones 3f743de
* Mon Aug 22 2011 Dave Jones <davej@redhat.com>
Dave Jones 3f743de
- Revert 'iwlwifi: advertise max aggregate size'. (rhbz 708747)
Dave Jones 3f743de
Chuck Ebbert a6590c7
* Mon Aug 22 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert a6590c7
- Update to 3.0.3-final
Chuck Ebbert a6590c7
Dave Jones 2b8c61a
* Mon Aug 22 2011 Dave Jones <davej@redhat.com>
Dave Jones 2b8c61a
- Avoid false quiescent states in rcutree with CONFIG_RCU_FAST_NO_HZ. (rhbz 577968)
Dave Jones 2b8c61a
449d91f
* Fri Aug 19 2011 Josh Boyer <jwboyer@redhat.com>
449d91f
- Add patch to fix race between cryptd and aesni (rhbz 721002)
449d91f
24d01a8
* Wed Aug 17 2011 Dennis Gilmore <dennis@ausil.us>
24d01a8
- add patch to correctly initialise usb on trimslice systems
24d01a8
- build in usb-storage on tegra, internal ssd on trimslice is connected to usb
24d01a8
fc919d0
* Tue Aug 16 2011 Dennis Gilmore <dennis@ausil.us>
fc919d0
- add patch to work around gcc bug on arm
fc919d0
Dave Jones 9fe2f4b
* Mon Aug 15 2011 Dave Jones <davej@redhat.com> 2.6.40.3-0
Dave Jones 9fe2f4b
- Apply patches from 3.0.3-rc1
Dave Jones 9fe2f4b
Dave Jones 9fe2f4b
* Mon Aug 15 2011 Dave Jones <davej@redhat.com>
Dave Jones 9fe2f4b
- Apply patches from 3.0.2
Dave Jones 8f238d3
Dave Jones 5d9335e
* Mon Aug 15 2011 Dave Jones <davej@redhat.com>
Dave Jones 5d9335e
- CVE-2011-2905 perf tools may parse user-controlled config file. (rhbz 729809)
Dave Jones 5d9335e
Dave Jones a81be47
* Sat Aug 13 2011 Dave Jones <davej@redhat.com>
Dave Jones a81be47
- Apply patches from 3.0.2rc1
Dave Jones a81be47
bfb05f2
* Thu Aug 11 2011 Dennis Gilmore <dennis@ausil.us>
bfb05f2
- add config for arm tegra devices
bfb05f2
- setup kernel to build omap image (patch from David Marlin)
bfb05f2
- setup kernel to build tegra image based on omap work
bfb05f2
- add arm device tree patches
bfb05f2
c1dc3d8
* Thu Aug 11 2011 Josh Boyer <jwboyer@redhat.com>
c1dc3d8
- Add munged together patch for rhbz 729269
c1dc3d8
Dave Jones d1998c6
* Thu Aug 11 2011 Dave Jones <davej@redhat.com>
Dave Jones d1998c6
- Fix Xen blk device naming (rhbz 729340)
Dave Jones d1998c6
408089c
* Tue Aug 09 2011 Josh Boyer <jwboyer@redhat.com>
408089c
- Add Makefile.config and ARM config changes from David Marlin
408089c
Dave Jones ad04a02
* Tue Aug 09 2011 Dave Jones <davej@redhat.com>
Dave Jones a9f639a
- ptrace_report_syscall: check if TIF_SYSCALL_EMU is defined
Dave Jones a9f639a
Dave Jones a9f639a
* Tue Aug 09 2011 Dave Jones <davej@redhat.com>
Dave Jones ad04a02
- Enable CONFIG_SAMSUNG_LAPTOP (rhbz 729363)
Dave Jones ad04a02
Dave Jones d271455
* Tue Aug 09 2011 Dave Jones <davej@redhat.com>  2.6.40.1-2
Dave Jones d271455
- Fix stray block put after queue teardown (rhbz 728872)
Dave Jones d271455
Dave Jones 8b85353
* Sun Aug 07 2011 Dave Jones <davej@redhat.com>
Dave Jones a75a12c
- Utrace fixes. (rhbz 728379)
Dave Jones 8b85353
Dave Jones 13393fc
* Fri Aug 05 2011 Dave Jones <davej@redhat.com>  2.6.40.1-1
Dave Jones e447dfb
- Revert f16-only change that made IPV6 built-in.
Dave Jones e447dfb
Dave Jones e447dfb
* Fri Aug 05 2011 Dave Jones <davej@redhat.com>
Dave Jones a40673f
- Final 3.0.1 diff.
Dave Jones a40673f
Dave Jones 85b3aab
* Thu Aug 04 2011 Dave Jones <davej@redhat.com>
Dave Jones 85b3aab
- Drop neuter_intel_microcode_load.patch (rhbz 690930)
Dave Jones 85b3aab
Dave Jones 3082e89
* Wed Aug 03 2011 Dave Jones <davej@redhat.com>
Dave Jones 3205070
- iwlagn: check for !priv->txq in iwlagn_wait_tx_queue_empty (rhbz 728044)
Dave Jones 3205070
Dave Jones 3205070
* Wed Aug 03 2011 Dave Jones <davej@redhat.com>
Dave Jones 3082e89
- Apply patches from patch-3.0.1-rc1
Dave Jones 3082e89
John W. Linville bdcd61e
* Wed Aug 03 2011 John W. Linville <linville@redhat.com>
John W. Linville bdcd61e
- Disable CONFIG_BCMA since no driver currently uses it (rhbz 727796)
John W. Linville bdcd61e
a9cca76
* Wed Aug 03 2011 Josh Boyer <jwboyer@redhat.com>
a9cca76
- rt2x00: Add device ID for RT539F device. (rhbz 720594)
a9cca76
- Add patch to fix backtrace in cdc_ncm driver (rhbz 720128)
a9cca76
- Add patch to fix backtrace in usm-realtek driver (rhbz 720054)
a9cca76
c309d31
* Tue Aug 02 2011 Josh Boyer <jwboyer@redhat.com>
52aef13
- Fix epoll recursive lockdep warnings (rhbz 722472)
52aef13
52aef13
* Tue Aug 02 2011 Josh Boyer <jwboyer@redhat.com>
c309d31
- Add patch to fix HFSPlus filesystem mounting (rhbz 720771)
c309d31
Dave Jones d988a17
* Tue Aug 02 2011 Dave Jones <davej@redhat.com>
Dave Jones d988a17
- Change USB_SERIAL_OPTION back to modular. (rhbz 727680)
Dave Jones d988a17
2d60cad
* Tue Aug 02 2011 Josh Boyer <jwboyer@redhat.com> 2.6.40-5
2d60cad
- Add change from Yanko Kaneti to get the rt2x00 drivers in modules.networking
2d60cad
  (rhbz 708314)
2d60cad
Dave Jones 725a196
* Fri Jul 29 2011 Dave Jones <davej@redhat.com> 2.6.40-4
Dave Jones 725a196
- Re-add utrace, which got accidentally dropped during the rebase.
Dave Jones 725a196
Dave Jones 3530e89
* Thu Jul 28 2011 Dave Jones <davej@redhat.com> 2.6.40-3
Dave Jones 3530e89
- Fix module-init-tools conflict:
Dave Jones 3530e89
Dave Jones 3530e89
* Thu Jul 28 2011 Dave Jones <davej@redhat.com> 2.6.40-2
Dave Jones 7f4ef57
- fix crash in scsi_dispatch_cmd()
Chuck Ebbert 198deb8
Dave Jones 7f4ef57
* Thu Jul 28 2011 Dave Jones <davej@redhat.com> 2.6.40-1
Dave Jones 7f4ef57
- Turn off debugging options. (make release)
Chuck Ebbert ce8c067
Dave Jones 7f4ef57
* Tue Jul 26 2011 Dave Jones <davej@redhat.com> 2.6.40-0
Dave Jones 7f4ef57
- Rebase to final 3.0 (munge to 2.6.40-0)
bc6617c
Dave Jones 7f4ef57
* Thu Jun 30 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.40-0.rc5.git0.1
Dave Jones 7f4ef57
- More than meets the eye, it's Linux 3.0-rc5 in disguise.
9a9eea3
Dave Jones 7f4ef57
* Mon Jun 27 2011 Dave Jones <davej@redhat.com>
Dave Jones 7f4ef57
- Disable CONFIG_CRYPTO_MANAGER_DISABLE_TESTS, as this also disables FIPS (rhbz 716942)
Dave Jones 7bbc91a
Dave Jones 7f4ef57
* Thu Jun 23 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc4.git3.1
Dave Jones 7f4ef57
- Linux 3.0-rc4-git3
Dave Jones 7f4ef57
- Drop linux-3.0-fix-uts-release.patch, and instead just perl the Makefile
Dave Jones 7f4ef57
- linux-2.6-silence-noise.patch: fix context
Dave Jones 7f4ef57
- iwlagn-fix-dma-direction.patch: fix DMAR errors (for me at least)
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Wed Jun 22 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc4.git0.2
Dave Jones 7f4ef57
- Re-enable debuginfo generation. Thanks to Richard Jones for noticing... no
Dave Jones 7f4ef57
  wonder builds had been so quick lately.
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Tue Jun 21 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc4.git0.1
Dave Jones 7f4ef57
- Linux 3.0-rc4 (getting closer...)
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Fri Jun 17 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc3.git6.1
Dave Jones 7f4ef57
- Update to 3.0-rc3-git6
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Fri Jun 17 2011 Dave Jones <davej@redhat.com>
Dave Jones 7f4ef57
- drop qcserial 'compile fix' that was just duplicating an include.
Dave Jones 7f4ef57
- drop struct sizeof debug patch. (no real value. not upstreamable)
Dave Jones 7f4ef57
- drop linux-2.6-debug-always-inline-kzalloc.patch.
Dave Jones 7f4ef57
  Can't recall why this was added. Can easily re-add if deemed necessary.
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Fri Jun 17 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- linux-2.6-defaults-pci_no_msi.patch: drop, haven't toggled the default
Dave Jones 7f4ef57
  in many moons.
Dave Jones 7f4ef57
- linux-2.6-defaults-pci_use_crs.patch: ditto.
Dave Jones 7f4ef57
- linux-2.6-selinux-mprotect-checks.patch: upstream a while ago.
Dave Jones 7f4ef57
- drm-i915-gen4-has-non-power-of-two-strides.patch: drop buggy bugfix
Dave Jones 7f4ef57
- drop some more unapplied crud.
Dave Jones 7f4ef57
- We haven't applied firewire patches in a dogs age.
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Fri Jun 17 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc3.git5.1
Dave Jones 7f4ef57
- Try updating to a git snapshot for the first time in 3.0-rc,
Dave Jones 7f4ef57
  update to 3.0-rc3-git5
Dave Jones 7f4ef57
- Fix a subtle bug I introduced in 3.0-rc1, "patch-3." is 9 letters, not 10.
Dave Jones 7f4ef57
Dave Jones 7f4ef57
* Thu Jun 16 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- Disable mm patches which had been submitted against 2.6.39, as Rik reports
Dave Jones 7f4ef57
  they seem to aggravate a VM_BUG_ON. More investigation is necessary.
Kyle McMartin 6229856
Kyle McMartin aa53a62
* Wed Jun 15 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- Conflict with pre-3.2.1-5 versions of mdadm. (#710646)
Chuck Ebbert 0e7752b
Dave Jones 7f4ef57
* Wed Jun 15 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- Build in aesni-intel on i686 for symmetry with 64-bit.
Kyle McMartin 126cc8b
Dave Jones 7f4ef57
* Tue Jun 14 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc3.git0.3
Dave Jones 7f4ef57
- Fix libdm conflict (whose bright idea was it to give subpackages differing
Dave Jones 7f4ef57
  version numbers?)
Kyle McMartin c55a797
Dave Jones 7f4ef57
* Tue Jun 14 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- Update to 3.0-rc3, add another conflicts to deal with 2 digit
Dave Jones 7f4ef57
  versions (libdm.)
Dave Jones 7f4ef57
- Simplify linux-3.0-fix-uts-release.patch now that SUBLEVEL is optional.
Dave Jones 7f4ef57
- revert-ftrace-remove-unnecessary-disabling-of-irqs.patch: drop upstreamed
Kyle McMartin ee6c061
  patch.
Dave Jones 7f4ef57
- drm-intel-eeebox-eb1007-quirk.patch: ditto.
Dave Jones 7f4ef57
- ath5k-disable-fast-channel-switching-by-default.patch: ditto.
Kyle McMartin c3e06ee
Dave Jones 7f4ef57
* Thu Jun 09 2011 Kyle McMartin <kmcmartin@redhat.com>
Dave Jones 7f4ef57
- ath5k-disable-fast-channel-switching-by-default.patch (rhbz#709122)
Dave Jones 7f4ef57
  (korgbz#34992) [a99168ee in wireless-next]
Kyle McMartin 8383538
Dave Jones 7f4ef57
* Thu Jun 09 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc2.git0.2
Dave Jones 7f4ef57
- rhbz#710921: revert-ftrace-remove-unnecessary-disabling-of-irqs.patch
Kyle McMartin 3996540
Dave Jones 7f4ef57
* Wed Jun 08 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc2.git0.1
Dave Jones 7f4ef57
- Update to 3.0-rc2, rebase utsname fix.
Dave Jones 7f4ef57
- Build IPv6 into the kernel for a variety of reasons
Dave Jones 7f4ef57
  (http://lists.fedoraproject.org/pipermail/kernel/2011-June/003105.html)
Kyle McMartin 1aea232
Dave Jones 7f4ef57
* Mon Jun 06 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc1.git0.3
Dave Jones 7f4ef57
- Conflict with module-init-tools older than 3.13 to ensure the
Dave Jones 7f4ef57
  3.0 transition is handled correctly.
Kyle McMartin 7b2f649
Dave Jones 7f4ef57
* Wed Jun 01 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc1.git0.2
Dave Jones 7f4ef57
- Fix utsname for 3.0-rc1
Kyle McMartin 3daa57b
Dave Jones 7f4ef57
* Mon May 30 2011 Kyle McMartin <kmcmartin@redhat.com> 3.0-0.rc1.git0.1
Dave Jones 7f4ef57
- Linux 3.0-rc1 (won't build until module-init-tools gets an update.)
Kyle McMartin c22cea2
Dave Jones 7f4ef57
* Mon May 30 2011 Kyle McMartin <kyle@redhat.com>
Dave Jones 7f4ef57
- Trimmed changelog, see fedpkg git for earlier history.
Chuck Ebbert 2187525
Jesse Keating 7a32965
###
Jesse Keating 7a32965
# The following Emacs magic makes C-c C-e use UTC dates.
Jesse Keating 7a32965
# Local Variables:
Jesse Keating 7a32965
# rpm-change-log-uses-utc: t
Jesse Keating 7a32965
# End:
Jesse Keating 7a32965
###