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.
Dave Jones 3cc643
%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
#
Jon Masters 13b319
%define buildid .jcm2
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
Jesse Keating 7a3296
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a3296
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a3296
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a3296
%if 0%{?orig_buildid:1}
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global srpm_buildid %{buildid}
Jesse Keating 7a3296
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define buildid %{orig_buildid}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Roland McGrath 377da6
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a3296
#
Roland McGrath 377da6
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6
#
Chuck Ebbert 05e763
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126d
#
Chuck Ebbert 05e763
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763
#
Dave Jones 52f645
%global baserelease 5
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.
Dave Jones 3cc643
%define base_sublevel 3
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?
Josh Boyer e8409b
%define stable_update 0
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}
Josh Boyer 740de5
%define stablerev %{stable_update}
Jesse Keating 7a3296
%define stable_base %{stable_update}
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a3296
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Kyle McMartin e8ba2b
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a3296
Jesse Keating 7a3296
## The not-released-kernel case ##
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a2041
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a3296
# The rc snapshot level
Dave Jones 3cc643
%define rcrev 0
Jesse Keating 7a3296
# The git snapshot level
Dave Jones 3cc643
%define gitrev 0
Jesse Keating 7a3296
# Set rpm version accordingly
Kyle McMartin e8ba2b
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a3296
Jesse Keating 7a3296
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a3296
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a3296
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a3296
# by later arch-specific checks.
Jesse Keating 7a3296
Jesse Keating 7a3296
# The following build options are enabled by default.
Jesse Keating 7a3296
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a3296
# to 0 in here to disable them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# standard kernel
Jesse Keating 7a3296
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a3296
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a3296
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Jarod Wilson 5b0327
# kernel-PAE (only valid for i686)
Jarod Wilson 5b0327
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a3296
# kernel-debug
Jesse Keating 7a3296
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a3296
# kernel-doc
Jesse Keating 7a3296
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a3296
# kernel-headers
Jesse Keating 7a3296
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 42d4c3
# perf
Kyle McMartin 42d4c3
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad
# tools
Dave Jones 1d18ad
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a3296
# kernel-debuginfo
Kyle McMartin 761d1c
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a3296
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a3296
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a3296
# Want to build a the vsdo directories installed
Jesse Keating 7a3296
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
986a9f
# ARM OMAP (Beagle/Panda Board)
986a9f
%define with_omap      %{?_without_omap:      0} %{?!_without_omap:      1}
986a9f
# kernel-tegra (only valid for arm)
986a9f
%define with_tegra       %{?_without_tegra:       0} %{?!_without_tegra:       1}
534352
# kernel-kirkwood (only valid for arm)
534352
%define with_kirkwood       %{?_without_kirkwood:       0} %{?!_without_kirkwood:       1}
534352
# kernel-imx (only valid for arm)
534352
%define with_imx       %{?_without_imx:       0} %{?!_without_imx:       1}
534352
# kernel-highbank (only valid for arm)
534352
%define with_highbank       %{?_without_highbank:       0} %{?!_without_highbank:       1}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Only build the base kernel (--with baseonly):
Jesse Keating 7a3296
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a3296
# Only build the smp kernel (--with smponly):
Jesse Keating 7a3296
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b0327
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b0327
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a3296
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a3296
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# should we do C=1 builds with sparse
Dave Jones 561b24
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee03
#
Chuck Ebbert 11ee03
# build a release kernel on rawhide
Chuck Ebbert 11ee03
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a3296
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a3296
# See also 'make debug' and 'make release'.
Dave Jones 0901f9
%define debugbuildsenabled 1
Jesse Keating 7a3296
Jesse Keating 7a3296
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a3296
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a3296
Chuck Ebbert c6b36e
# Build the kernel-doc package, but don't fail the build if it botches.
Chuck Ebbert c6b36e
# Here "true" means "continue" and "false" means "fail the build".
Chuck Ebbert c6b36e
%if 0%{?released_kernel}
Chuck Ebbert c6b36e
%define doc_build_fail false
Chuck Ebbert c6b36e
%else
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Dave Jones 0901f9
%define rawhide_skip_docs 0
Chuck Ebbert c6b36e
%if 0%{?rawhide_skip_docs}
Chuck Ebbert c6b36e
%define with_doc 0
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
%define stable_rctag .rc%{stable_rc}
Chuck Ebbert e6236b
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
Chuck Ebbert e6236b
%else
Chuck Ebbert e6236b
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define rctag .rc%rcrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define rctag .rc0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define gittag .git%gitrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define gittag .git0
Jesse Keating 7a3296
%endif
Kyle McMartin 66ce81
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# The kernel tarball/base version
Kyle McMartin e8ba2b
%define kversion 3.%{base_sublevel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%define make_target bzImage
Jesse Keating 7a3296
Jesse Keating 7a3296
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a3296
%define hdrarch %_target_cpu
Jesse Keating 7a3296
%define asmarch %_target_cpu
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{!?nopatches:1}
Jesse Keating 7a3296
%define nopatches 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vanilla}
Jesse Keating 7a3296
%define nopatches 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define variant -vanilla
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define variant_fedora -fedora
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define using_upstream_branch 0
Jesse Keating 7a3296
%if 0%{?upstream_branch:1}
Jesse Keating 7a3296
%define stable_update 0
Jesse Keating 7a3296
%define using_upstream_branch 1
Jesse Keating 7a3296
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a3296
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{with_debuginfo}
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define debuginfodir /usr/lib/debug
Jesse Keating 7a3296
Jesse Keating 7a3296
# kernel-PAE is only built on i686.
Jarod Wilson 5b0327
%ifnarch i686
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
534352
# kernel-tegra, omap, imx and highbank are only built on armv7 hard and softfp
41dc1e
%ifnarch armv7hl armv7l
986a9f
%define with_tegra 0
986a9f
%define with_omap 0
534352
%define with_imx 0
e1d46a
%define with_highbank 0
c29844
%endif
e1d46a
534352
# kernel-kirkwood is only built for armv5
534352
%ifnarch armv5tel
534352
%define with_kirkwood 0
986a9f
%endif
986a9f
Jesse Keating 7a3296
# if requested, only build base kernel
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%define with_smp 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build smp kernel
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jarod Wilson 5b0327
%define with_debug 0
Jarod Wilson 5b0327
%endif
Jarod Wilson 5b0327
Jarod Wilson 5b0327
# if requested, only build pae kernel
Jarod Wilson 5b0327
%if %{with_paeonly}
Jarod Wilson 5b0327
%define with_up 0
Jarod Wilson 5b0327
%define with_smp 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build debug kernel
Jesse Keating 7a3296
%if %{with_dbgonly}
Jesse Keating 7a3296
%if %{debugbuildsenabled}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define all_x86 i386 i686
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vdso_install}
Jesse Keating 7a3296
# These arches install vdso/ directories.
Kyle McMartin 428cea
%define vdso_arches %{all_x86} x86_64 ppc ppc64 s390 s390x
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Overrides for generic default options
Jesse Keating 7a3296
Josh Boyer 59694f
# only ppc needs a separate smp kernel
Josh Boyer 59694f
%ifnarch ppc 
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a3296
%ifnarch i686 x86_64
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only package docs noarch
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%define with_doc 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't build noarch kernels or headers (duh)
Jesse Keating 7a3296
%ifarch noarch
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_headers 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# bootwrapper is only on ppc
Jesse Keating 7a3296
%ifnarch ppc ppc64
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 59694f
# sparse blows up on ppc64 and sparc64
Josh Boyer 59694f
%ifarch ppc64 ppc 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
Dave Jones 1d18ad
%define with_tools 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
bb5861
%define make_target vmlinux
bb5861
%define kernel_image vmlinux
Jesse Keating 7a3296
%define image_install_path boot
Dave Jones 1d18ad
%define with_tools 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 %{arm}
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a3296
%define image_install_path boot
Josh Boyer 8ffa0a
%define asmarch arm
Jesse Keating 7a3296
%define hdrarch arm
986a9f
%define make_target bzImage
986a9f
%define kernel_image arch/arm/boot/zImage
551d75
# we build a up kernel on base softfp/hardfp platforms. its used for qemu.
551d75
%ifnarch armv5tel armv7hl
986a9f
%define with_up 0
3e616b
%endif
43fa71
# we only build headers/perf/tools on the base arm arches
94b006
# just like we used to only build them on i386 for x86
94b006
%ifnarch armv5tel armv7hl
94b006
%define with_headers 0
43fa71
%define with_perf 0
43fa71
%define with_tools 0
94b006
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
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...
986a9f
%define nobuildarches i386 s390 sparc sparcv9
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %nobuildarches
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_debuginfo 0
Kyle McMartin 42d4c3
%define with_perf 0
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define with_pae_debug 0
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
%define with_pae_debug %{with_debug}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 8addb5
# Architectures we build tools/cpupower on
43fa71
%define cpupowerarchs %{ix86} x86_64 ppc ppc64 %{arm}
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Three sets of minimum package version requirements in the form of Conflicts:
Jesse Keating 7a3296
# to versions below the minimum
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# First the general kernel 2.6 required versions as per
Jesse Keating 7a3296
# Documentation/Changes
Jesse Keating 7a3296
#
Dave Jones f3fbdc
%define kernel_dot_org_conflicts  ppp < 2.4.3-3, isdn4k-utils < 3.2-32, nfs-utils < 1.2.5-7.fc17, e2fsprogs < 1.37-4, util-linux < 2.12, jfsutils < 1.1.7-2, reiserfs-utils < 3.6.19-2, xfsprogs < 2.6.13-4, procps < 3.2.5-6.3, oprofile < 0.9.1-2, device-mapper-libs < 1.02.63-2, mdadm < 3.2.1-5
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Then a series of requirements that are distribution specific, either
Jesse Keating 7a3296
# because we add patches for something, or the older versions have
Jesse Keating 7a3296
# problems with the newer kernel or lack certain things that make
Jesse Keating 7a3296
# integration in the distro harder than needed.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define package_conflicts initscripts < 7.23, udev < 063-6, iptables < 1.3.2-1, ipw2200-firmware < 2.4, iwl4965-firmware < 228.57.2, selinux-policy-targeted < 1.25.3-14, squashfs-tools < 4.0, wireless-tools < 29-3
Jesse Keating 7a3296
Jesse Keating 7a3296
# We moved the drm include files into kernel-headers, make sure there's
Jesse Keating 7a3296
# a recent enough libdrm-devel on the system that doesn't have those.
Jesse Keating 7a3296
%define kernel_headers_conflicts libdrm-devel < 2.4.0-0.15
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Dave Jones 166b79
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a3296
# scripts use them.
Jesse Keating 7a3296
#
John W. Linville aeaaac
%define kernel_prereq  fileutils, module-init-tools >= 3.16-4, initscripts >= 8.11.1-1, grubby >= 8.3-1
Jesse Keating 7a3296
%define initrd_prereq  dracut >= 001-7
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a3296
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a3296
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a3296
# macros defined above.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_reqprovconf \
Jesse Keating 7a3296
Provides: kernel = %{rpmversion}-%{pkg_release}\
Jesse Keating 7a3296
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-drm = 4.3.0\
Jesse Keating 7a3296
Provides: kernel-drm-nouveau = 16\
Jesse Keating 7a3296
Provides: kernel-modeset = 1\
Jesse Keating 7a3296
Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a3296
Requires(pre): %{initrd_prereq}\
Josh Boyer 39fd9c
Requires(pre): linux-firmware >= 20120206-0.1.git06c8f81\
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
Josh Boyer 59694f
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 %{sparc} s390 s390x %{arm}
Jesse Keating 7a3296
ExclusiveOS: Linux
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_reqprovconf
Dave Jones efc71a
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# List the packages used during the kernel build
Jesse Keating 7a3296
#
Jesse Keating 7a3296
BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar
Chuck Ebbert 7cfa68
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk
Jon Masters 2aa8b8
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
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed)
Kyle McMartin 42d4c3
%endif
Dave Jones 1d18ad
%if %{with_tools}
Kyle McMartin 42d4c3
BuildRequires: pciutils-devel gettext
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a3296
%if %{with_debuginfo}
Kyle McMartin 1bfd59
# Fancy new debuginfo generation introduced in Fedora 8/RHEL 6.
Mark Wielaard b81b45
# The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
Mark Wielaard b81b45
# reduces the number of relocations in kernel module .ko.debug files and was
Mark Wielaard b81b45
# introduced with rpm 4.9 and elfutils 0.153.
Mark Wielaard b81b45
BuildRequires: rpm-build >= 4.9.0-1, elfutils >= elfutils-0.153-1
Mark Wielaard b81b45
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 8959a0
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a3296
Jesse Keating 7a3296
Source15: merge.pl
Josh Boyer b8b278
Source16: mod-extra.list
Jesse Keating 7a3296
Chuck Ebbert c6b36e
Source19: Makefile.release
Jesse Keating 7a3296
Source20: Makefile.config
Jesse Keating 7a3296
Source21: config-debug
Jesse Keating 7a3296
Source22: config-nodebug
Jesse Keating 7a3296
Source23: config-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source30: config-x86-generic
Jesse Keating 7a3296
Source31: config-i686-PAE
Josh Boyer d71f18
Source32: config-x86-32-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source40: config-x86_64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source50: config-powerpc-generic
Jesse Keating 7a3296
Source51: config-powerpc32-generic
Jesse Keating 7a3296
Source52: config-powerpc32-smp
Jesse Keating 7a3296
Source53: config-powerpc64
Jesse Keating 7a3296
Jesse Keating 7a3296
Source70: config-s390x
Jesse Keating 7a3296
Jesse Keating 7a3296
Source90: config-sparc64-generic
Jesse Keating 7a3296
Josh Boyer 8ffa0a
Source100: config-arm-generic
Josh Boyer 8ffa0a
Source110: config-arm-omap-generic
986a9f
Source111: config-arm-tegra
534352
Source112: config-arm-kirkwood
534352
Source113: config-arm-imx
534352
Source114: config-arm-highbank
Jesse Keating 7a3296
Jarod Wilson 5b6529
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b6529
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b6529
Source1000: config-local
Jarod Wilson 5b6529
Josh Boyer 8addb5
# Sources for kernel-tools
Josh Boyer 8addb5
Source2000: cpupower.service
Josh Boyer 8addb5
Source2001: cpupower.config
Josh Boyer 8addb5
Jesse Keating 7a3296
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable release kernel
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%if 0%{?stable_base}
Josh Boyer fdb68d
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a3296
Patch00: %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Kyle McMartin 8b2fa9
%define    stable_patch_01  patch-3.%{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}
Josh Boyer 471066
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
Patch00: patch-3.%{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
# 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
Dave Jones 64f1bc
Patch100: taint-vbox.patch
Dave Jones c62acb
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
Patch383: linux-2.6-defaults-aspm.patch
Jesse Keating 7a3296
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
Patch394: linux-2.6-acpi-debug-infinite-loop.patch
Josh Boyer 5e97a2
Patch395: acpi-ensure-thermal-limits-match-cpu-freq.patch
Dave Jones a4b83e
Patch396: acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a3296
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
Josh Boyer dff085
Patch471: floppy-Remove-_hlt-related-functions.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch510: linux-2.6-silence-noise.patch
Josh Boyer e7cafd
Patch520: quite-apm.patch
Jesse Keating 7a3296
Patch530: linux-2.6-silence-fbcon-logo.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
0aaee5
Patch1556: linux-3.3-virtio-scsi.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# DRM
Josh Boyer 0e0a3a
#atch1700: drm-edid-try-harder-to-fix-up-broken-headers.patch
f935a1
Patch1800: drm-vgem.patch
Kyle McMartin d3e4af
Jesse Keating 7a3296
# nouveau + drm fixes
Jesse Keating 7a3296
# intel drm is all merged upstream
Jesse Keating 7a3296
Patch1824: drm-intel-next.patch
efa8ce
Patch1825: drm-i915-dp-stfu.patch
Kyle McMartin 5acda9
Jesse Keating 7a3296
Patch1900: linux-2.6-intel-iommu-igfx.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
Jesse Keating 7a3296
# fs fixes
Josh Boyer dae3cd
Patch4000: ext4-fix-resize-when-resizing-within-single-group.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Dave Jones bf89f3
Patch4101: linux-3.1-keys-remove-special-keyring.patch
Dave Jones bf89f3
Patch4102: linux-3.3-newidmapper-01.patch
Dave Jones bf89f3
Patch4103: linux-3.3-newidmapper-02.patch
Dave Jones bf89f3
Patch4104: linux-3.3-newidmapper-03.patch
Dave Jones bf89f3
Patch4105: NFSv4-Reduce-the-footprint-of-the-idmapper.patch
Dave Jones bf89f3
Patch4106: NFSv4-Further-reduce-the-footprint-of-the-idmapper.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# patches headed upstream
Jesse Keating 7a3296
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Kyle McMartin dbda5f
Patch12303: dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f
Josh Boyer bc1214
Patch13003: efi-dont-map-boot-services-on-32bit.patch
Josh Boyer bc1214
Josh Boyer 9163dd
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer 9163dd
Dave Jones ad44e0
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones ad44e0
Dave Jones 6797a3
Patch15000: bluetooth-use-after-free.patch
Dave Jones 6797a3
Dave Jones 3b5b9c
Patch19000: ips-noirq.patch
Dave Jones 3b5b9c
Dave Jones 5a6744
Patch20000: utrace.patch
Dave Jones 5a6744
986a9f
# Flattened devicetree support
986a9f
Patch21000: arm-omap-dt-compat.patch
986a9f
Patch21001: arm-smsc-support-reading-mac-address-from-device-tree.patch
3f5481
Patch21004: arm-tegra-nvec-kconfig.patch
Jon Masters 5e97d3
Patch21005: arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
Josh Boyer 220cb1
c29844
# highbank patches
c29844
# Highbank clock functions need to be EXPORT for module builds
c29844
Patch21010: highbank-export-clock-functions.patch
c29844
Josh Boyer 8aec61
Patch21070: ext4-Support-check-none-nocheck-mount-options.patch
Josh Boyer 34e654
Josh Boyer cf9048
Patch21092: udlfb-remove-sysfs-framebuffer-device-with-USB-disconnect.patch
Josh Boyer cf9048
Josh Boyer d2b017
Patch21093: rt2x00_fix_MCU_request_failures.patch
Josh Boyer d2b017
Josh Boyer b08093
Patch21094: power-x86-destdir.patch
Josh Boyer b08093
Josh Boyer 4efc0c
Patch21095: hfsplus-Change-finder_info-to-u32.patch
Josh Boyer 4efc0c
Patch21096: hfsplus-Add-an-ioctl-to-bless-files.patch
Josh Boyer 4efc0c
Josh Boyer 7dc73b
#rhbz 788260
Josh Boyer 7dc73b
Patch21233: jbd2-clear-BH_Delay-and-BH_Unwritten-in-journal_unmap_buf.patch
Josh Boyer 7dc73b
Josh Boyer beef0e
#rhbz 754518
Josh Boyer beef0e
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer beef0e
Dave Jones b2f4cd
Patch21250: mcelog-rcu-splat.patch
Dave Jones b2f4cd
Patch21270: x86-Avoid-invoking-RCU-when-CPU-is-idle.patch
Josh Boyer 9bf39b
Josh Boyer c08cca
#rhbz 795544
Dave Jones b2f4cd
Patch21290: ums_realtek-do-not-use-stack-memory-for-DMA-in-__do_.patch
Josh Boyer c08cca
Josh Boyer 3e2c56
#rhbz 727865 730007
Josh Boyer 3e2c56
Patch21300: ACPICA-Fix-regression-in-FADT-revision-checks.patch
Josh Boyer 3e2c56
Josh Boyer 8604c9
#rhbz 728478
Josh Boyer 8604c9
Patch21302: sony-laptop-Enable-keyboard-backlight-by-default.patch
Josh Boyer 8604c9
7e5dab
#rhbz 803809 CVE-2012-1179
7e5dab
Patch21304: mm-thp-fix-pmd_bad-triggering.patch
7e5dab
Josh Boyer 475d82
#rhbz 804007
Josh Boyer 475d82
Patch21305: mac80211-fix-possible-tid_rx-reorder_timer-use-after-free.patch
Josh Boyer 475d82
Josh Boyer 5bbe9e
#rhbz 804957 CVE-2012-1568
Josh Boyer 5bbe9e
Patch21306: shlib_base_randomize.patch
Josh Boyer 5bbe9e
Dave Jones 191eab
Patch21400: unhandled-irqs-switch-to-polling.patch
Dave Jones 191eab
Dave Jones bb2459
Patch22000: weird-root-dentry-name-debug.patch
Dave Jones bb2459
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a3296
Jesse Keating 7a3296
%description
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package doc
Jesse Keating 7a3296
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a3296
Group: Documentation
Jesse Keating 7a3296
%description doc
Jesse Keating 7a3296
This package contains documentation files from the kernel
Jesse Keating 7a3296
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a3296
device drivers shipped with it are documented in these files.
Jesse Keating 7a3296
Jesse Keating 7a3296
You'll want to install this package if you need a reference to the
Jesse Keating 7a3296
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package headers
Jesse Keating 7a3296
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a3296
Group: Development/System
Dave Jones d555d6
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a3296
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a3296
%description headers
Jesse Keating 7a3296
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a3296
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a3296
header files define structures and constants that are needed for
Jesse Keating 7a3296
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a3296
glibc package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package bootwrapper
Jesse Keating 7a3296
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a3296
Group: Development/System
Dave Jones 524b8c
Requires: gzip binutils
Jesse Keating 7a3296
%description bootwrapper
Jesse Keating 7a3296
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a3296
files combining both kernel and initial ramdisk.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a3296
Group: Development/Debug
Jesse Keating 7a3296
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a3296
It provides the kernel source files common to all builds.
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%package -n perf
Kyle McMartin 42d4c3
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c3
Group: Development/System
Kyle McMartin 42d4c3
License: GPLv2
Kyle McMartin 42d4c3
%description -n perf
Kyle McMartin 42d4c3
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c3
of the Linux kernel.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n perf-debuginfo
Kyle McMartin 42d4c3
Summary: Debug information for package perf
Kyle McMartin 42d4c3
Group: Development/Debug
Kyle McMartin 42d4c3
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c3
AutoReqProv: no
Kyle McMartin 42d4c3
%description -n perf-debuginfo
Kyle McMartin 42d4c3
This package provides debug information for the perf package.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c3
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c3
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c3
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c3
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n python-perf
Kyle McMartin 42d4c3
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c3
Group: Development/Libraries
Kyle McMartin 42d4c3
%description -n python-perf
Kyle McMartin 42d4c3
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c3
written in the Python programming language to use the interface
Kyle McMartin 42d4c3
to manipulate perf events.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c3
Josh Boyer 27d8a0
%package -n python-perf-debuginfo
Josh Boyer 27d8a0
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0
Group: Development/Debug
Josh Boyer 27d8a0
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0
AutoReqProv: no
Josh Boyer 27d8a0
%description -n python-perf-debuginfo
Josh Boyer 27d8a0
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0
Josh Boyer 27d8a0
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0
Josh Boyer 27d8a0
Kyle McMartin 42d4c3
%endif # with_perf
Kyle McMartin 42d4c3
Dave Jones 1d18ad
%if %{with_tools}
Dave Jones 1d18ad
%package -n kernel-tools
Dave Jones 1d18ad
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
License: GPLv2
Josh Boyer 02587b
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpuspeed < 1:1.5-16
Dave Jones 1d18ad
%description -n kernel-tools
Dave Jones 1d18ad
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c3
and the supporting documentation.
Roland McGrath 3c4ea9
Josh Boyer 8addb5
%package -n kernel-tools-devel
Josh Boyer 8addb5
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5
Group: Development/System
Josh Boyer 8addb5
License: GPLv2
Josh Boyer 02587b
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad371
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad371
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 8addb5
%description -n kernel-tools-devel
Josh Boyer 8addb5
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5
the kernel source.
Josh Boyer 8addb5
Dave Jones 1d18ad
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9
Group: Development/Debug
Roland McGrath 3c4ea9
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9
AutoReqProv: no
Dave Jones 1d18ad
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c3
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|XXX' -o kernel-tools-debuginfo.list}
Kyle McMartin ec31ef
Kyle McMartin 42d4c3
%endif # with_tools
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a3296
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_debuginfo_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a3296
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a3296
Group: Development/Debug\
Jesse Keating 7a3296
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a3296
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a3296
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Jesse Keating 7a3296
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}devel\
Jesse Keating 7a3296
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
Jesse Keating 7a3296
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
Requires(pre): /usr/bin/find\
Jesse Keating 7a3296
Requires: perl\
Jesse Keating 7a3296
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a3296
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a3296
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Josh Boyer b8b278
# This macro creates a kernel-<subpackage>-modules-extra package.
Josh Boyer b8b278
#	%%kernel_modules-extra_package <subpackage> <pretty-name>
Josh Boyer b8b278
#
Josh Boyer b8b278
%define kernel_modules-extra_package() \
Josh Boyer b8b278
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b278
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b278
Group: System Environment/Kernel\
Josh Boyer b8b278
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
Josh Boyer b8b278
Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer b8b278
Provides: kernel-modules-extra = %{version}-%{release}%{?1:.%{1}}\
Josh Boyer b8b278
Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b66345
Requires: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b278
AutoReqProv: no\
Josh Boyer b8b278
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b278
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b278
%{nil}
Josh Boyer b8b278
Josh Boyer b8b278
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a3296
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a3296
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_package(n:) \
Jesse Keating 7a3296
%package %1\
Jesse Keating 7a3296
Summary: %{variant_summary}\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
%kernel_reqprovconf\
Jesse Keating 7a3296
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Josh Boyer b8b278
%{expand:%%kernel_modules-extra_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Jesse Keating 7a3296
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a3296
%kernel_devel_package
Josh Boyer b8b278
%kernel_modules-extra_package
Jesse Keating 7a3296
%kernel_debuginfo_package
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# Now, each variant package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a3296
%kernel_variant_package -n SMP smp
Jesse Keating 7a3296
%description smp
Jesse Keating 7a3296
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a3296
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a3296
hyperthreading technology.
Jesse Keating 7a3296
Jesse Keating 7a3296
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAE
Jesse Keating 7a3296
%description PAE
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Jesse Keating 7a3296
%kernel_variant_package PAEdebug
Jesse Keating 7a3296
Obsoletes: kernel-PAE-debug
Jesse Keating 7a3296
%description PAEdebug
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a3296
%kernel_variant_package debug
Jesse Keating 7a3296
%description debug
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
534352
%define variant_summary The Linux kernel compiled for marvell kirkwood boards
534352
%kernel_variant_package kirkwood
534352
%description kirkwood
534352
This package includes a version of the Linux kernel with support for
534352
marvell kirkwood based systems, i.e., guruplug, sheevaplug
534352
534352
%define variant_summary The Linux kernel compiled for freescale boards
534352
%kernel_variant_package imx
534352
%description imx
534352
This package includes a version of the Linux kernel with support for
534352
freescale based systems, i.e., efika smartbook.
534352
534352
%define variant_summary The Linux kernel compiled for Calxeda boards
534352
%kernel_variant_package highbank
534352
%description highbank
534352
This package includes a version of the Linux kernel with support for
534352
Calxeda based systems, i.e., HP arm servers.
Jesse Keating 7a3296
986a9f
%define variant_summary The Linux kernel compiled for TI-OMAP boards
986a9f
%kernel_variant_package omap
986a9f
%description omap
986a9f
This package includes a version of the Linux kernel with support for
986a9f
TI-OMAP based systems, i.e., BeagleBoard-xM.
986a9f
986a9f
%define variant_summary The Linux kernel compiled for tegra boards
986a9f
%kernel_variant_package tegra
986a9f
%description tegra
986a9f
This package includes a version of the Linux kernel with support for
986a9f
nvidia tegra based systems, i.e., trimslice, ac-100.
986a9f
986a9f
Jesse Keating 7a3296
%prep
Jesse Keating 7a3296
# do a few sanity-checks for --with *only builds
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%if !%{with_up}%{with_pae}
Jesse Keating 7a3296
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%if !%{with_smp}
Jesse Keating 7a3296
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c78a08
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763
exit 1
Chuck Ebbert 05e763
%endif
Chuck Ebbert 05e763
Jesse Keating 7a3296
# more sanity checking; do it quietly
Jesse Keating 7a3296
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a3296
  for patch in %{patches} ; do
Jesse Keating 7a3296
    if [ ! -f $patch ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
fi 2>/dev/null
Jesse Keating 7a3296
Jesse Keating 7a3296
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a3296
ApplyPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
%if !%{using_upstream_branch}
Dave Jones b89c80
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a291
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  fi 2>/dev/null
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
  case "$patch" in
Jesse Keating 7a3296
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a3296
  esac
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't apply patch if it's empty
Jesse Keating 7a3296
ApplyOptionalPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a3296
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a3296
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# First we unpack the kernel tarball.
Jesse Keating 7a3296
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a3296
# which speeds things up quite a bit.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update to latest upstream.
Jesse Keating 7a3296
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a3296
%else
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a3296
Dave Jones 166b79
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c
# so we can prep different trees within a single git directory.
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a3296
Chuck Ebbert 26d08c
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
    # The base vanilla version already exists.
Chuck Ebbert 26d08c
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a3296
    for dir in vanilla-*; do
Jesse Keating 7a3296
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f pax_global_header
Chuck Ebbert 26d08c
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a3296
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a3296
        break
Jesse Keating 7a3296
      fi
Jesse Keating 7a3296
    done
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c -T
Chuck Ebbert 26d08c
      cp -rl $sharedir/vanilla-%{kversion} .
Jesse Keating 7a3296
    else
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 950a40
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a3296
Jesse Keating 7a3296
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
      break
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Chuck Ebbert 26d08c
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    cp -rl $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    # Need to apply patches to the base vanilla version.
Jesse Keating 7a3296
    cp -rl vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a3296
    cd vanilla-%{vanillaversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update vanilla to the latest upstream.
Jesse Keating 7a3296
# (non-released_kernel case only)
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
    ApplyPatch patch-3.%{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.
Josh Boyer 55bd82
if [ -d linux-%{KVERREL} ]; 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.
Josh Boyer 55bd82
  mv linux-%{KVERREL} deleteme.%{_target_cpu}
Jesse Keating 7a3296
  rm -rf deleteme.%{_target_cpu} &
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Josh Boyer 55bd82
cp -rl vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a3296
Josh Boyer 55bd82
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
# released_kernel with possible stable updates
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH APPLY ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a3296
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a3296
cp %{SOURCE15} .
Jesse Keating 7a3296
Chuck Ebbert c6b36e
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee03
%if %{with_release}
Chuck Ebbert c6b36e
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee03
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a3296
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a3296
Jarod Wilson 5b6529
# Merge in any user-provided local config option changes
Kyle McMartin 9410e6
%if %{?all_arch_configs:1}%{!?all_arch_configs:0}
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
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
Dave Jones 64f1bc
ApplyPatch taint-vbox.patch
Dave Jones 64f1bc
Jesse Keating 7a3296
# Architecture patches
Jesse Keating 7a3296
# x86(-64)
Dave Jones c62acb
ApplyPatch linux-2.6-32bit-mmap-exec-randomization.patch
Dave Jones 0f55b3
ApplyPatch linux-2.6-i386-nx-emulation.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
986a9f
# ARM
986a9f
#
Josh Boyer e8409b
#pplyPatch arm-omap-dt-compat.patch
986a9f
ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
d92680
ApplyPatch arm-tegra-nvec-kconfig.patch
Jon Masters 5e97d3
ApplyPatch arm-nosmp-fix-per_cpu-data-type-kallsyms.patch
986a9f
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# bugfixes to drivers and filesystems
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ext4
Josh Boyer dae3cd
ApplyPatch ext4-fix-resize-when-resizing-within-single-group.patch
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
Dave Jones f3fbdc
ApplyPatch linux-3.1-keys-remove-special-keyring.patch
Josh Boyer 36def9
ApplyPatch linux-3.3-newidmapper-01.patch
Josh Boyer 36def9
ApplyPatch linux-3.3-newidmapper-02.patch
Josh Boyer 36def9
ApplyPatch linux-3.3-newidmapper-03.patch
Dave Jones bf89f3
ApplyPatch NFSv4-Reduce-the-footprint-of-the-idmapper.patch
Dave Jones bf89f3
ApplyPatch NFSv4-Further-reduce-the-footprint-of-the-idmapper.patch
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 linux-2.6-acpi-debug-infinite-loop.patch
Josh Boyer 5e97a2
ApplyPatch acpi-ensure-thermal-limits-match-cpu-freq.patch
Dave Jones a4b83e
ApplyPatch acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PCI
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# enable ASPM by default on hardware we expect to work
Jesse Keating 7a3296
ApplyPatch linux-2.6-defaults-aspm.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SCSI Bits.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ALSA
Jesse Keating 7a3296
Jesse Keating 7a3296
# Networking
Jesse Keating 7a3296
Jesse Keating 7a3296
# Misc fixes
Jesse Keating 7a3296
# The input layer spews crap no-one cares about.
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
Josh Boyer dff085
ApplyPatch floppy-Remove-_hlt-related-functions.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
# 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
Josh Boyer 0e0a3a
#ApplyPatch drm-edid-try-harder-to-fix-up-broken-headers.patch
f935a1
ApplyPatch drm-vgem.patch
Jesse Keating 7a3296
Kyle McMartin d3e4af
# Nouveau DRM
Kyle McMartin d3e4af
Kyle McMartin d3e4af
# Intel DRM
Jesse Keating 7a3296
ApplyOptionalPatch drm-intel-next.patch
efa8ce
ApplyPatch drm-i915-dp-stfu.patch
Dave Jones 19e378
Jesse Keating 7a3296
ApplyPatch linux-2.6-intel-iommu-igfx.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# silence the ACPI blacklist code
Jesse Keating 7a3296
ApplyPatch linux-2.6-silence-acpi-blacklist.patch
Josh Boyer e7cafd
ApplyPatch quite-apm.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
Jesse Keating 7a3296
Jesse Keating 7a3296
# Patches headed upstream
Jesse Keating 7a3296
ApplyPatch disable-i8042-check-on-apple-mac.patch
0aaee5
ApplyPatch linux-3.3-virtio-scsi.patch
Jesse Keating 7a3296
Kyle McMartin dbda5f
# rhbz#605888
Kyle McMartin dbda5f
ApplyPatch dmar-disable-when-ricoh-multifunction.patch
Kyle McMartin dbda5f
Josh Boyer bc1214
ApplyPatch efi-dont-map-boot-services-on-32bit.patch
Josh Boyer bc1214
Josh Boyer 9163dd
ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer 9163dd
Dave Jones ad44e0
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones ad44e0
Dave Jones 6797a3
ApplyPatch bluetooth-use-after-free.patch
Dave Jones 6797a3
Dave Jones 3b5b9c
ApplyPatch ips-noirq.patch
Dave Jones 3b5b9c
Dave Jones 5a6744
# utrace.
Josh Boyer 62e9e5
ApplyPatch utrace.patch
Neil Horman 778a29
Josh Boyer 8aec61
ApplyPatch ext4-Support-check-none-nocheck-mount-options.patch
Josh Boyer 8aec61
Josh Boyer cf9048
ApplyPatch udlfb-remove-sysfs-framebuffer-device-with-USB-disconnect.patch
Josh Boyer cf9048
Josh Boyer d2b017
#rhbz 772772
Josh Boyer d2b017
ApplyPatch rt2x00_fix_MCU_request_failures.patch
Josh Boyer d2b017
Josh Boyer b08093
ApplyPatch power-x86-destdir.patch
Josh Boyer b08093
Josh Boyer 4efc0c
ApplyPatch hfsplus-Change-finder_info-to-u32.patch
Josh Boyer 4efc0c
ApplyPatch hfsplus-Add-an-ioctl-to-bless-files.patch
Josh Boyer 4efc0c
Josh Boyer 7dc73b
#rhbz 788269
Josh Boyer 7dc73b
ApplyPatch jbd2-clear-BH_Delay-and-BH_Unwritten-in-journal_unmap_buf.patch
Josh Boyer 7dc73b
Josh Boyer beef0e
#rhbz 754518
Josh Boyer beef0e
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer beef0e
Josh Boyer 9bf39b
ApplyPatch mcelog-rcu-splat.patch
Josh Boyer 9bf39b
Josh Boyer c08cca
#rhbz 795544
Josh Boyer c08cca
ApplyPatch ums_realtek-do-not-use-stack-memory-for-DMA-in-__do_.patch
Josh Boyer c08cca
Josh Boyer 3e2c56
#rhbz 727865 730007
Josh Boyer 3e2c56
ApplyPatch ACPICA-Fix-regression-in-FADT-revision-checks.patch
Josh Boyer 3e2c56
Josh Boyer 8604c9
#rhbz 728478
Josh Boyer 8604c9
ApplyPatch sony-laptop-Enable-keyboard-backlight-by-default.patch
Josh Boyer 8604c9
Josh Boyer 475d82
#rhbz 804007
Josh Boyer 475d82
ApplyPatch mac80211-fix-possible-tid_rx-reorder_timer-use-after-free.patch
Josh Boyer 475d82
Josh Boyer 5bbe9e
#rhbz 804957 CVE-2012-1568
Josh Boyer 5bbe9e
ApplyPatch shlib_base_randomize.patch
Josh Boyer 5bbe9e
Dave Jones 191eab
ApplyPatch unhandled-irqs-switch-to-polling.patch
Dave Jones 191eab
Dave Jones bb2459
ApplyPatch weird-root-dentry-name-debug.patch
Dave Jones bb2459
7e5dab
#rhbz 803809 CVE-2012-1179
7e5dab
ApplyPatch mm-thp-fix-pmd_bad-triggering.patch
7e5dab
c29844
#Highbank clock functions
c29844
ApplyPatch highbank-export-clock-functions.patch 
c29844
Jesse Keating 7a3296
# END OF PATCH APPLICATIONS
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a3296
Jesse Keating 7a3296
chmod +x scripts/checkpatch.pl
Jesse Keating 7a3296
Dave Jones ed3d26
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa0660
touch .scmversion
Kyle McMartin fa0660
Jesse Keating 7a3296
# only deal with configs if we are going to build for the arch
Jesse Keating 7a3296
%ifnarch %nobuildarches
Jesse Keating 7a3296
Jesse Keating 7a3296
mkdir configs
Jesse Keating 7a3296
Jesse Keating 7a3296
# 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
John W. Linville ec5a8c
# get rid of unwanted files resulting from patch fuzz
John W. Linville ec5a8c
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville ec5a8c
Dave Jones 246f94
# remove unnecessary SCM files
Dave Jones 246f94
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94
Jesse Keating 7a3296
cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### build
Jesse Keating 7a3296
###
Jesse Keating 7a3296
%build
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
%define sparse_mflags	C=1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a3296
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a3296
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a3296
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a3296
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a3296
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a3296
export AFTER_LINK=\
Jesse Keating 7a3296
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a3296
    				-i $@ > $@.id"'
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
cp_vmlinux()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildKernel() {
Jesse Keating 7a3296
    MakeTarget=$1
Jesse Keating 7a3296
    KernelImage=$2
Jesse Keating 7a3296
    Flavour=$3
Jesse Keating 7a3296
    InstallName=${4:-vmlinuz}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Pick the right config file for the kernel we're building
Jesse Keating 7a3296
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Jesse Keating 7a3296
    DevelDir=/usr/src/kernels/%{KVERREL}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a3296
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a3296
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a3296
      CopyKernel=cp_vmlinux
Jesse Keating 7a3296
    else
Jesse Keating 7a3296
      CopyKernel=cp
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flavour:+.${Flavour}}
Jesse Keating 7a3296
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a3296
Josh Boyer 740de5
    %if 0%{?stable_update}
Josh Boyer 740de5
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de5
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de5
    %endif
Josh Boyer 740de5
Jesse Keating 7a3296
    # make sure EXTRAVERSION says what we want it to say
Josh Boyer 740de5
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flavour:+.${Flavour}}/" Makefile
Jesse Keating 7a3296
Josh Boyer 9e4aea
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a3296
    %if !0%{?rcrev}
Jesse Keating 7a3296
    %if 0%{?gitrev}
Josh Boyer 9e4aea
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # and now to start the build process
Jesse Keating 7a3296
Jesse Keating 7a3296
    make -s mrproper
Jesse Keating 7a3296
    cp configs/$Config .config
Jesse Keating 7a3296
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
Dave Jones 4d4f51
    make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags}
Dave Jones 4d4f51
    make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Start installing the results
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a3296
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a3296
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a3296
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a3296
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a3296
Jesse Keating 7a3296
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a3296
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a3296
    fi
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
Kyle McMartin eb0d56
    # we'll get it from the linux-firmware package and we don't want conflicts
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Jesse Keating 7a3296
%ifarch %{vdso_arches}
Jesse Keating 7a3296
    make -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a3296
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a3296
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a3296
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a3296
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a3296
    # * all arch relevant include/ files
Jesse Keating 7a3296
    # * all Makefile/Kconfig files
Jesse Keating 7a3296
    # * all script/ files
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a3296
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a3296
    # first copy everything
Jesse Keating 7a3296
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -s Module.markers ]; then
Jesse Keating 7a3296
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Josh Boyer be7f8e
%ifarch ppc ppc64
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
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
    if test -s vmlinux.id; then
Jesse Keating 7a3296
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a3296
    else
Roland McGrath 9b36e5
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e5
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a3296
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Generate a list of modules for block and networking.
Jesse Keating 7a3296
Dave Jones b89c80
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a3296
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list()
Jesse Keating 7a3296
    {
Jesse Keating 7a3296
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Jesse Keating 7a3296
      LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Jesse Keating 7a3296
    }
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list networking \
Josh Boyer 4215bf
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe'
Jesse Keating 7a3296
    collect_modules_list block \
Jesse Keating 7a3296
    			 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler'
Jesse Keating 7a3296
    collect_modules_list drm \
Jesse Keating 7a3296
    			 'drm_open|drm_init'
Jesse Keating 7a3296
    collect_modules_list modesetting \
Jesse Keating 7a3296
    			 'drm_crtc_init'
Jesse Keating 7a3296
Jesse Keating 7a3296
    # detect missing or incorrect license tags
Jesse Keating 7a3296
    rm -f modinfo
Jesse Keating 7a3296
    while read i
Jesse Keating 7a3296
    do
Jesse Keating 7a3296
      echo -n "${i#$RPM_BUILD_ROOT/lib/modules/$KernelVer/} " >> modinfo
Jesse Keating 7a3296
      /sbin/modinfo -l $i >> modinfo
Jesse Keating 7a3296
    done < modnames
Jesse Keating 7a3296
Dave Jones b89c80
    grep -E -v \
Jesse Keating 7a3296
    	  'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' \
Jesse Keating 7a3296
	  modinfo && exit 1
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f modinfo modnames
Jesse Keating 7a3296
Josh Boyer b8b278
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
Josh Boyer b8b278
    rm -rf modnames
Josh Boyer b8b278
    find . -name "*.ko" -type f > modnames
Josh Boyer b8b278
    # Look through all of the modules, and throw any that have a dependency in
Josh Boyer b8b278
    # our list into the list as well.
Josh Boyer b8b278
    rm -rf dep.list dep2.list
8be461
    rm -rf req.list req2.list
Josh Boyer b8b278
    cp %{SOURCE16} .
Josh Boyer b8b278
    for dep in `cat modnames`
Josh Boyer b8b278
    do
Josh Boyer b8b278
      depends=`modinfo $dep | grep depends| cut -f2 -d":" | sed -e 's/^[ \t]*//'`
Josh Boyer b8b278
      [ -z "$depends" ] && continue;
Josh Boyer b8b278
      for mod in `echo $depends | sed -e 's/,/ /g'`
Josh Boyer b8b278
      do
Josh Boyer b8b278
        match=`grep "^$mod.ko" mod-extra.list` ||:
Josh Boyer b8b278
        if [ -z "$match" ]
Josh Boyer b8b278
        then
Josh Boyer b8b278
          continue
Josh Boyer b8b278
        else
8be461
          echo $mod.ko >> req.list
Josh Boyer b8b278
        fi
Josh Boyer b8b278
      done
Josh Boyer b8b278
    done
Josh Boyer b8b278
8be461
    sort -u req.list > req2.list
8be461
    sort -u mod-extra.list > mod-extra2.list
8be461
    join -v 1 mod-extra2.list req2.list > mod-extra3.list
8be461
8be461
    for mod in `cat mod-extra3.list`
Josh Boyer b8b278
    do
Josh Boyer b8b278
      # get the path for the module
Josh Boyer d496e0
      modpath=`grep /$mod modnames` ||:
Josh Boyer b8b278
      [ -z "$modpath" ]  && continue;
Josh Boyer b8b278
      echo $modpath >> dep.list
Josh Boyer b8b278
    done
Josh Boyer b8b278
Josh Boyer b8b278
    sort -u dep.list > dep2.list
Josh Boyer b8b278
Josh Boyer b8b278
    # now move the modules into the extra/ directory
Josh Boyer b8b278
    for mod in `cat dep2.list`
Josh Boyer b8b278
    do
Josh Boyer b8b278
      newpath=`dirname $mod | sed -e 's/kernel\//extra\//'`
Josh Boyer b8b278
      mkdir -p $newpath
Josh Boyer b8b278
      mv $mod $newpath
Josh Boyer b8b278
    done
Josh Boyer b8b278
8be461
    rm modnames dep.list dep2.list req.list req2.list
8be461
    rm mod-extra.list mod-extra2.list mod-extra3.list
Josh Boyer b8b278
    popd
Josh Boyer b8b278
John W. Linville ec5a8c
    # remove files that will be auto generated by depmod at rpm -i time
John W. Linville ec5a8c
    for i in alias alias.bin builtin.bin ccwmap dep dep.bin ieee1394map inputmap isapnpmap ofmap pcimap seriomap symbols symbols.bin usbmap
John W. Linville ec5a8c
    do
John W. Linville ec5a8c
      rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$i
John W. Linville ec5a8c
    done
John W. Linville ec5a8c
Jesse Keating 7a3296
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a3296
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7
Josh Boyer bddef7
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7
    # the F17 UsrMove feature.
Josh Boyer bddef7
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b40
Kyle McMartin 4b3b40
    # prune junk from kernel-devel
Kyle McMartin 4b3b40
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# DO it...
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# prepare directories
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a3296
Josh Boyer 55bd82
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAEdebug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image PAE
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
534352
%if %{with_kirkwood}
534352
BuildKernel %make_target %kernel_image kirkwood
534352
%endif
534352
534352
%if %{with_imx}
534352
BuildKernel %make_target %kernel_image imx
534352
%endif
534352
534352
%if %{with_highbank}
534352
BuildKernel %make_target %kernel_image highbank
534352
%endif
534352
986a9f
%if %{with_omap}
986a9f
BuildKernel %make_target %kernel_image omap
986a9f
%endif
986a9f
986a9f
%if %{with_tegra}
986a9f
BuildKernel %make_target %kernel_image tegra
986a9f
%endif
986a9f
Jesse Keating 7a3296
%if %{with_up}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smp}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 8bcddf
%global perf_make \
Kyle McMartin 8bcddf
  make %{?_smp_mflags} -C tools/perf -s V=1 EXTRA_CFLAGS="-Wno-error=array-bounds" HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix}
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf
Kyle McMartin 8bcddf
%{perf_make} all
Kyle McMartin 8bcddf
%{perf_make} man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
# cpupower
Josh Boyer 8addb5
# make sure version-gen.sh is executable.
Josh Boyer 8addb5
chmod +x tools/power/cpupower/utils/version-gen.sh
Josh Boyer 9c44ba
make %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba
%ifarch %{ix86}
Josh Boyer 8addb5
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 8addb5
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Josh Boyer 9c44ba
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    make %{?_smp_mflags} centrino-decode powernow-k8-decode
Josh Boyer 9c44ba
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   cd tools/power/x86/x86_energy_perf_policy/
Josh Boyer b08093
   make
Josh Boyer b08093
   cd -
Josh Boyer b08093
   cd tools/power/x86/turbostat
Josh Boyer b08093
   make
Josh Boyer b08093
   cd -
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
# Make the HTML and man pages.
Chuck Ebbert 224772
make htmldocs mandocs || %{doc_build_fail}
Jesse Keating 7a3296
Jesse Keating 7a3296
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a3296
chmod -R a=rX Documentation
Jesse Keating 7a3296
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### Special hacks for debuginfo subpackages.
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# This macro is used by %%install, so we must redefine it before that.
Jesse Keating 7a3296
%define debug_package %{nil}
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
%define __debug_install_post \
Jesse Keating 7a3296
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%global __debug_package 1
Jesse Keating 7a3296
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### install
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%install
Jesse Keating 7a3296
Josh Boyer 55bd82
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
man9dir=$RPM_BUILD_ROOT%{_datadir}/man/man9
Jesse Keating 7a3296
Jesse Keating 7a3296
# copy the source over
Jesse Keating 7a3296
mkdir -p $docdir
Josh Boyer 08ed14
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a3296
Jesse Keating 7a3296
# Install man pages for the kernel API.
Jesse Keating 7a3296
mkdir -p $man9dir
Jesse Keating 7a3296
find Documentation/DocBook/man -name '*.9.gz' -print0 |
Jesse Keating 7a3296
xargs -0 --no-run-if-empty %{__install} -m 444 -t $man9dir $m
Jesse Keating 7a3296
ls $man9dir | grep -q '' || > $man9dir/BROKEN
Jesse Keating 7a3296
%endif # with_doc
Jesse Keating 7a3296
Josh Boyer 8addb5
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5
# it doesn't install itself.
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
# Install kernel headers
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do headers_check but don't die if it fails.
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a3296
     > hdrwarnings.txt || :
Jesse Keating 7a3296
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a3296
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a3296
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a3296
   # exit 1
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a3296
     \( -name .install -o -name .check -o \
Jesse Keating 7a3296
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a3296
Jesse Keating 7a3296
# 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
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf tool binary and supporting scripts/binaries
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
Josh Boyer 8addb5
Kyle McMartin ec31ef
# python-perf extension
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31ef
Josh Boyer 8addb5
# perf man pages (note: implicit rpm magic compresses them later)
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 9c44ba
make -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5
%find_lang cpupower
Josh Boyer 8addb5
mv cpupower.lang ../
Josh Boyer 9c44ba
%ifarch %{ix86}
Josh Boyer 8addb5
    cd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 8addb5
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Josh Boyer 9c44ba
    cd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Josh Boyer 9c44ba
    cd -
Josh Boyer 9c44ba
%endif
Josh Boyer 8addb5
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   mkdir -p %{buildroot}%{_mandir}/man8
Josh Boyer b08093
   cd tools/power/x86/x86_energy_perf_policy
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Josh Boyer b08093
   cd -
Josh Boyer b08093
   cd tools/power/x86/turbostat
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Josh Boyer b08093
   cd -
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### clean
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%clean
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### scripts
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Josh Boyer 93e777
%if %{with_tools}
Josh Boyer 8addb5
%post -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 8addb5
Josh Boyer 8addb5
%postun -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 93e777
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_post() \
Jesse Keating 7a3296
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a3296
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
Jesse Keating 7a3296
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a3296
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a3296
     done)\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Josh Boyer b8b278
#
Josh Boyer b8b278
# This macro defines a %%post script for a kernel*-modules-extra package.
Josh Boyer b8b278
#	%%kernel_modules-extra_post [<subpackage>]
Josh Boyer b8b278
#
Josh Boyer b8b278
%define kernel_modules_extra_post() \
Josh Boyer b8b278
%{expand:%%post %{?1:%{1}-}modules-extra}\
Josh Boyer b8b278
/sbin/depmod -a %{KVERREL}%{?1:.%{1}}\
Josh Boyer b8b278
%{nil}
Josh Boyer 8addb5
Jesse Keating 7a3296
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_posttrans() \
Jesse Keating 7a3296
%{expand:%%posttrans %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --mkinitrd --dracut --depmod --update %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?1:-%{1}} --rpmposttrans %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a3296
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_post(v:r:) \
Jesse Keating 7a3296
%{expand:%%kernel_devel_post %{?-v*}}\
Josh Boyer b8b278
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%post %{?-v*}}\
Jesse Keating 7a3296
%{-r:\
Jesse Keating 7a3296
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a3296
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a3296
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi}\
Jesse Keating 7a3296
%{expand:\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --package kernel%{?-v:-%{-v*}} --install %{KVERREL}%{?-v:.%{-v*}} || exit $?\
Jesse Keating 7a3296
}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_preun() \
Jesse Keating 7a3296
%{expand:%%preun %{?1}}\
Jesse Keating 7a3296
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1:.%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun
Jesse Keating 7a3296
%kernel_variant_post -r kernel-smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun smp
Jesse Keating 7a3296
%kernel_variant_post -v smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun PAE
Jesse Keating 7a3296
%kernel_variant_post -v PAE -r (kernel|kernel-smp)
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun debug
Jesse Keating 7a3296
%kernel_variant_post -v debug
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp)
Jesse Keating 7a3296
%kernel_variant_preun PAEdebug
Jesse Keating 7a3296
534352
%kernel_variant_preun kirkwood
534352
%kernel_variant_post -v kirkwood
534352
534352
%kernel_variant_preun imx
534352
%kernel_variant_post -v imx
534352
534352
%kernel_variant_preun highbank
534352
%kernel_variant_post -v highbank
534352
986a9f
%kernel_variant_preun omap
986a9f
%kernel_variant_post -v omap
986a9f
986a9f
%kernel_variant_preun tegra
986a9f
%kernel_variant_post -v tegra
986a9f
Jesse Keating 7a3296
if [ -x /sbin/ldconfig ]
Jesse Keating 7a3296
then
Jesse Keating 7a3296
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### file lists
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
%files headers
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/include/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
%files bootwrapper
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/sbin/*
Jesse Keating 7a3296
%{_libdir}/kernel-wrapper
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only some architecture builds need kernel-doc
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
%files doc
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
%{_datadir}/man/man9/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%files -n perf
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_bindir}/perf
Jesse Keating 7a3296
%dir %{_libexecdir}/perf-core
Jesse Keating 7a3296
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/perf*
Josh Boyer 55bd82
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%files -n python-perf
Kyle McMartin 42d4c3
%defattr(-,root,root)
Kyle McMartin 42d4c3
%{python_sitearch}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%if %{with_debuginfo}
Kyle McMartin 42d4c3
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 27d8a0
Josh Boyer 27d8a0
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0
%defattr(-,root,root)
Kyle McMartin 42d4c3
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Roland McGrath 3c4ea9
Kyle McMartin 42d4c3
%if %{with_tools}
Kyle McMartin 42d4c3
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
%{_bindir}/cpupower
Josh Boyer 6ec053
%ifarch %{ix86} x86_64
Josh Boyer 8addb5
%{_bindir}/centrino-decode
Josh Boyer 8addb5
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053
%endif
Josh Boyer 8addb5
%{_libdir}/libcpupower.so.0
Josh Boyer 8addb5
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 8addb5
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
%{_bindir}/x86_energy_perf_policy
Josh Boyer b08093
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b08093
%{_bindir}/turbostat
Josh Boyer b08093
%{_mandir}/man8/turbostat*
Josh Boyer b08093
%endif
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Roland McGrath 3c4ea9
%if %{with_debuginfo}
Josh Boyer 8addb5
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9
%defattr(-,root,root)
Roland McGrath 3c4ea9
%endif
Josh Boyer 8addb5
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
%files -n kernel-tools-devel
Josh Boyer 8addb5
%{_libdir}/libcpupower.so
Josh Boyer 8addb5
%{_includedir}/cpufreq.h
Josh Boyer 8addb5
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Jesse Keating 7a3296
Dave Jones 166b79
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a3296
# or empty otherwise.
Jesse Keating 7a3296
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a3296
# and its devel and debuginfo packages.
Jesse Keating 7a3296
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_files(k:) \
Jesse Keating 7a3296
%if %{1}\
Jesse Keating 7a3296
%{expand:%%files %{?2}}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Kyle McMartin f6dd1f
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
Kyle McMartin d28776
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/boot/config-%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
Jesse Keating 7a3296
%ifarch %{vdso_arches}\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
Jesse Keating 7a3296
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
Jesse Keating 7a3296
%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
Josh Boyer b8b278
%{expand:%%files %{?2:%{2}-}modules-extra}\
Josh Boyer b8b278
%defattr(-,root,root)\
Josh Boyer b8b278
/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
Jesse Keating 7a3296
%if %{with_debuginfo}\
Jesse Keating 7a3296
%ifnarch noarch\
Jesse Keating 7a3296
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_files %{with_up}
Jesse Keating 7a3296
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a3296
%kernel_variant_files %{with_debug} debug
Jesse Keating 7a3296
%kernel_variant_files %{with_pae} PAE
Jesse Keating 7a3296
%kernel_variant_files %{with_pae_debug} PAEdebug
534352
%kernel_variant_files %{with_kirkwood} kirkwood
534352
%kernel_variant_files %{with_imx} imx
534352
%kernel_variant_files %{with_highbank} highbank
986a9f
%kernel_variant_files %{with_omap} omap
986a9f
%kernel_variant_files %{with_tegra} tegra
Jesse Keating 7a3296
Jesse Keating 7a3296
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a3296
# and build.
Jesse Keating 7a3296
Josh Boyer 5fbbd7
#
Josh Boyer 5fbbd7
#              .---. __
Josh Boyer 5fbbd7
#    ,         /     \   \    ||||
Josh Boyer 5fbbd7
#   \\\\      |O___O |    | \\||||
Josh Boyer 5fbbd7
#   \   //    | \_/  |    |  \   /
Josh Boyer 5fbbd7
#    '--/----/|     /     |   |-'
Josh Boyer 5fbbd7
#           // //  /     -----'
Josh Boyer 5fbbd7
#          //  \\ /      /
Josh Boyer 5fbbd7
#         //  // /      /
Josh Boyer 5fbbd7
#        //  \\ /      /
Josh Boyer 5fbbd7
#       //  // /      /
Josh Boyer 5fbbd7
#      /|   ' /      /
Josh Boyer 5fbbd7
#      //\___/      /
Josh Boyer 5fbbd7
#     //   ||\     /
Josh Boyer 5fbbd7
#     \\_  || '---'
Josh Boyer 5fbbd7
#     /' /  \\_.-
Josh Boyer 5fbbd7
#    /  /    --| |
Josh Boyer 5fbbd7
#    '-'      |  |
Josh Boyer 5fbbd7
#              '-'
Jesse Keating 7a3296
%changelog
Dave Jones 52f645
* Fri Mar 23 2012 Dave Jones <davej@redhat.com> 3.3.0-5
Dave Jones 6797a3
- Apply patches that should solve the bluetooth use-after-free oopses. (rhbz 806033)
Dave Jones 6797a3
Josh Boyer 98931f
* Wed Mar 21 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 98931f
- Ship hmac file for vmlinuz for FIPS-140 (rhbz 805538)
Josh Boyer 98931f
Dave Jones 3b5b9c
* Tue Mar 20 2012 Dave Jones <davej@redhat.com>
Dave Jones 3b5b9c
- Don't bind the IPS driver if no irq is assigned (typically BIOS bug). (rhbz 804353)
Dave Jones 3b5b9c
Josh Boyer 475d82
* Tue Mar 20 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 5bbe9e
- CVE-2012-1568: execshield: predictable ascii armour base address (rhbz 804957)
Josh Boyer 475d82
- mac80211: fix possible tid_rx->reorder_timer use after free
Josh Boyer 475d82
  from Stanislaw Gruska (rhbz 804007)
Josh Boyer 475d82
Dave Jones 3cc643
* Sun Mar 18 2012 Dave Jones <davej@redhat.com>
Dave Jones 3cc643
- Linux 3.3
Dave Jones 3cc643
Dave Jones 64c194
* Fri Mar 16 2012 Adam Jackson <ajax@redhat.com> - 3.3.0-0.rc7.git2.3
efa8ce
- drm-i915-dp-stfu.patch: Muzzle a bunch of DP WARN()s.  They're not wrong,
efa8ce
  but they're not helpful at this point.
efa8ce
Dave Jones 0901f9
* Fri Mar 16 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc7.git2.2
Dave Jones 0901f9
- Disable debugging options.
Dave Jones 0901f9
Dave Jones b4ed1d
* Fri Mar 16 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc7.git2.1
Dave Jones b4ed1d
- Linux v3.3-rc7-103-g0c4d067
Dave Jones b4ed1d
63bfa6
* Fri Mar 16 2012 Justin M. Forbes <jforbes@redhat.com>
63bfa6
- re-enable threading on hibernate compression/decompression
63bfa6
Josh Boyer 841f4a
* Fri Mar 16 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 841f4a
- Fix irqpoll patch to really only apply for ASM108x machines (rhbz 800520)
Josh Boyer 841f4a
7e5dab
* Thu Mar 15 2012 Justin M. Forbes <jforbes@redhat.com>
7e5dab
- CVE-2012-1179 fix pmd_bad() triggering in code paths holding mmap_sem read mode (rhbz 803809)
7e5dab
Josh Boyer 631462
* Wed Mar 14 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 631462
- Fixup irqpoll patch to only activate on machines with ASM108x PCI bridge
Josh Boyer 631462
Dave Jones 114779
* Wed Mar 14 2012 Steve Dickson <steved@redhat.com> - 3.3.0-0.rc7.git1.2
Dave Jones bf89f3
- Reduce the foot print of the NFSv4 idmapping coda (bz 593035)
Dave Jones bf89f3
Dave Jones dc7e77
* Wed Mar 14 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc7.git1.1
Dave Jones dc7e77
- Linux v3.3-rc7-48-g762ad8a
Dave Jones dc7e77
John W. Linville ec5a8c
* Tue Mar 13 2012 John W. Linville <linville@redhat.com>
John W. Linville ec5a8c
- Remove infrastructure related to compat-wireless integration
John W. Linville ec5a8c
c29844
* Mon Mar 12 2012 Mark Langsdorf <mark.langsdorf@calxeda.com>
c29844
- Re-enable highbank config option and add new config file to support it
c29844
Dave Jones cade30
* Mon Mar 12 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc7.git0.3
Dave Jones cade30
- Reenable debugging options.
Dave Jones cade30
Dave Jones f8424d
* Mon Mar 12 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc7.git0.2
Dave Jones f8424d
- Disable debugging options.
Dave Jones f8424d
Dave Jones 953a44
* Mon Mar 12 2012 Dave Jones <davej@redhat.com> 3.3.0-0.rc7.git0.1
Dave Jones 953a44
- Linux 3.3-rc7
Dave Jones 953a44
Dave Jones bb2459
* Wed Mar 07 2012 Dave Jones <davej@redhat.com>
Dave Jones bb2459
- Add debug patch for bugs 787171/766277
Dave Jones bb2459
Dave Jones 987250
* Wed Mar 07 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc6.git2.1
Dave Jones 987250
- Linux v3.3-rc6-132-g55062d0
Dave Jones 987250
Dave Jones 43c809
* Wed Mar 07 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc6.git1.1
Dave Jones 43c809
- Linux v3.3-rc6-131-g097d591
Dave Jones 43c809
Dave Jones b183b7
* Mon Mar 05 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc6.git0.3
Dave Jones b183b7
- Reenable debugging options.
Dave Jones b183b7
Dave Jones 49d839
* Mon Mar 05 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc6.git0.2
Dave Jones 49d839
- Disable debugging options.
Dave Jones 49d839
Dave Jones 322dbe
* Mon Mar 05 2012 Dave Jones <davej@redhat.com>
Dave Jones 322dbe
- Linux 3.3-rc6
Dave Jones 322dbe
John W. Linville 16d5b4
* Mon Mar 05 2012 John W. Linville <linville@redhat.com>
John W. Linville 16d5b4
- Turn-off CONFIG_B43_BCMA_EXTRA to avoid b43/brcmsmac overlap
John W. Linville 16d5b4
Mark Wielaard b81b45
* Mon Mar 05 2012 Mark Wielaard <mark@klomp.org>
Mark Wielaard b81b45
- Add -r to debuginfo_args to invoke eu-strip --reloc-debug-sections.
Mark Wielaard b81b45
5a64af
* Fri Mar 02 2012 Justin M. Forbes <jforbes@redhat.com> 
5a64af
- Disable threading in hibernate compression/decompression
5a64af
543bc4
* Fri Mar 02 2012 Adam Jackson <ajax@redhat.com>
543bc4
- drm-intel-crtc-dpms-fix.patch: Fix system hang on gen2 kit on DPMS (#730853)
543bc4
Dave Jones 191eab
* Thu Mar 01 2012 Dave Jones <davej@redhat.com>
Dave Jones 191eab
- temporarily switch to low-performance polling IRQ mode when
Dave Jones 191eab
  unexpected IRQs occur.
Dave Jones 191eab
Dave Jones 34f57f
* Wed Feb 29 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc5.git3.1
Dave Jones 34f57f
- Linux v3.3-rc5-101-g88ebdda
Dave Jones 34f57f
Josh Boyer 8604c9
* Tue Feb 28 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8604c9
- Add patch to enable keyboard backlight on Sony laptops (rhbz 728478)
Josh Boyer 8604c9
Dave Jones 03f3fa
* Tue Feb 28 2012 Dave Jones <davej@redhat.com>
Dave Jones 03f3fa
- Disable CONFIG_USB_DEVICEFS (Deprecated).
Dave Jones 03f3fa
c15034
* Tue Feb 28 2012 Justin M. Forbes <jforbes@redhat.com> 
c15034
- CVE-2012-1090 CIFS: fix dentry refcount leak when opening a FIFO on lookup (rhbz 798296)
c15034
Dave Jones c675e2
* Tue Feb 28 2012 Dave Jones <davej@redhat.com> - 3.3.0-0.rc5.git2.1
Dave Jones c675e2
- Linux v3.3-rc5-88-g586c6e7
Dave Jones c675e2
Josh Boyer 3e2c56
* Mon Feb 27 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3e2c56
- Add patch to fix regression in FADT revision checks (rhbz 730007 727865)
Josh Boyer 3e2c56
Josh Boyer 918552
* Mon Feb 27 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc5.git1.1
Josh Boyer 918552
- Linux 3.3-rc5-git1 (upstream 500dd2370e77c9551ba298bdeeb91b02d8402199)
Josh Boyer 3daa22
- Reenable debugging options.
Josh Boyer 3daa22
Josh Boyer d55b8f
* Sun Feb 26 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc5.git0.3
Josh Boyer d55b8f
- Add patch from Linus Torvalds to fix 32-bit autofs4 build
Josh Boyer d55b8f
Josh Boyer d4f923
* Sat Feb 25 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc5.git0.2
Josh Boyer d4f923
- Disable debugging options.
Josh Boyer d4f923
Josh Boyer 9b45c2
* Sat Feb 25 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc5.git0.1
Josh Boyer 9b45c2
- Linux 3.3-rc5
Josh Boyer 9b45c2
Josh Boyer db1939
* Sat Feb 25 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git5.1
Josh Boyer db1939
- Linux 3.3-rc4-git5 (upstream b52b80023f262ce8a0ffdcb490acb23e8678377a)
Josh Boyer db1939
Josh Boyer 6b4547
* Fri Feb 24 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 6b4547
- Linux 3.3-rc4-git4 (upstream bb4c7e9a9908548b458f34afb2fee74dc0d49f90)
Josh Boyer 6b4547
da2d4f
* Thu Feb 23 2012 Peter Robinson <pbrobinson@fedoraproject.org>
da2d4f
- Further ARM config updates
da2d4f
Josh Boyer 7d7342
* Wed Feb 22 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git3.1
Josh Boyer 7d7342
- Linux 3.3-rc4-git3 (upstream 45196cee28a5bcfb6ddbe2bffa4270cbed66ae4b)
Josh Boyer 7d7342
Josh Boyer 6bdf84
* Wed Feb 22 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git2.1
Josh Boyer 6bdf84
- Linux 3.3-rc4-git2 (upstream 719741d9986572d64b47c35c09f5e7bb8d389400)
Josh Boyer 6bdf84
Josh Boyer add2ca
* Tue Feb 21 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git1.4
Josh Boyer add2ca
- Drop x86-Avoid-invoking-RCU-when-CPU-is-idle.patch (rhbz 795050)
Josh Boyer add2ca
76ebbb
* Tue Feb 21 2012 Peter Robinson <pbrobinson@fedoraproject.org>
76ebbb
- Update ARM configs
76ebbb
Josh Boyer 0a89a5
* Tue Feb 21 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer dae3cd
- ext4: fix resize when resizing within single group (rhbz 786454)
Josh Boyer 0a89a5
- imon: don't wedge hardware after early callbacks (rhbz 781832)
Josh Boyer 0a89a5
Josh Boyer 0255fc
* Tue Feb 21 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git1.2
Josh Boyer 0255fc
- Enable rtl8712 driver (rhbz 699618)
Josh Boyer 0e3dce
- Linux 3.3-rc4-git1 (upstream 27e74da9800289e69ba907777df1e2085231eff7)
Josh Boyer 0e3dce
e1d46a
* Tue Feb 21 2012 Peter Robinson <pbrobinson@fedoraproject.org>
e1d46a
- Disable ARM highbank kernels for the time being
e1d46a
Dave Jones b2f4cd
* Mon Feb 20 2012 Dave Jones <davej@redhat.com>
Dave Jones b2f4cd
- Do not call drivers when invalidating partitions for -ENOMEDIUM
Dave Jones b2f4cd
d15a70
* Mon Feb 20 2012 Peter Robinson <pbrobinson@fedoraproject.org>
d15a70
- Disable sfc ethernet driver on ARM
d15a70
Josh Boyer c08cca
* Mon Feb 20 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c08cca
- Avoid using stack variables in ums_realtek (again) (rhbz 795544)
Josh Boyer c08cca
Dave Jones 0297ab
* Mon Feb 20 2012 Dave Jones <davej@redhat.com>
Dave Jones 0297ab
- NFSv4: Fix an Oops in the NFSv4 getacl code
Dave Jones 0297ab
Josh Boyer c08cca
* Mon Feb 20 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git0.2
Josh Boyer 8bd306
- Reenable debugging options.
Josh Boyer 8bd306
Josh Boyer c08cca
* Sun Feb 19 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc4.git0.1
Josh Boyer cd68c0
- Linux 3.3-rc4
Josh Boyer cd68c0
- Disable debugging options.
Josh Boyer cd68c0
d92680
* Sun Feb 19 2012 Peter Robinson <pbrobinson@fedoraproject.org>
d92680
- Further updates to ARM config
d92680
- Fix and re-enable Tegra NVEC patch
d92680
Dave Jones 9ce789
* Fri Feb 17 2012 Dave Jones <davej@redhat.com>
Dave Jones ad44e0
- improve handling of null rate in LIS3LV02Dx accelerometer driver. (rhbz 785814)
Dave Jones ad44e0
Dave Jones ad44e0
* Fri Feb 17 2012 Dave Jones <davej@redhat.com>
Dave Jones 9ce789
- Reenable radio drivers. (rhbz 784824)
Dave Jones 9ce789
Josh Boyer 9163dd
* Fri Feb 17 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git7.2
Josh Boyer 9163dd
- Freeze all filesystems during system suspend/hibernate.
Josh Boyer 9163dd
Josh Boyer 157fe8
* Fri Feb 17 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git7.1
Josh Boyer 157fe8
- Linux 3.3-rc3-git7 (upstream 4903062b5485f0e2c286a23b44c9b59d9b017d53)
Josh Boyer 157fe8
3f5481
* Wed Feb 15 2012 Peter Robinson <pbrobinson@fedoraproject.org>
3f5481
- Update ARM configs to 3.3 kernel
3f5481
- use mainline cpu freq options on ARM
3f5481
Josh Boyer 157fe8
* Wed Feb 15 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git6.2
Josh Boyer 7952cd
- Linux 3.3-rc3-git6 (upstream c38e23456278e967f094b08247ffc3711b1029b2)
Josh Boyer 39fd9c
- Require newer linux-firmware package for updated bnx2/bnx2x drivers
Josh Boyer 7952cd
f935a1
* Wed Feb 15 2012 Adam Jackson <ajax@redhat.com>
f935a1
- Add patch and config change for vgem.ko
f935a1
John W. Linville f516fc
* Wed Feb 15 2012 John W. Linville <linville@redhat.com>
John W. Linville f516fc
- Disable with_backports to help things to stabilize
John W. Linville f516fc
Josh Boyer 9bf39b
* Tue Feb 14 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 9bf39b
- Add patch to fix RCU usage during cpu idle (rhbz 789641)
Josh Boyer 9bf39b
- Add patch to fix mce rcu splat (rhbz 789644)
Josh Boyer 65b723
- Patch to enable CONFIG_KEYS_COMPAT on s390 from David Howells (rhbz 790367)
Josh Boyer b150cf
- Modify sd_revalidate_disk patch to do a WARN_ONCE instead of silently skip
Josh Boyer 08db8c
- Install perf examples as suggested by Jason Baron
Josh Boyer 9bf39b
Josh Boyer 770ad8
* Tue Feb 14 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git5.1
Josh Boyer 770ad8
- Linux 3.3-rc3-git5 (upstream ce5afed937f0a823d3b00c9459409c3f5f2fbd5d)
Josh Boyer 770ad8
4cee10
* Tue Feb 14 2012 Peter Robinson <pbrobinson@fedoraproject.org>
4cee10
- Update ARM components in Makefile.config
4cee10
Josh Boyer 2d7f1b
* Mon Feb 13 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 2d7f1b
- Apply patch to fix autofs4 lockdep splat (rhbz 714828)
Josh Boyer 2d7f1b
Josh Boyer 96e2cd
* Mon Feb 13 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git4.1
Josh Boyer 96e2cd
- Linux 3.3-rc3-git4 (upstream 3ec1e88b33a3bdd852ce8e014052acec7a9da8b5)
Josh Boyer 96e2cd
Josh Boyer 88671e
* Sat Feb 11 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git3.1
Josh Boyer 88671e
- Linux 3.3-rc3-git3 (upstream 8df54d622a120058ee8bec38743c9b8f091c8e58)
Josh Boyer 88671e
Josh Boyer beef0e
* Fri Feb 10 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer beef0e
- Patch to prevent NULL pointer dereference in sd_revalidate_disk (rhbz 754518)
Josh Boyer beef0e
Josh Boyer 87001d
* Fri Feb 10 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git2.1
Josh Boyer 87001d
- Linux 3.3-rc3-git2 (upstream 612b8507c5d545feed2437b3d2239929cac7688d)
Josh Boyer 87001d
Josh Boyer 87001d
* Fri Feb 10 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc3.git1.2
Josh Boyer 85df0e
- Reenable debugging options.
Josh Boyer 85df0e
Josh Boyer fa3e4f
* Fri Feb 10 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer fa3e4f
- Linux 3.3-rc3-git1 (upstream 19e00f2f1d5273dbc52eab0ebc315cae3aa44b2a)
Josh Boyer fa3e4f
Dave Jones 75f90a
* Thu Feb 09 2012 Dave Jones <davej@redhat.com>
Dave Jones 75f90a
- bsg: fix sysfs link remove warning (#787281)
Dave Jones 75f90a
Josh Boyer b0d831
* Thu Feb 09 2012 Josh Boyer <jwboyer@gmail.com> - 3.3.0-0.rc3.git0.2
Josh Boyer b0d831
- Disable debugging options.
Josh Boyer b0d831
Josh Boyer 9befbf
* Thu Feb 09 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 9befbf
- Linux 3.3-rc3
Josh Boyer 9befbf
Josh Boyer 7dc73b
* Wed Feb 08 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer a9de21
- Remove a bogus inline declaration that broke ARM and ppc builds (rhbz 787373)
Josh Boyer 7dc73b
- CVE-2011-4086 jbd2: unmapped buffer with _Unwritten or _Delay flags set can
Josh Boyer 7dc73b
  lead to DoS (rhbz 788260)
Josh Boyer 36def9
- Add new upstream NFS id mapping patches from Steve Dickson
Josh Boyer 7dc73b
Josh Boyer d916a9
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer d916a9
- Linux 3.3-rc2-git6 (upstream 6bd113f1f4a8c0d05c4dbadb300319e0e3526db4)
Josh Boyer d916a9
Chris Wright d12d87
* Tue Feb 07 2012 Chris Wright <chrisw@redhat.com>
Chris Wright d12d87
- Enable Open vSwitch
Chris Wright d12d87
0aaee5
* Tue Feb 07 2012 Justin M. Forbes <jforbes@redhat.com>
0aaee5
- Add virtio-scsi support
0aaee5
Josh Boyer 4efc0c
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer bddef7
- Make build/ point to /usr/src/kernels instead of being relative (rhbz 788125)
Josh Boyer bddef7
Josh Boyer bddef7
* Tue Feb 07 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 4efc0c
- Linux 3.3-rc2-git5 (upstream 8597559a78e1cde158b999212bc9543682638eb1)
Josh Boyer 4efc0c
- Add hfsplus file blessing patches from Matthew Garrett
Josh Boyer 4efc0c
551d75
* Mon Feb  6 2012 Peter Robinson <pbrobinson@fedoraproject.org>
551d75
- Build an ARM hardfp base versatile/qemu kernel
551d75
Josh Boyer b08093
* Mon Feb 06 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc2.git4.1
Josh Boyer b08093
- Linux 3.3-rc2-git4 (upstream 23783f817bceedd6d4e549385e3f400ea64059e5)
Josh Boyer b08093
- Build and ship turbostat and x86_energy_perf_policy in kernel-tools
Josh Boyer b08093
John W. Linville 2940fa
* Mon Feb 06 2012 John W. Linville <linville@redhat.com>
John W. Linville 2940fa
- Update compat-wireless snapshot from 2012-02-05
John W. Linville 2940fa
Josh Boyer 3acb24
* Fri Feb 03 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3acb24
- Goodbye iSeries.  Only sfr loved you and even he's moved on
Josh Boyer 3acb24
Josh Boyer 914bd7
* Fri Feb 03 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc2.git3.2
Josh Boyer 914bd7
- Drop patch that was NAKed upstream (rhbz 783211)
Josh Boyer 914bd7
Josh Boyer 46521a
* Fri Feb 03 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc2.git3.1
Josh Boyer 46521a
- Linux 3.3-rc2-git3 (upstream 7f06db34e55af8fc33cf3d6d46d869cb7a372b5d)
Josh Boyer d2b017
- Patch from Jakub Kicinski to fix rt2x00 MCU requests (rhbz 772772)
Josh Boyer d2b017
860b1a
* Thu Feb 02 2012 Dennis Gilmore <dennis@ausil.us>
860b1a
- disable TOUCHSCREEN_EGALAX on arm arches
860b1a
- build in CACHE_L2X0 on the imx kernel
860b1a
- dont build the module for imx21 usb since its not something we support
860b1a
a49260
* Thu Feb 02 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc2.git2.1
Josh Boyer 49c721
- Linux 3.3-rc2-git2 (upstream 24b36da33c64368775f4ef9386d44dce1d2bc8cf)
Josh Boyer 49c721
e4c5c5
* Thu Feb 02 2012 Dennis Gilmore <dennis@ausil.us>
e4c5c5
- disable compat-wireless on arm arches
e4c5c5
Josh Boyer 94e377
* Wed Feb 01 2012 Josh Boyer <jwboyer@gmail.com> - 3.3.0-0.rc2.git1.1
Josh Boyer 94e377
- Linux 3.3-rc2-git1 (upstream ce106ad31016b5da1168496cd0454a6290555f84)
Josh Boyer 94e377
Josh Boyer c762c2
* Wed Feb 01 2012 Josh Boyer <jwboyer@gmail.com> - 3.3.0-0.rc2.git0.3
Josh Boyer c762c2
- Reenable debugging options.
Josh Boyer c762c2
Josh Boyer bc1743
* Tue Jan 31 2012 Josh Boyer <jwboyer@gmail.com> - 3.3.0-0.rc2.git0.2
Josh Boyer bc1743
- Disable debugging options.
Josh Boyer bc1743
Josh Boyer ae3db8
* Tue Jan 31 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer ae3db8
- Linux 3.3-rc2
Josh Boyer ae3db8
Dave Jones 977555
* Tue Jan 31 2012 Dave Jones <davej@redhat.com>
Dave Jones 3994eb
- Distributed switch architecture & drivers can be modular in 3.3.
Dave Jones 977555
Josh Boyer cf9048
* Mon Jan 30 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git6.1
Josh Boyer cf9048
- Linux 3.3-rc1-git6 (upstream 6bc2b95ee602659c1be6fac0f6aadeb0c5c29a5d)
Josh Boyer cf9048
- Add patch from Kay Sievers for udlfb device removal
Josh Boyer cf9048
- utrace patch to allow calling internal functions from atomic context from
Josh Boyer cf9048
  Oleg Nesterov
Josh Boyer cf9048
John W. Linville d47884
* Mon Jan 30 2012 John W. Linville <linville@redhat.com>
John W. Linville d47884
- ath9k: use WARN_ON_ONCE in ath_rc_get_highest_rix
John W. Linville d47884
Josh Boyer cf01b7
* Sun Jan 29 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git5.1
Josh Boyer cf01b7
- Linux 3.3-rc1-git5 (upstream 0a9626575400879d1d5e6bc8768188b938d7c501)
Josh Boyer cf01b7
John W. Linville 6701fe
* Fri Jan 27 2012 John W. Linville <linville@redhat.com>
John W. Linville 6701fe
- Update compat-wireless with snapshot from 2012-01-26
John W. Linville 6701fe
- Drop brcmfmac GCC 4.7 compatibility patch (included in above)
John W. Linville 6701fe
- Include config.mk from compat-wireless build in files for installation
John W. Linville 6701fe
Josh Boyer 30a309
* Fri Jan 27 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git4.1
Josh Boyer 30a309
- Linux 3.3-rc1-git4 (upstream 74ea15d909b31158f9b63190a95b52bc05586d4b)
Josh Boyer 30a309
- Enable the non-staging GMA500 driver (rhbz 785053)
Josh Boyer 30a309
Josh Boyer 3f3bad
* Thu Jan 26 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3f3bad
- Drop revert-efi-rtclock.patch.  Issue was fixed by upstream commit 47997d75
Josh Boyer 14c5ae
- Enable CONFIG_EFI_STUB per Matthew Garrett
Josh Boyer 3f3bad
609f8f
* Wed Jan 25 2012 Peter Robinson <pbrobinson@fedoraproject.org>
609f8f
- Build perf/tools on ARM sfp/hfp not just sfp
43fa71
Josh Boyer 6cc339
* Wed Jan 25 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git3.1
Josh Boyer 6cc339
- Linux 3.3-rc1-git3 (upstream aaad641eadfd3e74b0fbb68fcf539b9cef0415d0)
Josh Boyer 62e9e5
- Update utrace.patch from Oleg Nesterov
Josh Boyer b4c7c3
- Add patch to invalidate parent cache when fsync is called on a partition 
Josh Boyer b4c7c3
  (rhbz 783211)
Josh Boyer 62e9e5
Josh Boyer 64d09e
* Wed Jan 25 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git2.1
Josh Boyer 64d09e
- Linux 3.3-rc1-git2 (upstream f8275f9694b8adf9f3498e747ea4c3e8b984499b)
Josh Boyer 64d09e
Josh Boyer c876c7
* Tue Jan 24 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c876c7
- Re-enable the ARCMSR module (rhbz 784287)
Josh Boyer d5f748
- Re-enable the LIRC_STAGING drivers (rhbz 784398)
Josh Boyer c876c7
Josh Boyer 10e2c3
* Tue Jan 24 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git1.1
Josh Boyer 10e2c3
- Linux 3.3-rc1-git1 (upstream c1aab02dac690af7ff634d8e1cb3be6a04387eef)
Josh Boyer 10e2c3
Josh Boyer 7f88f4
* Mon Jan 23 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git0.4
Josh Boyer 7f88f4
- Reenable debugging options.
Josh Boyer 7f88f4
Josh Boyer 6ec053
* Mon Jan 23 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 6ec053
- Add mac80211 deauth fix pointed out by Stanislaw Gruszka
Josh Boyer 6ec053
- Add arch guards in files section for kernel-tools subpackage
Josh Boyer 6ec053
Josh Boyer ec5a10
* Sun Jan 22 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git0.3
Josh Boyer ec5a10
- Disable NVME as it doesn't build on 32-bit
Josh Boyer ec5a10
Josh Boyer ec5a10
* Fri Jan 20 2012 Josh Boyer <jwboyer@redhat.com> - 3.3.0-0.rc1.git0.2
Josh Boyer 76e8dd
- Disable debugging options.
Josh Boyer 76e8dd
Josh Boyer e8409b
* Fri Jan 20 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer e8409b
- Rebase to Linux 3.3-rc1
Josh Boyer e8409b
John W. Linville 4ff232
* Thu Jan 19 2012 John W. Linville <linville@redhat.com>
John W. Linville 4ff232
- Pass the same make options to compat-wireless as to the base kernel
John W. Linville 4ff232
f8708c
* Thu Jan 19 2012 Dennis Gilmore <dennis@ausil.us>
f8708c
- dont build TOUCHSCREEN_EETI on arm 
f8708c
Josh Boyer 57fc03
* Wed Jan 18 2012 Josh Boyer <jwboyer@redhat.com> 3.2.1-8
Josh Boyer 57fc03
- Fix broken procfs backport (rhbz 782961)
Josh Boyer 57fc03
Josh Boyer 1b35f5
* Wed Jan 18 2012 Josh Boyer <jwboyer@redhat.com> 3.2.1-7
Josh Boyer 42c018
- /proc/pid/* information leak (rhbz 782686)
Josh Boyer 3b621a
- CVE-2012-0056 proc: clean up and fix /proc/<pid>/mem (rhbz 782681)
Josh Boyer ac03f3
- CVE-2012-0058 Unused iocbs in a batch should not be accounted as active
Josh Boyer ac03f3
  (rhbz 782696)
Josh Boyer 3b621a
Dave Jones d283b6
* Tue Jan 17 2012 Dave Jones <davej@redhat.com>
Dave Jones d283b6
- Rawhide builds now use MAXSMP on x86.
Dave Jones d283b6
- For release builds, set x86-64 to support 64 CPUs.
Dave Jones d283b6
  If larger systems become widespread, we can increase in an update.
Dave Jones d283b6
Dave Jones a94317
* Tue Jan 17 2012 Dave Jones <davej@redhat.com> 3.2.1-5
Dave Jones 6dfd49
- Give KMEMLEAK a try again.
Dave Jones 6dfd49
Dave Jones 36c7a6
* Mon Jan 16 2012 Dave Jones <davej@redhat.com>
Dave Jones 36c7a6
- Disable ISA
Dave Jones 36c7a6
John W. Linville 912fdf
* Mon Jan 16 2012 John W. Linville <linville@redhat.com>
John W. Linville 912fdf
- Re-enable CONFIG_BRCMFMAC builds (found work-around for GCC 4.7 builds)
John W. Linville 912fdf
Josh Boyer 08ed14
* Sun Jan 15 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 08ed14
- Avoid packaging symlinks for kernel-doc files (rhbz 767351)
Josh Boyer 6c1c99
- Apply mac80211 NULL ptr deref fix to compat-wireless too (rhbz 769766)
Josh Boyer 08ed14
Dave Jones 47a613
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones afa8ec
- Disable NFC drivers.
Dave Jones afa8ec
Dave Jones afa8ec
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 277962
- Enable CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK
Dave Jones 277962
  (On by default in rawhide/-debug)
Dave Jones 277962
Dave Jones 277962
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 2ee9f1
- Disable memory hotplug on x86-64
Dave Jones 2ee9f1
Dave Jones 2ee9f1
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 010a4f
- Disable Calgary IOMMU
Dave Jones 010a4f
Dave Jones 010a4f
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 07ac77
- Disable MTD
Dave Jones 07ac77
Dave Jones 07ac77
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 1e9f58
- Flannel shirts, Grunge music, IOMega ZIP drives, PCMCIA & ISA SCSI
Dave Jones 1e9f58
  controllers. The 90s were _awesome_. But it's time to move on.
Dave Jones 1e9f58
Dave Jones 1e9f58
* Fri Jan 13 2012 Dave Jones <davej@redhat.com>
Dave Jones 47a613
- Disable PLIP, Enable PPP BSDCOMP, Disable SLIP
Dave Jones 47a613
Josh Boyer 04ca5f
* Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 04ca5f
- Fix verbose logging messages in the rtl8192cu driver (rhbz 728740)
Josh Boyer 04ca5f
Josh Boyer 3aa57a
* Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com> 3.2.1-2
Josh Boyer 3aa57a
- CVE-2012-0045 kvm: syscall instruction induced guest panic (rhbz 773392)
Josh Boyer 3aa57a
Josh Boyer fdb68d
* Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com> 3.2.1-1
Dave Jones 5b8eba
- Linux 3.2.1
Josh Boyer fdb68d
- Change stable patch compression format to xz
Josh Boyer fdb68d
Josh Boyer 34e654
* Wed Jan 11 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 34e654
- Patch from Stanislaw Gruszka to fix NULL ptr deref in mac80211 (rhbz 769766)
Josh Boyer 34e654
John W. Linville fb21dc
* Tue Jan 10 2012 John W. Linville <linville@redhat.com>
John W. Linville fb21dc
- Update compat-wireless snapshot with version from 2012-01-09
John W. Linville fb21dc
Josh Boyer 8aec61
* Tue Jan 10 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8aec61
- Add patch to fix ext4 compatibility with ext2 mount option (rhbz 770172)
Josh Boyer a5827f
- Fix ext4 corrupted bitmap error path (pointed out by Eric Sandeen)
Josh Boyer 8aec61
2b37c3
* Thu Jan 05 2012 Adam Jackson <ajax@redhat.com>
2b37c3
- Disable unsupported DRI1-only DRM drivers: i810, r128, tdfx
2b37c3
John W. Linville 7fee57
* Thu Jan 05 2012 John W. Linville <linville@redhat.com>
John W. Linville 7fee57
- Patch compat-wireless build to avoid "pr_fmt redefined" warnings
John W. Linville 7fee57
- Disable CONFIG_BRCMFMAC builds (needs unknown symbol __bad_udelay)
John W. Linville 7fee57
- Include compat-wireless in removal of files resulting from patch fuzz
John W. Linville 7fee57
Josh Boyer ac403a
* Thu Jan 05 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer ac403a
- Move the depmod file removal below the compat-wireless build to make sure we
Josh Boyer ac403a
  clean them all out
Josh Boyer ac403a
Dave Jones be19a6
* Thu Jan 05 2012 Dave Jones <davej@redhat.com>
Dave Jones be19a6
- CONFIG_DEBUG_SET_MODULE_RONX should always be set.
Dave Jones be19a6
Dave Jones c89941
* Thu Jan 05 2012 Dave Jones <davej@redhat.com> - 3.2.0-3
Dave Jones c89941
- Reenable debugging options.
Dave Jones c89941
Dave Jones 086827
* Thu Jan 05 2012 Dave Jones <davej@redhat.com> - 3.2.0-2
Dave Jones 086827
- Disable debugging options.
Dave Jones 086827
Dave Jones 8959a0
* Wed Jan 04 2012 Dave Jones <davej@redhat.com> 3.2.0-1
Dave Jones 8959a0
- Linux 3.2
Dave Jones 8959a0
Dave Jones c54d27
* Wed Jan 04 2012 Dave Jones <davej@redhat.com> 3.2.0-0.rc7.git5.1
Dave Jones c54d27
- Linux 3.2-rc7-git5 (157e8bf8b4823bfcdefa6c1548002374b61f61df)
Dave Jones c54d27
John W. Linville 37e219
* Tue Jan 03 2012 John W. Linville <linville@redhat.com> 
John W. Linville 37e219
- Avoid unnecessary modprobe invocations during compat-wireless build
John W. Linville 37e219
Josh Boyer 54daf0
* Tue Jan 03 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 54daf0
- Add bluetooth support for BCM20102A0 21e3 (rhbz 770233)
Josh Boyer 54daf0
John W. Linville c679b8
* Tue Jan 03 2012 John W. Linville <linville@redhat.com> 
John W. Linville c679b8
- Re-enable CONFIG_RT2800PCI_RT53XX in compat-wireless build (rhbz #720594)
John W. Linville c679b8
Dave Jones a19da5
* Mon Jan 02 2012 Dave Jones <davej@redhat.com> - 3.2.0-0.rc7.git4.1
Dave Jones a19da5
- Linux 3.2-rc7-git4 (115e8e705e4be071b9e06ff72578e3b603f2ba65)
Dave Jones a19da5
Dave Jones ae6da8
* Sat Dec 31 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc7.git3.1
Dave Jones ae6da8
- Linux 3.2-rc7-git3 (06867fbb8abc936192195e5dcc4b63e12cc78f72)
Dave Jones ae6da8
Dave Jones 74b713
* Fri Dec 30 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc7.git2.1
Dave Jones 74b713
- Linux 3.2-rc7-git2 (89307babf966165171547f105e2253dec261cfa5)
Dave Jones 74b713
Dave Jones 3d927e
* Wed Dec 28 2011 Dave Jones <davej@redhat.com>
Dave Jones 3d927e
- Disable unnecessary CONFIG_NET_DCCPPROBE
Dave Jones 3d927e
Dave Jones 26e753
* Wed Dec 28 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc7.git1.1
Dave Jones 26e753
- Linux 3.2-rc7-git1 (371de6e4e0042adf4f9b54c414154f57414ddd37)
Dave Jones 26e753
Kyle McMartin b02aa1
* Sat Dec 24 2011 Kyle McMartin <kyle@redhat.com> - 3.2.0-0.rc7.git0.1
Kyle McMartin b02aa1
- Linux 3.2-rc7
Kyle McMartin b02aa1
d3b519
* Fri Dec 23 2011 Dennis Gilmore <dennis@ausil.us> 
d3b519
- build imx highbank and kirkwood kernels on arm
d3b519
- clean up arm config options
d3b519
Dave Jones 2569ae
* Thu Dec 22 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc6.git3.1
Dave Jones 2569ae
- Linux 3.2-rc6-git3 (ecefc36b41ac0fe92d76273a23faf27b2da13411)
Dave Jones 2569ae
Dave Jones 39b6e0
* Tue Dec 20 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc6.git2.1
Dave Jones 39b6e0
- Linux 3.2-rc6-git2 (a4a4923919f2d43583789b1f3603f4e5600d8321)
Dave Jones 39b6e0
Josh Boyer be7f8e
* Tue Dec 20 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer be7f8e
- Include crtsaves.o for ppc64 as well (rhbz #769415)
Josh Boyer 0e0a3a
- Drop EDID headers patch from 751589 for now (rhbz #769103)
Josh Boyer be7f8e
Josh Boyer be7f8e
* Mon Dec 19 2011 John W. Linville <linville@redhat.com>
John W. Linville 217da4
- modpost: add option to allow external modules to avoid taint
John W. Linville 217da4
- Make integrated compat-wireless take advantage of the above
John W. Linville 217da4
- Turn-on backports again, since TAINT_OOT_MODULE issue is resolved
John W. Linville 217da4
- Update compat-wireless snapshot from 2011-12-18
John W. Linville 217da4
Dave Jones 7729f4
* Mon Dec 19 2011 Dave Jones <davej@redhat.com>
Dave Jones 92505b
- Switch x86-code-dump-fix-truncation.patch to use the pending upstream fix.
Dave Jones 92505b
Dave Jones 92505b
* Mon Dec 19 2011 Dave Jones <davej@redhat.com>
Dave Jones 7729f4
- Disable IMA. (Forces TPM on, which may be undesirable: See 733964, 746097)
Dave Jones 7729f4
  Move TPM modules to modules-extra
Dave Jones 7729f4
Dave Jones cd4b60
* Mon Dec 19 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc6.git1.1
Dave Jones cd4b60
- Linux 3.2-rc6-git1 (390f998509bf049019df0b078c0a6606e0d57fb4)
Dave Jones cd4b60
Josh Boyer 799841
* Sat Dec 17 2011 Josh Boyer <jwboyer@redhat.com> - 3.2.0-0.rc6.git0.1
Josh Boyer 799841
- Linux 3.2-rc6
Josh Boyer 799841
Dave Jones e7b5db
* Fri Dec 16 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc5.git4.1
Dave Jones e7b5db
- Linux 3.2-rc5-git4 (6f12d2ee52dcf97dcefdadbd500e7650311eaa6a)
Dave Jones e7b5db
Ben Skeggs b126e8
* Fri Dec 16 2011 Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs b126e8
- Add patch to do a better job of dealing with busted EDID headers (rhbz#751589)
Ben Skeggs b126e8
Josh Boyer dd5103
* Thu Dec 15 2011 Josh Boyer <jwboyer@redhat.com> - 3.2.0-0.rc5.git3.1
Josh Boyer dd5103
- Linux 3.2-rc5-git3 (55b02d2f4445ad625213817a1736bf2884d32547)
Josh Boyer dd5103
Dave Jones ee15bb
* Thu Dec 15 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc5.git2.4
Dave Jones ee15bb
- Disable Intel IOMMU by default.
Dave Jones ee15bb
Dave Jones 70e0ba
* Thu Dec 15 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc5.git2.3
Dave Jones 70e0ba
- Change configfs to be built-in. (rhbz 767432)
Dave Jones 70e0ba
Dave Jones e87388
* Wed Dec 14 2011 Steve Dickson <steved@redhat.com> 3.2.0-0.rc5.git2.2.fc17
Dave Jones f3fbdc
- Enabled the in-kernel idmapper.
Dave Jones f3fbdc
- keyring: allow special keyrings to be cleared
Dave Jones f3fbdc
Dave Jones 59806e
* Wed Dec 14 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc5.git2.1
Dave Jones 59806e
- Linux 3.2-rc5-git2 (373da0a2a33018d560afcb2c77f8842985d79594)
Dave Jones 59806e
Dave Jones d9f7d1
* Tue Dec 13 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc5.git1.1
Dave Jones d9f7d1
- Linux 3.2-rc5-git1 (442ee5a942834431ccf0b412e3cf7bb9ae97ff4e)
Dave Jones d9f7d1
Dave Jones 5cb469
* Tue Dec 13 2011 Dave Jones <davej@redhat.com>
Dave Jones 5cb469
- Disable FDDI/SKFP.
Dave Jones 5cb469
Josh Boyer d496e0
* Tue Dec 13 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer d496e0
- mod-extras: Don't fail the build if a module is listed that isn't built
Josh Boyer 4a6707
- Remove extraneous settings and enable Radeon KMS for powerpc (via Will Woods)
Josh Boyer d496e0
John W. Linville 98db75
* Mon Dec 12 2011 John W. Linville <linville@redhat.com>
John W. Linville 98db75
- Turn-off backports until TAINT_OOT_MODULE issue is resolved
John W. Linville 98db75
Josh Boyer 23654a
* Mon Dec 12 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 23654a
- Disable backports on arches where we don't actually build a kernel (or config)
Josh Boyer 23654a
Kyle McMartin 09b002
* Sun Dec 11 2011 Kyle McMartin <kyle@redhat.com> - 3.0.0-0.rc5.git0.1
Kyle McMartin 09b002
- Linux 3.2-rc5
Kyle McMartin 09b002
John W. Linville 3a3b49
* Fri Dec 09 2011 John W. Linville <linville@redhat.com>
John W. Linville 3a3b49
- Do a better job of cleaning-up compat-wireless between builds
John W. Linville 3a3b49
Dave Jones dc9992
* Fri Dec 09 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc4.git6.1
Dave Jones dc9992
- Linux 3.2-rc4-git6 (09d9673d53005fdf40de4c759425893904292236)
Dave Jones dc9992
Josh Boyer 9f7d28
* Thu Dec 08 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 9f7d28
- Add patch from Jeff Layton to fix suspend with NFS (rhbz #717735)
Josh Boyer 9f7d28
Dave Jones 6e216e
* Wed Dec 07 2011 Dave Jones <davej@redhat.com> - 3.2.0-0.rc4.git5.2
Dave Jones 6e216e
- Linux 3.2-rc4-git5 (77a7300abad7fe01891b400e88d746f97307ee5a)
Dave Jones 6e216e
Dave Jones e67777
* Wed Dec 07 2011 Dave Jones <davej@redhat.com>
Dave Jones e67777
- Turn DEBUG_PAGEALLOC back off.
Dave Jones e67777
Chuck Ebbert ede16e
* Wed Dec 07 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert ede16e
- Attempt to fix rhbz #736815 by printing spaces before the brackets
Chuck Ebbert ede16e
Dave Jones 1cb5d1
* Tue Dec 06 2011 Dave Jones <davej@redhat.com> 3.2.0-0.rc4.git4.2.fc17
Dave Jones 1cb5d1
- Linux 3.2-rc4-git2 (b835c0f47f725d864bf2545f10c733b754bb6d51)
Dave Jones 1cb5d1
Dave Jones 68b02a
* Tue Dec 06 2011 Dave Jones <davej@redhat.com>
Dave Jones b1cdcd
- Turn on DEBUG_PAGEALLOC for a day.
Dave Jones b1cdcd
Dave Jones b1cdcd
* Tue Dec 06 2011 Dave Jones <davej@redhat.com>
Dave Jones 68b02a
- Linux 3.2-rc4-git2 (45e713efe2fa574b6662e7fb63fae9497c5e03d4)
Dave Jones 68b02a
Josh Boyer 61b173
* Tue Dec 06 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 884a3e
- Move 802.1q and yenta_socket back into the main kernel package
Josh Boyer 61b173
Josh Boyer 478705
* Mon Dec 05 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 478705
- Only print the apm_cpu_idle message once (rhbz #760341)
Josh Boyer 478705
Dave Jones b44211
* Mon Dec 05 2011 Dave Jones <davej@redhat.com>
Dave Jones b44211
- Enable CONFIG_BSD_ACCT_V3. Should be safe since psacct-6.5.4-4.fc14.
Dave Jones b44211
Dave Jones fc4812
* Mon Dec 05 2011 Dave Jones <davej@redhat.com> 3.2.0-0.rc4.git2.1.fc17
Dave Jones fc4812
- Linux 3.2-rc4-git2 (8e8da023f5af71662867729db5547dc54786093c)
Dave Jones fc4812
John W. Linville e04a21
* Sat Dec 03 2011 John W. Linville <linville@redhat.com> 
John W. Linville e04a21
- Add compat-wireless patch to define module_usb_driver
John W. Linville e04a21
John W. Linville aeaaac
* Fri Dec 02 2011 John W. Linville <linville@redhat.com> 
John W. Linville aeaaac
- Revise compat-wireless configuration
John W. Linville aeaaac
- Update compat-wireless snapshot
John W. Linville aeaaac
- Enable with-backports by default
John W. Linville aeaaac
Josh Boyer 9f33e8
* Fri Dec 02 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc4.git1.4.fc17
Josh Boyer 9f33e8
- Backport ALPS touchpad patches from input/next branch (rhbz #590880)
Josh Boyer 08b653
- Apply patch from John Linville to reverse modules-extra dependency order
Josh Boyer 42087d
- Put ssb.ko back in the main kernel package
Josh Boyer 42087d
Dave Jones 5e401e
* Fri Dec 02 2011 Dave Jones <davej@redhat.com> 3.2.0-0.rc4.git1.3.fc17
Dave Jones 5e401e
- Enable Poulsbo DRM.
Dave Jones 5e401e
Dave Jones 8c98cf
* Fri Dec 02 2011 Dave Jones <davej@redhat.com>
Dave Jones 8c98cf
- Linux 3.2-rc4-git1 (5983fe2b29df5885880d7fa3b91aca306c7564ef)
Dave Jones 8c98cf
  dropped: rtlwifi-fix-lps_lock-deadlock.patch (applied upstream)
Dave Jones 8c98cf
Josh Boyer b66345
* Fri Dec 02 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b66345
- Adjust Requires for modules-extra pacakge to rely on kernel-uname-r
Josh Boyer b66345
Dave Jones 667831
* Thu Dec 01 2011 Dave Jones <davej@redhat.com>
Dave Jones 115248
- Linux 3.2-rc4
Dave Jones 115248
Dave Jones 115248
* Thu Dec 01 2011 Dave Jones <davej@redhat.com>
Dave Jones 667831
- Linux 3.2-rc3-git2 (b930c26416c4ea6855726fd977145ccea9afbdda)
Dave Jones 667831
Josh Boyer b8b278
* Tue Nov 29 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer b8b278
- Add modules-extra subpackage
Josh Boyer 5bd554
- Drop drm-intel-make-lvds-work.patch (rhbz #731296)
Josh Boyer fe3259
- Add patch to fix deadlock in rtlwifi (rhbz #755154)
Josh Boyer b8b278
Josh Boyer 5e296f
* Tue Nov 29 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc3.git1.1
Josh Boyer 5e296f
- Linux 3.2-rc3-git1
Josh Boyer 5e296f
Josh Boyer 471066
* Thu Nov 24 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc3.git0.1
Josh Boyer 471066
- Linux 3.2-rc3.  Gobble.
Josh Boyer 471066
Josh Boyer d7de9e
* Wed Nov 23 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git8.1
Josh Boyer d7de9e
- Linux 3.2-rc2-git8
Josh Boyer d7de9e
Josh Boyer c877f3
* Tue Nov 22 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git7.1
Josh Boyer c877f3
- Linux 3.2-rc2-git7
Josh Boyer c877f3
Josh Boyer 467901
* Mon Nov 21 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git6.1
Josh Boyer 467901
- Linux 3.2-rc2-git6
Josh Boyer 467901
- Update utrace.patch from Oleg Nesterov
Josh Boyer 467901
Josh Boyer 43864d
* Mon Nov 21 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git5.1
Josh Boyer 43864d
- Linux 3.2-rc2-git5
Josh Boyer 43864d
Josh Boyer 09eae3
* Sun Nov 20 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git4.1
Josh Boyer 09eae3
- Linux 3.2-rc2-git4
Josh Boyer 09eae3
Josh Boyer 0ab1ce
* Fri Nov 18 2011 Josh Boyer <jwboyer@redhat.com> 3.2.0-0.rc2.git3.1
Josh Boyer 0ab1ce
- Linux 3.2-rc2-git3
Josh Boyer 0ab1ce
- Disable various fb and drm drivers that don't have xorg equivalents per ajax
Josh Boyer 0ab1ce
- Other minor config cleanup
Josh Boyer 0ab1ce
Josh Boyer 9e8b97
* Thu Nov 17 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 9e8b97
- Linux 3.2-rc2-git2
Josh Boyer 9e8b97
Kyle McMartin 058752
* Thu Nov 17 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin 058752
- Drop Obsoletes/Provides from kernel-tools onto perf.
Kyle McMartin 058752
John W. Linville 10731a
* Wed Nov 16 2011 John W. Linville <linville@redhat.com>
John W. Linville 10731a
- Add compat-wireless as an option for kernel build
John W. Linville 10731a
Kyle McMartin e20e75
* Wed Nov 16 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin e20e75
- Work around #663080 and restore building 'perf' on s390x (we don't need
Kyle McMartin e20e75
  kernel-tools since cpuspeed isn't needed on s390...)
Kyle McMartin 8bcddf
- Restore %{perf_make} to ensure CFLAGS doesn't change across building
Kyle McMartin 8bcddf
  perf.
Kyle McMartin e20e75
Josh Boyer 6df08a
* Wed Nov 16 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 6df08a
- Linux 3.2-rc2-git1
Josh Boyer 6df08a
Josh Boyer c7a536
* Mon Nov 14 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 4215bf
- Patch from Joshua Roys to add rtl8192* to modules.networking (rhbz 753645)
Josh Boyer 8e7e63
- Add patch to fix ip6_tunnel naming (rhbz 751165)
Josh Boyer e7cafd
- Quite warning in apm_cpu_idle (rhbz 753776)
Josh Boyer 4215bf
Josh Boyer 4215bf
* Mon Nov 14 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer c7a536
- CVE-2011-4131: nfs4_getfacl decoding kernel oops (rhbz 753236)
Josh Boyer c7a536
- Linux 3.2-rc1-git4
Josh Boyer c7a536
Josh Boyer 90ac8d
* Sat Nov 12 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 90ac8d
- Linux 3.2-rc1-git3
Josh Boyer 90ac8d
Chuck Ebbert e6236b
* Fri Nov 11 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert e6236b
- Use the same naming scheme as rawhide for -stable RC kernels
Chuck Ebbert e6236b
  (e.g. 3.1.1-0.rc1.1 instead of 3.1.1-1.rc1)
Chuck Ebbert e6236b
Josh Boyer 03f8e6
* Fri Nov 11 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 03f8e6
- Add reworked pci ASPM patch from Matthew Garrett
Josh Boyer 03f8e6
John W. Linville 2be549
* Fri Nov 11 2011 John W. Linville <linville@redhat.com>
John W. Linville 2be549
- Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
John W. Linville 2be549
Josh Boyer 9b8fcc
* Thu Nov 10 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 9b8fcc
- Linux 3.2-rc1-git2
Josh Boyer 9b8fcc
Josh Boyer 33f57d
* Wed Nov 09 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 33f57d
- Linux 3.2-rc1-git1
Josh Boyer 33f57d
- Enable the brcm80211 modules now that they have left staging
Josh Boyer 33f57d
Josh Boyer 27d8a0
* Tue Nov 08 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 27d8a0
- Add python-perf-debuginfo package (rhbz 752140)
Josh Boyer 27d8a0
Neil Horman 778a29
* Tue Nov 08 2011 Neil Horman <nhorman@redhat.com>
Neil Horman 778a29
- Add msi irq ennumeration per dev in sysfs (bz 744012)
Neil Horman 778a29
Josh Boyer e3e38a
* Tue Nov 08 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer e3e38a
- Linux 3.2-rc1
Josh Boyer e3e38a
Josh Boyer ea8a97
* Mon Nov 07 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer ea8a97
- Linux 3.1-git7
Josh Boyer ea8a97
- Drop override for XEN_MAX_DOMAIN_MEMORY (rhbz 751789)
Josh Boyer dee356
- Add fixes from git://openlinux.windriver.com/people/paulg/modsplit-post-merge
Josh Boyer 44ef27
- Add two patches to fix mac80211 issues (rhbz 731365)
Josh Boyer ea8a97
Josh Boyer 7b0cc2
* Fri Nov 04 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 7b0cc2
- Linux 3.1-git6
Josh Boyer 7b0cc2
Josh Boyer 6cc3fe
* Thu Nov 03 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 6cc3fe
- Linux 3.1-git5
Josh Boyer 6cc3fe
Josh Boyer 906f34
* Tue Nov 01 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 906f34
- Linux 3.1-git4
Josh Boyer 906f34
Dave Jones e4fe1f
* Tue Nov 01 2011 Dave Jones <davej@redhat.com>
Dave Jones bf976a
- allow building the perf rpm for ARM (rhbz 741325)
Dave Jones bf976a
Dave Jones bf976a
* Tue Nov 01 2011 Dave Jones <davej@redhat.com>
Dave Jones e4fe1f
- Add another Sony laptop to the nonvs blacklist. (rhbz 641789)
Dave Jones e4fe1f
Kyle McMartin 42d4c3
* Tue Nov 01 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin 42d4c3
- Restore perf sub-package so that sparc64 and s390x get their
Kyle McMartin 42d4c3
  perf back.
Kyle McMartin 42d4c3
Josh Boyer 36ae5a
* Mon Oct 31 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 6f692a
-CVE-2011-4097: oom_badness() integer overflow (rhbz 750402)
Josh Boyer 36ae5a
Kyle McMartin ec31ef
* Mon Oct 31 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin ec31ef
- Build a python-perf subpackage.
Kyle McMartin ec31ef
Josh Boyer 8e04ce
* Mon Oct 31 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8e04ce
- Linux 3.1-git3.  Happy Halloween.
Josh Boyer 8e04ce
Josh Boyer dff085
* Fri Oct 28 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer dff085
- Linux 3.1-git2
Josh Boyer dff085
Josh Boyer 2ee118
* Thu Oct 27 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 2ee118
- Drop ia64
Josh Boyer 59694f
- Drop alpha
Josh Boyer 2ee118
Kyle McMartin 080adf
* Wed Oct 26 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin 080adf
- Make some config changes caught during a review:
Kyle McMartin 080adf
 - CONFIG_SOC_CAMERA: disable, it's only for some ARM boards
Kyle McMartin 080adf
 - CONFIG_MEDIA_ALTERA_CI=m: needed for some DVB boards
Kyle McMartin d87b3f
 - CONFIG_DEBUG_BLK_CGROUP: stop setting it twice...
Kyle McMartin 080adf
Chuck Ebbert 11ee03
* Wed Oct 26 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert 11ee03
- Add build option "--with=release" to build a non-debug kernel in rawhide.
Chuck Ebbert 11ee03
Josh Boyer 34f921
* Wed Oct 26 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 34f921
- Linux 3.1-git1
Josh Boyer 34f921
829bff
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-5
829bff
- Rebuilt for glibc bug#747377
829bff
Kyle McMartin eb0d56
* Wed Oct 26 2011 Kyle McMartin <kmcmartin@redhat.com>
Kyle McMartin eb0d56
- Drop kernel-firmware subpackage. We've had linux-firmware around for
Kyle McMartin eb0d56
  enough releases now.
Kyle McMartin 365520
- ppc64/ppc vdso patches have been upstream for ages.
Kyle McMartin 428cea
- Install vdso on s390/s390x.
Kyle McMartin 1bfd59
- Fedora 8 was a very long time ago... fancy_debuginfo turns into
Kyle McMartin 1bfd59
  with_debuginfo in the glorious future.
Kyle McMartin d54f6c
- Disable CONFIG_CC_OPTIMIZE_FOR_SIZE, upstream consensus is -O2 has
Kyle McMartin d54f6c
  generated better code than -Os for a while
Kyle McMartin d54f6c
  (https://lkml.org/lkml/2009/11/26/57)
Kyle McMartin 984583
- Drop vanilla-% targets, and other Makefile cruft which has been bit
Kyle McMartin 984583
  rotting for years.
Kyle McMartin 9410e6
- Dump %rhel config bits which are not used in Fedora.
Kyle McMartin 145e7e
- Drop dead Source0 hacks from the 2.6->3.0 transition.
Kyle McMartin eb0d56
Josh Boyer 3f831a
* Wed Oct 26 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 00f7e8
- CVE-2011-4077: xfs: potential buffer overflow in xfs_readlink() (rhbz 749166)
Josh Boyer 3f831a
Josh Boyer 158212
* Tue Oct 25 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 78ef95
- CVE-2011-3347: be2net: promiscuous mode and non-member VLAN packets DoS (rhbz 748691)
Josh Boyer 158212
- CVE-2011-1083: excessive in kernel CPU consumption when creating large nested epoll structures (rhbz 748668)
Josh Boyer 158212
Josh Boyer e78653
* Mon Oct 24 2011 Josh Boyer <jwboyer@redhat.com>
Josh Boyer e78653
- Backport 3 fixed from linux-next to fix dib0700 playback (rhbz 733827)
Josh Boyer e78653
Chuck Ebbert 750207
* Mon Oct 24 2011 Chuck Ebbert <cebbert@redhat.com> 3.1.0-1
Chuck Ebbert 750207
- Linux 3.1
Chuck Ebbert 750207
Chuck Ebbert c6b36e
* Sun Oct 23 2011 Chuck Ebbert <cebbert@redhat.com>
Chuck Ebbert c6b36e
- Make rpmbuild option "without_debug" work properly on rawhide.
Chuck Ebbert c6b36e
Chuck Ebbert 65b0d9
* Fri Oct 21 2011 Chuck Ebbert <cebbert@redhat.com> 3.1.0-0.rc10.git1.1
Chuck Ebbert 62a1a4
- Require grubby >= 8.3-1 like F16 does.
Chuck Ebbert 65b0d9
- Update to upstream HEAD (v3.1-rc10-42-g2efd7c0).
Chuck Ebbert 62a1a4
Dave Jones 19e378
* Fri Oct 21 2011 Dave Jones <davej@redhat.com>
Dave Jones 19e378
- Lower severity of Radeon lockup messages.
Dave Jones 19e378
Dave Jones a4b83e