Jesse Keating 7a3296
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a3296
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a3296
Jesse Keating 7a3296
Summary: The Linux kernel
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a3296
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a3296
# be 0.
Chuck Ebbert 6754d6
%global released_kernel 1
Jesse Keating 7a3296
Jesse Keating 7a3296
# Save original buildid for later if it's defined
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global orig_buildid %{buildid}
Jesse Keating 7a3296
%undefine buildid
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
# Polite request for people who spin their own kernel rpms:
Jesse Keating 7a3296
# please modify the "buildid" define in a way that identifies
Jesse Keating 7a3296
# that the kernel isn't the stock distribution kernel, for example,
Jesse Keating 7a3296
# by setting the define to ".local" or ".bz123456". This will be
Jesse Keating 7a3296
# appended to the full kernel version.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# (Uncomment the '#' and both spaces below to set the buildid.)
Jesse Keating 7a3296
#
8893f9
%define buildid .pnfs.2011.03.25
8893f9
 
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
Jesse Keating 7a3296
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a3296
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a3296
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a3296
%if 0%{?orig_buildid:1}
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global srpm_buildid %{buildid}
Jesse Keating 7a3296
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define buildid %{orig_buildid}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Roland McGrath 377da6
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a3296
#
Roland McGrath 377da6
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6
#
Chuck Ebbert c3126d
# For non-released -rc kernels, this will be prepended with "0.", so
Chuck Ebbert c3126d
# for example a 3 here will become 0.3
Chuck Ebbert c3126d
#
Chuck Ebbert 06ad6a
%global baserelease 7
Roland McGrath 377da6
%global fedora_build %{baserelease}
Jesse Keating 7a3296
Jesse Keating 7a3296
# base_sublevel is the kernel version we're starting with and patching
Jesse Keating 7a3296
# on top of -- for example, 2.6.22-rc7-git1 starts with a 2.6.21 base,
Jesse Keating 7a3296
# which yields a base_sublevel of 21.
Chuck Ebbert 6754d6
%define base_sublevel 38
Jesse Keating 7a3296
Jesse Keating 7a3296
## If this is a released kernel ##
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do we have a -stable update to apply?
Chuck Ebbert 6236c8
%define stable_update 1
Jesse Keating 7a3296
# Is it a -stable RC?
Jesse Keating 7a3296
%define stable_rc 0
Jesse Keating 7a3296
# Set rpm version accordingly
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%define stablerev .%{stable_update}
Jesse Keating 7a3296
%define stable_base %{stable_update}
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a3296
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define rpmversion 2.6.%{base_sublevel}%{?stablerev}
Jesse Keating 7a3296
Jesse Keating 7a3296
## The not-released-kernel case ##
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# The next upstream release sublevel (base_sublevel+1)
Jesse Keating 7a3296
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a3296
# The rc snapshot level
Chuck Ebbert b2abdb
%define rcrev 8
Jesse Keating 7a3296
# The git snapshot level
Chuck Ebbert 073f3d
%define gitrev 4
Jesse Keating 7a3296
# Set rpm version accordingly
Jesse Keating 7a3296
%define rpmversion 2.6.%{upstream_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a3296
Jesse Keating 7a3296
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a3296
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a3296
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a3296
# by later arch-specific checks.
Jesse Keating 7a3296
Jesse Keating 7a3296
# The following build options are enabled by default.
Jesse Keating 7a3296
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a3296
# to 0 in here to disable them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# standard kernel
Jesse Keating 7a3296
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a3296
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a3296
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Jarod Wilson 5b0327
# kernel-PAE (only valid for i686)
Jarod Wilson 5b0327
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a3296
# kernel-debug
Jesse Keating 7a3296
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a3296
# kernel-doc
Jesse Keating 7a3296
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a3296
# kernel-headers
Jesse Keating 7a3296
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Jesse Keating 7a3296
# kernel-firmware
Jesse Keating 7a3296
%define with_firmware  %{?_with_firmware:     1} %{?!_with_firmware:     0}
Jesse Keating 7a3296
# tools/perf
Jesse Keating 7a3296
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Jesse Keating 7a3296
# kernel-debuginfo
Jesse Keating 7a3296
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a3296
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a3296
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a3296
# Want to build a the vsdo directories installed
Jesse Keating 7a3296
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Build the kernel-doc package, but don't fail the build if it botches.
Jesse Keating 7a3296
# Here "true" means "continue" and "false" means "fail the build".
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
%define doc_build_fail false
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define doc_build_fail true
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin c3b3bb
%define rawhide_skip_docs 0
Jesse Keating 7a3296
%if 0%{?rawhide_skip_docs}
Jesse Keating 7a3296
%define with_doc 0
Jesse Keating 7a3296
%define doc_build_fail true
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Only build the base kernel (--with baseonly):
Jesse Keating 7a3296
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a3296
# Only build the smp kernel (--with smponly):
Jesse Keating 7a3296
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b0327
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b0327
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a3296
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a3296
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# should we do C=1 builds with sparse
Dave Jones 561b24
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a3296
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a3296
# See also 'make debug' and 'make release'.
Kyle McMartin c3b3bb
%define debugbuildsenabled 1
Jesse Keating 7a3296
Jesse Keating 7a3296
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a3296
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
%define stable_rctag .rc%{stable_rc}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define pkg_release %{fedora_build}%{?stable_rctag}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define rctag .rc%rcrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define rctag .rc0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define gittag .git%gitrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define gittag .git0
Jesse Keating 7a3296
%endif
Kyle McMartin 66ce81
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# The kernel tarball/base version
Jesse Keating 7a3296
%define kversion 2.6.%{base_sublevel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%define make_target bzImage
Jesse Keating 7a3296
Jesse Keating 7a3296
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a3296
%define hdrarch %_target_cpu
Jesse Keating 7a3296
%define asmarch %_target_cpu
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{!?nopatches:1}
Jesse Keating 7a3296
%define nopatches 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vanilla}
Jesse Keating 7a3296
%define nopatches 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define variant -vanilla
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define variant_fedora -fedora
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define using_upstream_branch 0
Jesse Keating 7a3296
%if 0%{?upstream_branch:1}
Jesse Keating 7a3296
%define stable_update 0
Jesse Keating 7a3296
%define using_upstream_branch 1
Jesse Keating 7a3296
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a3296
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{with_debuginfo}
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define debuginfodir /usr/lib/debug
Jesse Keating 7a3296
Jesse Keating 7a3296
# kernel-PAE is only built on i686.
Jarod Wilson 5b0327
%ifnarch i686
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build base kernel
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%define with_smp 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build smp kernel
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jarod Wilson 5b0327
%define with_debug 0
Jarod Wilson 5b0327
%endif
Jarod Wilson 5b0327
Jarod Wilson 5b0327
# if requested, only build pae kernel
Jarod Wilson 5b0327
%if %{with_paeonly}
Jarod Wilson 5b0327
%define with_up 0
Jarod Wilson 5b0327
%define with_smp 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build debug kernel
Jesse Keating 7a3296
%if %{with_dbgonly}
Jesse Keating 7a3296
%if %{debugbuildsenabled}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define all_x86 i386 i686
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vdso_install}
Jesse Keating 7a3296
# These arches install vdso/ directories.
Jesse Keating 7a3296
%define vdso_arches %{all_x86} x86_64 ppc ppc64
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Overrides for generic default options
Jesse Keating 7a3296
Jesse Keating 7a3296
# only ppc and alphav56 need separate smp kernels
Jesse Keating 7a3296
%ifnarch ppc alphaev56
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a3296
%ifnarch i686 x86_64
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only package docs noarch
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%define with_doc 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't build noarch kernels or headers (duh)
Jesse Keating 7a3296
%ifarch noarch
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_headers 0
Jesse Keating 7a3296
%define with_perf 0
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a3296
%define with_firmware  %{?_with_firmware:     1} %{?!_with_firmware:     0}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# bootwrapper is only on ppc
Jesse Keating 7a3296
%ifnarch ppc ppc64
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# sparse blows up on ppc64 alpha and sparc64
Jesse Keating 7a3296
%ifarch ppc64 ppc alpha sparc64
Jesse Keating 7a3296
%define with_sparse 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Per-arch tweaks
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{all_x86}
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define hdrarch i386
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch x86_64
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch ppc64
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch s390x
Jesse Keating 7a3296
%define asmarch s390
Jesse Keating 7a3296
%define hdrarch s390
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target image
Jesse Keating 7a3296
%define kernel_image arch/s390/boot/image
1f623e
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch sparc64
Jesse Keating 7a3296
%define asmarch sparc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-sparc64*.config
Jesse Keating 7a3296
%define make_target image
e53e7f
%define kernel_image vmlinux
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
9c7497
%ifarch sparcv9
9c7497
%define hdrarch sparc
9c7497
%endif
9c7497
Jesse Keating 7a3296
%ifarch ppc
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch ia64
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ia64*.config
Jesse Keating 7a3296
%define image_install_path boot/efi/EFI/redhat
Jesse Keating 7a3296
%define make_target compressed
Jesse Keating 7a3296
%define kernel_image vmlinux.gz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch alpha alphaev56
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-alpha*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{arm}
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define hdrarch arm
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
# XXX temporary until last vdso patches are upstream
Jesse Keating 7a3296
%define vdso_arches ppc ppc64
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin da80d7
# Should make listnewconfig fail if there's config options
Kyle McMartin da80d7
# printed out?
Jesse Keating 7a3296
%if %{nopatches}%{using_upstream_branch}
Kyle McMartin da80d7
%define listnewconfig_fail 0
Jesse Keating 7a3296
%else
Kyle McMartin da80d7
%define listnewconfig_fail 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a3296
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a3296
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a3296
# Which is a BadThing(tm).
Jesse Keating 7a3296
Jesse Keating 7a3296
# We only build kernel-headers on the following...
9c7497
%define nobuildarches i386 s390 sparc sparcv9 %{arm}
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %nobuildarches
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_debuginfo 0
Jesse Keating 7a3296
%define with_perf 0
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define with_pae_debug 0
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
%define with_pae_debug %{with_debug}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Three sets of minimum package version requirements in the form of Conflicts:
Jesse Keating 7a3296
# to versions below the minimum
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# First the general kernel 2.6 required versions as per
Jesse Keating 7a3296
# Documentation/Changes
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%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
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Then a series of requirements that are distribution specific, either
Jesse Keating 7a3296
# because we add patches for something, or the older versions have
Jesse Keating 7a3296
# problems with the newer kernel or lack certain things that make
Jesse Keating 7a3296
# integration in the distro harder than needed.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
Jesse Keating 7a3296
Jesse Keating 7a3296
# We moved the drm include files into kernel-headers, make sure there's
Jesse Keating 7a3296
# a recent enough libdrm-devel on the system that doesn't have those.
Jesse Keating 7a3296
%define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Dave Jones 166b79
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a3296
# scripts use them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, grubby >= 7.0.10-1
Jesse Keating 7a3296
%define initrd_prereq  dracut >= 001-7
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a3296
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a3296
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a3296
# macros defined above.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_reqprovconf \
Jesse Keating 7a3296
Provides: kernel = %{rpmversion}-%{pkg_release}\
Jesse Keating 7a3296
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-drm = 4.3.0\
Jesse Keating 7a3296
Provides: kernel-drm-nouveau = 16\
Jesse Keating 7a3296
Provides: kernel-modeset = 1\
Jesse Keating 7a3296
Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a3296
Requires(pre): %{initrd_prereq}\
Jesse Keating 7a3296
%if %{with_firmware}\
Jesse Keating 7a3296
Requires(pre): kernel-firmware >= %{rpmversion}-%{pkg_release}\
Jesse Keating 7a3296
%else\
Chuck Ebbert 996221
Requires(pre): linux-firmware >= 20100806-2\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
Requires(post): /sbin/new-kernel-pkg\
Jesse Keating 7a3296
Requires(preun): /sbin/new-kernel-pkg\
Jesse Keating 7a3296
Conflicts: %{kernel_dot_org_conflicts}\
Jesse Keating 7a3296
Conflicts: %{package_conflicts}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a3296
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a3296
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a3296
# isn't required for the kernel proper to function\
Jesse Keating 7a3296
AutoReq: no\
Jesse Keating 7a3296
AutoProv: yes\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Name: kernel%{?variant}
Jesse Keating 7a3296
Group: System Environment/Kernel
Jesse Keating 7a3296
License: GPLv2
Jesse Keating 7a3296
URL: http://www.kernel.org/
Jesse Keating 7a3296
Version: %{rpmversion}
Jesse Keating 7a3296
Release: %{pkg_release}
Jesse Keating 7a3296
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a3296
# SET %%nobuildarches (ABOVE) INSTEAD
9c7497
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 ia64 %{sparc} s390 s390x alpha alphaev56 %{arm}
Jesse Keating 7a3296
ExclusiveOS: Linux
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_reqprovconf
Dave Jones efc71a
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# List the packages used during the kernel build
Jesse Keating 7a3296
#
Jesse Keating 7a3296
BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
Jesse Keating 7a3296
BuildRequires: bzip2, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
Jesse Keating 7a3296
BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config
Jesse Keating 7a3296
BuildRequires: net-tools
Jesse Keating 7a3296
BuildRequires: xmlto, asciidoc
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
BuildRequires: sparse >= 0.4.1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if %{with_perf}
Chuck Ebbert e0bf23
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed)
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a3296
Jesse Keating 7a3296
%define fancy_debuginfo 0
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
%if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
Jesse Keating 7a3296
%define fancy_debuginfo 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{fancy_debuginfo}
Jesse Keating 7a3296
# Fancy new debuginfo generation introduced in Fedora 8.
Jesse Keating 7a3296
BuildRequires: rpm-build >= 4.4.2.1-4
Jesse Keating 7a3296
%define debuginfo_args --strict-build-id
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2
Jesse Keating 7a3296
Jesse Keating 7a3296
Source11: genkey
Jesse Keating 7a3296
Source14: find-provides
Jesse Keating 7a3296
Source15: merge.pl
Jesse Keating 7a3296
Jesse Keating 7a3296
Source20: Makefile.config
Jesse Keating 7a3296
Source21: config-debug
Jesse Keating 7a3296
Source22: config-nodebug
Jesse Keating 7a3296
Source23: config-generic
Jesse Keating 7a3296
Source24: config-rhel-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source30: config-x86-generic
Jesse Keating 7a3296
Source31: config-i686-PAE
Jesse Keating 7a3296
Jesse Keating 7a3296
Source40: config-x86_64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source50: config-powerpc-generic
Jesse Keating 7a3296
Source51: config-powerpc32-generic
Jesse Keating 7a3296
Source52: config-powerpc32-smp
Jesse Keating 7a3296
Source53: config-powerpc64
Jesse Keating 7a3296
Jesse Keating 7a3296
Source60: config-ia64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source70: config-s390x
Jesse Keating 7a3296
Jesse Keating 7a3296
Source90: config-sparc64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source100: config-arm
Jesse Keating 7a3296
Jarod Wilson 5b6529
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b6529
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b6529
Source1000: config-local
Jarod Wilson 5b6529
Jesse Keating 7a3296
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable release kernel
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
%define    stable_patch_00  patch-2.6.%{base_sublevel}.%{stable_base}.bz2
Jesse Keating 7a3296
Patch00: %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
%define    stable_patch_01  patch-2.6.%{base_sublevel}.%{stable_update}-rc%{stable_rc}.bz2
Jesse Keating 7a3296
Patch01: %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a3296
# near the top of this spec file.
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
Patch00: patch-2.6.%{upstream_sublevel}-rc%{rcrev}.bz2
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
Patch01: patch-2.6.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.bz2
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
Patch00: patch-2.6.%{base_sublevel}-git%{gitrev}.bz2
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH PATCH ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch02: git-linus.diff
Jesse Keating 7a3296
Jesse Keating 7a3296
# we also need compile fixes for -vanilla
Jesse Keating 7a3296
Patch04: linux-2.6-compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# build tweak for build ID magic, even for -vanilla
Jesse Keating 7a3296
Patch05: linux-2.6-makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Kyle McMartin 201b16
Jesse Keating 7a3296
# revert upstream patches we get via other methods
Jesse Keating 7a3296
Patch09: linux-2.6-upstream-reverts.patch
Jesse Keating 7a3296
# Git trees.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Standalone patches
Jesse Keating 7a3296
Patch20: linux-2.6-hotfixes.patch
Jesse Keating 7a3296
Chuck Ebbert 3d285d
Patch29: linux-2.6-utrace-revert-make-ptrace-functions-static.patch
Kyle McMartin 07d332
Patch30: linux-2.6-tracehook.patch
Kyle McMartin 07d332
Patch31: linux-2.6-utrace.patch
Kyle McMartin 07d332
Patch32: linux-2.6-utrace-ptrace.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch150: linux-2.6.29-sparc-IOC_TYPECHECK.patch
f5bdb2
Patch151: sparc64_fix_build_errors_with_gcc460.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch160: linux-2.6-32bit-mmap-exec-randomization.patch
Jesse Keating 7a3296
Patch161: linux-2.6-i386-nx-emulation.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch200: linux-2.6-debug-sizeof-structs.patch
Jesse Keating 7a3296
Patch202: linux-2.6-debug-taint-vm.patch
Jesse Keating 7a3296
Patch203: linux-2.6-debug-vm-would-have-oomkilled.patch
Jesse Keating 7a3296
Patch204: linux-2.6-debug-always-inline-kzalloc.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch380: linux-2.6-defaults-pci_no_msi.patch
Kyle McMartin 128366
Patch381: linux-2.6-defaults-pci_use_crs.patch
Jesse Keating 7a3296
Patch383: linux-2.6-defaults-aspm.patch
Kyle McMartin 655839
Patch386: pci-_osc-supported-field-should-contain-supported-features-not-enabled-ones.patch
Jesse Keating 7a3296
Kyle McMartin 9ecbc0
Patch385: ima-allow-it-to-be-completely-disabled-and-default-off.patch
Kyle McMartin 9ecbc0
Jesse Keating 7a3296
Patch390: linux-2.6-defaults-acpi-video.patch
Jesse Keating 7a3296
Patch391: linux-2.6-acpi-video-dos.patch
Jesse Keating 7a3296
Patch393: acpi-ec-add-delay-before-write.patch
Jesse Keating 7a3296
Patch394: linux-2.6-acpi-debug-infinite-loop.patch
Jesse Keating 7a3296
Kyle McMartin a13914
Patch399: acpi_battery-fribble-sysfs-files-from-a-resume-notifier.patch
Kyle McMartin a13914
Jesse Keating 7a3296
Patch450: linux-2.6-input-kill-stupid-messages.patch
Jesse Keating 7a3296
Patch452: linux-2.6.30-no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch460: linux-2.6-serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch470: die-floppy-die.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch510: linux-2.6-silence-noise.patch
Jesse Keating 7a3296
Patch530: linux-2.6-silence-fbcon-logo.patch
Jesse Keating 7a3296
Patch570: linux-2.6-selinux-mprotect-checks.patch
Jesse Keating 7a3296
Patch580: linux-2.6-sparc-selinux-mprotect-checks.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch610: hda_intel-prealloc-4mb-dmabuffer.patch
Jesse Keating 7a3296
Dave Jones f73734
Patch700: linux-2.6-e1000-ich9-montevina.patch
Dave Jones f73734
Jesse Keating 7a3296
Patch800: linux-2.6-crash-driver.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# crypto/
Jesse Keating 7a3296
Jesse Keating 7a3296
# virt + ksm patches
Jesse Keating 7a3296
Patch1555: fix_xen_guest_on_old_EC2.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# DRM
Kyle McMartin d3e4af
Jesse Keating 7a3296
# nouveau + drm fixes
Jesse Keating 7a3296
Patch1810: drm-nouveau-updates.patch
Jesse Keating 7a3296
Patch1819: drm-intel-big-hammer.patch
Jesse Keating 7a3296
# intel drm is all merged upstream
e04a1d
# fix for 945G corruption will hit stable eventually
e04a1d
Patch1821: drm-i915-fix-pipelined-fencing.patch
Jesse Keating 7a3296
Patch1824: drm-intel-next.patch
Jesse Keating 7a3296
# make sure the lvds comes back on lid open
Jesse Keating 7a3296
Patch1825: drm-intel-make-lvds-work.patch
Kyle McMartin 5acda9
Patch1826: drm-intel-edp-fixes.patch
Kyle McMartin 973b53
Patch1827: drm-i915-gen4-has-non-power-of-two-strides.patch
Kyle McMartin 5acda9
Jesse Keating 7a3296
Patch1900: linux-2.6-intel-iommu-igfx.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# linux1394 git patches
Jesse Keating 7a3296
Patch2200: linux-2.6-firewire-git-update.patch
Jesse Keating 7a3296
Patch2201: linux-2.6-firewire-git-pending.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Quiet boot fixes
Jesse Keating 7a3296
# silence the ACPI blacklist code
Jesse Keating 7a3296
Patch2802: linux-2.6-silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# media patches
Jesse Keating 7a3296
Patch2899: linux-2.6-v4l-dvb-fixes.patch
Jesse Keating 7a3296
Patch2900: linux-2.6-v4l-dvb-update.patch
Jesse Keating 7a3296
Patch2901: linux-2.6-v4l-dvb-experimental.patch
Jesse Keating 7a3296
Patch2902: linux-2.6-v4l-dvb-uvcvideo-update.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch2910: linux-2.6-v4l-dvb-add-lgdt3304-support.patch
Jesse Keating 7a3296
Patch2912: linux-2.6-v4l-dvb-ir-core-update.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#Patch2916: lirc-staging-2.6.36-fixes.patch
Jesse Keating 7a3296
Kyle McMartin 6a8226
Patch2918: flexcop-fix-xlate_proc_name-warning.patch
Kyle McMartin 6a8226
Jesse Keating 7a3296
# fs fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# patches headed upstream
Jesse Keating 7a3296
Kyle McMartin d8122d
Patch12001: perf-gcc460-build-fixes.patch
Kyle McMartin d8122d
Kyle McMartin 0ca562
Patch12010: add-appleir-usb-driver.patch
Kyle McMartin 0ca562
Jesse Keating 7a3296
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch12017: prevent-runtime-conntrack-changes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch12018: neuter_intel_microcode_load.patch
Jesse Keating 7a3296
Matthew Garrett 0988ee
Patch12101: apple_backlight.patch
Matthew Garrett 0988ee
Patch12102: efifb_update.patch
Matthew Garrett 0988ee
Patch12200: acpi_reboot.patch
Matthew Garrett 0988ee
Matthew Garrett 2b89a0
# Runtime power management
Matthew Garrett 2b89a0
Patch12203: linux-2.6-usb-pci-autosuspend.patch
Matthew Garrett 037ab2
Patch12204: linux-2.6-enable-more-pci-autosuspend.patch
Matthew Garrett 2df449
Patch12205: runtime_pm_fixups.patch
Matthew Garrett 2b89a0
Kyle McMartin dbda5f
Patch12303: dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f
Kyle McMartin bb7561
Patch12421: fs-call-security_d_instantiate-in-d_obtain_alias.patch
Kyle McMartin bb7561
Chuck Ebbert 6236c8
# Fix possible memory corruption on Dell HW
Chuck Ebbert 6236c8
Patch12430: dcdbas-force-smi-to-happen-when-expected.patch
Chuck Ebbert 6236c8
Chuck Ebbert 06ad6a
# CVE-2011-1182
Chuck Ebbert 06ad6a
Patch12431: prevent-rt_sigqueueinfo-and-rt_tgsigqueueinfo-from-spoofing-the-signal-code.patch
Chuck Ebbert 06ad6a
8893f9
Patch30000: pnfs-all-2.6.38-2011-03-25.patch
8893f9
Patch30001: linux-2.6-pnfs-compile.patch
8893f9
Patch30002: linux-2.6.35-inline.patch
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a3296
Jesse Keating 7a3296
%description
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package doc
Jesse Keating 7a3296
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a3296
Group: Documentation
Jesse Keating 7a3296
%description doc
Jesse Keating 7a3296
This package contains documentation files from the kernel
Jesse Keating 7a3296
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a3296
device drivers shipped with it are documented in these files.
Jesse Keating 7a3296
Jesse Keating 7a3296
You'll want to install this package if you need a reference to the
Jesse Keating 7a3296
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package headers
Jesse Keating 7a3296
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a3296
Group: Development/System
Dave Jones d555d6
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a3296
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a3296
%description headers
Jesse Keating 7a3296
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a3296
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a3296
header files define structures and constants that are needed for
Jesse Keating 7a3296
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a3296
glibc package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package firmware
Jesse Keating 7a3296
Summary: Firmware files used by the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
# This is... complicated.
Jesse Keating 7a3296
# Look at the WHENCE file.
Jesse Keating 7a3296
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
Jesse Keating 7a3296
%if "x%{?variant}" != "x"
Jesse Keating 7a3296
Provides: kernel-firmware = %{rpmversion}-%{pkg_release}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%description firmware
Jesse Keating 7a3296
Kernel-firmware includes firmware files required for some devices to
Jesse Keating 7a3296
operate.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package bootwrapper
Jesse Keating 7a3296
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
Requires: gzip
Jesse Keating 7a3296
%description bootwrapper
Jesse Keating 7a3296
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a3296
files combining both kernel and initial ramdisk.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a3296
Group: Development/Debug
Jesse Keating 7a3296
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a3296
It provides the kernel source files common to all builds.
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_perf}
Jesse Keating 7a3296
%package -n perf
Jesse Keating 7a3296
Summary: Performance monitoring for the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
License: GPLv2
Jesse Keating 7a3296
%description -n perf
Jesse Keating 7a3296
This package provides the perf tool and the supporting documentation.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
%package -n perf-debuginfo
Roland McGrath 3c4ea9
Summary: Debug information for package perf
Roland McGrath 3c4ea9
Group: Development/Debug
Roland McGrath 3c4ea9
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9
AutoReqProv: no
Roland McGrath 3c4ea9
%description -n perf-debuginfo
Roland McGrath 3c4ea9
This package provides debug information for package perf.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9
# of matching the pattern against the symlinks file.
Roland McGrath 3c4ea9
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a3296
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_debuginfo_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a3296
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a3296
Group: Development/Debug\
Jesse Keating 7a3296
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a3296
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a3296
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Jesse Keating 7a3296
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}devel\
Jesse Keating 7a3296
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
Requires(pre): /usr/bin/find\
Jesse Keating 7a3296
Requires: perl\
Jesse Keating 7a3296
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a3296
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a3296
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a3296
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a3296
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_package(n:) \
Jesse Keating 7a3296
%package %1\
Jesse Keating 7a3296
Summary: %{variant_summary}\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
%kernel_reqprovconf\
Jesse Keating 7a3296
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Jesse Keating 7a3296
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a3296
%kernel_devel_package
Jesse Keating 7a3296
%kernel_debuginfo_package
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# Now, each variant package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a3296
%kernel_variant_package -n SMP smp
Jesse Keating 7a3296
%description smp
Jesse Keating 7a3296
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a3296
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a3296
hyperthreading technology.
Jesse Keating 7a3296
Jesse Keating 7a3296
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAE
Jesse Keating 7a3296
%description PAE
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAEdebug
Jesse Keating 7a3296
Obsoletes: kernel-PAE-debug
Jesse Keating 7a3296
%description PAEdebug
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a3296
%kernel_variant_package debug
Jesse Keating 7a3296
%description debug
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%prep
Jesse Keating 7a3296
# do a few sanity-checks for --with *only builds
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%if !%{with_up}%{with_pae}
Jesse Keating 7a3296
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%if !%{with_smp}
Jesse Keating 7a3296
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# more sanity checking; do it quietly
Jesse Keating 7a3296
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a3296
  for patch in %{patches} ; do
Jesse Keating 7a3296
    if [ ! -f $patch ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
fi 2>/dev/null
Jesse Keating 7a3296
Jesse Keating 7a3296
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a3296
ApplyPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
%if !%{using_upstream_branch}
Dave Jones b89c80
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Jesse Keating 7a3296
    if [ "${patch:0:10}" != "patch-2.6." ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  fi 2>/dev/null
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
  case "$patch" in
Jesse Keating 7a3296
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *.gz) gunzip < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a3296
  esac
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't apply patch if it's empty
Jesse Keating 7a3296
ApplyOptionalPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a3296
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a3296
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# we don't want a .config file when building firmware: it just confuses the build system
Jesse Keating 7a3296
%define build_firmware \
Jesse Keating 7a3296
   mv .config .config.firmware_save \
Jesse Keating 7a3296
   make INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware firmware_install \
Jesse Keating 7a3296
   mv .config.firmware_save .config
Jesse Keating 7a3296
Jesse Keating 7a3296
# First we unpack the kernel tarball.
Jesse Keating 7a3296
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a3296
# which speeds things up quite a bit.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update to latest upstream.
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
%define vanillaversion 2.6.%{base_sublevel}
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define vanillaversion 2.6.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define vanillaversion 2.6.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define vanillaversion 2.6.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define vanillaversion 2.6.%{base_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a3296
Dave Jones 166b79
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c
# so we can prep different trees within a single git directory.
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c
# This will be used to hardlink identical vanilla subdirs.
Chuck Ebbert 26d08c
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-2.6.*' \
Chuck Ebbert 26d08c
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a3296
Chuck Ebbert 26d08c
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
    # The base vanilla version already exists.
Chuck Ebbert 26d08c
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a3296
    for dir in vanilla-*; do
Jesse Keating 7a3296
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f pax_global_header
Chuck Ebbert 26d08c
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a3296
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a3296
        break
Jesse Keating 7a3296
      fi
Jesse Keating 7a3296
    done
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c -T
Chuck Ebbert 26d08c
      cp -rl $sharedir/vanilla-%{kversion} .
Jesse Keating 7a3296
    else
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c
Jesse Keating 7a3296
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a3296
Jesse Keating 7a3296
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
      break
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Chuck Ebbert 26d08c
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    cp -rl $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    # Need to apply patches to the base vanilla version.
Jesse Keating 7a3296
    cp -rl vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a3296
    cd vanilla-%{vanillaversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update vanilla to the latest upstream.
Jesse Keating 7a3296
# (non-released_kernel case only)
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
    ApplyPatch patch-2.6.%{upstream_sublevel}-rc%{rcrev}.bz2
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
    ApplyPatch patch-2.6.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.bz2
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
    ApplyPatch patch-2.6.%{base_sublevel}-git%{gitrev}.bz2
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
else
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Now build the fedora kernel tree.
Jesse Keating 7a3296
if [ -d linux-%{kversion}.%{_target_cpu} ]; then
Jesse Keating 7a3296
  # Just in case we ctrl-c'd a prep already
Jesse Keating 7a3296
  rm -rf deleteme.%{_target_cpu}
Jesse Keating 7a3296
  # Move away the stale away, and delete in background.
Jesse Keating 7a3296
  mv linux-%{kversion}.%{_target_cpu} deleteme.%{_target_cpu}
Jesse Keating 7a3296
  rm -rf deleteme.%{_target_cpu} &
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
cp -rl vanilla-%{vanillaversion} linux-%{kversion}.%{_target_cpu}
Jesse Keating 7a3296
Jesse Keating 7a3296
cd linux-%{kversion}.%{_target_cpu}
Jesse Keating 7a3296
Jesse Keating 7a3296
# released_kernel with possible stable updates
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH APPLY ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a3296
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a3296
cp %{SOURCE15} .
Jesse Keating 7a3296
Jesse Keating 7a3296
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a3296
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a3296
cfdfd0
%if %{?all_arch_configs:1}%{!?all_arch_configs:0}
Jesse Keating 7a3296
#if a rhel kernel, apply the rhel config options
Jesse Keating 7a3296
%if 0%{?rhel}
Jesse Keating 7a3296
  for i in %{all_arch_configs}
Jesse Keating 7a3296
  do
Jesse Keating 7a3296
    mv $i $i.tmp
Jesse Keating 7a3296
    ./merge.pl config-rhel-generic $i.tmp > $i
Jesse Keating 7a3296
    rm $i.tmp
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jarod Wilson 5b6529
# Merge in any user-provided local config option changes
Jarod Wilson 5b6529
for i in %{all_arch_configs}
Jarod Wilson 5b6529
do
Jarod Wilson 5b6529
  mv $i $i.tmp
Jarod Wilson 5b6529
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b6529
  rm $i.tmp
Jarod Wilson 5b6529
done
cfdfd0
%endif
Jarod Wilson 5b6529
Jesse Keating 7a3296
ApplyOptionalPatch git-linus.diff
Jesse Keating 7a3296
Jesse Keating 7a3296
ApplyPatch linux-2.6-makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# misc small stuff to make things compile
Jesse Keating 7a3296
#
Jesse Keating 7a3296
ApplyOptionalPatch linux-2.6-compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Jesse Keating 7a3296
# revert patches from upstream that conflict or that we get via other means
Jesse Keating 7a3296
ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
Jesse Keating 7a3296
Jesse Keating 7a3296
ApplyPatch linux-2.6-hotfixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Roland's utrace ptrace replacement.
Chuck Ebbert 3d285d
ApplyPatch linux-2.6-utrace-revert-make-ptrace-functions-static.patch
Kyle McMartin 07d332
ApplyPatch linux-2.6-tracehook.patch
Kyle McMartin 07d332
ApplyPatch linux-2.6-utrace.patch
Kyle McMartin 1aea23
ApplyPatch linux-2.6-utrace-ptrace.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Architecture patches
Jesse Keating 7a3296
# x86(-64)
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Intel IOMMU
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PowerPC
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SPARC64
Jesse Keating 7a3296
#
Jesse Keating 7a3296
ApplyPatch linux-2.6.29-sparc-IOC_TYPECHECK.patch
f5bdb2
ApplyPatch sparc64_fix_build_errors_with_gcc460.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Exec shield
Jesse Keating 7a3296
#
Jesse Keating 7a3296
ApplyPatch linux-2.6-i386-nx-emulation.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-32bit-mmap-exec-randomization.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# bugfixes to drivers and filesystems
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ext4
Jesse Keating 7a3296
Jesse Keating 7a3296
# xfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# btrfs
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# eCryptfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# USB
Jesse Keating 7a3296
Jesse Keating 7a3296
# WMI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
ApplyPatch linux-2.6-defaults-acpi-video.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-acpi-video-dos.patch
Jesse Keating 7a3296
ApplyPatch acpi-ec-add-delay-before-write.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-acpi-debug-infinite-loop.patch
Kyle McMartin a13914
ApplyPatch acpi_battery-fribble-sysfs-files-from-a-resume-notifier.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Various low-impact patches to aid debugging.
Jesse Keating 7a3296
ApplyPatch linux-2.6-debug-sizeof-structs.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-debug-taint-vm.patch
Kyle McMartin 4d70d8
ApplyPatch linux-2.6-debug-vm-would-have-oomkilled.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-debug-always-inline-kzalloc.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PCI
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# make default state of PCI MSI a config option
Jesse Keating 7a3296
ApplyPatch linux-2.6-defaults-pci_no_msi.patch
Kyle McMartin 128366
ApplyPatch linux-2.6-defaults-pci_use_crs.patch
Jesse Keating 7a3296
# enable ASPM by default on hardware we expect to work
Jesse Keating 7a3296
ApplyPatch linux-2.6-defaults-aspm.patch
Kyle McMartin 655839
# rhbz#638912
Kyle McMartin ee6c06
#ApplyPatch pci-_osc-supported-field-should-contain-supported-features-not-enabled-ones.patch
Jesse Keating 7a3296
Kyle McMartin 7b2f64
#ApplyPatch ima-allow-it-to-be-completely-disabled-and-default-off.patch
Kyle McMartin 9ecbc0
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SCSI Bits.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ALSA
Jesse Keating 7a3296
ApplyPatch hda_intel-prealloc-4mb-dmabuffer.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Networking
Jesse Keating 7a3296
Jesse Keating 7a3296
# Misc fixes
Jesse Keating 7a3296
# The input layer spews crap no-one cares about.
Jesse Keating 7a3296
ApplyPatch linux-2.6-input-kill-stupid-messages.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a3296
ApplyPatch die-floppy-die.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
ApplyPatch linux-2.6.30-no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Allow to use 480600 baud on 16C950 UARTs
Jesse Keating 7a3296
ApplyPatch linux-2.6-serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Silence some useless messages that still get printed with 'quiet'
Jesse Keating 7a3296
ApplyPatch linux-2.6-silence-noise.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Make fbcon not show the penguins with 'quiet'
Jesse Keating 7a3296
ApplyPatch linux-2.6-silence-fbcon-logo.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Fix the SELinux mprotect checks on executable mappings
Jesse Keating 7a3296
#ApplyPatch linux-2.6-selinux-mprotect-checks.patch
Jesse Keating 7a3296
# Fix SELinux for sparc
Jesse Keating 7a3296
# FIXME: Can we drop this now? See updated linux-2.6-selinux-mprotect-checks.patch
Jesse Keating 7a3296
#ApplyPatch linux-2.6-sparc-selinux-mprotect-checks.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Changes to upstream defaults.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# /dev/crash driver.
Jesse Keating 7a3296
ApplyPatch linux-2.6-crash-driver.patch
Jesse Keating 7a3296
Dave Jones f73734
# Hack e1000e to work on Montevina SDV
Dave Jones f73734
ApplyPatch linux-2.6-e1000-ich9-montevina.patch
Dave Jones f73734
Jesse Keating 7a3296
# crypto/
Jesse Keating 7a3296
Jesse Keating 7a3296
# Assorted Virt Fixes
Jesse Keating 7a3296
ApplyPatch fix_xen_guest_on_old_EC2.patch
Jesse Keating 7a3296
Kyle McMartin d3e4af
# DRM core
Jesse Keating 7a3296
Kyle McMartin d3e4af
# Nouveau DRM
Kyle McMartin d3e4af
ApplyOptionalPatch drm-nouveau-updates.patch
Kyle McMartin d3e4af
Kyle McMartin d3e4af
# Intel DRM
Jesse Keating 7a3296
ApplyOptionalPatch drm-intel-next.patch
Kyle McMartin d3e4af
ApplyPatch drm-intel-big-hammer.patch
Jesse Keating 7a3296
ApplyPatch drm-intel-make-lvds-work.patch
Jesse Keating 7a3296
ApplyPatch linux-2.6-intel-iommu-igfx.patch
Kyle McMartin 5acda9
ApplyPatch drm-intel-edp-fixes.patch
e04a1d
ApplyPatch drm-i915-fix-pipelined-fencing.patch
Kyle McMartin 973b53
# rhbz#681285 (i965: crash in brw_wm_surface_state.c::prepare_wm_surfaces()
Kyle McMartin 973b53
#  where intelObj->mt == NULL)
Kyle McMartin 68c77e
#ApplyPatch drm-i915-gen4-has-non-power-of-two-strides.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# linux1394 git patches
Jesse Keating 7a3296
#ApplyPatch linux-2.6-firewire-git-update.patch
Jesse Keating 7a3296
#ApplyOptionalPatch linux-2.6-firewire-git-pending.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# silence the ACPI blacklist code
Jesse Keating 7a3296
ApplyPatch linux-2.6-silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# V4L/DVB updates/fixes/experimental drivers
Jesse Keating 7a3296
#  apply if non-empty
Jesse Keating 7a3296
ApplyOptionalPatch linux-2.6-v4l-dvb-fixes.patch
Jesse Keating 7a3296
ApplyOptionalPatch linux-2.6-v4l-dvb-update.patch
Jesse Keating 7a3296
ApplyOptionalPatch linux-2.6-v4l-dvb-experimental.patch
Kyle McMartin da80d7
#ApplyPatch linux-2.6-v4l-dvb-uvcvideo-update.patch
Kyle McMartin da80d7
#ApplyPatch linux-2.6-v4l-dvb-ir-core-update.patch
Jesse Keating 7a3296
Kyle McMartin da80d7
###FIX###ApplyPatch linux-2.6-v4l-dvb-add-lgdt3304-support.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# http://www.lirc.org/
Jesse Keating 7a3296
#ApplyOptionalPatch lirc-staging-2.6.36-fixes.patch
Jesse Keating 7a3296
Kyle McMartin 6a8226
# rhbz#664852
Kyle McMartin 6a8226
ApplyPatch flexcop-fix-xlate_proc_name-warning.patch
Kyle McMartin 6a8226
Jesse Keating 7a3296
# Patches headed upstream
Kyle McMartin d8122d
ApplyPatch perf-gcc460-build-fixes.patch
Kyle McMartin d8122d
Jesse Keating 7a3296
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Kyle McMartin 0ca562
ApplyPatch add-appleir-usb-driver.patch
Kyle McMartin 0ca562
Jesse Keating 7a3296
ApplyPatch neuter_intel_microcode_load.patch
Jesse Keating 7a3296
Matthew Garrett 0988ee
# various fixes for Apple and EFI
Matthew Garrett 0988ee
ApplyPatch apple_backlight.patch
Matthew Garrett 0988ee
ApplyPatch efifb_update.patch
Matthew Garrett 0988ee
ApplyPatch acpi_reboot.patch
Matthew Garrett 0988ee
Matthew Garrett 2b89a0
# Runtime PM
Kyle McMartin 89a0c6
#ApplyPatch linux-2.6-usb-pci-autosuspend.patch
Kyle McMartin f5ea23
### Broken by implicit notify support & ACPICA rebase
Kyle McMartin f5ea23
###ApplyPatch linux-2.6-enable-more-pci-autosuspend.patch
Kyle McMartin 89a0c6
#ApplyPatch runtime_pm_fixups.patch
Matthew Garrett 2b89a0
Kyle McMartin dbda5f
# rhbz#605888
Kyle McMartin dbda5f
ApplyPatch dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f
Kyle McMartin bb7561
# rhbz#662344,600690
Kyle McMartin bb7561
ApplyPatch fs-call-security_d_instantiate-in-d_obtain_alias.patch
Kyle McMartin bb7561
Chuck Ebbert 6236c8
# Fix possible memory corruption on Dell HW
Chuck Ebbert 6236c8
ApplyPatch dcdbas-force-smi-to-happen-when-expected.patch
Chuck Ebbert 6236c8
Chuck Ebbert 06ad6a
# CVE-2011-1182
Chuck Ebbert 06ad6a
ApplyPatch prevent-rt_sigqueueinfo-and-rt_tgsigqueueinfo-from-spoofing-the-signal-code.patch
Chuck Ebbert 06ad6a
8893f9
ApplyPatch pnfs-all-2.6.38-2011-03-25.patch
8893f9
ApplyPatch linux-2.6-pnfs-compile.patch
8893f9
ApplyPatch linux-2.6.35-inline.patch
Jesse Keating 7a3296
# END OF PATCH APPLICATIONS
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a3296
Jesse Keating 7a3296
chmod +x scripts/checkpatch.pl
Jesse Keating 7a3296
Kyle McMartin fa0660
touch .scmversion
Kyle McMartin fa0660
Jesse Keating 7a3296
# only deal with configs if we are going to build for the arch
Jesse Keating 7a3296
%ifnarch %nobuildarches
Jesse Keating 7a3296
Jesse Keating 7a3296
mkdir configs
Jesse Keating 7a3296
Jesse Keating 7a3296
# Remove configs not for the buildarch
Jesse Keating 7a3296
for cfg in kernel-%{version}-*.config; do
Jesse Keating 7a3296
  if [ `echo %{all_arch_configs} | grep -c $cfg` -eq 0 ]; then
Jesse Keating 7a3296
    rm -f $cfg
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
done
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# now run oldconfig over all the config files
Jesse Keating 7a3296
for i in *.config
Jesse Keating 7a3296
do
Jesse Keating 7a3296
  mv $i .config
Jesse Keating 7a3296
  Arch=`head -1 .config | cut -b 3-`
Dave Jones b89c80
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Kyle McMartin da80d7
%if %{listnewconfig_fail}
Kyle McMartin da80d7
  if [ -s .newoptions ]; then
Kyle McMartin da80d7
    cat .newoptions
Chuck Ebbert 3a78e4
    exit 1
Kyle McMartin da80d7
  fi
Kyle McMartin da80d7
%endif
Kyle McMartin da80d7
  rm -f .newoptions
Kyle McMartin a62b0a
  make ARCH=$Arch oldnoconfig
Jesse Keating 7a3296
  echo "# $Arch" > configs/$i
Jesse Keating 7a3296
  cat .config >> configs/$i
Jesse Keating 7a3296
done
Jesse Keating 7a3296
# end of kernel config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# get rid of unwanted files resulting from patch fuzz
Jesse Keating 7a3296
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
Jesse Keating 7a3296
Dave Jones 246f94
# remove unnecessary SCM files
Dave Jones 246f94
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94
Jesse Keating 7a3296
cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### build
Jesse Keating 7a3296
###
Jesse Keating 7a3296
%build
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
%define sparse_mflags	C=1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{fancy_debuginfo}
Jesse Keating 7a3296
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a3296
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a3296
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a3296
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a3296
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a3296
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a3296
export AFTER_LINK=\
Jesse Keating 7a3296
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a3296
    				-i $@ > $@.id"'
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
cp_vmlinux()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildKernel() {
Jesse Keating 7a3296
    MakeTarget=$1
Jesse Keating 7a3296
    KernelImage=$2
Jesse Keating 7a3296
    Flavour=$3
Jesse Keating 7a3296
    InstallName=${4:-vmlinuz}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Pick the right config file for the kernel we're building
Jesse Keating 7a3296
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Jesse Keating 7a3296
    DevelDir=/usr/src/kernels/%{KVERREL}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a3296
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a3296
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a3296
      CopyKernel=cp_vmlinux
Jesse Keating 7a3296
    else
Jesse Keating 7a3296
      CopyKernel=cp
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a3296
Jesse Keating 7a3296
    # make sure EXTRAVERSION says what we want it to say
Jesse Keating 7a3296
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = %{?stablerev}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
Jesse Keating 7a3296
Jesse Keating 7a3296
    # if pre-rc1 devel kernel, must fix up SUBLEVEL for our versioning scheme
Jesse Keating 7a3296
    %if !0%{?rcrev}
Jesse Keating 7a3296
    %if 0%{?gitrev}
Jesse Keating 7a3296
    perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # and now to start the build process
Jesse Keating 7a3296
Jesse Keating 7a3296
    make -s mrproper
Jesse Keating 7a3296
    cp configs/$Config .config
Jesse Keating 7a3296
Jesse Keating 7a3296
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a3296
    echo USING ARCH=$Arch
Jesse Keating 7a3296
Kyle McMartin da80d7
    make -s ARCH=$Arch oldnoconfig >/dev/null
Jesse Keating 7a3296
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
Jesse Keating 7a3296
    make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Start installing the results
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a3296
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a3296
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a3296
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a3296
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a3296
Jesse Keating 7a3296
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a3296
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    $CopyKernel $KernelImage \
Jesse Keating 7a3296
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a3296
    # Override $(mod-fw) because we don't want it to install any firmware
Jesse Keating 7a3296
    # We'll do that ourselves with 'make firmware_install'
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Jesse Keating 7a3296
%ifarch %{vdso_arches}
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a3296
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a3296
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a3296
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a3296
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a3296
    # * all arch relevant include/ files
Jesse Keating 7a3296
    # * all Makefile/Kconfig files
Jesse Keating 7a3296
    # * all script/ files
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a3296
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a3296
    # first copy everything
Jesse Keating 7a3296
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -s Module.markers ]; then
Jesse Keating 7a3296
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Jesse Keating 7a3296
%ifarch ppc
Jesse Keating 7a3296
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a3296
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a3296
    # external modules can be built
Jesse Keating 7a3296
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/version.h
Jesse Keating 7a3296
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/linux/autoconf.h
Jesse Keating 7a3296
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a3296
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a3296
Roland McGrath 9b36e5
%if %{fancy_debuginfo}
Jesse Keating 7a3296
    if test -s vmlinux.id; then
Jesse Keating 7a3296
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a3296
    else
Roland McGrath 9b36e5
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e5
      exit 1
Jesse Keating 7a3296
    fi
Roland McGrath 9b36e5
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a3296
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Generate a list of modules for block and networking.
Jesse Keating 7a3296
Dave Jones b89c80
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a3296
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list()
Jesse Keating 7a3296
    {
Jesse Keating 7a3296
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Jesse Keating 7a3296
      LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Jesse Keating 7a3296
    }
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list networking \
Jesse Keating 7a3296
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register'
Jesse Keating 7a3296
    collect_modules_list block \
Jesse Keating 7a3296
    			 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler'
Jesse Keating 7a3296
    collect_modules_list drm \
Jesse Keating 7a3296
    			 'drm_open|drm_init'
Jesse Keating 7a3296
    collect_modules_list modesetting \
Jesse Keating 7a3296
    			 'drm_crtc_init'
Jesse Keating 7a3296
Jesse Keating 7a3296
    # detect missing or incorrect license tags
Jesse Keating 7a3296
    rm -f modinfo
Jesse Keating 7a3296
    while read i
Jesse Keating 7a3296
    do
Jesse Keating 7a3296
      echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo
Jesse Keating 7a3296
      /sbin/modinfo -l $i >> modinfo
Jesse Keating 7a3296
    done < modnames
Jesse Keating 7a3296
Dave Jones b89c80
    grep -E -v \
Jesse Keating 7a3296
    	  'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \
Jesse Keating 7a3296
	  modinfo && exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f modinfo modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # remove files that will be auto generated by depmod at rpm -i time
Chuck Ebbert 482441
    for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap
Jesse Keating 7a3296
    do
Jesse Keating 7a3296
      rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a3296
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Jesse Keating 7a3296
    ln -sf ../../..$DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b40
Kyle McMartin 4b3b40
    # prune junk from kernel-devel
Kyle McMartin 4b3b40
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# DO it...
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# prepare directories
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a3296
Jesse Keating 7a3296
cd linux-%{kversion}.%{_target_cpu}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAEdebug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAE
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_up}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smp}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%global perf_make \
Kyle McMartin 8002c0
  make %{?_smp_mflags} -C tools/perf -s V=1 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
Jesse Keating 7a3296
%if %{with_perf}
Jesse Keating 7a3296
%{perf_make} all
Jesse Keating 7a3296
%{perf_make} man || %{doc_build_fail}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
# Make the HTML and man pages.
Chuck Ebbert 224772
make htmldocs mandocs || %{doc_build_fail}
Jesse Keating 7a3296
Jesse Keating 7a3296
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a3296
chmod -R a=rX Documentation
Jesse Keating 7a3296
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### Special hacks for debuginfo subpackages.
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# This macro is used by %%install, so we must redefine it before that.
Jesse Keating 7a3296
%define debug_package %{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{fancy_debuginfo}
Jesse Keating 7a3296
%define __debug_install_post \
Jesse Keating 7a3296
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%global __debug_package 1
Jesse Keating 7a3296
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### install
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%install
Jesse Keating 7a3296
Jesse Keating 7a3296
cd linux-%{kversion}.%{_target_cpu}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
man9dir=$RPM_BUILD_ROOT%{_datadir}/man/man9
Jesse Keating 7a3296
Jesse Keating 7a3296
# copy the source over
Jesse Keating 7a3296
mkdir -p $docdir
Jesse Keating 7a3296
tar -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a3296
Jesse Keating 7a3296
# Install man pages for the kernel API.
Jesse Keating 7a3296
mkdir -p $man9dir
Jesse Keating 7a3296
find Documentation/DocBook/man -name '*.9.gz' -print0 |
Jesse Keating 7a3296
xargs -0 --no-run-if-empty %{__install} -m 444 -t $man9dir $m
Jesse Keating 7a3296
ls $man9dir | grep -q '' || > $man9dir/BROKEN
Jesse Keating 7a3296
%endif # with_doc
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_perf}
Jesse Keating 7a3296
# perf tool binary and supporting scripts/binaries
Jesse Keating 7a3296
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
Jesse Keating 7a3296
Jesse Keating 7a3296
# perf man pages (note: implicit rpm magic compresses them later)
Jesse Keating 7a3296
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
# Install kernel headers
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do headers_check but don't die if it fails.
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a3296
     > hdrwarnings.txt || :
Jesse Keating 7a3296
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a3296
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a3296
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a3296
   # exit 1
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a3296
     \( -name .install -o -name .check -o \
Jesse Keating 7a3296
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a3296
Jesse Keating 7a3296
# glibc provides scsi headers for itself, for now
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT/usr/include/scsi
Jesse Keating 7a3296
rm -f $RPM_BUILD_ROOT/usr/include/asm*/atomic.h
Jesse Keating 7a3296
rm -f $RPM_BUILD_ROOT/usr/include/asm*/io.h
Jesse Keating 7a3296
rm -f $RPM_BUILD_ROOT/usr/include/asm*/irq.h
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_firmware}
Jesse Keating 7a3296
%{build_firmware}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### clean
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%clean
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### scripts
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_post() \
Jesse Keating 7a3296
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a3296
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
Jesse Keating 7a3296
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a3296
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a3296
     done)\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_posttrans() \
Jesse Keating 7a3296
%{expand:%%posttrans %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --mkinitrd --dracut --depmod --update %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?1:-%{1}} --rpmposttrans %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a3296
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_post(v:r:) \
Jesse Keating 7a3296
%{expand:%%kernel_devel_post %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%post %{?-v*}}\
Jesse Keating 7a3296
%{-r:\
Jesse Keating 7a3296
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a3296
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a3296
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi}\
Jesse Keating 7a3296
%{expand:\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --install %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_preun() \
Jesse Keating 7a3296
%{expand:%%preun %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun
Jesse Keating 7a3296
%kernel_variant_post -r kernel-smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun smp
Jesse Keating 7a3296
%kernel_variant_post -v smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun PAE
Jesse Keating 7a3296
%kernel_variant_post -v PAE -r (kernel|kernel-smp)
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun debug
Jesse Keating 7a3296
%kernel_variant_post -v debug
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp)
Jesse Keating 7a3296
%kernel_variant_preun PAEdebug
Jesse Keating 7a3296
Jesse Keating 7a3296
if [ -x /sbin/ldconfig ]
Jesse Keating 7a3296
then
Jesse Keating 7a3296
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### file lists
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
%files headers
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/include/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_firmware}
Jesse Keating 7a3296
%files firmware
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/lib/firmware/*
Jesse Keating 7a3296
%doc linux-%{kversion}.%{_target_cpu}/firmware/WHENCE
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
%files bootwrapper
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/sbin/*
Jesse Keating 7a3296
%{_libdir}/kernel-wrapper
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only some architecture builds need kernel-doc
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
%files doc
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
%{_datadir}/man/man9/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_perf}
Jesse Keating 7a3296
%files -n perf
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_bindir}/perf
Jesse Keating 7a3296
%dir %{_libexecdir}/perf-core
Jesse Keating 7a3296
%{_libexecdir}/perf-core/*
Jesse Keating 7a3296
%{_mandir}/man[1-8]/*
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
%if %{with_debuginfo}
Roland McGrath 3c4ea9
%files -f perf-debuginfo.list -n perf-debuginfo
Roland McGrath 3c4ea9
%defattr(-,root,root)
Roland McGrath 3c4ea9
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a3296
# or empty otherwise.
Jesse Keating 7a3296
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a3296
# and its devel and debuginfo packages.
Jesse Keating 7a3296
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_files(k:) \
Jesse Keating 7a3296
%if %{1}\
Jesse Keating 7a3296
%{expand:%%files %{?2}}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Kyle McMartin f6dd1f
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
Kyle McMartin d28776
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/boot/config-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
Jesse Keating 7a3296
%ifarch %{vdso_arches}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
Jesse Keating 7a3296
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
Jesse Keating 7a3296
%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%if %{with_debuginfo}\
Jesse Keating 7a3296
%ifnarch noarch\
Jesse Keating 7a3296
%if %{fancy_debuginfo}\
Jesse Keating 7a3296
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%else\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
%if !%{fancy_debuginfo}\
Jesse Keating 7a3296
%if "%{elf_image_install_path}" != ""\
Jesse Keating 7a3296
%{debuginfodir}/%{elf_image_install_path}/*-%{KVERREL}%{?2:.%{2}}.debug\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{debuginfodir}/lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%{debuginfodir}/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_files %{with_up}
Jesse Keating 7a3296
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a3296
%kernel_variant_files %{with_debug} debug
Jesse Keating 7a3296
%kernel_variant_files %{with_pae} PAE
Jesse Keating 7a3296
%kernel_variant_files %{with_pae_debug} PAEdebug
Jesse Keating 7a3296
Jesse Keating 7a3296
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a3296
# and build.
Jesse Keating 7a3296
Jesse Keating 7a3296
%changelog
8893f9
* Sat Mar 26 2011 Steve Dickson <steved@redhat.com> 2.6.38.1-6.pnfs
8893f9
- Updated to the latest pNFS branch: pnfs-all-2.6.38-2011-03-25
8893f9
Chuck Ebbert 06ad6a
* Fri Mar 25 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 06ad6a
- CVE-2011-1182: kernel signal spoofing issue
Chuck Ebbert 535b4d
- Drop unused patches already applied upstream:
Chuck Ebbert 535b4d
  hdpvr-ir-enable.patch
Chuck Ebbert 535b4d
  thinkpad-acpi-fix-backlight.patch
Chuck Ebbert 06ad6a
Chuck Ebbert 6236c8
* Wed Mar 23 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38.1-6
Chuck Ebbert 6236c8
- Linux 2.6.38.1
Chuck Ebbert 6236c8
- Drop linux-2.6-ehci-check-port-status.patch, merged in .38.1
Chuck Ebbert 6236c8
- Add dcdbas-force-smi-to-happen-when-expected.patch
Chuck Ebbert 6236c8
Kyle McMartin a13914
* Wed Mar 23 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin a13914
- Re-create ACPI battery sysfs files on resume from suspend, fixes the
Kyle McMartin a13914
  upstream changes to the dropped
Kyle McMartin a13914
  acpi-update-battery-information-on-notification-0x81.patch.
Kyle McMartin a13914
e04a1d
* Wed Mar 23 2011 Dave Airlie <airlied@redhat.com> 2.6.38-5
e04a1d
- i915: add fix for 945G misrendering terminal
e04a1d
Ben Skeggs 1abc85
* Tue Mar 22 2011 Ben Skeggs <bskeggs@redhat.com> 2.6.38-4
Ben Skeggs 1abc85
- nouveau: implement missing bios opcode 0x5c (rhbz#688569)
Ben Skeggs 1abc85
- nouveau: a couple of minor fixes from nouveau git
Ben Skeggs 1abc85
Chuck Ebbert c5e062
* Mon Mar 21 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-3
Chuck Ebbert c5e062
- Add contents of 2.6.38.1 patch queue (in git-linus.diff)
Chuck Ebbert c5e062
Matthew Garrett 93c9d7
* Thu Mar 17 2011 Matthew Garrett <mjg@redhat.com> 2.6.38-2
Matthew Garrett 93c9d7
- drop efi_default_physical.patch - it's actually setting up something that's
Matthew Garrett 93c9d7
  neither physical nor virtual, and it's probably breaking EFI boots
Matthew Garrett 93c9d7
e53e7f
* Wed Mar 16 2011 Dennis Gilmore <dennis@ausil.us>
e53e7f
- build sparc imagae as vmlinux
e53e7f
- fixes buildid conflicts since the sparc kernel is just a elf image
e53e7f
Chuck Ebbert 6754d6
* Tue Mar 15 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-1
Chuck Ebbert 6754d6
- Linux 2.6.38
Chuck Ebbert 6754d6
Chuck Ebbert 6754d6
* Mon Mar 14 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc8.git4.1
Chuck Ebbert 073f3d
- Linux 2.6.38-rc8-git4
Chuck Ebbert 073f3d
Chuck Ebbert 0e7752
* Thu Mar 10 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 0e7752
- Linux 2.6.38-rc8-git3
Chuck Ebbert 0e7752
Chuck Ebbert 2ee25b
* Thu Mar 10 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc8.git2.1
Chuck Ebbert 2ee25b
- Linux 2.6.38-rc8-git2
Chuck Ebbert 2ee25b
Chuck Ebbert 2ee25b
* Wed Mar 09 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 0f3aef
- Linux 2.6.38-rc8-git1
Chuck Ebbert 0f3aef
Chuck Ebbert 2ee25b
* Wed Mar 09 2011 Dennis Gilmore <dennis@ausil.us>
f5bdb2
- apply sparc64 gcc-4.6.0 buildfix patch
f5bdb2
Ben Skeggs 496d23
* Wed Mar 09 2011 Ben Skeggs <bskeggs@redhat.com> 2.6.38-0.rc8.git0.2
Ben Skeggs 496d23
- nouveau: allow max clients on nv4x (679629), better error reporting
Ben Skeggs 496d23
Chuck Ebbert b2abdb
* Tue Mar 08 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc8.git0.1
Chuck Ebbert b2abdb
- Linux 2.6.38-rc8
Chuck Ebbert b2abdb
Chuck Ebbert 3d285d
* Sat Mar 05 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc7.git4.1
Chuck Ebbert 3d285d
- Linux 2.6.38-rc7-git4
Chuck Ebbert 3d285d
- Revert upstream commit e3e89cc535223433a619d0969db3fa05cdd946b8
Chuck Ebbert 3d285d
  for now to fix utrace build.
Chuck Ebbert 3d285d
Roland McGrath 3c4ea9
* Fri Mar 04 2011 Roland McGrath <roland@redhat.com> - 2.6.38-0.rc7.git2.3
Roland McGrath 3c4ea9
- Split out perf-debuginfo subpackage.
Roland McGrath 3c4ea9
Kyle McMartin 68c77e
* Fri Mar 04 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc7.git2.2
Kyle McMartin 68c77e
- Disable drm-i915-gen4-has-non-power-of-two-strides.patch for now, breaks
Kyle McMartin 68c77e
  my mutter.
Kyle McMartin 68c77e
Kyle McMartin 555488
* Fri Mar 04 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc7.git2.1
Kyle McMartin 555488
- Linux 2.6.38-rc7-git2
Kyle McMartin 973b53
- drm-i915-gen4-has-non-power-of-two-strides.patch (#681285)
Kyle McMartin 973b53
Chuck Ebbert a61f01
* Thu Mar 03 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc7.git1.1
Chuck Ebbert a61f01
- Linux 2.6.38-rc7-git1
Chuck Ebbert a61f01
Kyle McMartin 4bb560
* Tue Mar 01 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc7.git0.1
Kyle McMartin 4bb560
- Linux 2.6.38-rc7
Kyle McMartin 4bb560
Chuck Ebbert a7940a
* Fri Feb 25 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc6.git6.1
Chuck Ebbert a7940a
- Linux 2.6.38-rc6-git6
Chuck Ebbert a7940a
- Build in virtio_pci driver so virtio_console will be built-in (#677713)
Chuck Ebbert a7940a
Chuck Ebbert 8ec9c7
* Thu Feb 24 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc6.git4.1
Chuck Ebbert 8ec9c7
- Linux 2.6.38-rc6-git4
Chuck Ebbert 8ec9c7
Matthew Garrett 31a889
* Thu Feb 24 2011 Matthew Garrett <mjg@redhat.com> 2.6.38-0.rc6.git2.2
Matthew Garrett 31a889
- linux-2.6-acpi-fix-implicit-notify.patch: Fix implicit notify when there's
Matthew Garrett 31a889
  more than one device per GPE
Matthew Garrett 31a889
Chuck Ebbert a8bce0
* Wed Feb 23 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc6.git2.1
Chuck Ebbert a8bce0
- Linux 2.6.38-rc6-git2
Chuck Ebbert a8bce0
Ben Skeggs a2c6d2
* Wed Feb 23 2011 Ben Skeggs <bskeggs@redhat.com> 2.6.38-0.rc6.git0.2
Ben Skeggs a2c6d2
- nouveau: nv4x pciegart fixes, nvc0 accel improvements
Ben Skeggs a2c6d2
Kyle McMartin 64f9d1
* Tue Feb 22 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc6.git0.1
Kyle McMartin 64f9d1
- Linux 2.6.38-rc6
Kyle McMartin 64f9d1
Chuck Ebbert 7cfb2e
* Tue Feb 22 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc5.git7.1
Chuck Ebbert 7cfb2e
- Linux 2.6.38-rc5-git7
Chuck Ebbert 7cfb2e
Chuck Ebbert 7cfb2e
* Mon Feb 21 2011 Dave Jones <davej@redhat.com> 2.6.38-0.rc5.git6.1
Dave Jones cdb4bd
- Linux 2.6.38-rc5-git6
Dave Jones cdb4bd
Chuck Ebbert 3d2b80
* Sat Feb 19 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc5.git5.1
Chuck Ebbert 3d2b80
- Linux 2.6.38-rc5-git5
Chuck Ebbert 3d2b80
Chuck Ebbert 1edc59
* Wed Feb 16 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc5.git1.1
Chuck Ebbert 1edc59
- Linux 2.6.38-rc5-git1
Chuck Ebbert 4679d7
- Add support for Airprime/Sierra USB IP modem (#676860)
Chuck Ebbert acd41d
- Make virtio_console built-in on x86_64 (#677713)
Chuck Ebbert b161e6
- Revert check for read-only block device added in .38 (#672265)
Chuck Ebbert 4679d7
Kyle McMartin b269e6
* Tue Feb 15 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc5.git0.1
Kyle McMartin b269e6
- Linux 2.6.38-rc5 (81 minutes later...)
Kyle McMartin b269e6
Chuck Ebbert c0fb67
* Sun Feb 13 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc4.git7.1
Chuck Ebbert c0fb67
- Linux 2.6.38-rc4-git7
Chuck Ebbert c0fb67
Chuck Ebbert c60c9d
* Sat Feb 12 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc4.git6.1
Chuck Ebbert c60c9d
- Linux 2.6.38-rc4-git6
Chuck Ebbert 822aa6
- Fix memory corruption caused by bug in bridge code.
Chuck Ebbert 9d7780
Chuck Ebbert bad79d
* Thu Feb 10 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc4.git3.1
Chuck Ebbert bad79d
- Linux 2.6.38-rc4-git3
Chuck Ebbert bad79d
06c3e5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.38-0.rc4.git0.2
06c3e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
06c3e5
Kyle McMartin ea66bd
* Mon Feb 07 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc4.git0.1
Kyle McMartin ea66bd
- Linux 2.6.38-rc4
Kyle McMartin ea66bd
Chuck Ebbert 3b6f1e
* Fri Feb 04 2011 Chuck Ebbert <cebbert@redhat.com>  2.6.38-0.rc3.git4.1
Chuck Ebbert 3b6f1e
- Linux 2.6.38-rc3-git4
Chuck Ebbert 3b6f1e
Chuck Ebbert b2f151
* Thu Feb 03 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 9fd299
- Linux 2.6.38-rc3-git3
Chuck Ebbert b2f151
- Enable Advansys SCSI driver on x86_64 (#589115)
Chuck Ebbert b2f151
Kyle McMartin 928e7a
* Thu Feb 03 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc3.git2.1
Kyle McMartin 928e7a
- Linux 2.6.38-rc3-git2 snapshot
Kyle McMartin 928e7a
- [sgruszka] ath5k: fix fast channel change (#672778)
Kyle McMartin 928e7a
Kyle McMartin cacb6d
* Wed Feb 02 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc3.git1.1
Kyle McMartin cacb6d
- Linux 2.6.38-rc3-git1 snapshot.
Kyle McMartin cacb6d
Chuck Ebbert d12d7e
* Wed Feb 02 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert d12d7e
- Fix autoload of atl1c driver for latest hardware (#607499)
Chuck Ebbert d12d7e
Chuck Ebbert d12d7e
* Tue Feb 01 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc3.git0.1
Chuck Ebbert 580ae7
- Linux 2.6.38-rc3
Chuck Ebbert 285227
- Try to fix some obvious bugs in hfsplus mount failure handling (#673857)
Chuck Ebbert 285227
Chuck Ebbert 270ebd
* Mon Jan 31 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc2.git9.1
Chuck Ebbert 270ebd
- Linux 2.6.38-rc2-git9
Chuck Ebbert 270ebd
Kyle McMartin faf478
* Mon Jan 31 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin faf478
- disable CONFIG_SERIAL_8250_DETECT_IRQ (from mschmidt@redhat.com)
Kyle McMartin faf478
Chuck Ebbert 78fc9d
* Mon Jan 31 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 78fc9d
- Linux 2.6.38-rc2-git8
Chuck Ebbert b02e2e
- Add Trond's NFS bugfixes branch from git.linux-nfs.org
Chuck Ebbert 78fc9d
Chuck Ebbert f8eae5
* Mon Jan 31 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc2.git7.2
Chuck Ebbert f8eae5
- Fix build failure on s390.
Chuck Ebbert f8eae5
Chuck Ebbert 60ec94
* Fri Jan 28 2011 Chuck Ebbert <cebbert@redhat.com> 2.6.38-0.rc2.git7.1
Chuck Ebbert 60ec94
- Linux 2.6.38-rc2-git7
Chuck Ebbert 60ec94
Kyle McMartin 6257b8
* Wed Jan 26 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git5.1
Kyle McMartin 6257b8
- Linux 2.6.38-rc2-git5
Kyle McMartin 6257b8
- [x86] Re-enable TRANSPARENT_HUGEPAGE, should be fixed by cacf061c.
Kyle McMartin 6257b8
Kyle McMartin 77886d
* Tue Jan 25 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git3.2
Kyle McMartin 77886d
- [x86] Disable TRANSPARENT_HUGEPAGE for now, there be dragons there.
Kyle McMartin 77886d
Kyle McMartin 84056e
* Tue Jan 25 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git3.1
Kyle McMartin 84056e
- Linux 2.6.38-rc2-git3
Kyle McMartin 84056e
- perf-gcc460-build-fixes.patch: fix context from [9486aa38]
Kyle McMartin 84056e
Kyle McMartin 89a0c6
* Mon Jan 24 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git1.3
Kyle McMartin 89a0c6
- Disable usb/pci/acpi autosuspend goo until it can be checked.
Kyle McMartin 89a0c6
Kyle McMartin a56ba8
* Mon Jan 24 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin a56ba8
- debug-tty-print-dev-name.patch: drop, haven't seen any warnings recently.
Kyle McMartin 641f5c
- runtime_pm_fixups.patch: rebase and re-enable, make acpi_power_transition
Kyle McMartin 641f5c
   in pci_bind actually do the right thing instead of (likely) always
Kyle McMartin 641f5c
   trying to transition to D0.
Kyle McMartin a56ba8
Kyle McMartin a08b49
* Mon Jan 24 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git1.1
Kyle McMartin a08b49
- Linux 2.6.38-rc2-git1
Kyle McMartin a08b49
- [e5cce6c1] tpm: fix panic caused by "tpm: Autodetect itpm devices"
Kyle McMartin a08b49
  may fix some boot issues people were having.
Kyle McMartin a08b49
- tpm-fix-stall-on-boot.patch: upstream.
Kyle McMartin d8122d
- perf-gcc460-build-fixes.patch: fix build issues with warn-unused-but-set
Kyle McMartin d8122d
  in gcc 4.6.0
Kyle McMartin a08b49
Kyle McMartin e6636a
* Sat Jan 22 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc2.git0.1
Kyle McMartin e6636a
- Linux 2.6.38-rc2
Kyle McMartin e6636a
- linux-2.6-serial-460800.patch, drivers/serial => drivers/tty/serial
Kyle McMartin e6636a
Kyle McMartin 2f1cbe
* Thu Jan 20 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc1.git1.1
Kyle McMartin 2f1cbe
- Linux 2.6.38-rc1-git1, should fix boot failure in -rc1.
Kyle McMartin 2f1cbe
Kyle McMartin 71f70c
* Wed Jan 19 2011 Roland McGrath <roland@redhat.com>
Kyle McMartin 71f70c
- utrace update
Kyle McMartin 71f70c
Kyle McMartin b79a31
* Wed Jan 19 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc1.git0.1
Kyle McMartin b79a31
- Linux 2.6.38-rc1
Kyle McMartin b79a31
Kyle McMartin b83e18
* Tue Jan 18 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git18.1
Kyle McMartin b83e18
- Linux 2.6.37-git18
Kyle McMartin b83e18
Kyle McMartin 7838e8
* Mon Jan 17 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git16.1
Kyle McMartin 7838e8
- Linux 2.6.37-git16
Kyle McMartin 7838e8
- config changes:
Kyle McMartin 7838e8
 - CONFIG_SQUASHFS_XZ=y [generic]
Kyle McMartin 7838e8
 - CONFIG_SPARSE_IRQ=y [arm]
Kyle McMartin 7838e8
Kyle McMartin 126cc8
* Sat Jan 15 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git13.1
Kyle McMartin 126cc8
- Linux 2.6.37-git13
Kyle McMartin 126cc8
- Drop xen_export-arbitrary_virt_to_machine.patch, upstream.
Kyle McMartin 126cc8
Kyle McMartin c55a79
* Fri Jan 14 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin c55a79
- xen_export-arbitrary_virt_to_machine.patch: pull patch from upstream
Kyle McMartin c55a79
  to fix build error.
Kyle McMartin c55a79
Kyle McMartin ee6c06
* Fri Jan 14 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git12.1
Kyle McMartin ee6c06
- Linux 2.6.37-git12
Kyle McMartin ee6c06
- 0001-use-__devexit-not-__exit-in-n2_unregister_algs-fixes.patch: drop
Kyle McMartin ee6c06
  upstream patch.
Kyle McMartin ee6c06
- acpi-update-battery-information-on-notification-0x81.patch: drop upstream
Kyle McMartin ee6c06
  patch.
Kyle McMartin ee6c06
- mm-*.patch: drop upstream patches.
Kyle McMartin ee6c06
- important config changes:
Kyle McMartin ee6c06
  ACPI_IPMI=m
Kyle McMartin ee6c06
  CRYPTO_AES_NI_INTEL=m [i386]
Kyle McMartin ee6c06
  TRANSPARENT_HUGEPAGE=y
Kyle McMartin ee6c06
Kyle McMartin 8d441e
* Wed Jan 12 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git9.1
Kyle McMartin 8d441e
- Linux 2.6.37-git9
Kyle McMartin 8d441e
- Re-enable DEBUG_SET_MODULE_RONX since commit 94462ad3 fixed it.
Kyle McMartin 8d441e
- Enable some more new random HID and sensor junk as modules.
Kyle McMartin 8d441e
Kyle McMartin b8f320
* Tue Jan 11 2011 Matthew Garrett <mjg@redhat.com>
Kyle McMartin b8f320
- linux-2.6-ehci-check-port-status.patch - fix USB resume on some AMD systems
Kyle McMartin b8f320
Jarod Wilson 5b6529
* Mon Jan 10 2011 Jarod Wilson <jarod@redhat.com>
Jarod Wilson 5b6529
- Add support for local rebuild config option overrides
Jarod Wilson 5b0327
- Add missing --with/--without pae build flag support
Jarod Wilson 5b6529
Kyle McMartin d9fdd6
* Mon Jan 10 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git4.2
Kyle McMartin d9fdd6
- Disable DEBUG_SET_MODULE_RONX for now, it causes boot-up to fail since
Kyle McMartin d9fdd6
  dynamic ftrace is trying to rewrite instructions on module load.
Kyle McMartin d9fdd6
Kyle McMartin 173354
* Mon Jan 10 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin 173354
- Drop obsolete linux-2.6-debug-nmi-timeout.patch
Kyle McMartin 173354
Kyle McMartin 4f8602
* Mon Jan 10 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc0.git4.1
Kyle McMartin 4f8602
- Branch for 2.6.38
Kyle McMartin 4f8602
- Rebase trivial patches.
Kyle McMartin 4f8602
- Switch debug configs back on.
Kyle McMartin 4f8602
- config changes:
Kyle McMartin 4f8602
  DEBUG_SET_MODULE_RONX=y
Kyle McMartin 4f8602
  B43_PHY_N=y
Kyle McMartin 4f8602
  RT2800USB_RT33XX=y |
Kyle McMartin 4f8602
  RT2800PCI_RT33XX=y | experimental
Kyle McMartin 4f8602
  WL12XX=m
Kyle McMartin 4f8602
  RTL8192CE=m
Kyle McMartin 4f8602
  CAN_SLCAN=m
Kyle McMartin 4f8602
  SCHED_AUTOGROUP=n
Kyle McMartin 4f8602
Kyle McMartin e2a5d6
* Fri Jan 07 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.37-2
Kyle McMartin e2a5d6
- drm_i915-check-eDP-encoder-correctly-when-setting-modes.patch reported to
Kyle McMartin e2a5d6
  fix HP/Sony eDP issues by adamw and airlied.
Kyle McMartin e2a5d6
Kyle McMartin 71f70c
* Wed Jan 05 2011 Dennis Gilmore <dennis@ausil.us>
9c7497
- build sparc headers on sparcv9
9c7497
Kyle McMartin 71f70c
* Tue Jan 04 2011 Dennis Gilmore <dennis@ausil.us>
1c442e
- add patch for sparc build failure
1c442e
Kyle McMartin 973a30
* Tue Jan 04 2011 Kyle McMartin <kyle@redhat.com> 2.6.37-1
Kyle McMartin 973a30
- Track release of 2.6.37
Kyle McMartin 973a30
Kyle McMartin d6f08e
* Mon Jan 03 2011 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc8.git3.1
Kyle McMartin d6f08e
- Linux 2.6.37-rc8-git3
Kyle McMartin d6f08e
- Merged acpi battery notification patch and -rc8.
Kyle McMartin d6f08e
Kyle McMartin 6a8226
* Thu Dec 23 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 6a8226
- Pull in flexcop procfs rename patch since it's still not upstream. (#664852)
Kyle McMartin 6a8226
Kyle McMartin 20f760
* Tue Dec 21 2010 Kyle McMartin <kyle@redhat.com> 2.6.37.0.rc7.git0.2
Kyle McMartin 2884f2
- Linux 2.6.37-rc7
Kyle McMartin 2884f2
- CONFIG_USB_OTG=n (seems unnecessary?)
Kyle McMartin 2884f2
- Enable release builds until .37 releases in rawhide.
Kyle McMartin 2884f2
Kyle McMartin d696c1
* Sun Dec 19 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc6.git5.1
Kyle McMartin d696c1
- Linux 2.6.37-rc6-git5
Kyle McMartin d696c1
- sched-cure-more-NO_HZ-load-average-woes.patch: upstream.
Kyle McMartin d696c1
Kyle McMartin bb7561
* Sat Dec 18 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin c8d261
- Patch from nhorman against f13:
Kyle McMartin c8d261
  Enhance AF_PACKET to allow non-contiguous buffer alloc (#637619)
Kyle McMartin c8d261
Kyle McMartin c8d261
* Sat Dec 18 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin bb7561
- Fix SELinux issues with NFS/btrfs and/or xfsdump. (#662344)
Kyle McMartin bb7561
Matthew Garrett b07d63
* Fri Dec 17 2010 Matthew Garrett <mjg@redhat.com> 2.6.37-0.rc6.git0.3
Matthew Garrett b07d63
- efi_default_physical.patch: Revert hunk that breaks boot
Matthew Garrett b07d63
- linux-next-macbook-air-input.patch: Add input support for new Macbook Airs
Matthew Garrett b07d63
Matthew Garrett 0988ee
* Thu Dec 16 2010 Matthew Garrett <mjg@redhat.com> 2.6.37-0.rc6.git0.2
Matthew Garrett 0988ee
- applesmc_update.patch: Make the driver more generic. Should help Apples.
Matthew Garrett 0988ee
- apple_backlight.patch: Make sure that this loads on all hardware.
Matthew Garrett 0988ee
- efifb_update.patch: Fixes for the 11 inch Macbook Air
Matthew Garrett 0988ee
- acpi_reboot.patch: Should make reboot work better on most hardware
Matthew Garrett 0988ee
- efi_default_physical.patch: Some machines dislike EFI virtual mode
Matthew Garrett 0988ee
Kyle McMartin c67811
* Wed Dec 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc6.git0.1
Kyle McMartin c67811
- Linux 2.6.37-rc6
Kyle McMartin c67811
- Re-activate acpi patch which rejected on the previous commit.
Kyle McMartin c67811
Kyle McMartin b3c92a
* Wed Dec 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc5.git5.1
Kyle McMartin b3c92a
- 2.6.37-rc5-git5
Kyle McMartin b3c92a
Kyle McMartin 39ad3b
* Fri Dec 10 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 655839
- Another patch from mjg59: Set _OSC supported field correctly (#638912)
Kyle McMartin 655839
Kyle McMartin 655839
* Fri Dec 10 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 39ad3b
- pci-disable-aspm-if-bios-asks-us-to.patch: Patch from mjg59 to disable
Kyle McMartin 39ad3b
  ASPM if the BIOS has disabled it, but enabled it already on some devices.
Kyle McMartin 39ad3b
Kyle McMartin 5d5148
* Thu Dec 09 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 5d5148
- Snarf patch from wireless-next to fix mdomsch's orinico wifi.
Kyle McMartin 5d5148
  (orinoco: initialise priv->hw before assigning the interrupt)
Kyle McMartin 5d5148
  [229bd792] (#657864)
Kyle McMartin 5d5148
Kyle McMartin 98e611
* Wed Dec 08 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc5.git2.1
Kyle McMartin 98e611
- Linux 2.6.37-rc5-git2
Kyle McMartin 98e611
- sched-cure-more-NO_HZ-load-average-woes.patch: fix some of the complaints
Kyle McMartin 98e611
  in 2.6.35+ about load average with dynticks. (rhbz#650934)
Kyle McMartin 98e611
Kyle McMartin abce2a
* Tue Dec 07 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc5.git0.1
Kyle McMartin abce2a
- Linux 2.6.37-rc5
Kyle McMartin abce2a
Kyle McMartin 8002c0
* Sat Dec 04 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 8002c0
- Enable C++ symbol demangling with perf by linking against libiberty.a,
Kyle McMartin 8002c0
  which is LGPL2.
Kyle McMartin 8002c0
Kyle McMartin 5acda9
* Fri Dec 03 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 5acda9
- Linux 2.6.37-rc4-git3
Kyle McMartin 5acda9
- Enable HP ILO on x86_64 for (#571329)
Kyle McMartin 5acda9
- Drop merged drm-fixes.patch, split out edp-fixes.
Kyle McMartin 5acda9
- tty-dont-allow-reopen-when-ldisc-is-changing.patch: upstream.
Kyle McMartin 5acda9
- tty-ldisc-fix-open-flag-handling.patch: upstream.
Kyle McMartin 5acda9
- Enable CIFS_ACL.
Kyle McMartin 5acda9
Kyle McMartin 254585
* Thu Dec 02 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 254585
- Grab some of Mel's fixes from -mmotm to hopefully sort out #649694.
Kyle McMartin 254585
Kyle McMartin 525696
* Wed Dec 01 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc4.git1.1
Kyle McMartin 525696
- Linux 2.6.37-rc4-git1
Kyle McMartin f1aeb3
- Pull in DRM fixes that are queued for -rc5 [3074adc8]
Kyle McMartin 8077b6
  + edp-fixes on top
Kyle McMartin 525696
Kyle McMartin 1a48cb
* Tue Nov 30 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc4.git0.1
Kyle McMartin 1a48cb
- Linux 2.6.37-rc4
Kyle McMartin 1a48cb
Kyle McMartin 4d70d8
* Mon Nov 29 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 4d70d8
- Update debug-vm-would_have_oomkilled patch.
Kyle McMartin 4d70d8
Kyle McMartin 67f588
* Mon Nov 29 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc3.git6.1
Kyle McMartin 67f588
- Linux 2.6.37-rc3-git6
Kyle McMartin 67f588
- TTY: open/hangup race fixup (rhbz#630464)
Kyle McMartin 67f588
Kyle McMartin ea17f5
* Fri Nov 26 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc3.git3.1
Kyle McMartin ea17f5
- Linux 2.6.37-rc3-git3
Kyle McMartin ea17f5
- Print tty->flags as well in debugging patch...
Kyle McMartin ea17f5
Kyle McMartin e31d24
* Fri Nov 26 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin e31d24
- Copy tty_open WARN_ON debugging patch from rawhide.
Kyle McMartin e31d24
Kyle McMartin c3e06e
* Fri Nov 26 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc3.git2.1
Kyle McMartin c3e06e
- Linux 2.6.37-rc3-git2
Kyle McMartin 2f05b4
- CGROUP_MEM_RES_CTLR_SWAP_ENABLED is not set, so the cgroup memory
Kyle McMartin 2f05b4
  resource controller swap accounting is disabled by default. You can
Kyle McMartin 2f05b4
  enable it with 'swapaccount' if desired.
Kyle McMartin 2f05b4
- TTY: don't allow reopen when ldisc is changing (rhbz#630464)
Kyle McMartin c3e06e
Kyle McMartin a0dc92
* Wed Nov 24 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc3.git1.1
Kyle McMartin a0dc92
- Linux 2.6.37-rc3-git1
Kyle McMartin a0dc92
Kyle McMartin 017454
* Mon Nov 22 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc3.git0.1
Kyle McMartin 017454
- Linux 2.6.37-rc3
Kyle McMartin 017454
Kyle McMartin c513bb
* Sat Nov 20 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc2.git7.1
Kyle McMartin c513bb
- Linux 2.6.37-rc2-git7
Kyle McMartin c513bb
Kyle McMartin 39c704
* Fri Nov 19 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.rc2.git5.1
Kyle McMartin 39c704
- Linux 2.6.37-rc2-git5
Kyle McMartin 39c704
Kyle McMartin 66ce81
* Thu Nov 18 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 66ce81
- Move %{fedora_build} in the un-released (ie: -git/-rc) kernel case for
Kyle McMartin 66ce81
  a variety of reasons, principally so that:
Kyle McMartin 66ce81
  1: Bumping %baserelease isn't needed if we're just updating snapshots.
Kyle McMartin 66ce81
  2: %buildid will sort as newer so we don't need to bump baserelease when
Kyle McMartin 66ce81
     building bugzilla fixes.
Kyle McMartin 66ce81
Kyle McMartin fddeca
* Wed Nov 17 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc2.git2
Kyle McMartin fddeca
- Linux 2.6.37-rc2-git2
Kyle McMartin fddeca
- enable STRICT_DEVMEM on s390x.
Kyle McMartin fddeca
Kyle McMartin d28776
* Wed Nov 17 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin d28776
- Make vmlinuz/System.map root read-write only by default. You can just
Kyle McMartin d28776
  chmod 644 them later if you (unlikely) need them without root.
Kyle McMartin d28776
Kyle McMartin 58e831
* Mon Nov 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc2.git0
Kyle McMartin 58e831
- Linux 2.6.37-rc2
Kyle McMartin 58e831
Kyle McMartin 1d6dcd
* Sat Nov 13 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc1.git10
Kyle McMartin 1d6dcd
- Linux 2.6.37-rc1-git10
Kyle McMartin 1d6dcd
- SECURITY_DMESG_RESTRICT added, the principle of least surprise dictates
Kyle McMartin 1d6dcd
  we should probably have it off. If you want to restrict dmesg access
Kyle McMartin 1d6dcd
  you may use the kernel.dmesg_restrict sysctl.
Kyle McMartin 1d6dcd
- linux-2.6-bluetooth-autosuspend.patch: merged upstream.
Kyle McMartin 1d6dcd
Kyle McMartin 838353
* Tue Nov 09 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc1.git7
Kyle McMartin 838353
- Linux 2.6.37-rc1-git7
Kyle McMartin 838353
Kyle McMartin 399654
* Mon Nov 08 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc1.git5
Kyle McMartin 399654
- Linux 2.6.37-rc1-git5
Kyle McMartin 399654
Kyle McMartin 1aea23
* Mon Nov 08 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 1aea23
- Cherry-pick utrace-ptrace fixes from mayoung. Thanks!
Kyle McMartin 1aea23
Kyle McMartin 7b2f64
* Tue Nov 02 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc1.git0
Kyle McMartin 7b2f64
- Linux 2.6.37-rc1
Kyle McMartin 7b2f64
Kyle McMartin 3daa57
* Tue Oct 26 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc0.git8
Kyle McMartin 3daa57
- Linux 2.6.36-git8
Kyle McMartin 3daa57
Kyle McMartin c22cea
* Fri Oct 22 2010 Kyle McMartin <kyle@redhat.com> 2.6.37-0.1.rc0.git2
Kyle McMartin c22cea
- Switch to tracking git snapshots of what will become 2.6.37.
Kyle McMartin c22cea
- Fix context rejects in utrace and a few other patches.
Kyle McMartin c22cea
Chuck Ebbert 218752
* Wed Oct 20 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.36-1
Chuck Ebbert 218752
- Linux 2.6.36
Chuck Ebbert 218752
Matthew Garrett 2df449
* Wed Oct 20 2010 Matthew Garrett <mjg@redhat.com> 2.6.36-0.42.rc8.git5
Matthew Garrett 2df449
- runtime_pm_fixups.patch: should fix this on Thinkpads
Matthew Garrett 2df449
Chuck Ebbert 1470c7
* Tue Oct 19 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.36-0.41.rc8.git5
Chuck Ebbert 1470c7
- Linux 2.6.36-rc8-git5
Chuck Ebbert c3cd66
- Update PCI _CRS fixes
Chuck Ebbert 1470c7
Kyle McMartin 9ecbc0
* Mon Oct 18 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.40.rc8.git0
Kyle McMartin 9ecbc0
- Backport xHCI suspend/resume code from linux-next.
Kyle McMartin 9ecbc0
Kyle McMartin dbda5f
* Mon Oct 18 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 52c02b
- ima: Default it to off, pass ima=on to enable. Reduce impact of the option
Kyle McMartin 52c02b
  when disabled.
Kyle McMartin 52c02b
Kyle McMartin 52c02b
* Mon Oct 18 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin dbda5f
- Quirk to disable DMAR with Ricoh card reader/firewire. (rhbz#605888)
Kyle McMartin dbda5f
Kyle McMartin 694abf
* Fri Oct 15 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin f79839
- Switched to pci=use_crs by default (it should have been fixed since
Kyle McMartin 7cebe7
  cebbert sucked in the patches anyway.)
Kyle McMartin 7cebe7
Kyle McMartin 7cebe7
* Fri Oct 15 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 694abf
- backport pnpacpi-cope-with-invalid-device-ids from linux-next.
Kyle McMartin 694abf
  (rhbz#641468)
Kyle McMartin 694abf
Kyle McMartin 42dee1
* Fri Oct 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.39.rc8.git0
Kyle McMartin 42dee1
- Linux 2.6.36-rc8.
Kyle McMartin 42dee1
Kyle McMartin ae123a
* Thu Oct 14 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.38.rc7.git5
Kyle McMartin d00224
- Linux 2.6.36-rc7-git5
Kyle McMartin d00224
- Disable runtime PM until it can be poked at.
Kyle McMartin d00224
Kyle McMartin 20eeae
* Tue Oct 12 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.36.rc7.git3
Kyle McMartin 20eeae
- Linux 2.6.36-rc7-git3
Kyle McMartin 20eeae
- Drop fix-oldnoconfig-to-dtrt.patch, nonintconfig patches are upstream!
Kyle McMartin 20eeae
Matthew Garrett 037ab2
* Mon Oct 11 2010 Matthew Garrett <mjg@redhat.com> 2.6.36-0.35.rc7.git1
Matthew Garrett 037ab2
- linux-2.6-enable-more-pci-autosuspend.patch: Enable more PCI autosuspend
Matthew Garrett 037ab2
Kyle McMartin 72c4be
* Wed Oct 06 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.35.rc7.git0
Kyle McMartin 72c4be
- Linux 2.6.36-rc7 upstream.
Kyle McMartin 72c4be
Dave Jones dd6df4
* Wed Oct 06 2010 Dave Jones <davej@redhat.com>
Dave Jones dd6df4
- Another day, another rcu_dereference warning. (#640673)
Dave Jones dd6df4
Kyle McMartin c71fd9
* Tue Oct 05 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.34.rc6.git3
Kyle McMartin 8b178f
- Linux 2.6.36-rc6-git3
Kyle McMartin 8b178f
- Drop intel_ips patches merged upstream.
Kyle McMartin 8b178f
Kyle McMartin 1b522f
* Sun Oct 03 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.32.rc6.git2
Kyle McMartin 1b522f
- Enable printk.time by default for more useful logs.
Kyle McMartin 1b522f
Kyle McMartin e894c7
* Sat Oct 02 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.31.rc6.git2
Kyle McMartin e894c7
- Linux 2.6.36-rc6-git2
Kyle McMartin e894c7
Dave Jones e67d82
* Thu Sep 30 2010 Dave Jones <davej@redhat.com>
Dave Jones e67d82
- silence another rcu_reference warning
Dave Jones e67d82
Kyle McMartin a1ae90
* Thu Sep 30 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.30.rc6
Kyle McMartin a1ae90
- Collection of patches to make intel_ips work properly.
Kyle McMartin a1ae90
Dave Jones 503653
* Wed Sep 29 2010 Dave Jones <davej@redhat.com>
Dave Jones f73734
- Add back an old hack to make an SDV e1000e variant work.
Dave Jones f73734
Dave Jones f73734
* Wed Sep 29 2010 Dave Jones <davej@redhat.com>
Dave Jones 503653
- Enable IB700 watchdog (used by qemu/kvm). (#637152)
Dave Jones 503653
Kyle McMartin 3aa5eb
* Tue Sep 28 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.28.rc6
Kyle McMartin 3aa5eb
- Linux 2.6.36-rc6
Kyle McMartin 3aa5eb
Chuck Ebbert 900d3a
* Fri Sep 24 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.36-0.27.rc5.git6
Chuck Ebbert 900d3a
- Linux 2.6.36-rc5-git6
Chuck Ebbert 900d3a
Kyle McMartin 2e2bb0
* Thu Sep 23 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 2e2bb0
- Bump x86 NR_CPUS to 64. (Still 512/256 on x86_64.)
Kyle McMartin 2e2bb0
Chuck Ebbert 9e5584
* Thu Sep 23 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.36-0.26.rc5.git4
Chuck Ebbert 9e5584
- Linux 2.6.36-rc5-git4
Chuck Ebbert 9e5584
- Drop merged patches:
Chuck Ebbert 9e5584
  fix-icebp-breakpoints.patch
Chuck Ebbert 9e5584
  linux-2.6.35.4-virtio_console-fix-poll.patch
Chuck Ebbert 121bfe
- Add patches to fix problems with PCI _CRS
Chuck Ebbert 9e5584
Kyle McMartin 6406b9
* Thu Sep 23 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.25.rc5
Kyle McMartin 9e0d2f
- Add s390 vdso AFTER_LINK to Roland's linux-2.6-makefile-after_link.patch
Kyle McMartin 9e0d2f
Kyle McMartin 9e0d2f
* Thu Sep 23 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 6406b9
- Snipe ACPI patch from mjg59 to fix battery levels on some laptops.
Kyle McMartin 6406b9
Kyle McMartin 5c8b9d
* Tue Sep 21 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 5c8b9d
- Add new btusb ids for MacBookPro from wwoods@.
Kyle McMartin 5c8b9d
Chuck Ebbert b5482f
* Mon Sep 20 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.24.rc5
Chuck Ebbert b5482f
- Linux 2.6.36-rc5
Chuck Ebbert b5482f
Chuck Ebbert 80b650
* Sun Sep 19 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.23.rc4.git4
Chuck Ebbert 80b650
- Linux 2.6.36-rc4-git4
Chuck Ebbert 80b650
- Drop alsa-fix-substream-proc-status-read.patch, now merged.
Chuck Ebbert 80b650
Matthew Garrett 2b89a0
* Fri Sep 17 2010 Matthew Garrett <mjg@redhat.com>
Matthew Garrett 2b89a0
- linux-2.6-bluetooth-autosuspend.patch
Matthew Garrett 2b89a0
  linux-2.6-uvc-autosuspend.patch
Matthew Garrett 2b89a0
  linux-2.6-qcserial-autosuspend.patch
Matthew Garrett 2b89a0
  linux-2.6-usb-pci-autosuspend.patch - Get some more devices into USB
Matthew Garrett 2b89a0
  autosuspend by default, and then put unused USB controllers to sleep
Matthew Garrett 2b89a0
606af2
* Thu Sep 16 2010 Hans de Goede <hdegoede@redhat.com>
606af2
- Small fix to virtio_console poll fix from upstream review
606af2
e34bb0
* Wed Sep 15 2010 Hans de Goede <hdegoede@redhat.com>
e34bb0
- virtio_console: Fix poll/select blocking even though there is data to read
e34bb0
Chuck Ebbert 6d1d3d
* Wed Sep 15 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.22.rc4.git2
Chuck Ebbert 6d1d3d
- Linux 2.6.36-rc4-git2
Chuck Ebbert 6d1d3d
- Fix up add-appleir-usb-driver.patch after HID core changes.
Chuck Ebbert 6d1d3d
Chuck Ebbert dd2e67
* Mon Sep 13 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.21.rc4.git1
Chuck Ebbert dd2e67
- Linux 2.6.36-rc4-git1
Chuck Ebbert 1d13b0
- Add preliminary support for Wacom Bamboo pen and touch devices.
Chuck Ebbert e0bf23
- Require python-devel and perl(ExtUtils::Embed) when building perf package (#632942)
Chuck Ebbert db42d7
Chuck Ebbert 2c454f
* Sat Sep 11 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.20.rc3.git4
Chuck Ebbert 2c454f
- Linux 2.6.36-rc3-git4
Chuck Ebbert 2c454f
- Drop revert-drm-i915-enable-rc6-on-ironlake.patch, now merged
Chuck Ebbert 2c454f
Bastien Nocera 78100d
* Fri Sep 10 2010 Bastien Nocera <bnocera@redhat.com> - 2.6.36-0.19.rc3.git1
Bastien Nocera 78100d
- Update AppleIR patch to work, and support the enter key on
Bastien Nocera 78100d
  newer remotes
Bastien Nocera 78100d
Kyle McMartin 128366
* Wed Sep 08 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin aa63cb
- Enable GPIO_SYSFS. (#631958)
Kyle McMartin aa63cb
Kyle McMartin aa63cb
* Wed Sep 08 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 128366
- Make pci=use_crs a compile-time config option we can switch the default
Kyle McMartin 128366
  value of easily.
Kyle McMartin 128366
Kyle McMartin a95145
* Wed Sep 08 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.18.rc3.git1
Kyle McMartin a95145
- 2.6.36-rc3-git1
Kyle McMartin a95145
- Set CONFIG_CRYPTO_MANAGER_DISABLE_TESTS for nodebug, and unset for debug.
Kyle McMartin a95145
  Which seems like the sensible thing to do given the Kconfig default is y.
Kyle McMartin a95145
Dave Jones 7a8f97
* Tue Sep 07 2010 Dave Jones <davej@redhat.com>
Dave Jones 7a8f97
- Disable hung task checker, it only ever causes false positives. (#630777)
Dave Jones 7a8f97
Kyle McMartin 5d4ac2
* Tue Sep 07 2010 Kyle McMartin <kyle@redhat.com> 2.6.36-0.17.rc3.git0
Kyle McMartin 5d4ac2
- Revert ce171780 which breaks my graphics on resume.
Kyle McMartin 5d4ac2
  (drm/i915: Enable RC6 on Ironlake.)
Kyle McMartin 5d4ac2
Kyle McMartin 0ca562
* Fri Sep 03 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 0ca562
- Restore AppleIR USB driver which got lost between F-13 and now.
Kyle McMartin 0ca562
Dave Jones 60b5ba
* Fri Sep 03 2010 Dave Jones <davej@redhat.com> 2.6.36-0.16.rc3.git0
Dave Jones fff25a
- exec-randomization: brk away from exec rand area (Kees Cook)
Dave Jones fff25a
Dave Jones fff25a
* Fri Sep 03 2010 Dave Jones <davej@redhat.com>
Dave Jones 55f50f
- Remove the execshield boot parameter.
Dave Jones 55f50f
  Based on a patch from Kees Cook
Dave Jones 55f50f
Chuck Ebbert 3285fc
* Thu Sep 02 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.15.rc3.git0
Chuck Ebbert 3285fc
- Add patch from ALSA mailing list to try to fix bug #628404
Chuck Ebbert e9ce60
- tpm-fix-stall-on-boot.patch: attempt to fix stalls during boot (#530393)
Chuck Ebbert 3285fc
Kyle McMartin 3de7ad
* Wed Sep 01 2010 Kyle McMartin <kyle@redhat.com> - 2.6.36-0.14.rc3.git0
Kyle McMartin 3de7ad
- Fix icebp breakpoints, patch from Frederic Weisbecker.
Kyle McMartin 3de7ad
  (https://bugzilla.kernel.org/show_bug.cgi?id=16315#c26)
Kyle McMartin 3de7ad
Kyle McMartin 07d332
* Wed Sep 01 2010 Kyle McMartin <kyle@redhat.com> - 2.6.36-0.13.rc3.git0
Kyle McMartin 07d332
- Swap back to roland's auto-updated utrace patches.
Kyle McMartin 07d332
Kyle McMartin c07ce5
* Mon Aug 30 2010 Kyle McMartin <kyle@redhat.com> - 2.6.36-0.12.rc3.git0
Kyle McMartin c07ce5
- Linux 2.6.36-rc3
Kyle McMartin c07ce5
Chuck Ebbert fdd244
* Sun Aug 29 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.11.rc2.git5
Chuck Ebbert fdd244
- Linux 2.6.36-rc2-git5
Chuck Ebbert fdd244
Chuck Ebbert fed0b2
* Wed Aug 25 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.10.rc2.git4
Chuck Ebbert fed0b2
- Linux 2.6.36-rc2-git4
Chuck Ebbert fed0b2
Chuck Ebbert 46b966
* Tue Aug 24 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.9.rc2.git3
Chuck Ebbert 46b966
- Linux 2.6.36-rc2-git3
Chuck Ebbert 46b966
Roland McGrath edee7c
* Mon Aug 23 2010 Roland McGrath <roland@redhat.com> - 2.6.36-0.8.rc2.git0
Roland McGrath edee7c
- utrace update
Roland McGrath edee7c
Chuck Ebbert 5ffd5e
* Sun Aug 22 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.7.rc2.git0
Chuck Ebbert 5ffd5e
- Linux 2.6.36-rc2
Chuck Ebbert 5ffd5e
Chuck Ebbert f7c7ff
* Sun Aug 22 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.7.rc1.git4
Chuck Ebbert f7c7ff
- Linux 2.6.36-rc1-git4
Chuck Ebbert f7c7ff
- Fix context in linux-2.6-i386-nx-emulation.patch
Chuck Ebbert f7c7ff
Chuck Ebbert f790f6
* Sat Aug 21 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.6.rc1.git3
Chuck Ebbert f790f6
- Drop utrace patch that causes hang on boot.
Chuck Ebbert f790f6
Chuck Ebbert 4b4acd
* Fri Aug 20 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.5.rc1.git3
Chuck Ebbert 4b4acd
- Linux 2.6.36-rc1-git3
Chuck Ebbert 4b4acd
- Drop x86-cpu-fix-regression-in-amd-errata-checking-code.patch, now merged.
Chuck Ebbert 4b4acd
Kyle McMartin a62b0a
* Thu Aug 19 2010 Kyle McMartin <kmcmartin@redhat.com> - 2.6.36-0.4.rc1.git1
Kyle McMartin a62b0a
- Run oldnoconfig on the configs during make prep.
Kyle McMartin a62b0a
- Make the fix oldnoconfig patch a one liner.
Kyle McMartin a62b0a
Chuck Ebbert 9b003c
* Wed Aug 18 2010 Chuck Ebbert <cebbert@redhat.com> - 2.6.36-0.3.rc1.git1
Chuck Ebbert 9b003c
- Fix hangs on boot with some AMD processors
Chuck Ebbert 9b003c
  (x86-cpu-fix-regression-in-amd-errata-checking-code.patch)
Chuck Ebbert 9b003c
- Drop unused ssb_check_for_sprom.patch
Chuck Ebbert 9b003c
Dave Jones 95f99f
* Wed Aug 18 2010 Dave Jones <davej@redhat.com>
Dave Jones 95f99f
- systemd is dependant upon autofs, so build it in instead of modular.
Dave Jones 95f99f
Chuck Ebbert c3126d
* Wed Aug 18 2010 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert c3126d
- Linux 2.6.36-rc1-git1
Chuck Ebbert c3126d
Kyle McMartin fba85b
* Wed Aug 18 2010 Kyle McMartin <kmcmartin@redhat.com> - 2.6.36-0.2.rc1.git0
Kyle McMartin fba85b
- Link perf against libnewt for TUI support.
Kyle McMartin fba85b
Kyle McMartin 201b16
* Tue Aug 17 2010 Kyle McMartin <kyle@redhat.com> - 2.6.36-0.1.rc1.git0
Kyle McMartin 201b16
- Fix 'oldnoconfig' to do what nonint_loose_oldconfig did.
Kyle McMartin 201b16
Kyle McMartin fa0660
* Tue Aug 17 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 2386f6
- explicitly set KERNEL_GZIP
Kyle McMartin 2386f6
Kyle McMartin 2386f6
* Tue Aug 17 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin da80d7
- Linux 2.6.36-rc1
Kyle McMartin da80d7
Kyle McMartin da80d7
* Tue Aug 17 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin fa0660
- Prevent scripts/setlocalversion from mucking with our version
Kyle McMartin fa0660
  numbers.
Kyle McMartin fa0660
Kyle McMartin 17f0d7
* Wed Aug 04 2010 Kyle McMartin <kyle@redhat.com>
Dave Jones 048093
- Disable %%released_kernel.
Kyle McMartin a10fa9
- This is properly 2.6.36-0.git1, unlike the last commit. Had to make
Kyle McMartin a10fa9
  a mistake sometime, I'm glad it was early.
Kyle McMartin a10fa9
Kyle McMartin a10fa9
* Wed Aug 04 2010 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 17f0d7
- Linux 2.6.35-git1, beginning of rawhide for 2.6.36...
Kyle McMartin 17f0d7
Dave Jones 89d0d8
* Sun Aug 01 2010 Dave Jones <davej@redhat.com>
Dave Jones 67e704
- Linux 2.6.35
Dave Jones 67e704
Dave Jones 67e704
* Sun Aug 01 2010 Dave Jones <davej@redhat.com>
Dave Jones 89d0d8
- 2.6.35-rc6-git6
Dave Jones 89d0d8
Jarod Wilson 89a6e0
* Fri Jul 30 2010 Jarod Wilson <jarod@redhat.com>
Jarod Wilson 89a6e0
- lirc staging update
Jarod Wilson 89a6e0
- update kworld patch to one committed upstream
Jarod Wilson 89a6e0
- can't believe how much nicer dist-git is than dist-cvs
Jarod Wilson 6d7bd0
- patch memory leaks in mceusb and imon drivers
Jarod Wilson 89a6e0
Dave Jones e4578e
* Fri Jul 30 2010 Dave Jones <davej@redhat.com>
Dave Jones e4578e
- Enable PPS (#619392)
Dave Jones e4578e
Dave Jones b0b125
* Thu Jul 29 2010 Dave Jones <davej@redhat.com>
Dave Jones b0b125
- 2.6.35-rc6-git5
Dave Jones b0b125
Jesse Keating 7a3296
* Mon Jul 27 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- Patch from linville to only use the country code to set band limits.
Jesse Keating 7a3296
  (Fixes Apple Airport base stations from limiting you from associating
Jesse Keating 7a3296
   with other channels.)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul 23 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.35-0.56.rc6.git1
Jesse Keating 7a3296
- Linux 2.6.35-rc6-git1
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 22 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc6
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 22 2010 Ben Skeggsb <bskeggs@redhat.com>
Jesse Keating 7a3296
- drm-nouveau-updates: bring back, most patches *weren't* upstream yet,
Jesse Keating 7a3296
  they're queued for 2.6.36.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul 21 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.35-0.53.rc5.git7
Jesse Keating 7a3296
- Linux 2.6.35-rc5-git7
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul 21 2010 Dave Jones <davej@redhat.com>
Dave Jones 048093
- Remove the %%verify (no mtime) on kernel-devel's files.
Jesse Keating 7a3296
  If they got modified, they should fail rpm verify.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul 21 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Linux 2.6.35-rc5-git6
Jesse Keating 7a3296
- Removed drm-nouveau-updates.patch (upstreamed)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jul 19 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- Linux 2.6.35-rc5-git4
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jul 19 2010 Jarod Wilson <jarod@redhat.com> 2.6.35-0.49.rc5.git2
Jesse Keating 7a3296
- Fix from Kyle for input_set_key oops introduced by ir-core patches (#615707)
Jesse Keating 7a3296
- Update lirc-staging patches to match what's about to be submitted upstream,
Jesse Keating 7a3296
  complete with updated copy_from_user overflow check fixages
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jul 18 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.35-0.47.rc5.git2
Jesse Keating 7a3296
- Linux 2.6.35-rc5-git2
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jul 18 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- lirc-staging-2.6.36-fixes.patch: Fix up buffer size checking in
Jesse Keating 7a3296
  lirc code, found by CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jul 18 2010 Hans de Goede <hdegoede@redhat.com>
Jesse Keating 7a3296
- Add support for dynamic menu controls to the uvcvideo driver (#576023)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jul 18 2010 Jarod Wilson <jarod@redhat.com> 2.6.35-0.44.rc5.git1
Jesse Keating 7a3296
- Oops, minor oversight when moving lirc bits into staging resulted
Jesse Keating 7a3296
  in the modules themselves not getting built. Fix that.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul 16 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Limit some alsa spew that the nuforce udac makes happen a lot.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul 16 2010 Jarod Wilson <jarod@redhat.com> 2.6.35-0.41.rc5.git1
Jesse Keating 7a3296
- Pull in ir-core update from v4l/dvb staging for 2.6.36, which includes
Jesse Keating 7a3296
  new in-kernel lirc_dev and ir-core mceusb driver
Jesse Keating 7a3296
- Move not-yet-merged/ported lirc bits to drivers/staging/, patch to be
Jesse Keating 7a3296
  sent upstream for 2.6.36 staging tree RSN
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 15 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.35-0.40.rc5.git1
Jesse Keating 7a3296
- Replace pci-acpi-disable-aspm-if-no-osc.patch with
Jesse Keating 7a3296
  updated version from F-13
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 15 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- Linux 2.6.35-rc5-git1
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jul 13 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- Linux 2.6.35-rc5
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jul 13 2010 Ben Skeggs <bskeggs@redhat.com>
Jesse Keating 7a3296
- nouveau: miscellanous fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jul 12 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc4-git5
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jul 12 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Remove a bunch of x86 options from config files that get set
Jesse Keating 7a3296
  automatically, and can't be overridden.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul  9 2010 Roland McGrath <roland@redhat.com>
Jesse Keating 7a3296
- Split execshield into two patches.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 08 2010 Chuck Ebbert <cebbert@redhat.com> 2.6.35-0.31.rc4.git4
Jesse Keating 7a3296
- Linux 2.6.35-rc4-git4
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul  8 2010 Roland McGrath <roland@redhat.com>
Jesse Keating 7a3296
- Remove exec-shield=2 setting, some other cruft from execshield.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul  7 2010 Roland McGrath <roland@redhat.com> 2.6.35-0.29.rc4.git0.fc14
Jesse Keating 7a3296
- Revamp perf packaging.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul 07 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- pci-acpi-disable-aspm-if-no-osc.patch, pci-aspm-dont-enable-too-early.patch
Jesse Keating 7a3296
  PCI layer fixes for problems with hardware that doesn't support ASPM.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jul 07 2010 Ben Skeggs <bskeggs@redhat.com>
Jesse Keating 7a3296
- nouveau: bring in nouveau upstream
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jul 05 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc4
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul 02 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc3-git7
Jesse Keating 7a3296
  dropped: i915-fix-crt-hotplug-regression.patch (upstream)
Jesse Keating 7a3296
  dropped: drm-i915-fix-edp-panels.patch (upstream)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jul 02 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc3-git6
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 01 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Add a patch to debug an infinite loop warning from acpi.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 01 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc3-git5
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jul 01 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- Copy fix for BZ#220892 from F-13.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 30 2010 Kyle McMartin <kyle@redhat.com> 2.6.35-0.19.rc3.git4
Jesse Keating 7a3296
- 2.6.35-rc3-git4
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 29 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- Disable Intel Moorestown support -- it breaks PC keyboard controllers.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 29 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Building external modules requires perl. (#608525)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 29 2010 Kyle McMartin <kyle@redhat.com> 2.6.35-0.15.rc3.git3
Jesse Keating 7a3296
- 2.6.35-rc3-git3
Jesse Keating 7a3296
- i915-fix-crt-hotplug-regression.patch: attempt to solve the gm45 hotplug
Jesse Keating 7a3296
  irq storm.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 28 2010 Chuck Ebbert <cebbert@redhat.com>
Jesse Keating 7a3296
- ppc64: enable active memory sharing and DLPAR memory remove (#607175)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 28 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc3-git2
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 28 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- 2.6.35-rc3-git1
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 28 2010 Dave Airlie <airlied@redhat.com>
Jesse Keating 7a3296
- drm-i915-fix-edp-panels.patch: update to newer version
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jun 25 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- drm-i915-fix-edp-panels.patch: copy from rawhide.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 23 2010 Eric Sandeen <sandeen@redhat.com>
Jesse Keating 7a3296
- Fix ext4 freeze deadlock (#607245)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 23 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- Override generic's CONFIG_HZ_1000 on s390.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 22 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Fix localhost networking.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 22 2010 Kyle McMartin <kyle@redhat.com> 2.6.35-0.1.rc3.git0
Jesse Keating 7a3296
- Putting the raw back into rawhide... Yeehaw.
Jesse Keating 7a3296
- 2.6.35-rc3
Jesse Keating 7a3296
- Drop a tonne of patches that were merged upstream, or were backports.
Jesse Keating 7a3296
- Rebase execshield, utrace.
Jesse Keating 7a3296
- Fix up a bunch of rejects, build failures.
Jesse Keating 7a3296
- Fix up lirc to build with strict copy_from_user checking.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 21 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Disable workaround for obscure SMP pentium pro errata.
Jesse Keating 7a3296
  I miss the 1990s too, but it's time to move on.
Jesse Keating 7a3296
  If anyone actually needs this it would be better done using
Jesse Keating 7a3296
  the apply_alternatives infrastructure.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 21 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-45
Jesse Keating 7a3296
- drm-revert-drm-fbdev-rework-output-polling-to-be-back-in-core.patch
Jesse Keating 7a3296
  Revert eb1f8e4f, bisected by Nicolas Kaiser. Thanks! (rhbz#599190)
Jesse Keating 7a3296
  (If this works, will try to root-cause.)
Jesse Keating 7a3296
- rebase previous patch on top of above reversion
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 21 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-44
Jesse Keating 7a3296
- revert-drm-kms-toggle-poll-around-switcheroo.patch (rhbz#599190)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jun 17 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-43
Jesse Keating 7a3296
- Suck in patch from Dave Miller in 2.6.35 to add async hash testing,
Jesse Keating 7a3296
  hopefully fixes error from previous commit. (But making it modular
Jesse Keating 7a3296
  is still a good idea.)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jun 17 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- make ghash-clmulni modular to get rid of early boot noise (rhbz#586954)
Jesse Keating 7a3296
  (not a /fix/ but it should at least quiet boot down a bit if you have
Jesse Keating 7a3296
   the cpu support)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 16 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-40
Jesse Keating 7a3296
- Snag some more DRM commits into drm-next.patch that I missed the first
Jesse Keating 7a3296
  time.
Jesse Keating 7a3296
- Fix up radeon_pm toggle to work with the upstream code.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 15 2010 Prarit Bhargava <prarit@redhat.com>
Jesse Keating 7a3296
- Turn off CONFIG_I2O on x86.
Jesse Keating 7a3296
  It is broken on 64-bit address spaces (i686/PAE, x86_64), and frankly, I'm
Jesse Keating 7a3296
  having trouble finding anyone who actually uses it.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 15 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-38
Dave Jones 048093
- Fix build by nuking superfluous "%%{expand" which was missing a
Jesse Keating 7a3296
  trailing '}'. You may now reward me with an array of alcoholic
Jesse Keating 7a3296
  beverages, I so richly deserve for spending roughly a full
Jesse Keating 7a3296
  day staring at the diff of the spec.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon Jun 14 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-37
Jesse Keating 7a3296
- btrfs ACL fixes from CVE-2010-2071.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jun 13 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-36
Jesse Keating 7a3296
- remunge and reapply hdpvr-ir-enable
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jun 13 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-35
Jesse Keating 7a3296
- mac80211/iwlwifi fix connections to some APs (rhbz#558002)
Jesse Keating 7a3296
  patches from sgruszka@.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jun 13 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-34
Jesse Keating 7a3296
- Provide a knob to enable radeon_pm to allow users to test
Jesse Keating 7a3296
  that functionality. Add radeon.pm=1 to your kernel cmdline
Jesse Keating 7a3296
  in order to enable it. (It still defaults to off though.)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun Jun 13 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-33
Jesse Keating 7a3296
- Update drm-next to include fixes since 2.6.35-rc1.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri Jun 11 2010 Justin M. Forbes <jforbes@redhat.com>
Jesse Keating 7a3296
- Disable xsave for so that kernel will boot on ancient EC2 hosts.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 09 2010 John W. Linville <linville@redhat.com>
Jesse Keating 7a3296
- Disable rt20xx and rt35xx chipset support in rt2800 drivers (#570869)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 09 2010 David Woodhouse <David.Woodhouse@intel.com>
Jesse Keating 7a3296
- Include PHY modules in modules.networking (#602155)
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 08 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Remove useless -kdump kernel support
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 08 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Remove ia64 ata quirk which had no explanation, and still
Jesse Keating 7a3296
  isn't upstream. No-one cares.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 08 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Drop linux-2.6-vio-modalias.patch
Jesse Keating 7a3296
  Two years should have been long enough to get upstream if this is important.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 08 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Remove crufty Xen remnants from specfile.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 08 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Remove mkinitrd ifdefs. Dracut or GTFO.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu Jun 03 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- Build kernel headers on s390.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 02 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-20
Jesse Keating 7a3296
- Disable doc_build_fail because xmlto et al. are crud.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 02 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-19
Jesse Keating 7a3296
- Enable -debug flavour builds, until we branch for 2.6.35-rcX.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed Jun 02 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- revert writeback fixes for now, there appear to be dragons
Jesse Keating 7a3296
  lurking there still.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 01 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-18
Jesse Keating 7a3296
- fix mismerge in i915_gem.c, drm_gem_object_alloc is now
Jesse Keating 7a3296
  i915_gem_alloc_object.
Jesse Keating 7a3296
- add a hunk to rcu_read{,un}lock in sched_fair too.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 01 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-17
Jesse Keating 7a3296
- backport writeback fixes from Jens until stable@ picks them up.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 01 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-16
Jesse Keating 7a3296
- quiet-prove_RCU-in-cgroups.patch: shut RCU lockdep up
Jesse Keating 7a3296
  as in 8b08ca52f5942c21564bbb90ccfb61053f2c26a1.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Tue Jun 01 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- disable radeon_pm for now.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon May 31 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-14
Jesse Keating 7a3296
- re-add drm-next.patch, should be in sync with 2.6.35 and what
Jesse Keating 7a3296
  was backported to Fedora 13.
Jesse Keating 7a3296
- drop patches merged in drm-next to 2.6.35
Jesse Keating 7a3296
- rebase relevant iwl fixes on top of 2.6.34 from the ones committed
Jesse Keating 7a3296
  to F-13 by linville.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed May 26 2010 Adam Jackson <ajax@redhat.com>
Jesse Keating 7a3296
- config-generic: Stop building i830.ko
Jesse Keating 7a3296
Jesse Keating 7a3296
* Wed May 26 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- iwlwifi-recover_from_tx_stall.patch: copy from F-13.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri May 21 2010 Roland McGrath <roland@redhat.com> 2.6.34-11
Jesse Keating 7a3296
- utrace update
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri May 21 2010 Dave Jones <davej@redhat.com>
Jesse Keating 7a3296
- Update the SELinux mprotect patch with a newer version from Stephen
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri May 21 2010 Roland McGrath <roland@redhat.com>
Jesse Keating 7a3296
- perf requires libdw now, not libdwarf
Jesse Keating 7a3296
Jesse Keating 7a3296
* Fri May 21 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-6
Jesse Keating 7a3296
- Fixups for virt_console from Amit Shah, thanks!
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu May 20 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-5
Jesse Keating 7a3296
- disable intel sdvo fixes until dependent code is backported.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Thu May 20 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-4
Jesse Keating 7a3296
- resync a lot of stuff with F-13...
Jesse Keating 7a3296
- linux-2.6-acpi-video-export-edid.patch: rebase & copy from F-13
Jesse Keating 7a3296
- acpi-ec-add-delay-before-write.patch: copy from F-13
Jesse Keating 7a3296
- ... and a whole lot more that I can't be bothered typing.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Mon May 17 2010 Matthew Garrett <mjg@redhat.com>
Jesse Keating 7a3296
- thinkpad-acpi-fix-backlight.patch: Fix backlight support on some recent
Jesse Keating 7a3296
   Thinkpads
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun May 16 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-2
Jesse Keating 7a3296
- Disable strict copy_from_user checking until lirc is fixed.
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun May 16 2010 Kyle McMartin <kyle@redhat.com> 2.6.34-1
Jesse Keating 7a3296
- Linux 2.6.34
Jesse Keating 7a3296
Jesse Keating 7a3296
* Sun May 16 2010 Kyle McMartin <kyle@redhat.com>
Jesse Keating 7a3296
- Trimmed changelog, see CVS.
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# The following Emacs magic makes C-c C-e use UTC dates.
Jesse Keating 7a3296
# Local Variables:
Jesse Keating 7a3296
# rpm-change-log-uses-utc: t
Jesse Keating 7a3296
# End:
Jesse Keating 7a3296
###