Jesse Keating 7a32965
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a32965
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a32965
Jesse Keating 7a32965
Summary: The Linux kernel
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a32965
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a32965
# be 0.
05892a5
%global released_kernel 0
Jesse Keating 7a32965
Josh Boyer c2a12cd
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12cd
# architectures are added.
Josh Boyer c2a12cd
%ifarch %{ix86} x86_64
Josh Boyer c2a12cd
%global signmodules 1
Josh Boyer c2a12cd
%else
Josh Boyer c2a12cd
%global signmodules 0
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Jesse Keating 7a32965
# % define buildid .local
Jesse Keating 7a32965
Roland McGrath 377da6d
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6d
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6d
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a32965
#
Roland McGrath 377da6d
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6d
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6d
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6d
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6d
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6d
#
Chuck Ebbert 05e763b
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763b
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126dc
#
Chuck Ebbert 05e763b
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763b
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763b
#
d39f763
%global baserelease 1
Roland McGrath 377da6d
%global fedora_build %{baserelease}
Jesse Keating 7a32965
Jesse Keating 7a32965
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8bb
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8bb
# which yields a base_sublevel of 0.
80ea6c9
%define base_sublevel 13
Jesse Keating 7a32965
Jesse Keating 7a32965
## If this is a released kernel ##
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Do we have a -stable update to apply?
Josh Boyer e8409b1
%define stable_update 0
Jesse Keating 7a32965
# Set rpm version accordingly
Jesse Keating 7a32965
%if 0%{?stable_update}
Josh Boyer 740de53
%define stablerev %{stable_update}
Jesse Keating 7a32965
%define stable_base %{stable_update}
Jesse Keating 7a32965
%endif
Kyle McMartin e8ba2bf
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a32965
Jesse Keating 7a32965
## The not-released-kernel case ##
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a20417
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a32965
# The rc snapshot level
Josh Boyer 5b9ddb9
%define rcrev 8
Jesse Keating 7a32965
# The git snapshot level
Josh Boyer 10f1034
%define gitrev 1
Jesse Keating 7a32965
# Set rpm version accordingly
Kyle McMartin e8ba2bf
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a32965
Jesse Keating 7a32965
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a32965
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a32965
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a32965
# by later arch-specific checks.
Jesse Keating 7a32965
Jesse Keating 7a32965
# The following build options are enabled by default.
Jesse Keating 7a32965
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a32965
# to 0 in here to disable them.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# standard kernel
Jesse Keating 7a32965
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a32965
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a32965
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Kyle McMartin bc5f99d
# kernel PAE (only valid for i686 (PAE) and ARM (lpae))
Jarod Wilson 5b03275
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a32965
# kernel-debug
Jesse Keating 7a32965
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a32965
# kernel-headers
Jesse Keating 7a32965
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 663b7fc
# kernel-modules-extra
Kyle McMartin 663b7fc
%define with_extra     %{?_without_extra:     0} %{?!_without_extra:     1}
Kyle McMartin 42d4c31
# perf
Kyle McMartin 42d4c31
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad9
# tools
Dave Jones 1d18ad9
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a32965
# kernel-debuginfo
Kyle McMartin 761d1c0
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a32965
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a32965
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a32965
# Want to build a the vsdo directories installed
Jesse Keating 7a32965
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# Only build the base kernel (--with baseonly):
Jesse Keating 7a32965
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a32965
# Only build the smp kernel (--with smponly):
Jesse Keating 7a32965
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b03275
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b03275
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a32965
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a32965
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e0
#
Jesse Keating 7a32965
# should we do C=1 builds with sparse
Dave Jones 561b24a
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee033
#
Kyle McMartin 43d64b2
# Cross compile requested?
Kyle McMartin 43d64b2
%define with_cross    %{?_with_cross:         1} %{?!_with_cross:        0}
Kyle McMartin 43d64b2
#
Chuck Ebbert 11ee033
# build a release kernel on rawhide
Chuck Ebbert 11ee033
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a32965
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a32965
# See also 'make debug' and 'make release'.
Josh Boyer 10f1034
%define debugbuildsenabled 0
Jesse Keating 7a32965
Jesse Keating 7a32965
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a32965
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a32965
Jesse Keating 7a32965
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a32965
%if 0%{?released_kernel}
Jesse Keating 7a32965
Chuck Ebbert e6236b7
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel
Jesse Keating 7a32965
%if 0%{?rcrev}
Jesse Keating 7a32965
%define rctag .rc%rcrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define rctag .rc0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%if 0%{?gitrev}
Jesse Keating 7a32965
%define gittag .git%gitrev
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%define gittag .git0
Jesse Keating 7a32965
%endif
Kyle McMartin 66ce81a
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# The kernel tarball/base version
Kyle McMartin e8ba2bf
%define kversion 3.%{base_sublevel}
Jesse Keating 7a32965
Jesse Keating 7a32965
%define make_target bzImage
Jesse Keating 7a32965
Jesse Keating 7a32965
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a32965
%define hdrarch %_target_cpu
Jesse Keating 7a32965
%define asmarch %_target_cpu
Jesse Keating 7a32965
Jesse Keating 7a32965
%if 0%{!?nopatches:1}
Jesse Keating 7a32965
%define nopatches 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vanilla}
Jesse Keating 7a32965
%define nopatches 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{nopatches}
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%define variant -vanilla
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{with_debuginfo}
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define debuginfodir /usr/lib/debug
Jesse Keating 7a32965
Kyle McMartin bc5f99d
# kernel PAE is only built on i686 and ARMv7.
Kyle McMartin bc5f99d
%ifnarch i686 armv7hl
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build base kernel
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%define with_smp 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build smp kernel
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jarod Wilson 5b03275
%define with_debug 0
Jarod Wilson 5b03275
%endif
Jarod Wilson 5b03275
Jarod Wilson 5b03275
# if requested, only build pae kernel
Jarod Wilson 5b03275
%if %{with_paeonly}
Jarod Wilson 5b03275
%define with_up 0
Jarod Wilson 5b03275
%define with_smp 0
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# if requested, only build debug kernel
Jesse Keating 7a32965
%if %{with_dbgonly}
Jesse Keating 7a32965
%if %{debugbuildsenabled}
Jesse Keating 7a32965
%define with_up 0
Jarod Wilson 5b03275
%define with_pae 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define all_x86 i386 i686
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_vdso_install}
Jesse Keating 7a32965
# These arches install vdso/ directories.
Josh Boyer 5a77287
%define vdso_arches %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x aarch64 ppc64le
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Overrides for generic default options
Jesse Keating 7a32965
Josh Boyer 59694fb
# only ppc needs a separate smp kernel
Josh Boyer 59694fb
%ifnarch ppc 
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a32965
%ifnarch i686 x86_64
Jesse Keating 7a32965
%define with_debug 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't build noarch kernels or headers (duh)
Jesse Keating 7a32965
%ifarch noarch
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_headers 0
Dave Jones 1d18ad9
%define with_tools 0
Kyle McMartin 42d4c31
%define with_perf 0
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# bootwrapper is only on ppc
Josh Boyer 33113c6
%ifnarch ppc ppc64 ppc64p7 ppc64le
Jesse Keating 7a32965
%define with_bootwrapper 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 59694fb
# sparse blows up on ppc64 and sparc64
Josh Boyer 5a77287
%ifarch ppc64 ppc ppc64p7 ppc64le
Jesse Keating 7a32965
%define with_sparse 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Per-arch tweaks
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{all_x86}
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define hdrarch i386
Kyle McMartin bc5f99d
%define pae PAE
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch x86_64
Jesse Keating 7a32965
%define asmarch x86
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 3b76903
%ifarch ppc64 ppc64p7
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 5a77287
%ifarch ppc64le
Josh Boyer 5a77287
%define asmarch powerpc
Josh Boyer 5a77287
%define hdrarch powerpc
Josh Boyer 5a77287
%define all_arch_configs kernel-%{version}-ppc64le.config
Josh Boyer 5a77287
%define image_install_path boot
Josh Boyer 5a77287
%define make_target vmlinux
Josh Boyer 5a77287
%define kernel_image vmlinux
Josh Boyer 5a77287
%define kernel_image_elf 1
Josh Boyer 5a77287
%define with_tools 0
Josh Boyer 5a77287
%endif
Josh Boyer 5a77287
Jesse Keating 7a32965
%ifarch s390x
Jesse Keating 7a32965
%define asmarch s390
Jesse Keating 7a32965
%define hdrarch s390
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target image
Jesse Keating 7a32965
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch ppc
Jesse Keating 7a32965
%define asmarch powerpc
Jesse Keating 7a32965
%define hdrarch powerpc
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a32965
%define image_install_path boot
Jesse Keating 7a32965
%define make_target vmlinux
Jesse Keating 7a32965
%define kernel_image vmlinux
Jesse Keating 7a32965
%define kernel_image_elf 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %{arm}
Jesse Keating 7a32965
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a32965
%define image_install_path boot
Josh Boyer 8ffa0af
%define asmarch arm
Jesse Keating 7a32965
%define hdrarch arm
Kyle McMartin bc5f99d
%define pae lpae
986a9f3
%define make_target bzImage
986a9f3
%define kernel_image arch/arm/boot/zImage
Kyle McMartin 9b1a4cb
# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
Kyle McMartin 9b1a4cb
%define kernel_mflags KALLSYMS_EXTRA_PASS=1
43fa717
# we only build headers/perf/tools on the base arm arches
94b0067
# just like we used to only build them on i386 for x86
a940693
%ifnarch armv7hl
94b0067
%define with_headers 0
43fa717
%define with_perf 0
43fa717
%define with_tools 0
94b0067
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 575de6c
%ifarch aarch64
918c10a
%define all_arch_configs kernel-%{version}-aarch64*.config
Kyle McMartin 575de6c
%define asmarch arm64
Kyle McMartin 575de6c
%define hdrarch arm64
Kyle McMartin 575de6c
%define make_target Image.gz
Kyle McMartin 575de6c
%define kernel_image arch/arm64/boot/Image.gz
Kyle McMartin 575de6c
%define image_install_path boot
Kyle McMartin 575de6c
%endif
Kyle McMartin 575de6c
Dave Jones 834dba8
# Should make listnewconfig fail if there's config options
Dave Jones 834dba8
# printed out?
cff59d3
%if %{nopatches}
Dave Jones 834dba8
%define listnewconfig_fail 0
Dave Jones 834dba8
%else
Dave Jones 834dba8
%define listnewconfig_fail 1
Dave Jones 834dba8
%endif
Dave Jones 834dba8
Jesse Keating 7a32965
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79a
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a32965
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a32965
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a32965
# Which is a BadThing(tm).
Jesse Keating 7a32965
Jesse Keating 7a32965
# We only build kernel-headers on the following...
5d109f0
%define nobuildarches i386 s390
Jesse Keating 7a32965
Jesse Keating 7a32965
%ifarch %nobuildarches
Jesse Keating 7a32965
%define with_up 0
Jesse Keating 7a32965
%define with_smp 0
Jesse Keating 7a32965
%define with_pae 0
Jesse Keating 7a32965
%define with_debuginfo 0
Kyle McMartin 42d4c31
%define with_perf 0
Dave Jones 1d18ad9
%define with_tools 0
Jesse Keating 7a32965
%define _enable_debug_packages 0
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%define with_pae_debug 0
Jesse Keating 7a32965
%if %{with_pae}
Jesse Keating 7a32965
%define with_pae_debug %{with_debug}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer 8addb5f
# Architectures we build tools/cpupower on
Josh Boyer 5a77287
%define cpupowerarchs %{ix86} x86_64 ppc ppc64 ppc64p7 %{arm} aarch64 ppc64le
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Dave Jones 166b79a
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a32965
# scripts use them.
Jesse Keating 7a32965
#
Kyle McMartin 57716bc
%define kernel_prereq  fileutils, systemd >= 203-2
Josh Boyer 6d752ab
%define initrd_prereq  dracut >= 027
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a32965
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a32965
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a32965
# macros defined above.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_reqprovconf \
Jesse Keating 7a32965
Provides: kernel = %{rpmversion}-%{pkg_release}\
faf2520
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
Jesse Keating 7a32965
Provides: kernel-drm-nouveau = 16\
faf2520
Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a32965
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a32965
Requires(pre): %{initrd_prereq}\
4ae7205
Requires(pre): linux-firmware >= 20130724-29.git31f6b30\
Josh Boyer 6d752ab
Requires(preun): systemd >= 200\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a32965
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a32965
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a32965
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a32965
# isn't required for the kernel proper to function\
d36d81c
AutoReqProv: no\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Name: kernel%{?variant}
Jesse Keating 7a32965
Group: System Environment/Kernel
Dave Jones 702ef34
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a32965
URL: http://www.kernel.org/
Jesse Keating 7a32965
Version: %{rpmversion}
Josh Boyer 3c3cc69
Release: %{pkg_release}
Jesse Keating 7a32965
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a32965
# SET %%nobuildarches (ABOVE) INSTEAD
Josh Boyer 5a77287
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm} aarch64 ppc64le
Jesse Keating 7a32965
ExclusiveOS: Linux
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_reqprovconf
Dave Jones efc71ad
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# List the packages used during the kernel build
Jesse Keating 7a32965
#
Kyle McMartin 11dfcd7
BuildRequires: kmod, patch, bash, sh-utils, tar
Kyle McMartin 11dfcd7
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
Kyle McMartin 11dfcd7
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
Josh Boyer 951b84a
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a32965
%if %{with_sparse}
Kyle McMartin 11dfcd7
BuildRequires: sparse
Jesse Keating 7a32965
%endif
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer ed7ef34
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex
Josh Boyer ad6cd36
BuildRequires: audit-libs-devel
Kyle McMartin 42d4c31
%endif
Dave Jones 1d18ad9
%if %{with_tools}
ec0fd9d
BuildRequires: pciutils-devel gettext ncurses-devel
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a32965
%if %{with_debuginfo}
Kyle McMartin 11dfcd7
BuildRequires: rpm-build, elfutils
Mark Wielaard ec9ad68
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c2a12cd
%if %{signmodules}
Josh Boyer f0f4ff2
BuildRequires: openssl
Josh Boyer bf81d15
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12cd
%endif
Josh Boyer c2a12cd
Kyle McMartin 43d64b2
%if %{with_cross}
Kyle McMartin 43d64b2
BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
Kyle McMartin 43d64b2
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
Kyle McMartin 43d64b2
%endif
Kyle McMartin 43d64b2
Dave Jones 8959a0e
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a32965
80ea6c9
Source10: perf-man-%{kversion}.tar.gz
Josh Boyer f0f4ff2
Source11: x509.genkey
Josh Boyer c2a12cd
Jesse Keating 7a32965
Source15: merge.pl
Josh Boyer b8b2783
Source16: mod-extra.list
Josh Boyer 0b43386
Source17: mod-extra.sh
Kyle McMartin d0a8cf5
Source18: mod-sign.sh
Kyle McMartin d0a8cf5
%define modsign_cmd %{SOURCE18}
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
Source19: Makefile.release
Jesse Keating 7a32965
Source20: Makefile.config
Jesse Keating 7a32965
Source21: config-debug
Jesse Keating 7a32965
Source22: config-nodebug
Jesse Keating 7a32965
Source23: config-generic
Kyle McMartin bcab99f
Source24: config-no-extra
Jesse Keating 7a32965
Jesse Keating 7a32965
Source30: config-x86-generic
Jesse Keating 7a32965
Source31: config-i686-PAE
Josh Boyer d71f188
Source32: config-x86-32-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source40: config-x86_64-generic
Jesse Keating 7a32965
Jesse Keating 7a32965
Source50: config-powerpc-generic
Jesse Keating 7a32965
Source51: config-powerpc32-generic
Jesse Keating 7a32965
Source52: config-powerpc32-smp
Jesse Keating 7a32965
Source53: config-powerpc64
Josh Boyer 3b76903
Source54: config-powerpc64p7
Josh Boyer 5a77287
Source55: config-powerpc64le
Jesse Keating 7a32965
Jesse Keating 7a32965
Source70: config-s390x
Jesse Keating 7a32965
Kyle McMartin 575de6c
Source100: config-arm-generic
Kyle McMartin 575de6c
faa8d0c
# Unified ARM kernels
Kyle McMartin 575de6c
Source101: config-armv7-generic
Kyle McMartin 575de6c
Source102: config-armv7
Kyle McMartin 575de6c
Source103: config-armv7-lpae
Kyle McMartin 575de6c
Kyle McMartin 575de6c
Source110: config-arm64
Jesse Keating 7a32965
Jarod Wilson 5b65297
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b65297
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b65297
Source1000: config-local
Jarod Wilson 5b65297
Josh Boyer 8addb5f
# Sources for kernel-tools
Josh Boyer 8addb5f
Source2000: cpupower.service
Josh Boyer 8addb5f
Source2001: cpupower.config
Josh Boyer 8addb5f
Jesse Keating 7a32965
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a32965
Jesse Keating 7a32965
# For a stable release kernel
Jesse Keating 7a32965
%if 0%{?stable_update}
Jesse Keating 7a32965
%if 0%{?stable_base}
Josh Boyer fdb68da
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a32965
Patch00: %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a32965
# near the top of this spec file.
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# we also need compile fixes for -vanilla
Dave Jones efd70b8
Patch04: compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# build tweak for build ID magic, even for -vanilla
Dave Jones efd70b8
Patch05: makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Kyle McMartin 201b16f
Jesse Keating 7a32965
# revert upstream patches we get via other methods
Dave Jones efd70b8
Patch09: upstream-reverts.patch
Jesse Keating 7a32965
# Git trees.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Standalone patches
Jesse Keating 7a32965
Dave Jones efd70b8
Patch390: defaults-acpi-video.patch
Jesse Keating 7a32965
Dave Jones efd70b8
Patch450: input-kill-stupid-messages.patch
Dave Jones efd70b8
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a32965
Dave Jones efd70b8
Patch460: serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
Patch470: die-floppy-die.patch
Jesse Keating 7a32965
Dave Jones efd70b8
Patch510: silence-noise.patch
Dave Jones efd70b8
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a32965
713abc0
Patch600: 0001-lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
de05667
e3f67fd
#rhbz 917708
e3f67fd
Patch700: Revert-userns-Allow-unprivileged-users-to-create-use.patch
e3f67fd
Dave Jones efd70b8
Patch800: crash-driver.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# crypto/
Josh Boyer 306dfcc
Josh Boyer 306dfcc
# secure boot
Josh Boyer c9d9c5a
Patch1000: secure-modules.patch
Josh Boyer c9d9c5a
Patch1001: modsign-uefi.patch
Josh Boyer c9d9c5a
Patch1002: sb-hibernate.patch
Josh Boyer c9d9c5a
Patch1003: sysrq-secure-boot.patch
Matthew Garrett 447e3a6
Jesse Keating 7a32965
# virt + ksm patches
Jesse Keating 7a32965
Jesse Keating 7a32965
# DRM
Josh Boyer deb816a
Jesse Keating 7a32965
# nouveau + drm fixes
Jesse Keating 7a32965
# intel drm is all merged upstream
049a74e
Patch1826: drm-i915-hush-check-crtc-state.patch
Kyle McMartin 5acda93
Jesse Keating 7a32965
# Quiet boot fixes
Jesse Keating 7a32965
Jesse Keating 7a32965
# fs fixes
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# patches headed upstream
Jesse Keating 7a32965
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Josh Boyer fcbaf26
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
Dave Jones 18e50ce
Patch15000: nowatchdog-on-virt.patch
Dave Jones 18e50ce
Kyle McMartin 575de6c
# ARM64
Kyle McMartin 575de6c
df483e6
# ARM
ad887f5
cfeb472
# lpae
de52faa
Patch21001: arm-lpae-ax88796.patch
Kyle McMartin 963bc0b
Patch21004: arm-sound-soc-samsung-dma-avoid-another-64bit-division.patch
df483e6
de52faa
# ARM omap
Kyle McMartin abe7567
Patch21010: arm-omap-load-tfp410.patch
35041f5
df483e6
# ARM tegra
Kyle McMartin abe7567
Patch21020: arm-tegra-usb-no-reset-linux33.patch
c30bd63
1b0dee8
# Add panel support for tegra paz00
1b0dee8
# Backported from linux-next scheduled for 3.15
1b0dee8
Patch21021: arm-tegra-paz00-panel-dts.patch
1b0dee8
ac67590
# ARM i.MX6
ac67590
# http://www.spinics.net/lists/devicetree/msg08276.html
ac67590
Patch21030: arm-imx6-utilite.patch
ac67590
955b60c
# ARM sunxi (AllWinner)
955b60c
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
Josh Boyer ebd1a17
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a17
Patch21242: criu-no-expert.patch
Josh Boyer ebd1a17
Josh Boyer 27e48a6
#rhbz 892811
Josh Boyer 27e48a6
Patch21247: ath9k_rx_dma_stop_check.patch
Josh Boyer 27e48a6
Josh Boyer dadd60b
Patch22000: weird-root-dentry-name-debug.patch
Josh Boyer dadd60b
Josh Boyer 6f1d3b1
Patch25047: drm-radeon-Disable-writeback-by-default-on-ppc.patch
Josh Boyer 6f1d3b1
Josh Boyer 2432f55
#rhbz 1051748
Josh Boyer 2432f55
Patch25035: Bluetooth-allocate-static-minor-for-vhci.patch
Josh Boyer 2432f55
Josh Boyer 5a77287
#Fixes module loading on ppc64le
Josh Boyer 5a77287
Patch25036: ppc64le_module_fix.patch
Josh Boyer 5a77287
196742e
#rhbz 1046495
196742e
Patch25044: iwlwifi-dvm-take-mutex-when-sending-SYNC-BT-config-command.patch
196742e
Josh Boyer 0fc5fab
#CVE-2014-2568 rhbz 1079012 1079013
Josh Boyer 0fc5fab
Patch25049: core-nfqueue-openvswitch-Orphan-frags-in-skb_zerocopy-and-handle-errors.patch
Josh Boyer 0fc5fab
Josh Boyer 6676648
#CVE-2014-0055 rhbz 1062577 1081503
Josh Boyer 6676648
Patch25050: net-vhost-validate-vhost_get_vq_desc-return-value.patch
Josh Boyer 6676648
Josh Boyer db8999a
#CVE-2014-0077 rhbz 1064440 1081504
Josh Boyer db8999a
Patch25051: net-vhost-fix-total-length-when-packets-are-too-short.patch
Josh Boyer db8999a
Josh Boyer 814a878
#CVE-2014-2580 rhbz 1080084 1080086
Josh Boyer 814a878
Patch25052: net-xen-netback-disable-rogue-vif-in-kthread-context.patch
Josh Boyer db8999a
Josh Boyer 812ba1a
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1a
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a32965
Jesse Keating 7a32965
%description
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package headers
Jesse Keating 7a32965
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a32965
Group: Development/System
Dave Jones d555d67
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a32965
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a32965
%description headers
Jesse Keating 7a32965
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a32965
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a32965
header files define structures and constants that are needed for
Jesse Keating 7a32965
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a32965
glibc package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package bootwrapper
Jesse Keating 7a32965
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a32965
Group: Development/System
Dave Jones 524b8cb
Requires: gzip binutils
Jesse Keating 7a32965
%description bootwrapper
Jesse Keating 7a32965
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a32965
files combining both kernel and initial ramdisk.
Jesse Keating 7a32965
Jesse Keating 7a32965
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a32965
Group: Development/Debug
Jesse Keating 7a32965
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a32965
It provides the kernel source files common to all builds.
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%package -n perf
Kyle McMartin 42d4c31
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c31
Group: Development/System
Kyle McMartin 42d4c31
License: GPLv2
Kyle McMartin 42d4c31
%description -n perf
Kyle McMartin 42d4c31
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c31
of the Linux kernel.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n perf-debuginfo
Kyle McMartin 42d4c31
Summary: Debug information for package perf
Kyle McMartin 42d4c31
Group: Development/Debug
Kyle McMartin 42d4c31
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c31
AutoReqProv: no
Kyle McMartin 42d4c31
%description -n perf-debuginfo
Kyle McMartin 42d4c31
This package provides debug information for the perf package.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c31
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c31
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c31
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c31
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%package -n python-perf
Kyle McMartin 42d4c31
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c31
Group: Development/Libraries
Kyle McMartin 42d4c31
%description -n python-perf
Kyle McMartin 42d4c31
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c31
written in the Python programming language to use the interface
Kyle McMartin 42d4c31
to manipulate perf events.
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c31
Josh Boyer 27d8a0e
%package -n python-perf-debuginfo
Josh Boyer 27d8a0e
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0e
Group: Development/Debug
Josh Boyer 27d8a0e
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0e
AutoReqProv: no
Josh Boyer 27d8a0e
%description -n python-perf-debuginfo
Josh Boyer 27d8a0e
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0e
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
Kyle McMartin 42d4c31
%endif # with_perf
Kyle McMartin 42d4c31
Dave Jones 1d18ad9
%if %{with_tools}
Dave Jones 1d18ad9
%package -n kernel-tools
Dave Jones 1d18ad9
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a32965
Group: Development/System
Jesse Keating 7a32965
License: GPLv2
Josh Boyer 02587b4
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b4
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b4
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 55e586c
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad9
%description -n kernel-tools
Dave Jones 1d18ad9
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c31
and the supporting documentation.
Roland McGrath 3c4ea9a
Josh Boyer 55e586c
%package -n kernel-tools-libs
Josh Boyer 55e586c
Summary: Libraries for the kernels-tools
Josh Boyer 55e586c
Group: Development/System
Josh Boyer 55e586c
License: GPLv2
Josh Boyer 55e586c
%description -n kernel-tools-libs
Josh Boyer 55e586c
This package contains the libraries built from the tools/ directory
Josh Boyer 55e586c
from the kernel source.
Josh Boyer 55e586c
Josh Boyer 55e586c
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5f
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5f
Group: Development/System
Josh Boyer 8addb5f
License: GPLv2
Josh Boyer 02587b4
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad3713
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad3713
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 55e586c
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer a5b375c
Provides: kernel-tools-devel
Josh Boyer 55e586c
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5f
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5f
the kernel source.
Josh Boyer 8addb5f
Dave Jones 1d18ad9
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad9
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9a
Group: Development/Debug
Roland McGrath 3c4ea9a
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9a
AutoReqProv: no
Dave Jones 1d18ad9
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad9
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9a
Roland McGrath 3c4ea9a
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9a
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9a
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9a
# of matching the pattern against the symlinks file.
ec0fd9d
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
Kyle McMartin ec31efd
Kyle McMartin 42d4c31
%endif # with_tools
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a32965
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_debuginfo_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a32965
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a32965
Group: Development/Debug\
Jesse Keating 7a32965
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a32965
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a32965
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
3e3a903
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_package() \
Jesse Keating 7a32965
%package %{?1:%{1}-}devel\
Jesse Keating 7a32965
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
faf2520
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
faf2520
Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\
faf2520
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a32965
AutoReqProv: no\
Jesse Keating 7a32965
Requires(pre): /usr/bin/find\
Jesse Keating 7a32965
Requires: perl\
Jesse Keating 7a32965
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a32965
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a32965
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Josh Boyer b8b2783
# This macro creates a kernel-<subpackage>-modules-extra package.
Kyle McMartin de50edb
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b2783
#
Kyle McMartin de50edb
%define kernel_modules_extra_package() \
Josh Boyer b8b2783
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b2783
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b2783
Group: System Environment/Kernel\
Josh Boyer b8b2783
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra = %{version}-%{release}%{?1:+%{1}}\
Josh Boyer 6721e49
Provides: installonlypkg(kernel-module)\
3752c85
Provides: kernel%{?1:-%{1}}-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
faf2520
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b2783
AutoReqProv: no\
Josh Boyer b8b2783
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b2783
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b2783
%{nil}
Josh Boyer b8b2783
Josh Boyer b8b2783
#
Jesse Keating 7a32965
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a32965
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a32965
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_package(n:) \
Jesse Keating 7a32965
%package %1\
Jesse Keating 7a32965
Summary: %{variant_summary}\
Jesse Keating 7a32965
Group: System Environment/Kernel\
Jesse Keating 7a32965
%kernel_reqprovconf\
Jesse Keating 7a32965
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Kyle McMartin 663b7fc
%if %{with_extra}\
Kyle McMartin de50edb
%{expand:%%kernel_modules_extra_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Kyle McMartin 663b7fc
%endif\
Jesse Keating 7a32965
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a32965
%kernel_devel_package
Kyle McMartin 663b7fc
%if %{with_extra}
Kyle McMartin de50edb
%kernel_modules_extra_package
Kyle McMartin 663b7fc
%endif
Jesse Keating 7a32965
%kernel_debuginfo_package
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
# Now, each variant package.
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a32965
%kernel_variant_package -n SMP smp
Jesse Keating 7a32965
%description smp
Jesse Keating 7a32965
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a32965
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a32965
hyperthreading technology.
Jesse Keating 7a32965
Jesse Keating 7a32965
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a32965
Jesse Keating 7a32965
Kyle McMartin be52afe
%ifnarch armv7hl
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled for PAE capable machines
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}
Kyle McMartin bc5f99d
%description %{pae}
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Kyle McMartin be52afe
%else
Kyle McMartin bc5f99d
%define variant_summary The Linux kernel compiled for Cortex-A15
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}
Kyle McMartin bc5f99d
%description %{pae}
Kyle McMartin bc5f99d
This package includes a version of the Linux kernel with support for
Kyle McMartin bc5f99d
Cortex-A15 devices with LPAE and HW virtualisation support
Kyle McMartin bc5f99d
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Kyle McMartin bc5f99d
%kernel_variant_package %{pae}debug
Jesse Keating 7a32965
Obsoletes: kernel-PAE-debug
Kyle McMartin bc5f99d
%description %{pae}debug
Jesse Keating 7a32965
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a32965
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a32965
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a32965
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a32965
%kernel_variant_package debug
Jesse Keating 7a32965
%description debug
Jesse Keating 7a32965
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a32965
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a32965
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a32965
input and output, etc.
Jesse Keating 7a32965
Jesse Keating 7a32965
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a32965
It should only be installed when trying to gather additional information
Jesse Keating 7a32965
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a32965
986a9f3
Jesse Keating 7a32965
%prep
Jesse Keating 7a32965
# do a few sanity-checks for --with *only builds
Jesse Keating 7a32965
%if %{with_baseonly}
Jesse Keating 7a32965
%if !%{with_up}%{with_pae}
Jesse Keating 7a32965
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smponly}
Jesse Keating 7a32965
%if !%{with_smp}
Jesse Keating 7a32965
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a32965
exit 1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer c78a082
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763b
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763b
exit 1
Chuck Ebbert 05e763b
%endif
Chuck Ebbert 05e763b
Jesse Keating 7a32965
# more sanity checking; do it quietly
Jesse Keating 7a32965
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a32965
  for patch in %{patches} ; do
Jesse Keating 7a32965
    if [ ! -f $patch ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Jesse Keating 7a32965
fi 2>/dev/null
Jesse Keating 7a32965
Jesse Keating 7a32965
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a32965
ApplyPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Dave Jones b89c80f
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a2918
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a32965
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a32965
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  fi 2>/dev/null
Jesse Keating 7a32965
  case "$patch" in
Jesse Keating 7a32965
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa689
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a32965
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a32965
  esac
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# don't apply patch if it's empty
Jesse Keating 7a32965
ApplyOptionalPatch()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  local patch=$1
Jesse Keating 7a32965
  shift
Jesse Keating 7a32965
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a32965
    exit 1
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a32965
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a32965
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
# First we unpack the kernel tarball.
Jesse Keating 7a32965
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a32965
# which speeds things up quite a bit.
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update to latest upstream.
Jesse Keating 7a32965
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
# non-released_kernel case
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
%if 0%{?rcrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a32965
%else
Kyle McMartin 8b2fa9b
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Dave Jones 166b79a
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79a
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a32965
Dave Jones 166b79a
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c0
# so we can prep different trees within a single git directory.
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c0
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9b
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c0
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a32965
Dave Jones 9e29439
# Delete all old stale trees.
Dave Jones 9e29439
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e29439
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e29439
  for i in linux-*
Dave Jones 9e29439
  do
Dave Jones 7bd4dec
     if [ -d $i ]; then
Dave Jones 7bd4dec
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4dec
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4dec
       # Move away the stale away, and delete in background.
Dave Jones 7bd4dec
       mv $i deleteme-$i
Dave Jones 7bd4dec
       rm -rf deleteme* &
Dave Jones 7bd4dec
     fi
Dave Jones 9e29439
  done
Dave Jones 9e29439
  cd ..
Dave Jones 9e29439
fi
Dave Jones 9e29439
Dave Jones 9e29439
# Generate new tree
Chuck Ebbert 26d08c0
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
    # The base vanilla version already exists.
Chuck Ebbert 26d08c0
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a32965
    for dir in vanilla-*; do
Jesse Keating 7a32965
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a32965
    done
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f pax_global_header
Chuck Ebbert 26d08c0
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a32965
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a32965
        break
Jesse Keating 7a32965
      fi
Jesse Keating 7a32965
    done
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c -T
16cb953
      cp -al $sharedir/vanilla-%{kversion} .
Jesse Keating 7a32965
    else
Chuck Ebbert 26d08c0
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14e
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a32965
Jesse Keating 7a32965
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c0
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
      break
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
  done
Chuck Ebbert 26d08c0
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a32965
16cb953
    cp -al $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a32965
Jesse Keating 7a32965
  else
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
    # Need to apply patches to the base vanilla version.
16cb953
    cp -al vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a32965
    cd vanilla-%{vanillaversion}
Jesse Keating 7a32965
Jesse Keating 7a32965
# Update vanilla to the latest upstream.
Jesse Keating 7a32965
# (non-released_kernel case only)
Jesse Keating 7a32965
%if 0%{?rcrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a32965
%if 0%{?gitrev}
Josh Boyer 471066e
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%else
Jesse Keating 7a32965
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a32965
%if 0%{?gitrev}
Dave Jones 7bd4dec
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
  fi
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
else
Chuck Ebbert 26d08c0
Chuck Ebbert 26d08c0
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c0
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c0
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Chuck Ebbert 26d08c0
# Now build the fedora kernel tree.
16cb953
cp -al vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
# released_kernel with possible stable updates
Jesse Keating 7a32965
%if 0%{?stable_base}
Jesse Keating 7a32965
ApplyPatch %{stable_patch_00}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a32965
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a32965
cp %{SOURCE15} .
Jesse Keating 7a32965
Chuck Ebbert c6b36e0
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee033
%if %{with_release}
Chuck Ebbert c6b36e0
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee033
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e0
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
%endif
Chuck Ebbert c6b36e0
Jesse Keating 7a32965
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a32965
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a32965
Jarod Wilson 5b65297
# Merge in any user-provided local config option changes
e57e8f1
for i in %{all_arch_configs}
Jarod Wilson 5b65297
do
Jarod Wilson 5b65297
  mv $i $i.tmp
Jarod Wilson 5b65297
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b65297
  rm $i.tmp
Jarod Wilson 5b65297
done
Jarod Wilson 5b65297
Dave Jones efd70b8
ApplyPatch makefile-after_link.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# misc small stuff to make things compile
Jesse Keating 7a32965
#
Dave Jones efd70b8
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{nopatches}
Jesse Keating 7a32965
Jesse Keating 7a32965
# revert patches from upstream that conflict or that we get via other means
Dave Jones efd70b8
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a32965
Jesse Keating 7a32965
# Architecture patches
Jesse Keating 7a32965
# x86(-64)
713abc0
ApplyPatch 0001-lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
Jesse Keating 7a32965
Kyle McMartin 575de6c
# ARM64
Kyle McMartin 575de6c
Jesse Keating 7a32965
#
986a9f3
# ARM
986a9f3
#
cfeb472
ApplyPatch arm-lpae-ax88796.patch
Kyle McMartin 963bc0b
ApplyPatch arm-sound-soc-samsung-dma-avoid-another-64bit-division.patch
82bda6a
ApplyPatch arm-omap-load-tfp410.patch
df483e6
ApplyPatch arm-tegra-usb-no-reset-linux33.patch
1b0dee8
ApplyPatch arm-tegra-paz00-panel-dts.patch
ac67590
ApplyPatch arm-imx6-utilite.patch
fceb351
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# bugfixes to drivers and filesystems
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ext4
Jesse Keating 7a32965
Jesse Keating 7a32965
# xfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# btrfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# eCryptfs
Jesse Keating 7a32965
Jesse Keating 7a32965
# NFSv4
Jesse Keating 7a32965
Jesse Keating 7a32965
# USB
Jesse Keating 7a32965
Jesse Keating 7a32965
# WMI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Dave Jones efd70b8
ApplyPatch defaults-acpi-video.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# PCI
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# SCSI Bits.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
Jesse Keating 7a32965
# ACPI
Jesse Keating 7a32965
Jesse Keating 7a32965
# ALSA
Jesse Keating 7a32965
Jesse Keating 7a32965
# Networking
Jesse Keating 7a32965
Jesse Keating 7a32965
# Misc fixes
Jesse Keating 7a32965
# The input layer spews crap no-one cares about.
Dave Jones efd70b8
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a32965
ApplyPatch die-floppy-die.patch
Jesse Keating 7a32965
Dave Jones efd70b8
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Allow to use 480600 baud on 16C950 UARTs
Dave Jones efd70b8
ApplyPatch serial-460800.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Silence some useless messages that still get printed with 'quiet'
Dave Jones efd70b8
ApplyPatch silence-noise.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Make fbcon not show the penguins with 'quiet'
Dave Jones efd70b8
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# Changes to upstream defaults.
Jesse Keating 7a32965
e3f67fd
#rhbz 917708
e3f67fd
ApplyPatch Revert-userns-Allow-unprivileged-users-to-create-use.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# /dev/crash driver.
Dave Jones efd70b8
ApplyPatch crash-driver.patch
Jesse Keating 7a32965
Jesse Keating 7a32965
# crypto/
Josh Boyer 306dfcc
Josh Boyer 306dfcc
# secure boot
Josh Boyer c9d9c5a
ApplyPatch secure-modules.patch
Josh Boyer c9d9c5a
ApplyPatch modsign-uefi.patch
Josh Boyer c9d9c5a
ApplyPatch sb-hibernate.patch
Josh Boyer c9d9c5a
ApplyPatch sysrq-secure-boot.patch
Matthew Garrett 447e3a6
Jesse Keating 7a32965
# Assorted Virt Fixes
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# DRM core
Jesse Keating 7a32965
Kyle McMartin d3e4af8
# Nouveau DRM
Kyle McMartin d3e4af8
Kyle McMartin d3e4af8
# Intel DRM
049a74e
ApplyPatch drm-i915-hush-check-crtc-state.patch
Dave Jones 19e3780
Kyle McMartin b853049
# Radeon DRM
Kyle McMartin b853049
Jesse Keating 7a32965
# Patches headed upstream
Jesse Keating 7a32965
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a32965
Dave Jones 7bd4dec
# FIXME: REBASE
Dave Jones 7bd4dec
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf26
Dave Jones abc7c8e
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8e
Dave Jones 18e50ce
# Disable watchdog on virtual machines.
Dave Jones 18e50ce
ApplyPatch nowatchdog-on-virt.patch
Dave Jones 18e50ce
Josh Boyer af1af57
#rhbz 754518
Josh Boyer af1af57
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af57
a0e7ea5
#pplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0c
Josh Boyer ebd1a17
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a17
ApplyPatch criu-no-expert.patch
Josh Boyer ebd1a17
Josh Boyer 27e48a6
#rhbz 892811
Josh Boyer 27e48a6
ApplyPatch ath9k_rx_dma_stop_check.patch
Josh Boyer 27e48a6
Josh Boyer 6f1d3b1
ApplyPatch drm-radeon-Disable-writeback-by-default-on-ppc.patch
Josh Boyer 6f1d3b1
Josh Boyer 2432f55
#rhbz 1051748
Josh Boyer 2432f55
ApplyPatch Bluetooth-allocate-static-minor-for-vhci.patch
Josh Boyer 2432f55
Josh Boyer 5a77287
# Fixes module loading on ppc64le
Josh Boyer 5a77287
ApplyPatch ppc64le_module_fix.patch
Josh Boyer 5a77287
196742e
#rhbz 1046495
196742e
ApplyPatch iwlwifi-dvm-take-mutex-when-sending-SYNC-BT-config-command.patch
196742e
Josh Boyer 0fc5fab
#CVE-2014-2568 rhbz 1079012 1079013
Josh Boyer 0fc5fab
ApplyPatch core-nfqueue-openvswitch-Orphan-frags-in-skb_zerocopy-and-handle-errors.patch
Josh Boyer 0fc5fab
Josh Boyer 6676648
#CVE-2014-0055 rhbz 1062577 1081503
Josh Boyer 6676648
ApplyPatch net-vhost-validate-vhost_get_vq_desc-return-value.patch
Josh Boyer 6676648
Josh Boyer db8999a
#CVE-2014-0077 rhbz 1064440 1081504
Josh Boyer db8999a
ApplyPatch net-vhost-fix-total-length-when-packets-are-too-short.patch
Josh Boyer db8999a
Josh Boyer 814a878
#CVE-2014-2580 rhbz 1080084 1080086
Josh Boyer 814a878
ApplyPatch net-xen-netback-disable-rogue-vif-in-kthread-context.patch
Josh Boyer 814a878
Jesse Keating 7a32965
# END OF PATCH APPLICATIONS
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a32965
Jesse Keating 7a32965
chmod +x scripts/checkpatch.pl
Jesse Keating 7a32965
Dave Jones ed3d267
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa06609
touch .scmversion
Kyle McMartin fa06609
Jesse Keating 7a32965
# only deal with configs if we are going to build for the arch
Jesse Keating 7a32965
%ifnarch %nobuildarches
Jesse Keating 7a32965
Jesse Keating 7a32965
mkdir configs
Jesse Keating 7a32965
Jesse Keating 7a32965
%if !%{debugbuildsenabled}
Jesse Keating 7a32965
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 43d64b2
%define make make %{?cross_opts}
Kyle McMartin 43d64b2
Dave Jones 834dba8
# now run oldconfig over all the config files
Dave Jones 834dba8
for i in *.config
Dave Jones 834dba8
do
Dave Jones 834dba8
  mv $i .config
Dave Jones 834dba8
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 834dba8
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 834dba8
%if %{listnewconfig_fail}
Dave Jones 834dba8
  if [ -s .newoptions ]; then
Dave Jones 834dba8
    cat .newoptions
Dave Jones 834dba8
    exit 1
Dave Jones 834dba8
  fi
Dave Jones 834dba8
%endif
Dave Jones 834dba8
  rm -f .newoptions
Dave Jones 834dba8
  make ARCH=$Arch oldnoconfig
Dave Jones 834dba8
  echo "# $Arch" > configs/$i
Dave Jones 834dba8
  cat .config >> configs/$i
Dave Jones 834dba8
done
Jesse Keating 7a32965
# end of kernel config
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
John W. Linville fa580e5
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e5
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e5
Dave Jones 246f94f
# remove unnecessary SCM files
Dave Jones 246f94f
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94f
Jesse Keating 7a32965
cd ..
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### build
Jesse Keating 7a32965
###
Jesse Keating 7a32965
%build
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_sparse}
Jesse Keating 7a32965
%define sparse_mflags	C=1
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a32965
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a32965
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a32965
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a32965
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a32965
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a32965
export AFTER_LINK=\
Jesse Keating 7a32965
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a32965
    				-i $@ > $@.id"'
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
cp_vmlinux()
Jesse Keating 7a32965
{
Jesse Keating 7a32965
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
BuildKernel() {
Jesse Keating 7a32965
    MakeTarget=$1
Jesse Keating 7a32965
    KernelImage=$2
Jesse Keating 7a32965
    Flavour=$3
faf2520
    Flav=${Flavour:++${Flavour}}
Jesse Keating 7a32965
    InstallName=${4:-vmlinuz}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Pick the right config file for the kernel we're building
Jesse Keating 7a32965
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Kyle McMartin 9fc584b
    DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
Jesse Keating 7a32965
Jesse Keating 7a32965
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a32965
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a32965
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a32965
      CopyKernel=cp_vmlinux
Jesse Keating 7a32965
    else
Jesse Keating 7a32965
      CopyKernel=cp
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Kyle McMartin 9fc584b
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flav}
Jesse Keating 7a32965
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a32965
Josh Boyer 740de53
    %if 0%{?stable_update}
Josh Boyer 740de53
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de53
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de53
    %endif
Josh Boyer 740de53
Jesse Keating 7a32965
    # make sure EXTRAVERSION says what we want it to say
Kyle McMartin 9fc584b
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flav}/" Makefile
Jesse Keating 7a32965
Josh Boyer 9e4aeab
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a32965
    %if !0%{?rcrev}
Jesse Keating 7a32965
    %if 0%{?gitrev}
Josh Boyer 9e4aeab
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
    %endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # and now to start the build process
Jesse Keating 7a32965
Kyle McMartin 3e75bb6
    make -s mrproper
Jesse Keating 7a32965
    cp configs/$Config .config
Jesse Keating 7a32965
Josh Boyer 6e2d2c5
    %if %{signmodules}
Josh Boyer 6e2d2c5
    cp %{SOURCE11} .
Josh Boyer 6e2d2c5
    %endif
Josh Boyer 6e2d2c5
Josh Boyer ef06d4b
    chmod +x scripts/sign-file
Josh Boyer ef06d4b
Jesse Keating 7a32965
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a32965
    echo USING ARCH=$Arch
Jesse Keating 7a32965
Kyle McMartin da80d72
    make -s ARCH=$Arch oldnoconfig >/dev/null
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags}
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
783eee9
Kyle McMartin 49ba08f
%ifarch %{arm} aarch64
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch V=1 dtbs
783eee9
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
Kyle McMartin 663b7fc
    install -m 644 arch/$Arch/boot/dts/*.dtb $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer/
Kyle McMartin 49ba08f
    rm -f arch/$Arch/boot/dts/*.dtb
e6eb2f8
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Start installing the results
Jesse Keating 7a32965
%if %{with_debuginfo}
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a32965
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a32965
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a32965
Jesse Keating 7a32965
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a32965
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a32965
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a32965
Jesse Keating 7a32965
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a32965
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a32965
    fi
d3182f8
    %if %{signmodules}
d3182f8
    # Sign the image if we're using EFI
d3182f8
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 42d219a
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 42d219a
        echo "pesigning failed"
Josh Boyer 42d219a
        exit 1
Josh Boyer 42d219a
    fi
d3182f8
    mv vmlinuz.signed $KernelImage
d3182f8
    %endif
Jesse Keating 7a32965
    $CopyKernel $KernelImage \
Jesse Keating 7a32965
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a32965
Josh Boyer 70f8133
    # hmac sign the kernel for FIPS
Josh Boyer 70f8133
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f8133
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f8133
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
Josh Boyer 70f8133
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a32965
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d563
    # we'll get it from the linux-firmware package and we don't want conflicts
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12cd
Jesse Keating 7a32965
%ifarch %{vdso_arches}
Kyle McMartin 43d64b2
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a32965
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a32965
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a32965
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a32965
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a32965
    # * all arch relevant include/ files
Jesse Keating 7a32965
    # * all Makefile/Kconfig files
Jesse Keating 7a32965
    # * all script/ files
Jesse Keating 7a32965
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a32965
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a32965
    # first copy everything
Jesse Keating 7a32965
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -s Module.markers ]; then
Jesse Keating 7a32965
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a32965
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a32965
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a32965
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a32965
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Josh Boyer 3b76903
%ifarch ppc ppc64 ppc64p7
Jesse Keating 7a32965
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a32965
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a32965
    fi
3b024eb
    # include the machine specific headers for ARM variants, if available.
3b024eb
%ifarch %{arm}
3b024eb
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024eb
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024eb
    fi
3b024eb
%endif
Jesse Keating 7a32965
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a32965
    # external modules can be built
1ef1d3d
    touch -r $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Makefile $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/generated/uapi/linux/version.h
Dave Jones c809286
Jesse Keating 7a32965
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a32965
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a32965
Kyle McMartin 1bfd59b
%if %{with_debuginfo}
Jesse Keating 7a32965
    if test -s vmlinux.id; then
Jesse Keating 7a32965
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a32965
    else
Roland McGrath 9b36e58
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e58
      exit 1
Jesse Keating 7a32965
    fi
Jesse Keating 7a32965
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a32965
    #
Jesse Keating 7a32965
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a32965
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a32965
Jesse Keating 7a32965
    # Generate a list of modules for block and networking.
Jesse Keating 7a32965
Dave Jones b89c80f
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a32965
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list()
Jesse Keating 7a32965
    {
Jesse Keating 7a32965
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Kyle McMartin cdb7903
        LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb7903
      if [ ! -z "$3" ]; then
Kyle McMartin 3994106
        sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb7903
      fi
Jesse Keating 7a32965
    }
Jesse Keating 7a32965
Jesse Keating 7a32965
    collect_modules_list networking \
Kyle McMartin 52da9d6
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
Jesse Keating 7a32965
    collect_modules_list block \
Kyle McMartin cdb7903
    			 'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_alloc_queue|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler|blk_queue_physical_block_size' 'pktcdvd.ko|dm-mod.ko'
Jesse Keating 7a32965
    collect_modules_list drm \
Jesse Keating 7a32965
    			 'drm_open|drm_init'
Jesse Keating 7a32965
    collect_modules_list modesetting \
Jesse Keating 7a32965
    			 'drm_crtc_init'
Jesse Keating 7a32965
Jesse Keating 7a32965
    # detect missing or incorrect license tags
Kyle McMartin 21284e0
    ( find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \
Kyle McMartin 21284e0
        grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
Jesse Keating 7a32965
Kyle McMartin 6345227
    # remove files that will be auto generated by depmod at rpm -i time
Kyle McMartin 6345227
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
Kyle McMartin 6345227
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
Kyle McMartin 6345227
    popd
Kyle McMartin 6345227
Kyle McMartin 663b7fc
%if %{with_extra}
Josh Boyer 0b43386
    # Call the modules-extra script to move things around
Josh Boyer 0b43386
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Kyle McMartin 663b7fc
%endif
Josh Boyer b8b2783
Josh Boyer f0f4ff2
%if %{signmodules}
Kyle McMartin 249d64d
    # Save the signing keys so we can sign the modules in __modsign_install_post
Kyle McMartin 9fc584b
    cp signing_key.priv signing_key.priv.sign${Flav}
Kyle McMartin 9fc584b
    cp signing_key.x509 signing_key.x509.sign${Flav}
Josh Boyer f0f4ff2
%endif
Josh Boyer f0f4ff2
Jesse Keating 7a32965
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae1
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a32965
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7d
Josh Boyer bddef7d
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7d
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7d
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7d
    # the F17 UsrMove feature.
Josh Boyer bddef7d
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b407
Kyle McMartin 4b3b407
    # prune junk from kernel-devel
Kyle McMartin 4b3b407
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a32965
}
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
# DO it...
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
# prepare directories
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a32965
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_debug}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae_debug}
Kyle McMartin bc5f99d
BuildKernel %make_target %kernel_image %{pae}debug
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_pae}
Kyle McMartin bc5f99d
BuildKernel %make_target %kernel_image %{pae}
986a9f3
%endif
986a9f3
Jesse Keating 7a32965
%if %{with_up}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_smp}
Jesse Keating 7a32965
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 8bcddfb
%global perf_make \
Josh Boyer d0e2e5b
  make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf
Josh Boyer ed7ef34
%{perf_make} DESTDIR=$RPM_BUILD_ROOT all
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
# cpupower
Josh Boyer 8addb5f
# make sure version-gen.sh is executable.
Josh Boyer 8addb5f
chmod +x tools/power/cpupower/utils/version-gen.sh
Kyle McMartin 43d64b2
%{make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba9
%ifarch %{ix86}
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/i386
Kyle McMartin 43d64b2
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/x86_64
Kyle McMartin 43d64b2
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Kyle McMartin 0769445
   pushd tools/power/x86/x86_energy_perf_policy/
Kyle McMartin 43d64b2
   %{make}
Kyle McMartin 0769445
   popd
Kyle McMartin 0769445
   pushd tools/power/x86/turbostat
Kyle McMartin 43d64b2
   %{make}
Kyle McMartin 0769445
   popd
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5f
%endif
ec0fd9d
pushd tools/thermal/tmon/
ec0fd9d
%{make}
ec0fd9d
popd
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Josh Boyer f0f4ff2
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer f0f4ff2
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer f0f4ff2
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer f0f4ff2
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer f0f4ff2
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer f0f4ff2
# signing the modules we actually built/installed in that flavour.  3) We
Kyle McMartin d0a8cf5
# grab the arch and invoke mod-sign.sh command to actually sign the modules.
Josh Boyer f0f4ff2
#
Josh Boyer f0f4ff2
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer f0f4ff2
# that will strip the signature off of the modules.
Josh Boyer f0f4ff2
Kyle McMartin 92559e2
%define __modsign_install_post \
Kyle McMartin f9a5fa4
  if [ "%{signmodules}" -eq "1" ]; then \
Kyle McMartin 63cb38b
    if [ "%{with_pae}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+%{pae} signing_key.x509.sign+%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin 63cb38b
    if [ "%{with_debug}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+debug signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin 63cb38b
    if [ "%{with_pae_debug}" -ne "0" ]; then \
faf2520
      %{modsign_cmd} signing_key.priv.sign+%{pae}debug signing_key.x509.sign+%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}debug/ \
Josh Boyer f0f4ff2
    fi \
Kyle McMartin f9a5fa4
    if [ "%{with_up}" -ne "0" ]; then \
Kyle McMartin 63cb38b
      %{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
Josh Boyer f0f4ff2
    fi \
Josh Boyer f0f4ff2
  fi \
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Kyle McMartin 92559e2
###
Kyle McMartin 92559e2
### Special hacks for debuginfo subpackages.
Kyle McMartin 92559e2
###
Kyle McMartin 92559e2
Kyle McMartin 92559e2
# This macro is used by %%install, so we must redefine it before that.
Kyle McMartin 92559e2
%define debug_package %{nil}
Kyle McMartin 92559e2
Kyle McMartin 92559e2
%if %{with_debuginfo}
Kyle McMartin 92559e2
Kyle McMartin 92559e2
%define __debug_install_post \
Kyle McMartin 92559e2
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Kyle McMartin 92559e2
%{nil}
Kyle McMartin 92559e2
Jesse Keating 7a32965
%ifnarch noarch
Jesse Keating 7a32965
%global __debug_package 1
Jesse Keating 7a32965
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%endif
Kyle McMartin 92559e2
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 92559e2
#
Kyle McMartin 92559e2
# Disgusting hack alert! We need to ensure we sign modules *after* all
Kyle McMartin 92559e2
# invocations of strip occur, which is in __debug_install_post if
Kyle McMartin 92559e2
# find-debuginfo.sh runs, and __os_install_post if not.
Kyle McMartin 92559e2
#
Kyle McMartin 92559e2
%define __spec_install_post \
Kyle McMartin 92559e2
  %{?__debug_package:%{__debug_install_post}}\
Kyle McMartin 92559e2
  %{__arch_install_post}\
Kyle McMartin 92559e2
  %{__os_install_post}\
Kyle McMartin 92559e2
  %{__modsign_install_post}
Kyle McMartin 92559e2
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### install
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%install
Jesse Keating 7a32965
Josh Boyer 83337ce
cd linux-%{KVERREL}
Jesse Keating 7a32965
Josh Boyer 8addb5f
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5f
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5f
# it doesn't install itself.
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
# Install kernel headers
Jesse Keating 7a32965
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a32965
Jesse Keating 7a32965
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a32965
     \( -name .install -o -name .check -o \
Jesse Keating 7a32965
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a32965
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Josh Boyer 8addb5f
# perf tool binary and supporting scripts/binaries
Josh Boyer ed7ef34
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-bin
713abc0
# remove the 'trace' symlink.
713abc0
rm -f %{buildroot}%{_bindir}/trace
Josh Boyer 8addb5f
Kyle McMartin ec31efd
# python-perf extension
Kyle McMartin 8bcddfb
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31efd
Josh Boyer 8addb5f
# perf man pages (note: implicit rpm magic compresses them later)
Josh Boyer ed7ef34
mkdir -p %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef34
pushd %{buildroot}/%{_mandir}/man1
Josh Boyer ed7ef34
tar -xf %{SOURCE10}
Josh Boyer ed7ef34
popd
Kyle McMartin 42d4c31
%endif
Josh Boyer 8addb5f
Kyle McMartin 42d4c31
%if %{with_tools}
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Kyle McMartin 43d64b2
%{make} -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5f
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5f
%find_lang cpupower
Josh Boyer 8addb5f
mv cpupower.lang ../
Josh Boyer 9c44ba9
%ifarch %{ix86}
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/i386
Josh Boyer 8addb5f
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5f
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 9c44ba9
%ifarch x86_64
Kyle McMartin 0769445
    pushd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba9
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba9
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 0769445
    popd
Josh Boyer 9c44ba9
%endif
Josh Boyer 8addb5f
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5f
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5f
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5f
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5f
%endif
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
   mkdir -p %{buildroot}%{_mandir}/man8
Kyle McMartin 0769445
   pushd tools/power/x86/x86_energy_perf_policy
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Kyle McMartin 0769445
   popd
Kyle McMartin 0769445
   pushd tools/power/x86/turbostat
Josh Boyer b080939
   make DESTDIR=%{buildroot} install
Kyle McMartin 0769445
   popd
Josh Boyer b080939
%endif #turbostat/x86_energy_perf_policy
ec0fd9d
pushd tools/thermal/tmon
ec0fd9d
make INSTALL_ROOT=%{buildroot} install
ec0fd9d
popd
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### clean
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%clean
Jesse Keating 7a32965
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### scripts
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Josh Boyer 93e7772
%if %{with_tools}
Josh Boyer 8addb5f
%post -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%postun -n kernel-tools
Josh Boyer 8addb5f
/sbin/ldconfig
Josh Boyer 93e7772
%endif
Josh Boyer 8addb5f
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a32965
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_devel_post() \
Jesse Keating 7a32965
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a32965
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a32965
then\
Jesse Keating 7a32965
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a32965
then\
faf2520
    (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
Jesse Keating 7a32965
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a32965
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a32965
     done)\
Jesse Keating 7a32965
fi\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Josh Boyer b8b2783
#
Josh Boyer b8b2783
# This macro defines a %%post script for a kernel*-modules-extra package.
Kyle McMartin de50edb
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b2783
#
Josh Boyer b8b2783
%define kernel_modules_extra_post() \
Josh Boyer b8b2783
%{expand:%%post %{?1:%{1}-}modules-extra}\
faf2520
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b2783
%{nil}
Josh Boyer 8addb5f
Jesse Keating 7a32965
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_posttrans() \
Jesse Keating 7a32965
%{expand:%%posttrans %{?1}}\
faf2520
/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a32965
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a32965
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_post(v:r:) \
Jesse Keating 7a32965
%{expand:%%kernel_devel_post %{?-v*}}\
Kyle McMartin 663b7fc
%if %{with_extra}\
Josh Boyer b8b2783
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Kyle McMartin 663b7fc
%endif\
Jesse Keating 7a32965
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a32965
%{expand:%%post %{?-v*}}\
Jesse Keating 7a32965
%{-r:\
Jesse Keating 7a32965
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a32965
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a32965
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a32965
fi}\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a32965
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_preun() \
Jesse Keating 7a32965
%{expand:%%preun %{?1}}\
faf2520
/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun
Jesse Keating 7a32965
%kernel_variant_post -r kernel-smp
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun smp
Jesse Keating 7a32965
%kernel_variant_post -v smp
Jesse Keating 7a32965
Kyle McMartin bc5f99d
%kernel_variant_preun %{pae}
Kyle McMartin bc5f99d
%kernel_variant_post -v %{pae} -r (kernel|kernel-smp)
Kyle McMartin bc5f99d
Kyle McMartin bc5f99d
%kernel_variant_post -v %{pae}debug -r (kernel|kernel-smp)
Kyle McMartin bc5f99d
%kernel_variant_preun %{pae}debug
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_preun debug
Jesse Keating 7a32965
%kernel_variant_post -v debug
Jesse Keating 7a32965
Jesse Keating 7a32965
if [ -x /sbin/ldconfig ]
Jesse Keating 7a32965
then
Jesse Keating 7a32965
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a32965
fi
Jesse Keating 7a32965
Jesse Keating 7a32965
###
Jesse Keating 7a32965
### file lists
Jesse Keating 7a32965
###
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_headers}
Jesse Keating 7a32965
%files headers
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/include/*
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Jesse Keating 7a32965
%if %{with_bootwrapper}
Jesse Keating 7a32965
%files bootwrapper
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
/usr/sbin/*
Jesse Keating 7a32965
%{_libdir}/kernel-wrapper
Jesse Keating 7a32965
%endif
Jesse Keating 7a32965
Kyle McMartin 42d4c31
%if %{with_perf}
Kyle McMartin 42d4c31
%files -n perf
Jesse Keating 7a32965
%defattr(-,root,root)
Jesse Keating 7a32965
%{_bindir}/perf
Jesse Keating 7a32965
%dir %{_libexecdir}/perf-core
Jesse Keating 7a32965
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/perf*
6e82a62
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337ce
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%files -n python-perf
Kyle McMartin 42d4c31
%defattr(-,root,root)
Kyle McMartin 42d4c31
%{python_sitearch}
Kyle McMartin 42d4c31
Kyle McMartin 42d4c31
%if %{with_debuginfo}
Kyle McMartin 42d4c31
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 27d8a0e
Josh Boyer 27d8a0e
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0e
%defattr(-,root,root)
Kyle McMartin 42d4c31
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Roland McGrath 3c4ea9a
Kyle McMartin 42d4c31
%if %{with_tools}
Kyle McMartin 42d4c31
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c31
%defattr(-,root,root)
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5f
%{_bindir}/cpupower
Josh Boyer 6ec053a
%ifarch %{ix86} x86_64
Josh Boyer 8addb5f
%{_bindir}/centrino-decode
Josh Boyer 8addb5f
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053a
%endif
Josh Boyer 8addb5f
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c31
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5f
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b080939
%ifarch %{ix86} x86_64
Josh Boyer b080939
%{_bindir}/x86_energy_perf_policy
Josh Boyer b080939
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b080939
%{_bindir}/turbostat
Josh Boyer b080939
%{_mandir}/man8/turbostat*
Josh Boyer b080939
%endif
ec0fd9d
%{_bindir}/tmon
Josh Boyer 8addb5f
%endif
Josh Boyer 8addb5f
Roland McGrath 3c4ea9a
%if %{with_debuginfo}
Josh Boyer 8addb5f
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9a
%defattr(-,root,root)
Roland McGrath 3c4ea9a
%endif
Josh Boyer 8addb5f
Josh Boyer 8addb5f
%ifarch %{cpupowerarchs}
Josh Boyer 55e586c
%files -n kernel-tools-libs
Josh Boyer 55e586c
%{_libdir}/libcpupower.so.0
Josh Boyer 55e586c
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 55e586c
Josh Boyer 55e586c
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5f
%{_libdir}/libcpupower.so
Josh Boyer 8addb5f
%{_includedir}/cpufreq.h
Josh Boyer 8addb5f
%endif
Kyle McMartin 42d4c31
%endif # with_perf
Jesse Keating 7a32965
Dave Jones 166b79a
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a32965
# or empty otherwise.
Jesse Keating 7a32965
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a32965
Jesse Keating 7a32965
#
Jesse Keating 7a32965
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a32965
# and its devel and debuginfo packages.
Jesse Keating 7a32965
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a32965
#
Jesse Keating 7a32965
%define kernel_variant_files(k:) \
Jesse Keating 7a32965
%if %{1}\
Jesse Keating 7a32965
%{expand:%%files %{?2}}\
Jesse Keating 7a32965
%defattr(-,root,root)\
faf2520
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:+%{2}}\
faf2520
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:+%{2}}.hmac \
Kyle McMartin 49ba08f
%ifarch %{arm} aarch64\
faf2520
/%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}} \
783eee9
%endif\
faf2520
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:+%{2}}\
faf2520
/boot/config-%{KVERREL}%{?2:+%{2}}\
b7897ab
%dir /lib/modules\
faf2520
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/build\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/source\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/updates\
Jesse Keating 7a32965
%ifarch %{vdso_arches}\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/vdso\
faf2520
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:+%{2}}.conf\
Jesse Keating 7a32965
%endif\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\
faf2520
%ghost /boot/initramfs-%{KVERREL}%{?2:+%{2}}.img\
Jesse Keating 7a32965
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a32965
%defattr(-,root,root)\
faf2520
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
Kyle McMartin 663b7fc
%if %{with_extra}\
Josh Boyer b8b2783
%{expand:%%files %{?2:%{2}-}modules-extra}\
Kyle McMartin 663b7fc
%endif\
Josh Boyer b8b2783
%defattr(-,root,root)\
faf2520
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
Jesse Keating 7a32965
%if %{with_debuginfo}\
Jesse Keating 7a32965
%ifnarch noarch\
Jesse Keating 7a32965
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a32965
%defattr(-,root,root)\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%endif\
Jesse Keating 7a32965
%{nil}
Jesse Keating 7a32965
Jesse Keating 7a32965
Jesse Keating 7a32965
%kernel_variant_files %{with_up}
Jesse Keating 7a32965
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a32965
%kernel_variant_files %{with_debug} debug
Kyle McMartin bc5f99d
%kernel_variant_files %{with_pae} %{pae}
Kyle McMartin bc5f99d
%kernel_variant_files %{with_pae_debug} %{pae}debug
Jesse Keating 7a32965
Jesse Keating 7a32965
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a32965
# and build.
Dave Jones 1d43b94
#
Dave Jones 1d43b94
# 
Dave Jones 1d43b94
#                        ___________________________________________________________
Dave Jones 1d43b94
#                       / This branch is for Fedora 21. You probably want to commit \
Dave Jones 1d43b94
#  _____ ____  _        \ to the F-20 branch instead, or in addition to this one.   /
Dave Jones 1d43b94
# |  ___|___ \/ |        -----------------------------------------------------------
Dave Jones 1d43b94
# | |_    __) | |             \   ^__^
Dave Jones 1d43b94
# |  _|  / __/| |              \  (@@)\_______
Dave Jones 1d43b94
# |_|   |_____|_|                 (__)\       )\/\
Dave Jones 1d43b94
#                                    ||----w |
Dave Jones 1d43b94
#                                    ||     ||
Jesse Keating 7a32965
%changelog
Josh Boyer 09162a7
* Fri Mar 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc8.git1.1
Josh Boyer 814a878
- CVE-2014-2580 xen: netback crash trying to disable due to malformed packet (rhbz 1080084 1080086)
Josh Boyer db8999a
- CVE-2014-0077 vhost-net: insufficent big packet handling in handle_rx (rhbz 1064440 1081504)
Josh Boyer 6676648
- CVE-2014-0055 vhost-net: insufficent error handling in get_rx_bufs (rhbz 1062577 1081503)
Josh Boyer 0fc5fab
- CVE-2014-2568 net: potential info leak when ubuf backed skbs are zero copied (rhbz 1079012 1079013)
Josh Boyer 0fc5fab
Josh Boyer 09162a7
* Fri Mar 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 10f1034
- Linux v3.14-rc8-12-g75c5a52
Josh Boyer 10f1034
- Reenable debugging options.
Josh Boyer 10f1034
6e3b311
* Fri Mar 28 2014 Peter Robinson <pbrobinson@fedoraproject.org>
6e3b311
- Enable Tegra 114/124 SoCs
6e3b311
- Re-enable OMAP cpufreq
6e3b311
- Re-enable CPSW PTP option
6e3b311
Josh Boyer 9a031d5
* Thu Mar 27 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 9a031d5
- Switch to CONFIG_TRANSPARENT_HUGEPAGE_MADVISE instead of always on
Josh Boyer 9a031d5
Josh Boyer 5b9ddb9
* Tue Mar 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc8.git0.1
Josh Boyer 5b9ddb9
- Linux v3.14-rc8
Josh Boyer 5b9ddb9
- Disable debugging options.
Josh Boyer 5b9ddb9
34889e8
* Mon Mar 24 2014 Peter Robinson <pbrobinson@fedoraproject.org>
59a8033
- Update some generic ARM config options
34889e8
- Build in TPS65217 for ARM non lpae kernels (fixes BBW booting)
59a8033
Josh Boyer 2190859
* Fri Mar 21 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc7.git2.1
Josh Boyer 2190859
- Linux v3.14-rc7-59-g08edb33
Josh Boyer 2190859
Josh Boyer a86a8d4
* Wed Mar 19 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc7.git1.1
Josh Boyer a86a8d4
- Linux v3.14-rc7-26-g4907cdc
Josh Boyer a86a8d4
- Reenable debugging options.
Josh Boyer a86a8d4
Josh Boyer 2e6773e
* Tue Mar 18 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 2e6773e
- Enable TEGRA_FBDEV (rhbz 1073960)
Josh Boyer 2e6773e
Josh Boyer 33113c6
* Mon Mar 17 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 33113c6
- Add bootwrapper for ppc64le
Josh Boyer 33113c6
Josh Boyer 9981d63
* Mon Mar 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc7.git0.1
Josh Boyer 9981d63
- Linux v3.14-rc7
Josh Boyer 9981d63
- Disable debugging options.
Josh Boyer 9981d63
955b60c
* Mon Mar 17 2014 Peter Robinson <pbrobinson@fedoraproject.org> 
955b60c
- Build in Palmas regulator on ARM to fix ext MMC boot on OMAP5
955b60c
7564972
* Fri Mar 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc6.git4.1
7564972
- Linux v3.14-rc6-133-gc60f7d5
7564972
bd7199c
* Thu Mar 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc6.git3.1
bd7199c
- Linux v3.14-rc6-41-gac9dc67
bd7199c
5210c91
* Wed Mar 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc6.git2.1
196742e
- Fix locking issue in iwldvm (rhbz 1046495)
5210c91
- Linux v3.14-rc6-26-g33807f4
5210c91
064542d
* Wed Mar 12 2014 Peter Robinson <pbrobinson@fedoraproject.org>
064542d
- Add some general missing ARM drivers (mostly sound)
064542d
- ARM config tweaks and cleanups
064542d
- Update i.MX6 dtb
064542d
Josh Boyer e741d1d
* Tue Mar 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc6.git1.1
Josh Boyer 93ec8b7
- CVE-2014-2309 ipv6: crash due to router advertisment flooding (rhbz 1074471 1075064)
Josh Boyer e741d1d
- Linux v3.14-rc6-17-g8712a00
Josh Boyer e741d1d
- Reenable debugging options.
Josh Boyer e741d1d
0ec726e
* Mon Mar 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc6.git0.1
0ec726e
- Linux v3.14-rc6
0ec726e
- Disable debugging options.
0ec726e
Josh Boyer 94c7eab
* Fri Mar 07 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 94c7eab
- Revert two xhci fixes that break USB mass storage (rhbz 1073180)
Josh Boyer 94c7eab
Josh Boyer 5f1f3d0
* Thu Mar 06 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 9009e17
- Fix stale EC events on Samsung systems (rhbz 1003602)
Josh Boyer 5a77287
- Add ppc64le support from Brent Baude (rhbz 1073102)
Josh Boyer 2432f55
- Fix depmod error message from hci_vhci module (rhbz 1051748)
Josh Boyer 5f1f3d0
- Fix bogus WARN in iwlwifi (rhbz 1071998)
Josh Boyer 5f1f3d0
Josh Boyer 4eb341a
* Wed Mar 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc5.git2.1
Josh Boyer 4eb341a
- Linux v3.14-rc5-185-gc3bebc7
Josh Boyer 4eb341a
Josh Boyer 3c3cc69
* Tue Mar 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc5.git1.1
Josh Boyer 3c3cc69
- Linux v3.14-rc5-43-g0c0bd34
Josh Boyer 3c3cc69
- Reenable debugging options.
Josh Boyer 3c3cc69
Josh Boyer 0d89efd
* Mon Mar 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc5.git0.1
Josh Boyer 0d89efd
- Linux v3.14-rc5
Josh Boyer 0d89efd
- Disable debugging options.
Josh Boyer 0d89efd
Josh Boyer 37ef8a3
* Fri Feb 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc4.git3.1
Josh Boyer 37ef8a3
- Linux v3.14-rc4-78-gd8efcf3
Josh Boyer 37ef8a3
e00b66b
* Fri Feb 28 2014 Kyle McMartin <kyle@fedoraproject.org>
e00b66b
- Enable appropriate CONFIG_XZ_DEC_$arch options to ensure we can mount
e00b66b
  squashfs images on supported architectures.
e00b66b
Josh Boyer 2edcdbf
* Fri Feb 28 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 2edcdbf
- CVE-2014-0102 keyctl_link can be used to cause an oops (rhbz 1071396)
Josh Boyer 2edcdbf
Josh Boyer 2323b02
* Thu Feb 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc4.git2.1
Josh Boyer 2323b02
- Linux v3.14-rc4-45-gd2a0476
Josh Boyer 2323b02
Josh Boyer 02e1755
* Wed Feb 26 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc4.git1.1
Josh Boyer 02e1755
- Linux v3.14-rc4-34-g6dba6ec
Josh Boyer 02e1755
- Reenable debugging options.
Josh Boyer 02e1755
46a7187
* Wed Feb 26 2014 Peter Robinson <pbrobinson@fedoraproject.org>
46a7187
- Re-enable KVM on aarch64 now it builds again
46a7187
Josh Boyer 6c17f19
* Tue Feb 25 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 6c17f19
- Fix mounting issues on cifs (rhbz 1068862)
Josh Boyer 6c17f19
Josh Boyer 4c81e23
* Mon Feb 24 2014 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 4c81e23
- Fix lockdep issue in EHCI when using threaded IRQs (rhbz 1056170)
Josh Boyer 4c81e23
Josh Boyer 8ee4982
* Mon Feb 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc4.git0.1
Josh Boyer 8ee4982
- Linux v3.14-rc4
Josh Boyer 8ee4982
- Disable debugging options.
Josh Boyer 8ee4982
Josh Boyer 8e165d9
* Thu Feb 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git5.1
Josh Boyer 8e165d9
- Linux v3.14-rc3-219-gd158fc7
Josh Boyer 8e165d9
13730bb
* Thu Feb 20 2014 Kyle McMartin <kyle@fedoraproject.org>
13730bb
- armv7: disable CONFIG_DEBUG_SET_MODULE_RONX until debugged (rhbz#1067113)
13730bb
Josh Boyer 8630010
* Thu Feb 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git4.1
Josh Boyer 8630010
- Linux v3.14-rc3-184-ge95003c
Josh Boyer 8630010
1167793
* Wed Feb 19 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git3.1
1167793
- Linux v3.14-rc3-168-g960dfc4
1167793
7e47890
* Tue Feb 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git2.1
7e47890
- Linux v3.14-rc3-43-g805937c
7e47890
92e57c7
* Tue Feb 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git1.1
92e57c7
- Linux v3.14-rc3-20-g60f76ea
92e57c7
- Reenable debugging options.
869e78e
- Fix r8169 ethernet after suspend (rhbz 1054408)
aaccf82
- Enable INTEL_MIC drivers (rhbz 1064086)
92e57c7
8c6a41b
* Mon Feb 17 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc3.git0.1
8c6a41b
- Linux v3.14-rc3
8c6a41b
- Disable debugging options.
8c6a41b
- Enable CONFIG_PPC_DENORMALIZATION (from Tony Breeds)
8c6a41b
21491f0
* Fri Feb 14 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc2.git4.1
21491f0
- Linux v3.14-rc2-342-g5e57dc8
e41ad71
- CVE-2014-0069 cifs: incorrect handling of bogus user pointers (rhbz 1064253 1062578)
e41ad71
ef49c2e
* Thu Feb 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc2.git3.1
ef49c2e
- Linux v3.14-rc2-271-g4675348
ef49c2e
ceb6aca
* Wed Feb 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc2.git2.1
ceb6aca
- Linux v3.14-rc2-267-g9398a10
ceb6aca
5fe48c9
* Wed Feb 12 2014 Josh Boyer <jwboyer@fedoraproject.org>
7845789
- Fix cgroup destroy oops (rhbz 1045755)
5fe48c9
- Fix backtrace in amd_e400_idle (rhbz 1031296)
5fe48c9
1f3e7fd
* Tue Feb 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc2.git1.1
1f3e7fd
- Linux v3.14-rc2-26-g6792dfe
1f3e7fd
- Reenable debugging options.
1f3e7fd
c0c648a
* Mon Feb 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc2.git0.1
c0c648a
- Linux v3.14-rc2
c0c648a
- Disable debugging options.
c0c648a
fa7d75e
* Sun Feb  9 2014 Peter Robinson <pbrobinson@fedoraproject.org>
fa7d75e
- Enable CMA on aarch64
fa7d75e
- Disable KVM temporarily on aarch64
fa7d75e
- Minor ARM config updates and cleanups
fa7d75e
c42a14b
* Sun Feb 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git5.1.1
c42a14b
- Linux v3.14-rc1-182-g4944790
c42a14b
28a80a3
* Sat Feb 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git4.1
28a80a3
- Linux v3.14-rc1-150-g34a9bff
28a80a3
58fa16e
* Fri Feb 07 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git3.1
58fa16e
- Linux v3.14-rc1-86-g9343224
58fa16e
5a78cdc
* Thu Feb 06 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git2.1
5a78cdc
- Linux v3.14-rc1-54-gef42c58
5a78cdc
d39f763
* Wed Feb 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git1.1
d39f763
- Linux v3.14-rc1-13-g878a876
d39f763
048827b
* Tue Feb 04 2014 Kyle McMartin <kyle@fedoraproject.org>
048827b
- Fix %all_arch_configs on aarch64.
048827b
f6adf8a
* Tue Feb 04 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git0.2
f6adf8a
- Add NUMA oops patches
f6adf8a
- Reenable debugging options.
f6adf8a
5b159e4
* Mon Feb 03 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc1.git0.1
5b159e4
- Linux v3.14-rc1
5b159e4
- Disable debugging options.
5b159e4
- Disable Xen on ARM temporarily as it doesn't build
5b159e4
9d8fe1a
* Mon Feb  3 2014 Peter Robinson <pbrobinson@fedoraproject.org>
9d8fe1a
- Re-enable modular Tegra DRM driver
9d8fe1a
- Add SD driver for ZYNQ SoCs
9d8fe1a
be304f4
* Fri Jan 31 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git19.1
be304f4
- Linux v3.13-10637-ge7651b8
be304f4
- Enable ZRAM/ZSMALLOC (rhbz 1058072)
be304f4
- Turn EXYNOS_HDMI back on now that it should build
be304f4
791339b
* Thu Jan 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git18.1
791339b
- Linux v3.13-10231-g53d8ab2
791339b
1c81678
* Thu Jan 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git17.1
1c81678
- Linux v3.13-10094-g9b0cd30
Josh Boyer fa9dce8
- Add patches to fix imx-hdmi build, and fix kernfs lockdep oops (rhbz 1055105)
1c81678
30edb93
* Thu Jan 30 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git16.1
30edb93
- Linux v3.13-9240-g1329311
30edb93
2c04069
* Wed Jan 29 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git15.1
2c04069
- Linux v3.13-9218-g0e47c96
2c04069
821c8a1
* Tue Jan 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git14.1
821c8a1
- Linux v3.13-8905-g627f4b3
821c8a1
05864eb
* Tue Jan 28 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git13.1
05864eb
- Linux v3.13-8789-g54c0a4b
05864eb
- Enable CONFIG_CC_STACKPROTECTOR_STRONG on x86
05864eb
a778c5a
* Mon Jan 27 2014 Peter Robinson <pbrobinson@fedoraproject.org>
a778c5a
- Build AllWinner (sunxi) on LPAE too (Cortex-A7 supports LPAE/KVM)
a778c5a
5fdcc0c
* Mon Jan 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git12.1
5fdcc0c
- Linux v3.13-8631-gba635f8
5fdcc0c
5fdcc0c
* Mon Jan 27 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git11.1
743557a
- Linux v3.13-8598-g77d143d
743557a
912ba5d
* Sat Jan 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git10.1
912ba5d
- Linux v3.13-8330-g4ba9920
912ba5d
b94e349
* Sat Jan 25 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git9.1
b94e349
- Linux v3.13-6058-g2d08cd0
b94e349
- Quiet incorrect usb phy error (rhbz 1057529)
b94e349
b7897ab
* Sat Jan 25 2014 Ville Skyttä <ville.skytta@iki.fi>
b7897ab
- Own the /lib/modules dir.
b7897ab
7430c1f
* Sat Jan 25 2014 Peter Robinson <pbrobinson@fedoraproject.org>
7430c1f
- Initial ARM config updates for 3.14
7430c1f
- Disable highbank cpuidle driver
7430c1f
- Enable mtd-nand drivers on ARM
7430c1f
- Update CPU thermal scaling options for ARM
7430c1f
7603bfc
* Fri Jan 24 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git8.1
7603bfc
- Linux v3.13-5617-g3aacd62
7603bfc
f3545e8
* Thu Jan 23 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git7.1
f3545e8
- Linux v3.13-4156-g90804ed
f3545e8
d849e53
* Thu Jan 23 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git6.1.1
ad8be0c
- Revert fsnotify changes as they cause slab corruption for multiple people
d849e53
- Linux v3.13-3995-g0dc3fd0
d849e53
93a6365
* Thu Jan 23 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git5.1
93a6365
- Linux v3.13-3667-ge1ba845
93a6365
f8e5f8c
* Wed Jan 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git4.1
f8e5f8c
- Linux v3.13-3477-gdf32e43
f8e5f8c
f53e3d2
* Wed Jan 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git3.1
f53e3d2
- Linux v3.13-3260-g03d11a0
f53e3d2
1075524
* Wed Jan 22 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git2.1
1075524
- Linux v3.13-2502-gec513b1
1075524
05892a5
* Tue Jan 21 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.14.0-0.rc0.git1.1
05892a5
- Linux v3.13-737-g7fe67a1
05892a5
- Reenable debugging options.  Enable SLUB_DEBUG
05892a5
e1e0f76
* Mon Jan 20 2014 Kyle McMartin <kyle@fedoraproject.org>
e1e0f76
- Enable CONFIG_KVM on AArch64.
e1e0f76
80ea6c9
* Mon Jan 20 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-1
80ea6c9
- Linux v3.13
80ea6c9
- Disable debugging options.
80ea6c9
- Use versioned perf man pages tarball
80ea6c9
95c2ed4
* Sat Jan 18 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc8.git4.1
95c2ed4
- Linux v3.13-rc8-76-g7d0d46d
95c2ed4
e94886a
* Sat Jan 18 2014 Peter Robinson <pbrobinson@fedoraproject.org>
e94886a
- Enable ARM_GLOBAL_TIMER on ARM used by a number of Cortex-A9 and later platforms
e94886a
f3a8b91
* Thu Jan 16 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc8.git3.1
f3a8b91
- Linux v3.13-rc8-46-g85ce70f
f3a8b91
dd47c04
* Wed Jan 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc8.git2.1.1
dd47c04
- Linux v3.13-rc8-27-g2e67c56
dd47c04
3752c85
* Tue Jan 14 2014 Josh Boyer <jwboyer@fedoraproject.org>
3752c85
- Fix k-m-e Provides to be explicit to only the package flavor (rhbz 1046246)
3752c85
Kyle McMartin 0c6639a
* Tue Jan 14 2014 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 0c6639a
- aarch64: enable 4K pages and CONFIG_COMPAT.
Kyle McMartin 0c6639a
29109d0
* Mon Jan 13 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc8.git1.1
29109d0
- Linux v3.13-rc8-5-ga6da83f
29109d0
- Reenable debugging options.
29109d0
39549c0
* Sun Jan 12 2014 Peter Robinson <pbrobinson@fedoraproject.org>
39549c0
- Minor ARM config updates and cleanups
4f47a2c
- Enable generic cpufreq-cpu0 driver on ARM
d82fbb9
- Enable thermal userspace support for ARM
39549c0
97eebfc
* Sun Jan 12 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc8.git0.1
97eebfc
- Linux v3.13-rc8
97eebfc
- Disable debugging options.
97eebfc
ce86d36
* Sat Jan 11 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc7.git5.1
ce86d36
- Linux v3.13-rc7-126-g228fdc0
ce86d36
e54e441
* Fri Jan 10 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc7.git4.1
e54e441
- Linux v3.13-rc7-87-g21e20e2
e54e441
5e4d5b6
* Thu Jan 09 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc7.git3.1
5e4d5b6
- Linux v3.13-rc7-72-g7d1c153
5e4d5b6
216f1aa
* Wed Jan 08 2014 Josh Boyer <jwboyer@fedoraproject.org>
d150c1a
- Disable aic94xx driver (from Paul Bolle)
216f1aa
- Backport support for ALPS Dolphin devices (rhbz 953211)
216f1aa
d35c5d0
* Wed Jan 08 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc7.git2.1
d35c5d0
- Linux v3.13-rc7-67-gceb3b02
d35c5d0
- Enable BCMA_DRIVER_GPIO by turning on GPIOLIB everywhere (rhbz 1021098)
d35c5d0
b65f9ed
* Tue Jan 07 2014 Josh Boyer <jwboyer@fedoraproject.org>
b65f9ed
- Drop -doc subpackage
b65f9ed
b65f9ed
* Tue Jan 07 2014 Josh Boyer <jwboyer@fedoraproject.com> - 3.13.0-0.rc7.git1.1
Josh Boyer cf50b65
- Linux v3.13-rc7-55-gef350bb
Josh Boyer cf50b65
- Reenable debugging options.
Josh Boyer cf50b65
41a1126
* Tue Jan 07 2014 Josh Boyer <jwboyer@fedoraproject.org>
41a1126
- Change DEFAULT_MMAP_MIN_ADDR to 64k on x86_64
41a1126
f36281b
* Mon Jan 06 2014 Josh Boyer <jwboyer@fedoraproject.org>
30d6f80
- Add support for Wacom Intuos 5 S devices (rhbz 1046238)
7a3be4b
- Fix use after free crash in KVM (rhbz 1047892)
f36281b
- Fix oops in KVM with invalid root_hpa (rhbz 924916)
f36281b
Josh Boyer e965795
* Sun Jan 05 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.13-0.0.rc7.git0.1
Josh Boyer e965795
- Linux v3.13-rc7
Josh Boyer 1dfaa24
- Fix xen-netback build failure on ARM
Josh Boyer e965795
Josh Boyer 27d4347
* Mon Dec 30 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc6.git0.1
Josh Boyer 27d4347
- Linux v3.13-rc6
Josh Boyer 27d4347
5ac3b24
* Mon Dec 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc5.git0.1
5ac3b24
- Linux v3.13-rc5
5ac3b24
- Disable debugging options.
5ac3b24
7bba517
* Sat Dec 21 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git5.1
7bba517
- Linux v3.13-rc4-256-gb7000ad
7bba517
751f52f
* Fri Dec 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
751f52f
- Add patches to fix dummy gssd entry (rhbz 1037793)
751f52f
57f3306
* Thu Dec 19 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git4.1
57f3306
- Linux v3.13-rc4-144-ga36c160
57f3306
16cb953
* Thu Dec 19 2013 Josh Boyer <jwboyer@fedoraproject.org>
16cb953
- copy kernel trees around with 'cp -al' so symlinks are preserved.  Fixes
16cb953
  weird build failures with coreutils 8.22 (rhbz 1044801)
16cb953
e8a7a8c
* Wed Dec 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git3.1
e8a7a8c
- Linux v3.13-rc4-99-g35eecf0
e8a7a8c
472f51e
* Wed Dec 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git2.1
472f51e
- Linux v3.13-rc4-38-gb0031f2
472f51e
Josh Boyer 4d2c9a2
* Wed Dec 18 2013 Josh Boyer <jwboyer@fedoraproject.org>
e01b376
- Reenable MEMORY_HOTPLUG on x86_64
Josh Boyer 4d2c9a2
- Fix nowatchdog-on-virt.patch to actually work in KVM guests
Josh Boyer 4d2c9a2
97366df
* Tue Dec 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git1.1
97366df
- Linux v3.13-rc4-21-g0eda402
97366df
- Reenable debugging options.
97366df
fa204d5
* Mon Dec 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc4.git0.1
fa204d5
- Linux v3.13-rc4
fa204d5
- Disable debugging options.
fa204d5
a752808
* Sat Dec 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git5.1
a752808
- Linux v3.13-rc3-362-gb2077eb
a752808
a752808
* Sat Dec 14 2013 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer ed7ef34
- Wrap doc BR in with_doc
Josh Boyer ed7ef34
- Stop building perf in build AND install because that's stupid
Josh Boyer ed7ef34
- Use prebuilt perf man pages
Josh Boyer ed7ef34
54dc996
* Fri Dec 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
54dc996
- More keys fixes from upstream to fix keyctl_get_persisent crash (rhbz 1043033)
54dc996
d9d571f
* Fri Dec 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git4.1
d9d571f
- Linux v3.13-rc3-302-g8d27637
d9d571f
00361ff
* Thu Dec 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git3.1
00361ff
- Linux v3.13-rc3-249-g2208f65
00361ff
69ee1b7
* Thu Dec 12 2013 Josh Boyer <jwboyer@fedoraproject.org>
211cf9e
- CVE-2013-4587 kvm: out-of-bounds access (rhbz 1030986 1042071)
d856aba
- CVE-2013-6376 kvm: BUG_ON in apic_cluster_id (rhbz 1033106 1042099)
b8ac208
- CVE-2013-6368 kvm: cross page vapic_addr access (rhbz 1032210 1042090)
69ee1b7
- CVE-2013-6367 kvm: division by 0 in apic_get_tmcct (rhbz 1032207 1042081)
69ee1b7
0473919
* Wed Dec 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git2.1
0473919
- Linux v3.13-rc3-174-g9538e10
0473919
1cc05a6
* Wed Dec 11 2013 Josh Boyer <jwboyer@fedoraproject.org>
1cc05a6
- Add patches to support ETPS/2 Elantech touchpads (rhbz 1030802)
1cc05a6
Josh Boyer fd75f39
* Tue Dec 10 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git1.2
Josh Boyer fd75f39
- Revert upstream selinux change causing sync hang (rhbz 1033965)
Josh Boyer fd75f39
- Add patch to fix radeon from crashing
Josh Boyer fd75f39
f78c22d
* Tue Dec 10 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git1.1
f78c22d
- Linux v3.13-rc3-157-g17b2112
f78c22d
- Reenable debugging options.
f78c22d
2eb1846
* Mon Dec 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git0.1
2eb1846
- Linux v3.13-rc3
2eb1846
- Disable debugging options.
2eb1846
023e1d5
* Fri Dec 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git7.1
023e1d5
- Linux v3.13-rc2-326-g843f4f4
023e1d5
1d5c4d2
* Fri Dec 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git6.1
1d5c4d2
- Linux v3.13-rc2-295-g002acf1
1d5c4d2
- Add test fix patch for crypto backtrace (rhbz 1038472)
1d5c4d2
0a16078
* Thu Dec 05 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git5.1
0a16078
- Linux v3.13-rc2-265-gef1e4e3
0a16078
d5539df
* Thu Dec 05 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git4.1
d5539df
- Linux v3.13-rc2-215-g53c6de5
d5539df
- Enable PR kvm module on ppc64 (rhbz 1038541)
d5539df
78ba2bd
* Wed Dec 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git3.1
78ba2bd
- Linux v3.13-rc2-208-g8ecffd7
78ba2bd
b0dba0c
* Tue Dec  3 2013 Peter Robinson <pbrobinson@fedoraproject.org>
b0dba0c
- Minor ARM cleanups and remove obsolete options
b0dba0c
01383f4
* Mon Dec 02 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git2.1
01383f4
- Linux v3.13-rc2-119-ga45299e
01383f4
0fdcea1
* Mon Dec 02 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc2.git1.1
0fdcea1
- Linux v3.13-rc2-1-gaf91706
0fdcea1
- Reenable debugging options.
0fdcea1
622a455
* Sat Nov 30 2013 Peter Robinson <pbrobinson@fedoraproject.org>
622a455
- Minor ARM config updates
622a455
- Enable sound compressed offload on ARM
622a455
40c368d
* Fri Nov 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc3.git0.1
40c368d
- Linux v3.13-rc2
40c368d
- Disable debugging options.
40c368d
eff40fb
* Fri Nov 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc1.git4.1
eff40fb
- Linux v3.13-rc1-252-gdda9cc3
eff40fb
78c2e3a
* Tue Nov 26 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc1.git3.1
78c2e3a
- Linux v3.13-rc1-128-g0e4b074
78c2e3a
761de8d
* Tue Nov 26 2013 Josh Boyer <jwboyer@fedoraproject.org>
97686d5
- Fix crash driver build and re-enable on s390x (from Dan Horák)
761de8d
- CVE-2013-6382 xfs: missing check for ZERO_SIZE_PTR (rhbz 1033603 1034670)
761de8d
b5c704c
* Mon Nov 25 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc1.git2.1
b5c704c
- Linux v3.13-rc1-85-g7e3528c
b5c704c
2ffa02f
* Sun Nov 24 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc1.git1.1
2ffa02f
- Linux v3.13-rc1-77-g4c1cc40
2ffa02f
- Reenable debugging options.
2ffa02f
5302d79
* Sat Nov 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc1.git0.1
5302d79
- Linux v3.13-rc1
5302d79
- Disable debugging options.
5302d79
c780fb3
* Fri Nov 22 2013 Peter Robinson <pbrobinson@fedoraproject.org>
c780fb3
- Fix ARM Utilite DTB
c780fb3
4ef7d96
* Fri Nov 22 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git11.1
4ef7d96
- Linux v3.12-11097-ga5d6e63
4ef7d96
- Drop all the keys-* patches because they were merged upstream.  Yay!
4ef7d96
464a3b8
* Thu Nov 21 2013 Peter Robinson <pbrobinson@fedoraproject.org>
464a3b8
- Some minor ARM config updates
464a3b8
772b620
* Thu Nov 21 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git10.1
772b620
- Linux v3.12-10928-g527d151
772b620
- Drop ACPI blacklist year options and patch (removed with upstream commit 4c47cb197e13 )
772b620
806c8da
* Wed Nov 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git9.1
806c8da
- Linux v3.12-10710-gb4789b8
806c8da
d59a2da
* Tue Nov 19 2013 Josh Boyer <jwboyer@fedoraproject.org>
d59a2da
- Enable CGROUP_HUGETLB on ppc64/ppc64p7 and x86_64 (rhbz 1031984)
d59a2da
d6f9b40
* Tue Nov 19 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git8.1
d6f9b40
- Linux v3.12-10554-g801a760
d6f9b40
c0fb589
* Tue Nov 19 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git7.1
c0fb589
- Linux v3.12-10553-g27b5c3f
c0fb589
196bf60
* Sun Nov 17 2013 Peter Robinson <pbrobinson@fedoraproject.org>
196bf60
- Fix up ARM usb gadget config to make it useful
196bf60
ab2a11b
* Sun Nov 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git6.1
ab2a11b
- Linux v3.12-10087-g1213959
ab2a11b
- Update s390x config from Dan Horák
ab2a11b
6494f2c
* Sat Nov 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git5.1
6494f2c
- Linux v3.12-9888-gf63c482
6494f2c
ec0fd9d
* Thu Nov 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git4.1
ec0fd9d
- Linux v3.12-8333-g4fbf888
ec0fd9d
- Build tmon in kernel-tools
ec0fd9d
- Disable ARM NEON optimised AES and OMAP2PLUS cpufreq because they don't build
ec0fd9d
dba6fde
* Thu Nov 14 2013 Peter Robinson <pbrobinson@fedoraproject.org>
3078167
- Update ARM configs
dba6fde
- Enable ARM NEON optimised AES
3078167
e3f67fd
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git3.2
e3f67fd
- Enable USER_NS for root-only processes (rhbz 917708)
e3f67fd
991987b
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git3.1
991987b
- Linux v3.12-7033-g42a2d92
991987b
4326014
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
4326014
- Add patch to fix imx-drm build issues
4326014
049a74e
* Wed Nov 13 2013 Adam Jackson <ajax@redhat.com>
049a74e
- Hush i915's check_crtc_state()
049a74e
713abc0
* Tue Nov 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git2.1
713abc0
- Linux v3.12-4849-g10d0c97
713abc0
65855d3
* Mon Nov 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git1.3
65855d3
- Linux v3.12-2839-gedae583
65855d3
- Reenable debugging options.
65855d3
a6bed44
* Sat Nov 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-2
20a5ad3
- Add patch from Daniel Stone to avoid high order allocations in evdev
e3ff8fb
- Add qxl backport fixes from Dave Airlie
e3ff8fb
0a346ea
* Tue Nov 05 2013 Kyle McMartin <kyle@fedoraproject.org>
0a346ea
- Enable crash on {arm,aarch64,ppc64,s390x}
0a346ea
17cfc21
* Mon Nov 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-1
17cfc21
- Linux v3.12
17cfc21
- Disable debugging options.
17cfc21
7070b18
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git4.1
7070b18
- Linux v3.12-rc7-111-g9581b7d
7070b18
69fef57
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git3.1
69fef57
- Linux v3.12-rc7-79-g4f794ee
69fef57
- Set NR_CPUS=1024 on non-debug x86_64 builds (MAXSMP is set on debug)
69fef57
1054777
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org>
1054777
- CVE-2013-4348 net: deadloop path in skb_flow_dissect (rhbz 1007939 1025647)
1054777
5e7b108
* Thu Oct 31 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git2.1
5e7b108
- Linux v3.12-rc7-48-g12aee27
5e7b108
5db3537
* Tue Oct 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git1.1
5db3537
- Linux v3.12-rc7-9-gc9ca72f
5db3537
- Fixes sg_open lock held when returning to userspace (rhbz 1018620)
5db3537
- Reenable debugging options.
5db3537
6894720
* Mon Oct 28 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git0.1
6894720
- Linux v3.12-rc7
6894720
- Disable debugging options.
6894720
0a55a3f
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
0a55a3f
- Add touchpad support for Dell XT2 (rhbz 1023413)
0a55a3f
87fb89b
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git4.1
87fb89b
- Linux v3.12-rc6-292-g4208c47
87fb89b
ac67590
* Thu Oct 24 2013 Peter Robinson <pbrobinson@fedoraproject.org>
ac67590
- Add patch for i.MX6 Utilite device dtb
ac67590
c872926
* Thu Oct 24 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git3.1
c872926
- Linux v3.12-rc6-284-ge6036c0
c872926
Kyle McMartin 11dfcd7
* Wed Oct 23 2013 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 11dfcd7
- Clean up some BuildRequires that reference hilariously old packages.
Kyle McMartin 11dfcd7
  Replace module-init-tools BR with kmod.
Kyle McMartin 11dfcd7
6f5740b
* Wed Oct 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git2.1
6f5740b
- Linux v3.12-rc6-275-g320437af
6f5740b
1db1471
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
1db1471
- Build virtio drivers as modules (rhbz 1019569)
1db1471
fd87470
* Tue Oct 22 2013 Adam Jackson <ajax@redhat.com>
fd87470
- Drop voodoo1 fbdev driver
fd87470
d36d81c
* Tue Oct 22 2013 Kyle McMartin <kyle@fedoraproject.org>
d36d81c
- Clean up kernel Provides, nobody references kernel-drm, or kernel-modeset...
d36d81c
  drop pre-F20 ARM flavor names. Turn off AutoProv on the main kernel package.
d36d81c
197c75a
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
197c75a
- Add patch to fix warning in tcp_fastretrans_alert (rhbz 989251)
197c75a
00fe90b
* Tue Oct 22 2013 Kyle McMartin <kyle@fedoraproject.org>
00fe90b
- armv7hl,aarch64: re-enable kernel-modules-extra temporarily
00fe90b
5205fba
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git1.1
5205fba
- Linux v3.12-rc6-57-g69c88dc
5205fba
- Reenable debugging options.
5205fba
66681bd
* Tue Oct 22 2013 Peter Robinson <pbrobinson@fedoraproject.org>
66681bd
- Minor ARM config update
66681bd
3b5c960
* Mon Oct 21 2013 Kyle McMartin <kyle@fedoraproject.org>
3b5c960
- aarch64: add AFTER_LINK to $vdsold for debuginfo generation of the vdso.
3b5c960
1113a8c
* Sun Oct 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
1113a8c
- Build BIG_KEYS into the kernel (rhbz 1017683)
1113a8c
e456508
* Sun Oct 20 2013 Peter Robinson <pbrobinson@fedoraproject.org>
e456508
- Enable U8500 SoC (Snowball) on ARM
e456508
141877e
* Sun Oct 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git0.1
141877e
- Linux v3.12-rc6
141877e
- Disable debugging options.
141877e
249d531
* Fri Oct 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git4.1
249d531
- Linux v3.12-rc5-123-g04919af
249d531
8664f7c
* Fri Oct 18 2013 Josh Boyer <jwboyer@fedoraproject.org> 
8664f7c
- Fix keyring quota misaccounting (rhbz 1017683)
8664f7c
a806f25
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git3.1
a806f25
- Linux v3.12-rc5-78-g056cdce
a806f25
b980a8c
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
34e7db2
- Add patch to fix BusLogic error (rhbz 1015558)
b980a8c
- Fix rt2800usb polling timeouts and throughput issues (rhbz 984696)
b980a8c
458031c
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
c517fd6
- Fix btrfs balance/scrub issue (rhbz 1011714)
458031c
- Clean up a bunch of stale patches
458031c
630a061
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git2.1
630a061
- Linux v3.12-rc5-48-g34ec4de
630a061
5e6535d
* Wed Oct 16 2013 Peter Robinson <pbrobinson@fedoraproject.org>
5e6535d
- ARM config updates for IIO and enable sensors for ARM platforms
5e6535d
5e6535d
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
f7a31dd
- Enable VIRTIO_CONSOLE as a module on all ARM (rhbz 1005551)
f7a31dd
e1f1185
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org>
e1f1185
- Enable IIO and various sensor options for Win8 laptops (rhbz 995510)
e1f1185
7f23833
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git1.1
7f23833
- Linux v3.12-rc5-36-g1e52db6
7f23833
- Reenable debugging options.
7f23833
75caab3
* Mon Oct 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git0.1
75caab3
- Linux v3.12-rc5
75caab3
- Disable debugging options.
75caab3
2fba3e3
* Sun Oct 13 2013 Peter Robinson <pbrobinson@fedoraproject.org>
2fba3e3
- Minor ARM config updates/cleanups
2fba3e3
- ARM GPIO/I2C updates
2fba3e3
- ARM usb gadget updates
2fba3e3
694dc9b
* Sat Oct 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git4.1
694dc9b
- Linux v3.12-rc4-91-g46f3751
694dc9b
Kyle McMartin e119a60
* Fri Oct 11 2013 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin e119a60
- Turn off some drivers on aarch64 and armv7hl that are unlikely to ever be
Kyle McMartin e119a60
  seen there.
Kyle McMartin e119a60
0646739
* Fri Oct 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git3.1
7792df6
- Fix segfault in cpupower set (rhbz 1000439)
0646739
- Linux v3.12-rc4-62-g2fe80d3
0646739
2d33000
* Thu Oct 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
2d33000
- Fix large order allocation in dm mq policy (rhbz 993744)
2d33000
821590a
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git2.1
b817316
- Don't trigger a stack trace on crashing iwlwifi firmware (rhbz 896695)
821590a
- Linux v3.12-rc4-29-g0e7a3ed
821590a
0713af6
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
0713af6
- Add patch to fix VFIO IOMMU crash (rhbz 998732)
0713af6
0203905
* Tue Oct 8  2013 Peter Robinson <pbrobinson@fedoraproject.org>
0203905
- Tiny ARM config update
0203905
72d016e
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git1.1
72d016e
- Linux v3.12-rc4-19-g8b5ede6
72d016e
- Reenable debugging options.
72d016e
- Quiet irq remapping stack trace (rhbz 982153)
72d016e
82bda6a
* Mon Oct 7  2013 Peter Robinson <pbrobinson@fedoraproject.org>
82bda6a
- General ARM config cleanups
82bda6a
- Remove old/dupe ARM config options
82bda6a
- Enable external connectors on ARM
82bda6a
- Enable i.MX and TI thermal controllers
82bda6a
- Enable i.MX RNG driver
82bda6a
- ARM MFD and REGULATOR changes and cleanups
82bda6a
- AM33xx (BeagleBone) config improvements
82bda6a
- Rebase OMAP DVI patch
82bda6a
- Enable console for Zynq-7xxx SoCs
82bda6a
511955b
* Sun Oct 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git0.1
511955b
- Linux v3.12-rc4
511955b
- Disable debugging options.
511955b
dce629e
* Fri Oct 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git5.1
dce629e
- Linux v3.12-rc3-296-g15c83d2
dce629e
6058f01
* Thu Oct 03 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git4.1
6058f01
- Linux v3.12-rc3-267-g6d15ee4
6058f01
9d22d52
* Thu Oct 03 2013 Josh Boyer <jwboyer@fedoraproject.org>
9d22d52
- Add patch to support not importing certs from db