Jesse Keating 7a3296
# We have to override the new %%install behavior because, well... the kernel is special.
Jesse Keating 7a3296
%global __spec_install_pre %{___build_pre}
Jesse Keating 7a3296
Jesse Keating 7a3296
Summary: The Linux kernel
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable, released kernel, released_kernel should be 1. For rawhide
Jesse Keating 7a3296
# and/or a kernel built from an rc or git snapshot, released_kernel should
Jesse Keating 7a3296
# be 0.
65855d
%global released_kernel 0
Jesse Keating 7a3296
Josh Boyer c2a12c
# Sign modules on x86.  Make sure the config files match this setting if more
Josh Boyer c2a12c
# architectures are added.
Josh Boyer c2a12c
%ifarch %{ix86} x86_64
Josh Boyer c2a12c
%global signmodules 1
Josh Boyer c2a12c
%else
Josh Boyer c2a12c
%global signmodules 0
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Jesse Keating 7a3296
# Save original buildid for later if it's defined
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global orig_buildid %{buildid}
Jesse Keating 7a3296
%undefine buildid
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
# Polite request for people who spin their own kernel rpms:
Jesse Keating 7a3296
# please modify the "buildid" define in a way that identifies
Jesse Keating 7a3296
# that the kernel isn't the stock distribution kernel, for example,
Jesse Keating 7a3296
# by setting the define to ".local" or ".bz123456". This will be
Jesse Keating 7a3296
# appended to the full kernel version.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# (Uncomment the '#' and both spaces below to set the buildid.)
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# % define buildid .local
Jesse Keating 7a3296
###################################################################
Jesse Keating 7a3296
Jesse Keating 7a3296
# The buildid can also be specified on the rpmbuild command line
Jesse Keating 7a3296
# by adding --define="buildid .whatever". If both the specfile and
Jesse Keating 7a3296
# the environment define a buildid they will be concatenated together.
Jesse Keating 7a3296
%if 0%{?orig_buildid:1}
Jesse Keating 7a3296
%if 0%{?buildid:1}
Jesse Keating 7a3296
%global srpm_buildid %{buildid}
Jesse Keating 7a3296
%define buildid %{srpm_buildid}%{orig_buildid}
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define buildid %{orig_buildid}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Roland McGrath 377da6
# baserelease defines which build revision of this kernel version we're
Roland McGrath 377da6
# building.  We used to call this fedora_build, but the magical name
Roland McGrath 377da6
# baserelease is matched by the rpmdev-bumpspec tool, which you should use.
Jesse Keating 7a3296
#
Roland McGrath 377da6
# We used to have some extra magic weirdness to bump this automatically,
Roland McGrath 377da6
# but now we don't.  Just use: rpmdev-bumpspec -c 'comment for changelog'
Roland McGrath 377da6
# When changing base_sublevel below or going from rc to a final kernel,
Roland McGrath 377da6
# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec).
Roland McGrath 377da6
# scripts/rebase.sh should be made to do that for you, actually.
Roland McGrath 377da6
#
Chuck Ebbert 05e763
# NOTE: baserelease must be > 0 or bad things will happen if you switch
Chuck Ebbert 05e763
#       to a released kernel (released version will be < rc version)
Chuck Ebbert c3126d
#
Chuck Ebbert 05e763
# For non-released -rc kernels, this will be appended after the rcX and
Chuck Ebbert 05e763
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
Chuck Ebbert 05e763
#
ec0fd9
%global baserelease 1
Roland McGrath 377da6
%global fedora_build %{baserelease}
Jesse Keating 7a3296
Jesse Keating 7a3296
# base_sublevel is the kernel version we're starting with and patching
Dave Jones 34ff8b
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Dave Jones 34ff8b
# which yields a base_sublevel of 0.
17cfc2
%define base_sublevel 12
Jesse Keating 7a3296
Jesse Keating 7a3296
## If this is a released kernel ##
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do we have a -stable update to apply?
Josh Boyer e8409b
%define stable_update 0
Jesse Keating 7a3296
# Is it a -stable RC?
Jesse Keating 7a3296
%define stable_rc 0
Jesse Keating 7a3296
# Set rpm version accordingly
Jesse Keating 7a3296
%if 0%{?stable_update}
Josh Boyer 740de5
%define stablerev %{stable_update}
Jesse Keating 7a3296
%define stable_base %{stable_update}
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
# stable RCs are incremental patches, so we need the previous stable patch
Jesse Keating 7a3296
%define stable_base %(echo $((%{stable_update} - 1)))
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Kyle McMartin e8ba2b
%define rpmversion 3.%{base_sublevel}.%{stable_update}
Jesse Keating 7a3296
Jesse Keating 7a3296
## The not-released-kernel case ##
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# The next upstream release sublevel (base_sublevel+1)
Kyle McMartin 4a2041
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Jesse Keating 7a3296
# The rc snapshot level
17cfc2
%define rcrev 0
Jesse Keating 7a3296
# The git snapshot level
6494f2
%define gitrev 5
Jesse Keating 7a3296
# Set rpm version accordingly
Kyle McMartin e8ba2b
%define rpmversion 3.%{upstream_sublevel}.0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
# Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below.
Jesse Keating 7a3296
Jesse Keating 7a3296
# What parts do we want to build?  We must build at least one kernel.
Jesse Keating 7a3296
# These are the kernels that are built IF the architecture allows it.
Jesse Keating 7a3296
# All should default to 1 (enabled) and be flipped to 0 (disabled)
Jesse Keating 7a3296
# by later arch-specific checks.
Jesse Keating 7a3296
Jesse Keating 7a3296
# The following build options are enabled by default.
Jesse Keating 7a3296
# Use either --without <opt> in your rpmbuild command or force values
Jesse Keating 7a3296
# to 0 in here to disable them.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# standard kernel
Jesse Keating 7a3296
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
Jesse Keating 7a3296
# kernel-smp (only valid for ppc 32-bit)
Jesse Keating 7a3296
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
Kyle McMartin bc5f99
# kernel PAE (only valid for i686 (PAE) and ARM (lpae))
Jarod Wilson 5b0327
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       1}
Jesse Keating 7a3296
# kernel-debug
Jesse Keating 7a3296
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
Jesse Keating 7a3296
# kernel-doc
Jesse Keating 7a3296
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
Jesse Keating 7a3296
# kernel-headers
Jesse Keating 7a3296
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
Kyle McMartin 663b7f
# kernel-modules-extra
Kyle McMartin 663b7f
%define with_extra     %{?_without_extra:     0} %{?!_without_extra:     1}
Kyle McMartin 42d4c3
# perf
Kyle McMartin 42d4c3
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
Dave Jones 1d18ad
# tools
Dave Jones 1d18ad
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
Jesse Keating 7a3296
# kernel-debuginfo
Kyle McMartin 761d1c
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
Jesse Keating 7a3296
# kernel-bootwrapper (for creating zImages from kernel + initrd)
Jesse Keating 7a3296
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
Jesse Keating 7a3296
# Want to build a the vsdo directories installed
Jesse Keating 7a3296
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# Additional options for user-friendly one-off kernel building:
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# Only build the base kernel (--with baseonly):
Jesse Keating 7a3296
%define with_baseonly  %{?_with_baseonly:     1} %{?!_with_baseonly:     0}
Jesse Keating 7a3296
# Only build the smp kernel (--with smponly):
Jesse Keating 7a3296
%define with_smponly   %{?_with_smponly:      1} %{?!_with_smponly:      0}
Jarod Wilson 5b0327
# Only build the pae kernel (--with paeonly):
Jarod Wilson 5b0327
%define with_paeonly   %{?_with_paeonly:      1} %{?!_with_paeonly:      0}
Jesse Keating 7a3296
# Only build the debug kernel (--with dbgonly):
Jesse Keating 7a3296
%define with_dbgonly   %{?_with_dbgonly:      1} %{?!_with_dbgonly:      0}
Chuck Ebbert c6b36e
#
Jesse Keating 7a3296
# should we do C=1 builds with sparse
Dave Jones 561b24
%define with_sparse    %{?_with_sparse:       1} %{?!_with_sparse:       0}
Chuck Ebbert 11ee03
#
Kyle McMartin 43d64b
# Cross compile requested?
Kyle McMartin 43d64b
%define with_cross    %{?_with_cross:         1} %{?!_with_cross:        0}
Kyle McMartin 43d64b
#
Chuck Ebbert 11ee03
# build a release kernel on rawhide
Chuck Ebbert 11ee03
%define with_release   %{?_with_release:      1} %{?!_with_release:      0}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
Jesse Keating 7a3296
#  and 0 for rawhide (all kernels are debug kernels).
Jesse Keating 7a3296
# See also 'make debug' and 'make release'.
65855d
%define debugbuildsenabled 0
Jesse Keating 7a3296
Jesse Keating 7a3296
# Want to build a vanilla kernel build without any non-upstream patches?
Jesse Keating 7a3296
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Jesse Keating 7a3296
Chuck Ebbert c6b36e
# Build the kernel-doc package, but don't fail the build if it botches.
Chuck Ebbert c6b36e
# Here "true" means "continue" and "false" means "fail the build".
Chuck Ebbert c6b36e
%if 0%{?released_kernel}
Chuck Ebbert c6b36e
%define doc_build_fail false
Chuck Ebbert c6b36e
%else
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
65855d
%define rawhide_skip_docs 1
Chuck Ebbert c6b36e
%if 0%{?rawhide_skip_docs}
Chuck Ebbert c6b36e
%define with_doc 0
Chuck Ebbert c6b36e
%define doc_build_fail true
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# pkg_release is what we'll fill in for the rpm Release: field
Jesse Keating 7a3296
%if 0%{?released_kernel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
%define stable_rctag .rc%{stable_rc}
Chuck Ebbert e6236b
%define pkg_release 0%{stable_rctag}.%{fedora_build}%{?buildid}%{?dist}
Chuck Ebbert e6236b
%else
Chuck Ebbert e6236b
%define pkg_release %{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel
Jesse Keating 7a3296
%if 0%{?rcrev}
Jesse Keating 7a3296
%define rctag .rc%rcrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define rctag .rc0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?gitrev}
Jesse Keating 7a3296
%define gittag .git%gitrev
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define gittag .git0
Jesse Keating 7a3296
%endif
Kyle McMartin 66ce81
%define pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# The kernel tarball/base version
Kyle McMartin e8ba2b
%define kversion 3.%{base_sublevel}
Jesse Keating 7a3296
Jesse Keating 7a3296
%define make_target bzImage
Jesse Keating 7a3296
Jesse Keating 7a3296
%define KVERREL %{version}-%{release}.%{_target_cpu}
Jesse Keating 7a3296
%define hdrarch %_target_cpu
Jesse Keating 7a3296
%define asmarch %_target_cpu
Jesse Keating 7a3296
Jesse Keating 7a3296
%if 0%{!?nopatches:1}
Jesse Keating 7a3296
%define nopatches 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vanilla}
Jesse Keating 7a3296
%define nopatches 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{nopatches}
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%define variant -vanilla
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%define variant_fedora -fedora
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define using_upstream_branch 0
Jesse Keating 7a3296
%if 0%{?upstream_branch:1}
Jesse Keating 7a3296
%define stable_update 0
Jesse Keating 7a3296
%define using_upstream_branch 1
Jesse Keating 7a3296
%define variant -%{upstream_branch}%{?variant_fedora}
Jesse Keating 7a3296
%define pkg_release 0.%{fedora_build}%{upstream_branch_tag}%{?buildid}%{?dist}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{with_debuginfo}
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define debuginfodir /usr/lib/debug
Jesse Keating 7a3296
Kyle McMartin bc5f99
# kernel PAE is only built on i686 and ARMv7.
Kyle McMartin bc5f99
%ifnarch i686 armv7hl
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build base kernel
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%define with_smp 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build smp kernel
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jarod Wilson 5b0327
%define with_debug 0
Jarod Wilson 5b0327
%endif
Jarod Wilson 5b0327
Jarod Wilson 5b0327
# if requested, only build pae kernel
Jarod Wilson 5b0327
%if %{with_paeonly}
Jarod Wilson 5b0327
%define with_up 0
Jarod Wilson 5b0327
%define with_smp 0
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# if requested, only build debug kernel
Jesse Keating 7a3296
%if %{with_dbgonly}
Jesse Keating 7a3296
%if %{debugbuildsenabled}
Jesse Keating 7a3296
%define with_up 0
Jarod Wilson 5b0327
%define with_pae 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define all_x86 i386 i686
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_vdso_install}
Jesse Keating 7a3296
# These arches install vdso/ directories.
Kyle McMartin 575de6
%define vdso_arches %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x aarch64
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Overrides for generic default options
Jesse Keating 7a3296
Josh Boyer 59694f
# only ppc needs a separate smp kernel
Josh Boyer 59694f
%ifnarch ppc 
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't do debug builds on anything but i686 and x86_64
Jesse Keating 7a3296
%ifnarch i686 x86_64
Jesse Keating 7a3296
%define with_debug 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only package docs noarch
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%define with_doc 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't build noarch kernels or headers (duh)
Jesse Keating 7a3296
%ifarch noarch
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_headers 0
Dave Jones 1d18ad
%define with_tools 0
Kyle McMartin 42d4c3
%define with_perf 0
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-*.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# bootwrapper is only on ppc
Josh Boyer 3b7690
%ifnarch ppc ppc64 ppc64p7
Jesse Keating 7a3296
%define with_bootwrapper 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 59694f
# sparse blows up on ppc64 and sparc64
5d109f
%ifarch ppc64 ppc ppc64p7
Jesse Keating 7a3296
%define with_sparse 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Per-arch tweaks
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{all_x86}
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define hdrarch i386
Kyle McMartin bc5f99
%define pae PAE
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-i?86*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch x86_64
Jesse Keating 7a3296
%define asmarch x86
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-x86_64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define kernel_image arch/x86/boot/bzImage
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 3b7690
%ifarch ppc64 ppc64p7
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc64*.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch s390x
Jesse Keating 7a3296
%define asmarch s390
Jesse Keating 7a3296
%define hdrarch s390
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-s390x.config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target image
Jesse Keating 7a3296
%define kernel_image arch/s390/boot/image
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch ppc
Jesse Keating 7a3296
%define asmarch powerpc
Jesse Keating 7a3296
%define hdrarch powerpc
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-ppc{-,.}*config
Jesse Keating 7a3296
%define image_install_path boot
Jesse Keating 7a3296
%define make_target vmlinux
Jesse Keating 7a3296
%define kernel_image vmlinux
Jesse Keating 7a3296
%define kernel_image_elf 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %{arm}
Jesse Keating 7a3296
%define all_arch_configs kernel-%{version}-arm*.config
Jesse Keating 7a3296
%define image_install_path boot
Josh Boyer 8ffa0a
%define asmarch arm
Jesse Keating 7a3296
%define hdrarch arm
Kyle McMartin bc5f99
%define pae lpae
986a9f
%define make_target bzImage
986a9f
%define kernel_image arch/arm/boot/zImage
Kyle McMartin 9b1a4c
# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
Kyle McMartin 9b1a4c
%define kernel_mflags KALLSYMS_EXTRA_PASS=1
43fa71
# we only build headers/perf/tools on the base arm arches
94b006
# just like we used to only build them on i386 for x86
a94069
%ifnarch armv7hl
94b006
%define with_headers 0
43fa71
%define with_perf 0
43fa71
%define with_tools 0
94b006
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 575de6
%ifarch aarch64
Kyle McMartin 575de6
%define all_arch_configs kernel-%{version}-arm64.config
Kyle McMartin 575de6
%define asmarch arm64
Kyle McMartin 575de6
%define hdrarch arm64
Kyle McMartin 575de6
%define make_target Image.gz
Kyle McMartin 575de6
%define kernel_image arch/arm64/boot/Image.gz
Kyle McMartin 575de6
%define image_install_path boot
Kyle McMartin 575de6
%endif
Kyle McMartin 575de6
Dave Jones 834dba
# Should make listnewconfig fail if there's config options
Dave Jones 834dba
# printed out?
Dave Jones 834dba
%if %{nopatches}%{using_upstream_branch}
Dave Jones 834dba
%define listnewconfig_fail 0
Dave Jones 834dba
%else
Dave Jones 834dba
%define listnewconfig_fail 1
Dave Jones 834dba
%endif
Dave Jones 834dba
Jesse Keating 7a3296
# To temporarily exclude an architecture from being built, add it to
Dave Jones 166b79
# %%nobuildarches. Do _NOT_ use the ExclusiveArch: line, because if we
Jesse Keating 7a3296
# don't build kernel-headers then the new build system will no longer let
Jesse Keating 7a3296
# us use the previous build of that package -- it'll just be completely AWOL.
Jesse Keating 7a3296
# Which is a BadThing(tm).
Jesse Keating 7a3296
Jesse Keating 7a3296
# We only build kernel-headers on the following...
5d109f
%define nobuildarches i386 s390
Jesse Keating 7a3296
Jesse Keating 7a3296
%ifarch %nobuildarches
Jesse Keating 7a3296
%define with_up 0
Jesse Keating 7a3296
%define with_smp 0
Jesse Keating 7a3296
%define with_pae 0
Jesse Keating 7a3296
%define with_debuginfo 0
Kyle McMartin 42d4c3
%define with_perf 0
Dave Jones 1d18ad
%define with_tools 0
Jesse Keating 7a3296
%define _enable_debug_packages 0
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%define with_pae_debug 0
Jesse Keating 7a3296
%if %{with_pae}
Jesse Keating 7a3296
%define with_pae_debug %{with_debug}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer 8addb5
# Architectures we build tools/cpupower on
Kyle McMartin 575de6
%define cpupowerarchs %{ix86} x86_64 ppc ppc64 ppc64p7 %{arm} aarch64
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Dave Jones 166b79
# Packages that need to be installed before the kernel is, because the %%post
Jesse Keating 7a3296
# scripts use them.
Jesse Keating 7a3296
#
Kyle McMartin 57716b
%define kernel_prereq  fileutils, systemd >= 203-2
Josh Boyer 6d752a
%define initrd_prereq  dracut >= 027
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro does requires, provides, conflicts, obsoletes for a kernel package.
Jesse Keating 7a3296
#	%%kernel_reqprovconf <subpackage>
Jesse Keating 7a3296
# It uses any kernel_<subpackage>_conflicts and kernel_<subpackage>_obsoletes
Jesse Keating 7a3296
# macros defined above.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_reqprovconf \
Jesse Keating 7a3296
Provides: kernel = %{rpmversion}-%{pkg_release}\
faf252
Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
Jesse Keating 7a3296
Provides: kernel-drm-nouveau = 16\
faf252
Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a3296
Requires(pre): %{kernel_prereq}\
Jesse Keating 7a3296
Requires(pre): %{initrd_prereq}\
4ae720
Requires(pre): linux-firmware >= 20130724-29.git31f6b30\
Josh Boyer 6d752a
Requires(preun): systemd >= 200\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_conflicts:Conflicts: %%{kernel%{?1:_%{1}}_conflicts}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_obsoletes:Obsoletes: %%{kernel%{?1:_%{1}}_obsoletes}}}\
Jesse Keating 7a3296
%{expand:%%{?kernel%{?1:_%{1}}_provides:Provides: %%{kernel%{?1:_%{1}}_provides}}}\
Jesse Keating 7a3296
# We can't let RPM do the dependencies automatic because it'll then pick up\
Jesse Keating 7a3296
# a correct but undesirable perl dependency from the module headers which\
Jesse Keating 7a3296
# isn't required for the kernel proper to function\
d36d81
AutoReqProv: no\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Name: kernel%{?variant}
Jesse Keating 7a3296
Group: System Environment/Kernel
Dave Jones 702ef3
License: GPLv2 and Redistributable, no modification permitted
Jesse Keating 7a3296
URL: http://www.kernel.org/
Jesse Keating 7a3296
Version: %{rpmversion}
Jesse Keating 7a3296
Release: %{pkg_release}
Jesse Keating 7a3296
# DO NOT CHANGE THE 'ExclusiveArch' LINE TO TEMPORARILY EXCLUDE AN ARCHITECTURE BUILD.
Jesse Keating 7a3296
# SET %%nobuildarches (ABOVE) INSTEAD
Kyle McMartin 575de6
ExclusiveArch: noarch %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm} aarch64
Jesse Keating 7a3296
ExclusiveOS: Linux
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_reqprovconf
Dave Jones efc71a
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# List the packages used during the kernel build
Jesse Keating 7a3296
#
Kyle McMartin 11dfcd
BuildRequires: kmod, patch, bash, sh-utils, tar
Kyle McMartin 11dfcd
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
Kyle McMartin 11dfcd
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
Josh Boyer 951b84
BuildRequires: net-tools, hostname, bc
Jesse Keating 7a3296
BuildRequires: xmlto, asciidoc
Jesse Keating 7a3296
%if %{with_sparse}
Kyle McMartin 11dfcd
BuildRequires: sparse
Jesse Keating 7a3296
%endif
Kyle McMartin 42d4c3
%if %{with_perf}
311742
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison
Josh Boyer ad6cd3
BuildRequires: audit-libs-devel
Kyle McMartin 42d4c3
%endif
Dave Jones 1d18ad
%if %{with_tools}
ec0fd9
BuildRequires: pciutils-devel gettext ncurses-devel
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Jesse Keating 7a3296
%if %{with_debuginfo}
Kyle McMartin 11dfcd
BuildRequires: rpm-build, elfutils
Mark Wielaard ec9ad6
%define debuginfo_args --strict-build-id -r
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c2a12c
%if %{signmodules}
Josh Boyer f0f4ff
BuildRequires: openssl
Josh Boyer bf81d1
BuildRequires: pesign >= 0.10-4
Josh Boyer c2a12c
%endif
Josh Boyer c2a12c
Kyle McMartin 43d64b
%if %{with_cross}
Kyle McMartin 43d64b
BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
Kyle McMartin 43d64b
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
Kyle McMartin 43d64b
%endif
Kyle McMartin 43d64b
Dave Jones 8959a0
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
Jesse Keating 7a3296
Josh Boyer f0f4ff
Source11: x509.genkey
Josh Boyer c2a12c
Jesse Keating 7a3296
Source15: merge.pl
Josh Boyer b8b278
Source16: mod-extra.list
Josh Boyer 0b4338
Source17: mod-extra.sh
Kyle McMartin d0a8cf
Source18: mod-sign.sh
Kyle McMartin d0a8cf
%define modsign_cmd %{SOURCE18}
Jesse Keating 7a3296
Chuck Ebbert c6b36e
Source19: Makefile.release
Jesse Keating 7a3296
Source20: Makefile.config
Jesse Keating 7a3296
Source21: config-debug
Jesse Keating 7a3296
Source22: config-nodebug
Jesse Keating 7a3296
Source23: config-generic
Kyle McMartin bcab99
Source24: config-no-extra
Jesse Keating 7a3296
Jesse Keating 7a3296
Source30: config-x86-generic
Jesse Keating 7a3296
Source31: config-i686-PAE
Josh Boyer d71f18
Source32: config-x86-32-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source40: config-x86_64-generic
Jesse Keating 7a3296
Jesse Keating 7a3296
Source50: config-powerpc-generic
Jesse Keating 7a3296
Source51: config-powerpc32-generic
Jesse Keating 7a3296
Source52: config-powerpc32-smp
Jesse Keating 7a3296
Source53: config-powerpc64
Josh Boyer 3b7690
Source54: config-powerpc64p7
Jesse Keating 7a3296
Jesse Keating 7a3296
Source70: config-s390x
Jesse Keating 7a3296
Kyle McMartin 575de6
Source100: config-arm-generic
Kyle McMartin 575de6
faa8d0
# Unified ARM kernels
Kyle McMartin 575de6
Source101: config-armv7-generic
Kyle McMartin 575de6
Source102: config-armv7
Kyle McMartin 575de6
Source103: config-armv7-lpae
Kyle McMartin 575de6
Kyle McMartin 575de6
Source110: config-arm64
Jesse Keating 7a3296
Jarod Wilson 5b6529
# This file is intentionally left empty in the stock kernel. Its a nicety
Jarod Wilson 5b6529
# added for those wanting to do custom rebuilds with altered config opts.
Jarod Wilson 5b6529
Source1000: config-local
Jarod Wilson 5b6529
Josh Boyer 8addb5
# Sources for kernel-tools
Josh Boyer 8addb5
Source2000: cpupower.service
Josh Boyer 8addb5
Source2001: cpupower.config
Josh Boyer 8addb5
Jesse Keating 7a3296
# Here should be only the patches up to the upstream canonical Linus tree.
Jesse Keating 7a3296
Jesse Keating 7a3296
# For a stable release kernel
Jesse Keating 7a3296
%if 0%{?stable_update}
Jesse Keating 7a3296
%if 0%{?stable_base}
Josh Boyer fdb68d
%define    stable_patch_00  patch-3.%{base_sublevel}.%{stable_base}.xz
Jesse Keating 7a3296
Patch00: %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Dave Jones 7bd4de
%define    stable_patch_01  patch-3.%{base_sublevel}.%{stable_update}-rc%{stable_rc}.xz
Jesse Keating 7a3296
Patch01: %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
# These are automagically defined by the rcrev and gitrev values set up
Jesse Keating 7a3296
# near the top of this spec file.
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
Patch00: patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
Patch01: patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
Patch00: patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH PATCH ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# we also need compile fixes for -vanilla
Dave Jones efd70b
Patch04: compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# build tweak for build ID magic, even for -vanilla
Dave Jones efd70b
Patch05: makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Kyle McMartin 201b16
Jesse Keating 7a3296
# revert upstream patches we get via other methods
Dave Jones efd70b
Patch09: upstream-reverts.patch
Jesse Keating 7a3296
# Git trees.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Standalone patches
Jesse Keating 7a3296
Dave Jones efd70b
Patch390: defaults-acpi-video.patch
Dave Jones a4b83e
Patch396: acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a3296
Dave Jones efd70b
Patch450: input-kill-stupid-messages.patch
Dave Jones efd70b
Patch452: no-pcspkr-modalias.patch
Jesse Keating 7a3296
Dave Jones efd70b
Patch460: serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
Patch470: die-floppy-die.patch
Jesse Keating 7a3296
Dave Jones efd70b
Patch510: silence-noise.patch
Dave Jones efd70b
Patch530: silence-fbcon-logo.patch
Jesse Keating 7a3296
713abc
Patch600: 0001-lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
de0566
e3f67f
#rhbz 917708
e3f67f
Patch700: Revert-userns-Allow-unprivileged-users-to-create-use.patch
e3f67f
Dave Jones efd70b
Patch800: crash-driver.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# crypto/
Josh Boyer 306dfc
Josh Boyer 9cb73b
# keys
Josh Boyer 9cb73b
Patch900: keys-expand-keyring.patch
Josh Boyer 9cb73b
Patch901: keys-krb-support.patch
Josh Boyer d7ee6f
Patch902: keys-x509-improv.patch
8664f7
Patch903: keyring-quota.patch
Josh Boyer 9cb73b
Josh Boyer 306dfc
# secure boot
Josh Boyer c9d9c5
Patch1000: secure-modules.patch
Josh Boyer c9d9c5
Patch1001: modsign-uefi.patch
Josh Boyer c9d9c5
Patch1002: sb-hibernate.patch
Josh Boyer c9d9c5
Patch1003: sysrq-secure-boot.patch
Matthew Garrett 447e3a
Jesse Keating 7a3296
# virt + ksm patches
Jesse Keating 7a3296
Jesse Keating 7a3296
# DRM
Josh Boyer deb816
Jesse Keating 7a3296
# nouveau + drm fixes
Jesse Keating 7a3296
# intel drm is all merged upstream
457484
Patch1825: drm-i915-dp-stfu.patch
049a74
Patch1826: drm-i915-hush-check-crtc-state.patch
Kyle McMartin 5acda9
Jesse Keating 7a3296
# Quiet boot fixes
Jesse Keating 7a3296
# silence the ACPI blacklist code
Dave Jones efd70b
Patch2802: silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# fs fixes
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# patches headed upstream
Dave Jones 6a501c
Patch10000: fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c
Jesse Keating 7a3296
Patch12016: disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Josh Boyer fcbaf2
Patch14000: hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
Patch14010: lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
Dave Jones 18e50c
Patch15000: nowatchdog-on-virt.patch
Dave Jones 18e50c
Kyle McMartin 575de6
# ARM64
Kyle McMartin 575de6
df483e
# ARM
ad887f
cfeb47
# lpae
de52fa
Patch21001: arm-lpae-ax88796.patch
Kyle McMartin 963bc0
Patch21004: arm-sound-soc-samsung-dma-avoid-another-64bit-division.patch
df483e
de52fa
# ARM omap
Kyle McMartin abe756
Patch21010: arm-omap-load-tfp410.patch
35041f
df483e
# ARM tegra
Kyle McMartin abe756
Patch21020: arm-tegra-usb-no-reset-linux33.patch
c30bd6
ac6759
# ARM i.MX6
ac6759
# http://www.spinics.net/lists/devicetree/msg08276.html
ac6759
Patch21030: arm-imx6-utilite.patch
ac6759
6494f2
Patch21031: fix-arm-xen-driver-build.patch
6494f2
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
Patch21235: scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
Josh Boyer ebd1a1
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a1
Patch21242: criu-no-expert.patch
Josh Boyer ebd1a1
Josh Boyer 27e48a
#rhbz 892811
Josh Boyer 27e48a
Patch21247: ath9k_rx_dma_stop_check.patch
Josh Boyer 27e48a
Josh Boyer dadd60
Patch22000: weird-root-dentry-name-debug.patch
Josh Boyer dadd60
Josh Boyer 6f1d3b
Patch25047: drm-radeon-Disable-writeback-by-default-on-ppc.patch
Josh Boyer 6f1d3b
2c51e4
#CVE-2013-4345 rhbz 1007690 1009136
2c51e4
Patch25104: ansi_cprng-Fix-off-by-one-error-in-non-block-size-request.patch
2c51e4
2d3300
#rhbz 993744
2d3300
Patch25128: dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
2d3300
7792df
#rhbz 1000439
7792df
Patch25129: cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
7792df
432601
Patch25142: 0001-staging-imx-drm-Fix-modular-build-of-DRM_IMX_IPUV3.patch
432601
Josh Boyer 812ba1
# END OF PATCH DEFINITIONS
Josh Boyer 812ba1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildRoot: %{_tmppath}/kernel-%{KVERREL}-root
Jesse Keating 7a3296
Jesse Keating 7a3296
%description
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system: memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package doc
Jesse Keating 7a3296
Summary: Various documentation bits found in the kernel source
Jesse Keating 7a3296
Group: Documentation
Jesse Keating 7a3296
%description doc
Jesse Keating 7a3296
This package contains documentation files from the kernel
Jesse Keating 7a3296
source. Various bits of information about the Linux kernel and the
Jesse Keating 7a3296
device drivers shipped with it are documented in these files.
Jesse Keating 7a3296
Jesse Keating 7a3296
You'll want to install this package if you need a reference to the
Jesse Keating 7a3296
options that can be passed to Linux kernel modules at load time.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%package headers
Jesse Keating 7a3296
Summary: Header files for the Linux kernel for use by glibc
Jesse Keating 7a3296
Group: Development/System
Dave Jones d555d6
Obsoletes: glibc-kernheaders < 3.0-46
Jesse Keating 7a3296
Provides: glibc-kernheaders = 3.0-46
Jesse Keating 7a3296
%description headers
Jesse Keating 7a3296
Kernel-headers includes the C header files that specify the interface
Jesse Keating 7a3296
between the Linux kernel and userspace libraries and programs.  The
Jesse Keating 7a3296
header files define structures and constants that are needed for
Jesse Keating 7a3296
building most standard programs and are also needed for rebuilding the
Jesse Keating 7a3296
glibc package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package bootwrapper
Jesse Keating 7a3296
Summary: Boot wrapper files for generating combined kernel + initrd images
Jesse Keating 7a3296
Group: Development/System
Dave Jones 524b8c
Requires: gzip binutils
Jesse Keating 7a3296
%description bootwrapper
Jesse Keating 7a3296
Kernel-bootwrapper contains the wrapper code which makes bootable "zImage"
Jesse Keating 7a3296
files combining both kernel and initial ramdisk.
Jesse Keating 7a3296
Jesse Keating 7a3296
%package debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
Summary: Kernel source files used by %{name}-debuginfo packages
Jesse Keating 7a3296
Group: Development/Debug
Jesse Keating 7a3296
%description debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
This package is required by %{name}-debuginfo subpackages.
Jesse Keating 7a3296
It provides the kernel source files common to all builds.
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%package -n perf
Kyle McMartin 42d4c3
Summary: Performance monitoring for the Linux kernel
Kyle McMartin 42d4c3
Group: Development/System
Kyle McMartin 42d4c3
License: GPLv2
Kyle McMartin 42d4c3
%description -n perf
Kyle McMartin 42d4c3
This package contains the perf tool, which enables performance monitoring
Kyle McMartin 42d4c3
of the Linux kernel.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n perf-debuginfo
Kyle McMartin 42d4c3
Summary: Debug information for package perf
Kyle McMartin 42d4c3
Group: Development/Debug
Kyle McMartin 42d4c3
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Kyle McMartin 42d4c3
AutoReqProv: no
Kyle McMartin 42d4c3
%description -n perf-debuginfo
Kyle McMartin 42d4c3
This package provides debug information for the perf package.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
# Note that this pattern only works right to match the .build-id
Kyle McMartin 42d4c3
# symlinks because of the trailing nonmatching alternation and
Kyle McMartin 42d4c3
# the leading .*, because of find-debuginfo.sh's buggy handling
Kyle McMartin 42d4c3
# of matching the pattern against the symlinks file.
Kyle McMartin 42d4c3
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%package -n python-perf
Kyle McMartin 42d4c3
Summary: Python bindings for apps which will manipulate perf events
Kyle McMartin 42d4c3
Group: Development/Libraries
Kyle McMartin 42d4c3
%description -n python-perf
Kyle McMartin 42d4c3
The python-perf package contains a module that permits applications
Kyle McMartin 42d4c3
written in the Python programming language to use the interface
Kyle McMartin 42d4c3
to manipulate perf events.
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Kyle McMartin 42d4c3
Josh Boyer 27d8a0
%package -n python-perf-debuginfo
Josh Boyer 27d8a0
Summary: Debug information for package perf python bindings
Josh Boyer 27d8a0
Group: Development/Debug
Josh Boyer 27d8a0
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Josh Boyer 27d8a0
AutoReqProv: no
Josh Boyer 27d8a0
%description -n python-perf-debuginfo
Josh Boyer 27d8a0
This package provides debug information for the perf python bindings.
Josh Boyer 27d8a0
Josh Boyer 27d8a0
# the python_sitearch macro should already be defined from above
Josh Boyer 27d8a0
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
Josh Boyer 27d8a0
Josh Boyer 27d8a0
Kyle McMartin 42d4c3
%endif # with_perf
Kyle McMartin 42d4c3
Dave Jones 1d18ad
%if %{with_tools}
Dave Jones 1d18ad
%package -n kernel-tools
Dave Jones 1d18ad
Summary: Assortment of tools for the Linux kernel
Jesse Keating 7a3296
Group: Development/System
Jesse Keating 7a3296
License: GPLv2
Josh Boyer 02587b
Provides:  cpupowerutils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpupowerutils < 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufreq-utils = 1:009-0.6.p1
Josh Boyer 02587b
Provides:  cpufrequtils = 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpufrequtils < 1:009-0.6.p1
Josh Boyer 02587b
Obsoletes: cpuspeed < 1:1.5-16
Josh Boyer 55e586
Requires: kernel-tools-libs = %{version}-%{release}
Dave Jones 1d18ad
%description -n kernel-tools
Dave Jones 1d18ad
This package contains the tools/ directory from the kernel source
Kyle McMartin 42d4c3
and the supporting documentation.
Roland McGrath 3c4ea9
Josh Boyer 55e586
%package -n kernel-tools-libs
Josh Boyer 55e586
Summary: Libraries for the kernels-tools
Josh Boyer 55e586
Group: Development/System
Josh Boyer 55e586
License: GPLv2
Josh Boyer 55e586
%description -n kernel-tools-libs
Josh Boyer 55e586
This package contains the libraries built from the tools/ directory
Josh Boyer 55e586
from the kernel source.
Josh Boyer 55e586
Josh Boyer 55e586
%package -n kernel-tools-libs-devel
Josh Boyer 8addb5
Summary: Assortment of tools for the Linux kernel
Josh Boyer 8addb5
Group: Development/System
Josh Boyer 8addb5
License: GPLv2
Josh Boyer 02587b
Requires: kernel-tools = %{version}-%{release}
Josh Boyer 0ad371
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Josh Boyer 0ad371
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Josh Boyer 55e586
Requires: kernel-tools-libs = %{version}-%{release}
Josh Boyer a5b375
Provides: kernel-tools-devel
Josh Boyer 55e586
%description -n kernel-tools-libs-devel
Josh Boyer 8addb5
This package contains the development files for the tools/ directory from
Josh Boyer 8addb5
the kernel source.
Josh Boyer 8addb5
Dave Jones 1d18ad
%package -n kernel-tools-debuginfo
Dave Jones 1d18ad
Summary: Debug information for package kernel-tools
Roland McGrath 3c4ea9
Group: Development/Debug
Roland McGrath 3c4ea9
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}
Roland McGrath 3c4ea9
AutoReqProv: no
Dave Jones 1d18ad
%description -n kernel-tools-debuginfo
Dave Jones 1d18ad
This package provides debug information for package kernel-tools.
Roland McGrath 3c4ea9
Roland McGrath 3c4ea9
# Note that this pattern only works right to match the .build-id
Roland McGrath 3c4ea9
# symlinks because of the trailing nonmatching alternation and
Roland McGrath 3c4ea9
# the leading .*, because of find-debuginfo.sh's buggy handling
Roland McGrath 3c4ea9
# of matching the pattern against the symlinks file.
ec0fd9
%{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 ec31ef
Kyle McMartin 42d4c3
%endif # with_tools
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-debuginfo package.
Jesse Keating 7a3296
#	%%kernel_debuginfo_package <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_debuginfo_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}debuginfo\
Jesse Keating 7a3296
Summary: Debug information for package %{name}%{?1:-%{1}}\
Jesse Keating 7a3296
Group: Development/Debug\
Jesse Keating 7a3296
Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
Provides: %{name}%{?1:-%{1}}-debuginfo-%{_target_cpu} = %{version}-%{release}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
%description -n %{name}%{?1:-%{1}}-debuginfo\
Jesse Keating 7a3296
This package provides debug information for package %{name}%{?1:-%{1}}.\
Jesse Keating 7a3296
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
3e3a90
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage>-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_package <subpackage> <pretty-name>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_package() \
Jesse Keating 7a3296
%package %{?1:%{1}-}devel\
Jesse Keating 7a3296
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
faf252
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
faf252
Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\
faf252
Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
Jesse Keating 7a3296
AutoReqProv: no\
Jesse Keating 7a3296
Requires(pre): /usr/bin/find\
Jesse Keating 7a3296
Requires: perl\
Jesse Keating 7a3296
%description -n kernel%{?variant}%{?1:-%{1}}-devel\
Jesse Keating 7a3296
This package provides kernel headers and makefiles sufficient to build modules\
Jesse Keating 7a3296
against the %{?2:%{2} }kernel package.\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Josh Boyer b8b278
# This macro creates a kernel-<subpackage>-modules-extra package.
Kyle McMartin de50ed
#	%%kernel_modules_extra_package <subpackage> <pretty-name>
Josh Boyer b8b278
#
Kyle McMartin de50ed
%define kernel_modules_extra_package() \
Josh Boyer b8b278
%package %{?1:%{1}-}modules-extra\
Josh Boyer b8b278
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Josh Boyer b8b278
Group: System Environment/Kernel\
Josh Boyer b8b278
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
faf252
Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
faf252
Provides: kernel-modules-extra = %{version}-%{release}%{?1:+%{1}}\
Josh Boyer 6721e4
Provides: installonlypkg(kernel-module)\
faf252
Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
faf252
Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b278
AutoReqProv: no\
Josh Boyer b8b278
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
Josh Boyer b8b278
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
Josh Boyer b8b278
%{nil}
Josh Boyer b8b278
Josh Boyer b8b278
#
Jesse Keating 7a3296
# This macro creates a kernel-<subpackage> and its -devel and -debuginfo too.
Jesse Keating 7a3296
#	%%define variant_summary The Linux kernel compiled for <configuration>
Jesse Keating 7a3296
#	%%kernel_variant_package [-n <pretty-name>] <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_package(n:) \
Jesse Keating 7a3296
%package %1\
Jesse Keating 7a3296
Summary: %{variant_summary}\
Jesse Keating 7a3296
Group: System Environment/Kernel\
Jesse Keating 7a3296
%kernel_reqprovconf\
Jesse Keating 7a3296
%{expand:%%kernel_devel_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Kyle McMartin 663b7f
%if %{with_extra}\
Kyle McMartin de50ed
%{expand:%%kernel_modules_extra_package %1 %{!?-n:%1}%{?-n:%{-n*}}}\
Kyle McMartin 663b7f
%endif\
Jesse Keating 7a3296
%{expand:%%kernel_debuginfo_package %1}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# First the auxiliary packages of the main kernel package.
Jesse Keating 7a3296
%kernel_devel_package
Kyle McMartin 663b7f
%if %{with_extra}
Kyle McMartin de50ed
%kernel_modules_extra_package
Kyle McMartin 663b7f
%endif
Jesse Keating 7a3296
%kernel_debuginfo_package
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
# Now, each variant package.
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for SMP machines
Jesse Keating 7a3296
%kernel_variant_package -n SMP smp
Jesse Keating 7a3296
%description smp
Jesse Keating 7a3296
This package includes a SMP version of the Linux kernel. It is
Jesse Keating 7a3296
required only on machines with two or more CPUs as well as machines with
Jesse Keating 7a3296
hyperthreading technology.
Jesse Keating 7a3296
Jesse Keating 7a3296
Install the kernel-smp package if your machine uses two or more CPUs.
Jesse Keating 7a3296
Jesse Keating 7a3296
Kyle McMartin be52af
%ifnarch armv7hl
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled for PAE capable machines
Kyle McMartin bc5f99
%kernel_variant_package %{pae}
Kyle McMartin bc5f99
%description %{pae}
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Kyle McMartin be52af
%else
Kyle McMartin bc5f99
%define variant_summary The Linux kernel compiled for Cortex-A15
Kyle McMartin bc5f99
%kernel_variant_package %{pae}
Kyle McMartin bc5f99
%description %{pae}
Kyle McMartin bc5f99
This package includes a version of the Linux kernel with support for
Kyle McMartin bc5f99
Cortex-A15 devices with LPAE and HW virtualisation support
Kyle McMartin bc5f99
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines
Kyle McMartin bc5f99
%kernel_variant_package %{pae}debug
Jesse Keating 7a3296
Obsoletes: kernel-PAE-debug
Kyle McMartin bc5f99
%description %{pae}debug
Jesse Keating 7a3296
This package includes a version of the Linux kernel with support for up to
Jesse Keating 7a3296
64GB of high memory. It requires a CPU with Physical Address Extensions (PAE).
Jesse Keating 7a3296
The non-PAE kernel can only address up to 4GB of memory.
Jesse Keating 7a3296
Install the kernel-PAE package if your machine has more than 4GB of memory.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%define variant_summary The Linux kernel compiled with extra debugging enabled
Jesse Keating 7a3296
%kernel_variant_package debug
Jesse Keating 7a3296
%description debug
Jesse Keating 7a3296
The kernel package contains the Linux kernel (vmlinuz), the core of any
Jesse Keating 7a3296
Linux operating system.  The kernel handles the basic functions
Jesse Keating 7a3296
of the operating system:  memory allocation, process allocation, device
Jesse Keating 7a3296
input and output, etc.
Jesse Keating 7a3296
Jesse Keating 7a3296
This variant of the kernel has numerous debugging options enabled.
Jesse Keating 7a3296
It should only be installed when trying to gather additional information
Jesse Keating 7a3296
on kernel bugs, as some of these options impact performance noticably.
Jesse Keating 7a3296
986a9f
Jesse Keating 7a3296
%prep
Jesse Keating 7a3296
# do a few sanity-checks for --with *only builds
Jesse Keating 7a3296
%if %{with_baseonly}
Jesse Keating 7a3296
%if !%{with_up}%{with_pae}
Jesse Keating 7a3296
echo "Cannot build --with baseonly, up build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smponly}
Jesse Keating 7a3296
%if !%{with_smp}
Jesse Keating 7a3296
echo "Cannot build --with smponly, smp build is disabled"
Jesse Keating 7a3296
exit 1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer c78a08
%if "%{baserelease}" == "0"
Chuck Ebbert 05e763
echo "baserelease must be greater than zero"
Chuck Ebbert 05e763
exit 1
Chuck Ebbert 05e763
%endif
Chuck Ebbert 05e763
Jesse Keating 7a3296
# more sanity checking; do it quietly
Jesse Keating 7a3296
if [ "%{patches}" != "%%{patches}" ] ; then
Jesse Keating 7a3296
  for patch in %{patches} ; do
Jesse Keating 7a3296
    if [ ! -f $patch ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  ${patch##/*/}  listed in specfile but is missing"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Jesse Keating 7a3296
fi 2>/dev/null
Jesse Keating 7a3296
Jesse Keating 7a3296
patch_command='patch -p1 -F1 -s'
Jesse Keating 7a3296
ApplyPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
%if !%{using_upstream_branch}
Dave Jones b89c80
  if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then
Kyle McMartin a8a291
    if [ "${patch:0:8}" != "patch-3." ] ; then
Jesse Keating 7a3296
      echo "ERROR: Patch  $patch  not listed as a source patch in specfile"
Jesse Keating 7a3296
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  fi 2>/dev/null
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
  case "$patch" in
Jesse Keating 7a3296
  *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.gz)  gunzip  < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Chuck Ebbert 7cfa68
  *.xz)  unxz    < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;;
Jesse Keating 7a3296
  *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;;
Jesse Keating 7a3296
  esac
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# don't apply patch if it's empty
Jesse Keating 7a3296
ApplyOptionalPatch()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  local patch=$1
Jesse Keating 7a3296
  shift
Jesse Keating 7a3296
  if [ ! -f $RPM_SOURCE_DIR/$patch ]; then
Jesse Keating 7a3296
    exit 1
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
  local C=$(wc -l $RPM_SOURCE_DIR/$patch | awk '{print $1}')
Jesse Keating 7a3296
  if [ "$C" -gt 9 ]; then
Jesse Keating 7a3296
    ApplyPatch $patch ${1+"$@"}
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
# First we unpack the kernel tarball.
Jesse Keating 7a3296
# If this isn't the first make prep, we use links to the existing clean tarball
Jesse Keating 7a3296
# which speeds things up quite a bit.
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update to latest upstream.
Jesse Keating 7a3296
%if 0%{?released_kernel}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
# non-released_kernel case
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
%if 0%{?rcrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}-git%{gitrev}
Jesse Keating 7a3296
%else
Kyle McMartin 8b2fa9
%define vanillaversion 3.%{base_sublevel}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Dave Jones 166b79
# %%{vanillaversion} : the full version name, e.g. 2.6.35-rc6-git3
Dave Jones 166b79
# %%{kversion}       : the base version, e.g. 2.6.34
Jesse Keating 7a3296
Dave Jones 166b79
# Use kernel-%%{kversion}%%{?dist} as the top-level directory name
Chuck Ebbert 26d08c
# so we can prep different trees within a single git directory.
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Build a list of the other top-level kernel tree directories.
Chuck Ebbert 26d08c
# This will be used to hardlink identical vanilla subdirs.
Kyle McMartin 8b2fa9
sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-3.*' \
Chuck Ebbert 26d08c
            | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||:
Jesse Keating 7a3296
Dave Jones 9e2943
# Delete all old stale trees.
Dave Jones 9e2943
if [ -d kernel-%{kversion}%{?dist} ]; then
Dave Jones 9e2943
  cd kernel-%{kversion}%{?dist}
Dave Jones 9e2943
  for i in linux-*
Dave Jones 9e2943
  do
Dave Jones 7bd4de
     if [ -d $i ]; then
Dave Jones 7bd4de
       # Just in case we ctrl-c'd a prep already
Dave Jones 7bd4de
       rm -rf deleteme.%{_target_cpu}
Dave Jones 7bd4de
       # Move away the stale away, and delete in background.
Dave Jones 7bd4de
       mv $i deleteme-$i
Dave Jones 7bd4de
       rm -rf deleteme* &
Dave Jones 7bd4de
     fi
Dave Jones 9e2943
  done
Dave Jones 9e2943
  cd ..
Dave Jones 9e2943
fi
Dave Jones 9e2943
Dave Jones 9e2943
# Generate new tree
Chuck Ebbert 26d08c
if [ ! -d kernel-%{kversion}%{?dist}/vanilla-%{vanillaversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  if [ -d kernel-%{kversion}%{?dist}/vanilla-%{kversion} ]; then
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
    # The base vanilla version already exists.
Chuck Ebbert 26d08c
    cd kernel-%{kversion}%{?dist}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Any vanilla-* directories other than the base one are stale.
Jesse Keating 7a3296
    for dir in vanilla-*; do
Jesse Keating 7a3296
      [ "$dir" = vanilla-%{kversion} ] || rm -rf $dir &
Jesse Keating 7a3296
    done
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f pax_global_header
Chuck Ebbert 26d08c
    # Look for an identical base vanilla dir that can be hardlinked.
Jesse Keating 7a3296
    for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
      if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Jesse Keating 7a3296
        break
Jesse Keating 7a3296
      fi
Jesse Keating 7a3296
    done
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{kversion} ]] ; then
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c -T
Chuck Ebbert 26d08c
      cp -rl $sharedir/vanilla-%{kversion} .
Jesse Keating 7a3296
    else
Chuck Ebbert 26d08c
%setup -q -n kernel-%{kversion}%{?dist} -c
Josh Boyer 728b14
      mv linux-%{kversion} vanilla-%{kversion}
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%if "%{kversion}" != "%{vanillaversion}"
Jesse Keating 7a3296
Jesse Keating 7a3296
  for sharedir in $sharedirs ; do
Chuck Ebbert 26d08c
    if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
      break
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
  done
Chuck Ebbert 26d08c
  if [[ ! -z $sharedir  &&  -d $sharedir/vanilla-%{vanillaversion} ]] ; then
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    cp -rl $sharedir/vanilla-%{vanillaversion} .
Jesse Keating 7a3296
Jesse Keating 7a3296
  else
Jesse Keating 7a3296
Chuck Ebbert 26d08c
    # Need to apply patches to the base vanilla version.
Jesse Keating 7a3296
    cp -rl vanilla-%{kversion} vanilla-%{vanillaversion}
Jesse Keating 7a3296
    cd vanilla-%{vanillaversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# Update vanilla to the latest upstream.
Jesse Keating 7a3296
# (non-released_kernel case only)
Jesse Keating 7a3296
%if 0%{?rcrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}.xz
Jesse Keating 7a3296
%if 0%{?gitrev}
Josh Boyer 471066
    ApplyPatch patch-3.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%else
Jesse Keating 7a3296
# pre-{base_sublevel+1}-rc1 case
Jesse Keating 7a3296
%if 0%{?gitrev}
Dave Jones 7bd4de
    ApplyPatch patch-3.%{base_sublevel}-git%{gitrev}.xz
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
  fi
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
else
Chuck Ebbert 26d08c
Chuck Ebbert 26d08c
  # We already have all vanilla dirs, just change to the top-level directory.
Chuck Ebbert 26d08c
  cd kernel-%{kversion}%{?dist}
Chuck Ebbert 26d08c
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Chuck Ebbert 26d08c
# Now build the fedora kernel tree.
Josh Boyer 83337c
cp -rl vanilla-%{vanillaversion} linux-%{KVERREL}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
# released_kernel with possible stable updates
Jesse Keating 7a3296
%if 0%{?stable_base}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_00}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
%if 0%{?stable_rc}
Jesse Keating 7a3296
ApplyPatch %{stable_patch_01}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{using_upstream_branch}
Jesse Keating 7a3296
### BRANCH APPLY ###
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Drop some necessary files from the source dir into the buildroot
Jesse Keating 7a3296
cp $RPM_SOURCE_DIR/config-* .
Jesse Keating 7a3296
cp %{SOURCE15} .
Jesse Keating 7a3296
Chuck Ebbert c6b36e
%if !%{debugbuildsenabled}
Chuck Ebbert 11ee03
%if %{with_release}
Chuck Ebbert c6b36e
# The normal build is a really debug build and the user has explicitly requested
Chuck Ebbert 11ee03
# a release kernel. Change the config files into non-debug versions.
Chuck Ebbert c6b36e
make -f %{SOURCE19} config-release
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
%endif
Chuck Ebbert c6b36e
Jesse Keating 7a3296
# Dynamically generate kernel .config files from config-* files
Jesse Keating 7a3296
make -f %{SOURCE20} VERSION=%{version} configs
Jesse Keating 7a3296
Jarod Wilson 5b6529
# Merge in any user-provided local config option changes
Josh Boyer e26533
for i in kernel-%{version}-*.config
Jarod Wilson 5b6529
do
Jarod Wilson 5b6529
  mv $i $i.tmp
Jarod Wilson 5b6529
  ./merge.pl %{SOURCE1000} $i.tmp > $i
Jarod Wilson 5b6529
  rm $i.tmp
Jarod Wilson 5b6529
done
Jarod Wilson 5b6529
Dave Jones efd70b
ApplyPatch makefile-after_link.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# misc small stuff to make things compile
Jesse Keating 7a3296
#
Dave Jones efd70b
ApplyOptionalPatch compile-fixes.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{nopatches}
Jesse Keating 7a3296
Jesse Keating 7a3296
# revert patches from upstream that conflict or that we get via other means
Dave Jones efd70b
ApplyOptionalPatch upstream-reverts.patch -R
Jesse Keating 7a3296
Jesse Keating 7a3296
# Architecture patches
Jesse Keating 7a3296
# x86(-64)
713abc
ApplyPatch 0001-lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
Jesse Keating 7a3296
Kyle McMartin 575de6
# ARM64
Kyle McMartin 575de6
Jesse Keating 7a3296
#
986a9f
# ARM
986a9f
#
cfeb47
ApplyPatch arm-lpae-ax88796.patch
Kyle McMartin 963bc0
ApplyPatch arm-sound-soc-samsung-dma-avoid-another-64bit-division.patch
82bda6
ApplyPatch arm-omap-load-tfp410.patch
df483e
ApplyPatch arm-tegra-usb-no-reset-linux33.patch
ac6759
ApplyPatch arm-imx6-utilite.patch
fceb35
6494f2
ApplyPatch fix-arm-xen-driver-build.patch
6494f2
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# bugfixes to drivers and filesystems
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ext4
Jesse Keating 7a3296
Jesse Keating 7a3296
# xfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# btrfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# eCryptfs
Jesse Keating 7a3296
Jesse Keating 7a3296
# NFSv4
Jesse Keating 7a3296
Jesse Keating 7a3296
# USB
Jesse Keating 7a3296
Jesse Keating 7a3296
# WMI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Dave Jones efd70b
ApplyPatch defaults-acpi-video.patch
Dave Jones a4b83e
ApplyPatch acpi-sony-nonvs-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# PCI
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# SCSI Bits.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
Jesse Keating 7a3296
# ACPI
Jesse Keating 7a3296
Jesse Keating 7a3296
# ALSA
Jesse Keating 7a3296
Jesse Keating 7a3296
# Networking
Jesse Keating 7a3296
Jesse Keating 7a3296
# Misc fixes
Jesse Keating 7a3296
# The input layer spews crap no-one cares about.
Dave Jones efd70b
ApplyPatch input-kill-stupid-messages.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# stop floppy.ko from autoloading during udev...
Jesse Keating 7a3296
ApplyPatch die-floppy-die.patch
Jesse Keating 7a3296
Dave Jones efd70b
ApplyPatch no-pcspkr-modalias.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Allow to use 480600 baud on 16C950 UARTs
Dave Jones efd70b
ApplyPatch serial-460800.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Silence some useless messages that still get printed with 'quiet'
Dave Jones efd70b
ApplyPatch silence-noise.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Make fbcon not show the penguins with 'quiet'
Dave Jones efd70b
ApplyPatch silence-fbcon-logo.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Changes to upstream defaults.
Jesse Keating 7a3296
e3f67f
#rhbz 917708
e3f67f
ApplyPatch Revert-userns-Allow-unprivileged-users-to-create-use.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# /dev/crash driver.
Dave Jones efd70b
ApplyPatch crash-driver.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# crypto/
Josh Boyer 306dfc
Josh Boyer 9cb73b
# keys
Josh Boyer 9cb73b
ApplyPatch keys-expand-keyring.patch
Josh Boyer 9cb73b
ApplyPatch keys-krb-support.patch
Josh Boyer d7ee6f
ApplyPatch keys-x509-improv.patch
8664f7
ApplyPatch keyring-quota.patch
Josh Boyer 9cb73b
Josh Boyer 306dfc
# secure boot
Josh Boyer c9d9c5
ApplyPatch secure-modules.patch
Josh Boyer c9d9c5
ApplyPatch modsign-uefi.patch
Josh Boyer c9d9c5
ApplyPatch sb-hibernate.patch
Josh Boyer c9d9c5
ApplyPatch sysrq-secure-boot.patch
Matthew Garrett 447e3a
Jesse Keating 7a3296
# Assorted Virt Fixes
Jesse Keating 7a3296
Kyle McMartin d3e4af
# DRM core
Jesse Keating 7a3296
Kyle McMartin d3e4af
# Nouveau DRM
Kyle McMartin d3e4af
Kyle McMartin d3e4af
# Intel DRM
457484
ApplyPatch drm-i915-dp-stfu.patch
049a74
ApplyPatch drm-i915-hush-check-crtc-state.patch
Dave Jones 19e378
Kyle McMartin b85304
# Radeon DRM
Kyle McMartin b85304
Jesse Keating 7a3296
# silence the ACPI blacklist code
Dave Jones efd70b
ApplyPatch silence-acpi-blacklist.patch
Jesse Keating 7a3296
Jesse Keating 7a3296
# Patches headed upstream
Dave Jones 6a501c
ApplyPatch fs-proc-devtree-remove_proc_entry.patch
Dave Jones 6a501c
Jesse Keating 7a3296
ApplyPatch disable-i8042-check-on-apple-mac.patch
Jesse Keating 7a3296
Dave Jones 7bd4de
# FIXME: REBASE
Dave Jones 7bd4de
#ApplyPatch hibernate-freeze-filesystems.patch
Josh Boyer fcbaf2
Dave Jones abc7c8
ApplyPatch lis3-improve-handling-of-null-rate.patch
Dave Jones abc7c8
Dave Jones 18e50c
# Disable watchdog on virtual machines.
Dave Jones 18e50c
ApplyPatch nowatchdog-on-virt.patch
Dave Jones 18e50c
Josh Boyer af1af5
#rhbz 754518
Josh Boyer af1af5
ApplyPatch scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
Josh Boyer af1af5
a0e7ea
#pplyPatch weird-root-dentry-name-debug.patch
Dave Jones 40b1a0
Josh Boyer ebd1a1
# https://fedoraproject.org/wiki/Features/Checkpoint_Restore
Josh Boyer ebd1a1
ApplyPatch criu-no-expert.patch
Josh Boyer ebd1a1
Josh Boyer 27e48a
#rhbz 892811
Josh Boyer 27e48a
ApplyPatch ath9k_rx_dma_stop_check.patch
Josh Boyer 27e48a
Josh Boyer 6f1d3b
ApplyPatch drm-radeon-Disable-writeback-by-default-on-ppc.patch
Josh Boyer 6f1d3b
2c51e4
#CVE-2013-4345 rhbz 1007690 1009136
2c51e4
ApplyPatch ansi_cprng-Fix-off-by-one-error-in-non-block-size-request.patch
2c51e4
2d3300
#rhbz 993744
2d3300
ApplyPatch dm-cache-policy-mq_fix-large-scale-table-allocation-bug.patch
2d3300
7792df
#rhbz 1000439
7792df
ApplyPatch cpupower-Fix-segfault-due-to-incorrect-getopt_long-a.patch
7792df
432601
ApplyPatch 0001-staging-imx-drm-Fix-modular-build-of-DRM_IMX_IPUV3.patch
432601
Jesse Keating 7a3296
# END OF PATCH APPLICATIONS
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# Any further pre-build tree manipulations happen here.
Jesse Keating 7a3296
Jesse Keating 7a3296
chmod +x scripts/checkpatch.pl
Jesse Keating 7a3296
Dave Jones ed3d26
# This Prevents scripts/setlocalversion from mucking with our version numbers.
Kyle McMartin fa0660
touch .scmversion
Kyle McMartin fa0660
Jesse Keating 7a3296
# only deal with configs if we are going to build for the arch
Jesse Keating 7a3296
%ifnarch %nobuildarches
Jesse Keating 7a3296
Jesse Keating 7a3296
mkdir configs
Jesse Keating 7a3296
Jesse Keating 7a3296
%if !%{debugbuildsenabled}
Jesse Keating 7a3296
rm -f kernel-%{version}-*debug.config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 43d64b
%define make make %{?cross_opts}
Kyle McMartin 43d64b
Dave Jones 834dba
# now run oldconfig over all the config files
Dave Jones 834dba
for i in *.config
Dave Jones 834dba
do
Dave Jones 834dba
  mv $i .config
Dave Jones 834dba
  Arch=`head -1 .config | cut -b 3-`
Dave Jones 834dba
  make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
Dave Jones 834dba
%if %{listnewconfig_fail}
Dave Jones 834dba
  if [ -s .newoptions ]; then
Dave Jones 834dba
    cat .newoptions
Dave Jones 834dba
    exit 1
Dave Jones 834dba
  fi
Dave Jones 834dba
%endif
Dave Jones 834dba
  rm -f .newoptions
Dave Jones 834dba
  make ARCH=$Arch oldnoconfig
Dave Jones 834dba
  echo "# $Arch" > configs/$i
Dave Jones 834dba
  cat .config >> configs/$i
Dave Jones 834dba
done
Jesse Keating 7a3296
# end of kernel config
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
John W. Linville fa580e
# get rid of unwanted files resulting from patch fuzz
John W. Linville fa580e
find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
John W. Linville fa580e
Dave Jones 246f94
# remove unnecessary SCM files
Dave Jones 246f94
find . -name .gitignore -exec rm -f {} \; >/dev/null
Dave Jones 246f94
Jesse Keating 7a3296
cd ..
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### build
Jesse Keating 7a3296
###
Jesse Keating 7a3296
%build
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_sparse}
Jesse Keating 7a3296
%define sparse_mflags	C=1
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
# This override tweaks the kernel makefiles so that we run debugedit on an
Jesse Keating 7a3296
# object before embedding it.  When we later run find-debuginfo.sh, it will
Jesse Keating 7a3296
# run debugedit again.  The edits it does change the build ID bits embedded
Jesse Keating 7a3296
# in the stripped object, but repeating debugedit is a no-op.  We do it
Jesse Keating 7a3296
# beforehand to get the proper final build ID bits into the embedded image.
Jesse Keating 7a3296
# This affects the vDSO images in vmlinux, and the vmlinux image in bzImage.
Jesse Keating 7a3296
export AFTER_LINK=\
Jesse Keating 7a3296
'sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug \
Jesse Keating 7a3296
    				-i $@ > $@.id"'
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
cp_vmlinux()
Jesse Keating 7a3296
{
Jesse Keating 7a3296
  eu-strip --remove-comment -o "$2" "$1"
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
BuildKernel() {
Jesse Keating 7a3296
    MakeTarget=$1
Jesse Keating 7a3296
    KernelImage=$2
Jesse Keating 7a3296
    Flavour=$3
faf252
    Flav=${Flavour:++${Flavour}}
Jesse Keating 7a3296
    InstallName=${4:-vmlinuz}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Pick the right config file for the kernel we're building
Jesse Keating 7a3296
    Config=kernel-%{version}-%{_target_cpu}${Flavour:+-${Flavour}}.config
Kyle McMartin 9fc584
    DevelDir=/usr/src/kernels/%{KVERREL}${Flav}
Jesse Keating 7a3296
Jesse Keating 7a3296
    # When the bootable image is just the ELF kernel, strip it.
Jesse Keating 7a3296
    # We already copy the unstripped file into the debuginfo package.
Jesse Keating 7a3296
    if [ "$KernelImage" = vmlinux ]; then
Jesse Keating 7a3296
      CopyKernel=cp_vmlinux
Jesse Keating 7a3296
    else
Jesse Keating 7a3296
      CopyKernel=cp
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Kyle McMartin 9fc584
    KernelVer=%{version}-%{release}.%{_target_cpu}${Flav}
Jesse Keating 7a3296
    echo BUILDING A KERNEL FOR ${Flavour} %{_target_cpu}...
Jesse Keating 7a3296
Josh Boyer 740de5
    %if 0%{?stable_update}
Josh Boyer 740de5
    # make sure SUBLEVEL is incremented on a stable release.  Sigh 3.x.
Josh Boyer 740de5
    perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{?stablerev}/" Makefile
Josh Boyer 740de5
    %endif
Josh Boyer 740de5
Jesse Keating 7a3296
    # make sure EXTRAVERSION says what we want it to say
Kyle McMartin 9fc584
    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}${Flav}/" Makefile
Jesse Keating 7a3296
Josh Boyer 9e4aea
    # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme
Jesse Keating 7a3296
    %if !0%{?rcrev}
Jesse Keating 7a3296
    %if 0%{?gitrev}
Josh Boyer 9e4aea
    perl -p -i -e 's/^PATCHLEVEL.*/PATCHLEVEL = %{upstream_sublevel}/' Makefile
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
    %endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # and now to start the build process
Jesse Keating 7a3296
Kyle McMartin 3e75bb
    make -s mrproper
Jesse Keating 7a3296
    cp configs/$Config .config
Jesse Keating 7a3296
Josh Boyer 6e2d2c
    %if %{signmodules}
Josh Boyer 6e2d2c
    cp %{SOURCE11} .
Josh Boyer 6e2d2c
    %endif
Josh Boyer 6e2d2c
Josh Boyer ef06d4
    chmod +x scripts/sign-file
Josh Boyer ef06d4
Jesse Keating 7a3296
    Arch=`head -1 .config | cut -b 3-`
Jesse Keating 7a3296
    echo USING ARCH=$Arch
Jesse Keating 7a3296
Kyle McMartin da80d7
    make -s ARCH=$Arch oldnoconfig >/dev/null
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags}
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1
783eee
Kyle McMartin 49ba08
%ifarch %{arm} aarch64
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch V=1 dtbs
783eee
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer
Kyle McMartin 663b7f
    install -m 644 arch/$Arch/boot/dts/*.dtb $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer/
Kyle McMartin 49ba08
    rm -f arch/$Arch/boot/dts/*.dtb
e6eb2f
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Start installing the results
Jesse Keating 7a3296
%if %{with_debuginfo}
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/boot
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/%{image_install_path}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
Jesse Keating 7a3296
    install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
Jesse Keating 7a3296
    install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
Jesse Keating 7a3296
Jesse Keating 7a3296
    # We estimate the size of the initramfs because rpm needs to take this size
Jesse Keating 7a3296
    # into consideration when performing disk space calculations. (See bz #530778)
Jesse Keating 7a3296
    dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20
Jesse Keating 7a3296
Jesse Keating 7a3296
    if [ -f arch/$Arch/boot/zImage.stub ]; then
Jesse Keating 7a3296
      cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/%{image_install_path}/zImage.stub-$KernelVer || :
Jesse Keating 7a3296
    fi
d3182f
    %if %{signmodules}
d3182f
    # Sign the image if we're using EFI
d3182f
    %pesign -s -i $KernelImage -o vmlinuz.signed
Josh Boyer 42d219
    if [ ! -s vmlinuz.signed ]; then
Josh Boyer 42d219
        echo "pesigning failed"
Josh Boyer 42d219
        exit 1
Josh Boyer 42d219
    fi
d3182f
    mv vmlinuz.signed $KernelImage
d3182f
    %endif
Jesse Keating 7a3296
    $CopyKernel $KernelImage \
Jesse Keating 7a3296
    		$RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
    chmod 755 $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Jesse Keating 7a3296
Josh Boyer 70f813
    # hmac sign the kernel for FIPS
Josh Boyer 70f813
    echo "Creating hmac file: $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac"
Josh Boyer 70f813
    ls -l $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer
Josh Boyer 70f813
    sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
Josh Boyer 70f813
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer
Jesse Keating 7a3296
    # Override $(mod-fw) because we don't want it to install any firmware
Kyle McMartin eb0d56
    # we'll get it from the linux-firmware package and we don't want conflicts
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install KERNELRELEASE=$KernelVer mod-fw=
Josh Boyer c2a12c
Jesse Keating 7a3296
%ifarch %{vdso_arches}
Kyle McMartin 43d64b
    %{make} -s ARCH=$Arch INSTALL_MOD_PATH=$RPM_BUILD_ROOT vdso_install KERNELRELEASE=$KernelVer
Jesse Keating 7a3296
    if [ ! -s ldconfig-kernel.conf ]; then
Jesse Keating 7a3296
      echo > ldconfig-kernel.conf "\
Jesse Keating 7a3296
# Placeholder file, no vDSO hwcap entries used in this kernel."
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    %{__install} -D -m 444 ldconfig-kernel.conf \
Jesse Keating 7a3296
        $RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    # And save the headers/makefiles etc for building modules against
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # This all looks scary, but the end result is supposed to be:
Jesse Keating 7a3296
    # * all arch relevant include/ files
Jesse Keating 7a3296
    # * all Makefile/Kconfig files
Jesse Keating 7a3296
    # * all script/ files
Jesse Keating 7a3296
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/source
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    (cd $RPM_BUILD_ROOT/lib/modules/$KernelVer ; ln -s build source)
Jesse Keating 7a3296
    # dirs for additional modules per module-init-tools, kbuild/modules.txt
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/extra
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT/lib/modules/$KernelVer/updates
Jesse Keating 7a3296
    # first copy everything
Jesse Keating 7a3296
    cp --parents `find  -type f -name "Makefile*" -o -name "Kconfig*"` $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp Module.symvers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -s Module.markers ]; then
Jesse Keating 7a3296
      cp Module.markers $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    # then drop all but the needed Makefiles/Kconfig files
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/Documentation
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts
Jesse Keating 7a3296
    rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
    cp .config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    cp -a scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Jesse Keating 7a3296
    if [ -d arch/$Arch/scripts ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/scripts $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch} || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    if [ -f arch/$Arch/*lds ]; then
Jesse Keating 7a3296
      cp -a arch/$Arch/*lds $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/arch/%{_arch}/ || :
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
Jesse Keating 7a3296
    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
Josh Boyer 3b7690
%ifarch ppc ppc64 ppc64p7
Jesse Keating 7a3296
    cp -a --parents arch/powerpc/lib/crtsavres.[So] $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
    if [ -d arch/%{asmarch}/include ]; then
Jesse Keating 7a3296
      cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
Jesse Keating 7a3296
    fi
3b024e
    # include the machine specific headers for ARM variants, if available.
3b024e
%ifarch %{arm}
3b024e
    if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
3b024e
      cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
3b024e
    fi
3b024e
%endif
Jesse Keating 7a3296
    cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Make sure the Makefile and version.h have a matching timestamp so that
Jesse Keating 7a3296
    # external modules can be built
1ef1d3
    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 c80928
Jesse Keating 7a3296
    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
Jesse Keating 7a3296
    cp $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/.config $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include/config/auto.conf
Jesse Keating 7a3296
Kyle McMartin 1bfd59
%if %{with_debuginfo}
Jesse Keating 7a3296
    if test -s vmlinux.id; then
Jesse Keating 7a3296
      cp vmlinux.id $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/vmlinux.id
Jesse Keating 7a3296
    else
Roland McGrath 9b36e5
      echo >&2 "*** ERROR *** no vmlinux build ID! ***"
Roland McGrath 9b36e5
      exit 1
Jesse Keating 7a3296
    fi
Jesse Keating 7a3296
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
Jesse Keating 7a3296
    #
Jesse Keating 7a3296
    mkdir -p $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
    cp vmlinux $RPM_BUILD_ROOT%{debuginfodir}/lib/modules/$KernelVer
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
    find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name "*.ko" -type f >modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # mark modules executable so that strip-to-file can strip them
Jesse Keating 7a3296
    xargs --no-run-if-empty chmod u+x < modnames
Jesse Keating 7a3296
Jesse Keating 7a3296
    # Generate a list of modules for block and networking.
Jesse Keating 7a3296
Dave Jones b89c80
    grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
Jesse Keating 7a3296
    sed -n 's,^.*/\([^/]*\.ko\):  *U \(.*\)$,\1 \2,p' > drivers.undef
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list()
Jesse Keating 7a3296
    {
Jesse Keating 7a3296
      sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
Kyle McMartin cdb790
        LC_ALL=C sort -u > $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb790
      if [ ! -z "$3" ]; then
Kyle McMartin 399410
        sed -r -e "/^($3)\$/d" -i $RPM_BUILD_ROOT/lib/modules/$KernelVer/modules.$1
Kyle McMartin cdb790
      fi
Jesse Keating 7a3296
    }
Jesse Keating 7a3296
Jesse Keating 7a3296
    collect_modules_list networking \
Kyle McMartin 52da9d
    			 'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
Jesse Keating 7a3296
    collect_modules_list block \
Kyle McMartin cdb790
    			 '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 7a3296
    collect_modules_list drm \
Jesse Keating 7a3296
    			 'drm_open|drm_init'
Jesse Keating 7a3296
    collect_modules_list modesetting \
Jesse Keating 7a3296
    			 'drm_crtc_init'
Jesse Keating 7a3296
Jesse Keating 7a3296
    # detect missing or incorrect license tags
Kyle McMartin 21284e
    ( find $RPM_BUILD_ROOT/lib/modules/$KernelVer -name '*.ko' | xargs /sbin/modinfo -l | \
Kyle McMartin 21284e
        grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
Jesse Keating 7a3296
Kyle McMartin 634522
    # remove files that will be auto generated by depmod at rpm -i time
Kyle McMartin 634522
    pushd $RPM_BUILD_ROOT/lib/modules/$KernelVer/
Kyle McMartin 634522
        rm -f modules.{alias*,builtin.bin,dep*,*map,symbols*,devname,softdep}
Kyle McMartin 634522
    popd
Kyle McMartin 634522
Kyle McMartin 663b7f
%if %{with_extra}
Josh Boyer 0b4338
    # Call the modules-extra script to move things around
Josh Boyer 0b4338
    %{SOURCE17} $RPM_BUILD_ROOT/lib/modules/$KernelVer %{SOURCE16}
Kyle McMartin 663b7f
%endif
Josh Boyer b8b278
Josh Boyer f0f4ff
%if %{signmodules}
Kyle McMartin 249d64
    # Save the signing keys so we can sign the modules in __modsign_install_post
Kyle McMartin 9fc584
    cp signing_key.priv signing_key.priv.sign${Flav}
Kyle McMartin 9fc584
    cp signing_key.x509 signing_key.x509.sign${Flav}
Josh Boyer f0f4ff
%endif
Josh Boyer f0f4ff
Jesse Keating 7a3296
    # Move the devel headers out of the root file system
Kyle McMartin f6c1ae
    mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
Jesse Keating 7a3296
    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir
Josh Boyer bddef7
Josh Boyer bddef7
    # This is going to create a broken link during the build, but we don't use
Josh Boyer bddef7
    # it after this point.  We need the link to actually point to something
Josh Boyer bddef7
    # when kernel-devel is installed, and a relative link doesn't work across
Josh Boyer bddef7
    # the F17 UsrMove feature.
Josh Boyer bddef7
    ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
Kyle McMartin 4b3b40
Kyle McMartin 4b3b40
    # prune junk from kernel-devel
Kyle McMartin 4b3b40
    find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
Jesse Keating 7a3296
}
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
# DO it...
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
# prepare directories
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT/boot
Jesse Keating 7a3296
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_debug}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae_debug}
Kyle McMartin bc5f99
BuildKernel %make_target %kernel_image %{pae}debug
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_pae}
Kyle McMartin bc5f99
BuildKernel %make_target %kernel_image %{pae}
986a9f
%endif
986a9f
Jesse Keating 7a3296
%if %{with_up}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_smp}
Jesse Keating 7a3296
BuildKernel %make_target %kernel_image smp
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 8bcddf
%global perf_make \
Josh Boyer d0e2e5
  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 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf
Kyle McMartin 8bcddf
%{perf_make} all
Kyle McMartin 8bcddf
%{perf_make} man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
# cpupower
Josh Boyer 8addb5
# make sure version-gen.sh is executable.
Josh Boyer 8addb5
chmod +x tools/power/cpupower/utils/version-gen.sh
Kyle McMartin 43d64b
%{make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Josh Boyer 9c44ba
%ifarch %{ix86}
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/i386
Kyle McMartin 43d64b
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/x86_64
Kyle McMartin 43d64b
    %{make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Kyle McMartin 076944
   pushd tools/power/x86/x86_energy_perf_policy/
Kyle McMartin 43d64b
   %{make}
Kyle McMartin 076944
   popd
Kyle McMartin 076944
   pushd tools/power/x86/turbostat
Kyle McMartin 43d64b
   %{make}
Kyle McMartin 076944
   popd
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
Josh Boyer 8addb5
%endif
ec0fd9
pushd tools/thermal/tmon/
ec0fd9
%{make}
ec0fd9
popd
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Josh Boyer d3cca1
# Make the HTML pages.
Josh Boyer d3cca1
make htmldocs || %{doc_build_fail}
Jesse Keating 7a3296
Jesse Keating 7a3296
# sometimes non-world-readable files sneak into the kernel source tree
Jesse Keating 7a3296
chmod -R a=rX Documentation
Jesse Keating 7a3296
find Documentation -type d | xargs chmod u+w
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Josh Boyer f0f4ff
# In the modsign case, we do 3 things.  1) We check the "flavour" and hard
Josh Boyer f0f4ff
# code the value in the following invocations.  This is somewhat sub-optimal
Josh Boyer f0f4ff
# but we're doing this inside of an RPM macro and it isn't as easy as it
Josh Boyer f0f4ff
# could be because of that.  2) We restore the .tmp_versions/ directory from
Josh Boyer f0f4ff
# the one we saved off in BuildKernel above.  This is to make sure we're
Josh Boyer f0f4ff
# signing the modules we actually built/installed in that flavour.  3) We
Kyle McMartin d0a8cf
# grab the arch and invoke mod-sign.sh command to actually sign the modules.
Josh Boyer f0f4ff
#
Josh Boyer f0f4ff
# We have to do all of those things _after_ find-debuginfo runs, otherwise
Josh Boyer f0f4ff
# that will strip the signature off of the modules.
Josh Boyer f0f4ff
Kyle McMartin 92559e
%define __modsign_install_post \
Kyle McMartin f9a5fa
  if [ "%{signmodules}" -eq "1" ]; then \
Kyle McMartin 63cb38
    if [ "%{with_pae}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+%{pae} signing_key.x509.sign+%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin 63cb38
    if [ "%{with_debug}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+debug signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin 63cb38
    if [ "%{with_pae_debug}" -ne "0" ]; then \
faf252
      %{modsign_cmd} signing_key.priv.sign+%{pae}debug signing_key.x509.sign+%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}debug/ \
Josh Boyer f0f4ff
    fi \
Kyle McMartin f9a5fa
    if [ "%{with_up}" -ne "0" ]; then \
Kyle McMartin 63cb38
      %{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
Josh Boyer f0f4ff
    fi \
Josh Boyer f0f4ff
  fi \
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Kyle McMartin 92559e
###
Kyle McMartin 92559e
### Special hacks for debuginfo subpackages.
Kyle McMartin 92559e
###
Kyle McMartin 92559e
Kyle McMartin 92559e
# This macro is used by %%install, so we must redefine it before that.
Kyle McMartin 92559e
%define debug_package %{nil}
Kyle McMartin 92559e
Kyle McMartin 92559e
%if %{with_debuginfo}
Kyle McMartin 92559e
Kyle McMartin 92559e
%define __debug_install_post \
Kyle McMartin 92559e
  /usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
Kyle McMartin 92559e
%{nil}
Kyle McMartin 92559e
Jesse Keating 7a3296
%ifnarch noarch
Jesse Keating 7a3296
%global __debug_package 1
Jesse Keating 7a3296
%files -f debugfiles.list debuginfo-common-%{_target_cpu}
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%endif
Kyle McMartin 92559e
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 92559e
#
Kyle McMartin 92559e
# Disgusting hack alert! We need to ensure we sign modules *after* all
Kyle McMartin 92559e
# invocations of strip occur, which is in __debug_install_post if
Kyle McMartin 92559e
# find-debuginfo.sh runs, and __os_install_post if not.
Kyle McMartin 92559e
#
Kyle McMartin 92559e
%define __spec_install_post \
Kyle McMartin 92559e
  %{?__debug_package:%{__debug_install_post}}\
Kyle McMartin 92559e
  %{__arch_install_post}\
Kyle McMartin 92559e
  %{__os_install_post}\
Kyle McMartin 92559e
  %{__modsign_install_post}
Kyle McMartin 92559e
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### install
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%install
Jesse Keating 7a3296
Josh Boyer 83337c
cd linux-%{KVERREL}
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
Jesse Keating 7a3296
# copy the source over
Jesse Keating 7a3296
mkdir -p $docdir
Josh Boyer 08ed14
tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif # with_doc
Jesse Keating 7a3296
Josh Boyer 8addb5
# We have to do the headers install before the tools install because the
Josh Boyer 8addb5
# kernel headers_install will remove any header files in /usr/include that
Josh Boyer 8addb5
# it doesn't install itself.
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
# Install kernel headers
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
Jesse Keating 7a3296
Jesse Keating 7a3296
# Do headers_check but don't die if it fails.
Jesse Keating 7a3296
make ARCH=%{hdrarch} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_check \
Jesse Keating 7a3296
     > hdrwarnings.txt || :
Jesse Keating 7a3296
if grep -q exist hdrwarnings.txt; then
Jesse Keating 7a3296
   sed s:^$RPM_BUILD_ROOT/usr/include/:: hdrwarnings.txt
Jesse Keating 7a3296
   # Temporarily cause a build failure if header inconsistencies.
Jesse Keating 7a3296
   # exit 1
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
find $RPM_BUILD_ROOT/usr/include \
Jesse Keating 7a3296
     \( -name .install -o -name .check -o \
Jesse Keating 7a3296
     	-name ..install.cmd -o -name ..check.cmd \) | xargs rm -f
Jesse Keating 7a3296
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Josh Boyer 8addb5
# perf tool binary and supporting scripts/binaries
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
713abc
# remove the 'trace' symlink.
713abc
rm -f %{buildroot}%{_bindir}/trace
Josh Boyer 8addb5
Kyle McMartin ec31ef
# python-perf extension
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
Kyle McMartin ec31ef
Josh Boyer 8addb5
# perf man pages (note: implicit rpm magic compresses them later)
Kyle McMartin 8bcddf
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
Kyle McMartin 42d4c3
%endif
Josh Boyer 8addb5
Kyle McMartin 42d4c3
%if %{with_tools}
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Kyle McMartin 43d64b
%{make} -C tools/power/cpupower DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Josh Boyer 8addb5
rm -f %{buildroot}%{_libdir}/*.{a,la}
Josh Boyer 8addb5
%find_lang cpupower
Josh Boyer 8addb5
mv cpupower.lang ../
Josh Boyer 9c44ba
%ifarch %{ix86}
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/i386
Josh Boyer 8addb5
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 8addb5
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 9c44ba
%ifarch x86_64
Kyle McMartin 076944
    pushd tools/power/cpupower/debug/x86_64
Josh Boyer 9c44ba
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Josh Boyer 9c44ba
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Kyle McMartin 076944
    popd
Josh Boyer 9c44ba
%endif
Josh Boyer 8addb5
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Josh Boyer 8addb5
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Josh Boyer 8addb5
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Josh Boyer 8addb5
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Josh Boyer 8addb5
%endif
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
   mkdir -p %{buildroot}%{_mandir}/man8
Kyle McMartin 076944
   pushd tools/power/x86/x86_energy_perf_policy
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Kyle McMartin 076944
   popd
Kyle McMartin 076944
   pushd tools/power/x86/turbostat
Josh Boyer b08093
   make DESTDIR=%{buildroot} install
Kyle McMartin 076944
   popd
Josh Boyer b08093
%endif #turbostat/x86_energy_perf_policy
ec0fd9
pushd tools/thermal/tmon
ec0fd9
make INSTALL_ROOT=%{buildroot} install
ec0fd9
popd
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### clean
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%clean
Jesse Keating 7a3296
rm -rf $RPM_BUILD_ROOT
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### scripts
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Josh Boyer 93e777
%if %{with_tools}
Josh Boyer 8addb5
%post -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 8addb5
Josh Boyer 8addb5
%postun -n kernel-tools
Josh Boyer 8addb5
/sbin/ldconfig
Josh Boyer 93e777
%endif
Josh Boyer 8addb5
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel*-devel package.
Jesse Keating 7a3296
#	%%kernel_devel_post [<subpackage>]
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_devel_post() \
Jesse Keating 7a3296
%{expand:%%post %{?1:%{1}-}devel}\
Jesse Keating 7a3296
if [ -f /etc/sysconfig/kernel ]\
Jesse Keating 7a3296
then\
Jesse Keating 7a3296
    . /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
Jesse Keating 7a3296
then\
faf252
    (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
Jesse Keating 7a3296
     /usr/bin/find . -type f | while read f; do\
Jesse Keating 7a3296
       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
Jesse Keating 7a3296
     done)\
Jesse Keating 7a3296
fi\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Josh Boyer b8b278
#
Josh Boyer b8b278
# This macro defines a %%post script for a kernel*-modules-extra package.
Kyle McMartin de50ed
#	%%kernel_modules_extra_post [<subpackage>]
Josh Boyer b8b278
#
Josh Boyer b8b278
%define kernel_modules_extra_post() \
Josh Boyer b8b278
%{expand:%%post %{?1:%{1}-}modules-extra}\
faf252
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
Josh Boyer b8b278
%{nil}
Josh Boyer 8addb5
Jesse Keating 7a3296
# This macro defines a %%posttrans script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_posttrans [<subpackage>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_posttrans() \
Jesse Keating 7a3296
%{expand:%%posttrans %{?1}}\
faf252
/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%post script for a kernel package and its devel package.
Jesse Keating 7a3296
#	%%kernel_variant_post [-v <subpackage>] [-r <replace>]
Jesse Keating 7a3296
# More text can follow to go at the end of this variant's %%post.
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_post(v:r:) \
Jesse Keating 7a3296
%{expand:%%kernel_devel_post %{?-v*}}\
Kyle McMartin 663b7f
%if %{with_extra}\
Josh Boyer b8b278
%{expand:%%kernel_modules_extra_post %{?-v*}}\
Kyle McMartin 663b7f
%endif\
Jesse Keating 7a3296
%{expand:%%kernel_variant_posttrans %{?-v*}}\
Jesse Keating 7a3296
%{expand:%%post %{?-v*}}\
Jesse Keating 7a3296
%{-r:\
Jesse Keating 7a3296
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&\
Jesse Keating 7a3296
   [ -f /etc/sysconfig/kernel ]; then\
Jesse Keating 7a3296
  /bin/sed -r -i -e 's/^DEFAULTKERNEL=%{-r*}$/DEFAULTKERNEL=kernel%{?-v:-%{-v*}}/' /etc/sysconfig/kernel || exit $?\
Jesse Keating 7a3296
fi}\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines a %%preun script for a kernel package.
Jesse Keating 7a3296
#	%%kernel_variant_preun <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_preun() \
Jesse Keating 7a3296
%{expand:%%preun %{?1}}\
faf252
/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun
Jesse Keating 7a3296
%kernel_variant_post -r kernel-smp
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun smp
Jesse Keating 7a3296
%kernel_variant_post -v smp
Jesse Keating 7a3296
Kyle McMartin bc5f99
%kernel_variant_preun %{pae}
Kyle McMartin bc5f99
%kernel_variant_post -v %{pae} -r (kernel|kernel-smp)
Kyle McMartin bc5f99
Kyle McMartin bc5f99
%kernel_variant_post -v %{pae}debug -r (kernel|kernel-smp)
Kyle McMartin bc5f99
%kernel_variant_preun %{pae}debug
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_preun debug
Jesse Keating 7a3296
%kernel_variant_post -v debug
Jesse Keating 7a3296
Jesse Keating 7a3296
if [ -x /sbin/ldconfig ]
Jesse Keating 7a3296
then
Jesse Keating 7a3296
    /sbin/ldconfig -X || exit $?
Jesse Keating 7a3296
fi
Jesse Keating 7a3296
Jesse Keating 7a3296
###
Jesse Keating 7a3296
### file lists
Jesse Keating 7a3296
###
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_headers}
Jesse Keating 7a3296
%files headers
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/include/*
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
%if %{with_bootwrapper}
Jesse Keating 7a3296
%files bootwrapper
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
/usr/sbin/*
Jesse Keating 7a3296
%{_libdir}/kernel-wrapper
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Jesse Keating 7a3296
# only some architecture builds need kernel-doc
Jesse Keating 7a3296
%if %{with_doc}
Jesse Keating 7a3296
%files doc
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation/*
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}/Documentation
Jesse Keating 7a3296
%dir %{_datadir}/doc/kernel-doc-%{rpmversion}
Jesse Keating 7a3296
%endif
Jesse Keating 7a3296
Kyle McMartin 42d4c3
%if %{with_perf}
Kyle McMartin 42d4c3
%files -n perf
Jesse Keating 7a3296
%defattr(-,root,root)
Jesse Keating 7a3296
%{_bindir}/perf
Jesse Keating 7a3296
%dir %{_libexecdir}/perf-core
Jesse Keating 7a3296
%{_libexecdir}/perf-core/*
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/perf*
6e82a6
%{_sysconfdir}/bash_completion.d/perf
Josh Boyer 83337c
%doc linux-%{KVERREL}/tools/perf/Documentation/examples.txt
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%files -n python-perf
Kyle McMartin 42d4c3
%defattr(-,root,root)
Kyle McMartin 42d4c3
%{python_sitearch}
Kyle McMartin 42d4c3
Kyle McMartin 42d4c3
%if %{with_debuginfo}
Kyle McMartin 42d4c3
%files -f perf-debuginfo.list -n perf-debuginfo
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 27d8a0
Josh Boyer 27d8a0
%files -f python-perf-debuginfo.list -n python-perf-debuginfo
Josh Boyer 27d8a0
%defattr(-,root,root)
Kyle McMartin 42d4c3
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Roland McGrath 3c4ea9
Kyle McMartin 42d4c3
%if %{with_tools}
Kyle McMartin 42d4c3
%files -n kernel-tools -f cpupower.lang
Kyle McMartin 42d4c3
%defattr(-,root,root)
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 8addb5
%{_bindir}/cpupower
Josh Boyer 6ec053
%ifarch %{ix86} x86_64
Josh Boyer 8addb5
%{_bindir}/centrino-decode
Josh Boyer 8addb5
%{_bindir}/powernow-k8-decode
Josh Boyer 6ec053
%endif
Josh Boyer 8addb5
%{_unitdir}/cpupower.service
Kyle McMartin 42d4c3
%{_mandir}/man[1-8]/cpupower*
Josh Boyer 8addb5
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Josh Boyer b08093
%ifarch %{ix86} x86_64
Josh Boyer b08093
%{_bindir}/x86_energy_perf_policy
Josh Boyer b08093
%{_mandir}/man8/x86_energy_perf_policy*
Josh Boyer b08093
%{_bindir}/turbostat
Josh Boyer b08093
%{_mandir}/man8/turbostat*
Josh Boyer b08093
%endif
ec0fd9
%{_bindir}/tmon
Josh Boyer 8addb5
%endif
Josh Boyer 8addb5
Roland McGrath 3c4ea9
%if %{with_debuginfo}
Josh Boyer 8addb5
%files -f kernel-tools-debuginfo.list -n kernel-tools-debuginfo
Roland McGrath 3c4ea9
%defattr(-,root,root)
Roland McGrath 3c4ea9
%endif
Josh Boyer 8addb5
Josh Boyer 8addb5
%ifarch %{cpupowerarchs}
Josh Boyer 55e586
%files -n kernel-tools-libs
Josh Boyer 55e586
%{_libdir}/libcpupower.so.0
Josh Boyer 55e586
%{_libdir}/libcpupower.so.0.0.0
Josh Boyer 55e586
Josh Boyer 55e586
%files -n kernel-tools-libs-devel
Josh Boyer 8addb5
%{_libdir}/libcpupower.so
Josh Boyer 8addb5
%{_includedir}/cpufreq.h
Josh Boyer 8addb5
%endif
Kyle McMartin 42d4c3
%endif # with_perf
Jesse Keating 7a3296
Dave Jones 166b79
# This is %%{image_install_path} on an arch where that includes ELF files,
Jesse Keating 7a3296
# or empty otherwise.
Jesse Keating 7a3296
%define elf_image_install_path %{?kernel_image_elf:%{image_install_path}}
Jesse Keating 7a3296
Jesse Keating 7a3296
#
Jesse Keating 7a3296
# This macro defines the %%files sections for a kernel package
Jesse Keating 7a3296
# and its devel and debuginfo packages.
Jesse Keating 7a3296
#	%%kernel_variant_files [-k vmlinux] <condition> <subpackage>
Jesse Keating 7a3296
#
Jesse Keating 7a3296
%define kernel_variant_files(k:) \
Jesse Keating 7a3296
%if %{1}\
Jesse Keating 7a3296
%{expand:%%files %{?2}}\
Jesse Keating 7a3296
%defattr(-,root,root)\
faf252
/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:+%{2}}\
faf252
/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:+%{2}}.hmac \
Kyle McMartin 49ba08
%ifarch %{arm} aarch64\
faf252
/%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}} \
783eee
%endif\
faf252
%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:+%{2}}\
faf252
/boot/config-%{KVERREL}%{?2:+%{2}}\
faf252
%dir /lib/modules/%{KVERREL}%{?2:+%{2}}\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/build\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/source\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/updates\
Jesse Keating 7a3296
%ifarch %{vdso_arches}\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/vdso\
faf252
/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:+%{2}}.conf\
Jesse Keating 7a3296
%endif\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\
faf252
%ghost /boot/initramfs-%{KVERREL}%{?2:+%{2}}.img\
Jesse Keating 7a3296
%{expand:%%files %{?2:%{2}-}devel}\
Jesse Keating 7a3296
%defattr(-,root,root)\
faf252
/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
Kyle McMartin 663b7f
%if %{with_extra}\
Josh Boyer b8b278
%{expand:%%files %{?2:%{2}-}modules-extra}\
Kyle McMartin 663b7f
%endif\
Josh Boyer b8b278
%defattr(-,root,root)\
faf252
/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
Jesse Keating 7a3296
%if %{with_debuginfo}\
Jesse Keating 7a3296
%ifnarch noarch\
Jesse Keating 7a3296
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
Jesse Keating 7a3296
%defattr(-,root,root)\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%endif\
Jesse Keating 7a3296
%{nil}
Jesse Keating 7a3296
Jesse Keating 7a3296
Jesse Keating 7a3296
%kernel_variant_files %{with_up}
Jesse Keating 7a3296
%kernel_variant_files %{with_smp} smp
Jesse Keating 7a3296
%kernel_variant_files %{with_debug} debug
Kyle McMartin bc5f99
%kernel_variant_files %{with_pae} %{pae}
Kyle McMartin bc5f99
%kernel_variant_files %{with_pae_debug} %{pae}debug
Jesse Keating 7a3296
Jesse Keating 7a3296
# plz don't put in a version string unless you're going to tag
Jesse Keating 7a3296
# and build.
Dave Jones 1d43b9
#
Dave Jones 1d43b9
# 
Dave Jones 1d43b9
#                        ___________________________________________________________
Dave Jones 1d43b9
#                       / This branch is for Fedora 21. You probably want to commit \
Dave Jones 1d43b9
#  _____ ____  _        \ to the F-20 branch instead, or in addition to this one.   /
Dave Jones 1d43b9
# |  ___|___ \/ |        -----------------------------------------------------------
Dave Jones 1d43b9
# | |_    __) | |             \   ^__^
Dave Jones 1d43b9
# |  _|  / __/| |              \  (@@)\_______
Dave Jones 1d43b9
# |_|   |_____|_|                 (__)\       )\/\
Dave Jones 1d43b9
#                                    ||----w |
Dave Jones 1d43b9
#                                    ||     ||
Jesse Keating 7a3296
%changelog
6494f2
* Sat Nov 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git5.1
6494f2
- Linux v3.12-9888-gf63c482
6494f2
ec0fd9
* Thu Nov 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git4.1
ec0fd9
- Linux v3.12-8333-g4fbf888
ec0fd9
- Build tmon in kernel-tools
ec0fd9
- Disable ARM NEON optimised AES and OMAP2PLUS cpufreq because they don't build
ec0fd9
dba6fd
* Thu Nov 14 2013 Peter Robinson <pbrobinson@fedoraproject.org>
307816
- Update ARM configs
dba6fd
- Enable ARM NEON optimised AES
307816
e3f67f
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git3.2
e3f67f
- Enable USER_NS for root-only processes (rhbz 917708)
e3f67f
991987
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git3.1
991987
- Linux v3.12-7033-g42a2d92
991987
432601
* Wed Nov 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
432601
- Add patch to fix imx-drm build issues
432601
049a74
* Wed Nov 13 2013 Adam Jackson <ajax@redhat.com>
049a74
- Hush i915's check_crtc_state()
049a74
713abc
* Tue Nov 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git2.1
713abc
- Linux v3.12-4849-g10d0c97
713abc
65855d
* Mon Nov 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git1.3
65855d
- Linux v3.12-2839-gedae583
65855d
- Reenable debugging options.
65855d
a6bed4
* Sat Nov 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-2
20a5ad
- Add patch from Daniel Stone to avoid high order allocations in evdev
e3ff8f
- Add qxl backport fixes from Dave Airlie
e3ff8f
0a346e
* Tue Nov 05 2013 Kyle McMartin <kyle@fedoraproject.org>
0a346e
- Enable crash on {arm,aarch64,ppc64,s390x}
0a346e
17cfc2
* Mon Nov 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-1
17cfc2
- Linux v3.12
17cfc2
- Disable debugging options.
17cfc2
7070b1
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git4.1
7070b1
- Linux v3.12-rc7-111-g9581b7d
7070b1
69fef5
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git3.1
69fef5
- Linux v3.12-rc7-79-g4f794ee
69fef5
- Set NR_CPUS=1024 on non-debug x86_64 builds (MAXSMP is set on debug)
69fef5
105477
* Fri Nov 01 2013 Josh Boyer <jwboyer@fedoraproject.org>
105477
- CVE-2013-4348 net: deadloop path in skb_flow_dissect (rhbz 1007939 1025647)
105477
5e7b10
* Thu Oct 31 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git2.1
5e7b10
- Linux v3.12-rc7-48-g12aee27
5e7b10
5db353
* Tue Oct 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git1.1
5db353
- Linux v3.12-rc7-9-gc9ca72f
5db353
- Fixes sg_open lock held when returning to userspace (rhbz 1018620)
5db353
- Reenable debugging options.
5db353
689472
* Mon Oct 28 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc7.git0.1
689472
- Linux v3.12-rc7
689472
- Disable debugging options.
689472
0a55a3
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
0a55a3
- Add touchpad support for Dell XT2 (rhbz 1023413)
0a55a3
87fb89
* Fri Oct 25 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git4.1
87fb89
- Linux v3.12-rc6-292-g4208c47
87fb89
ac6759
* Thu Oct 24 2013 Peter Robinson <pbrobinson@fedoraproject.org>
ac6759
- Add patch for i.MX6 Utilite device dtb
ac6759
c87292
* Thu Oct 24 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git3.1
c87292
- Linux v3.12-rc6-284-ge6036c0
c87292
Kyle McMartin 11dfcd
* Wed Oct 23 2013 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin 11dfcd
- Clean up some BuildRequires that reference hilariously old packages.
Kyle McMartin 11dfcd
  Replace module-init-tools BR with kmod.
Kyle McMartin 11dfcd
6f5740
* Wed Oct 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git2.1
6f5740
- Linux v3.12-rc6-275-g320437af
6f5740
1db147
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
1db147
- Build virtio drivers as modules (rhbz 1019569)
1db147
fd8747
* Tue Oct 22 2013 Adam Jackson <ajax@redhat.com>
fd8747
- Drop voodoo1 fbdev driver
fd8747
d36d81
* Tue Oct 22 2013 Kyle McMartin <kyle@fedoraproject.org>
d36d81
- Clean up kernel Provides, nobody references kernel-drm, or kernel-modeset...
d36d81
  drop pre-F20 ARM flavor names. Turn off AutoProv on the main kernel package.
d36d81
197c75
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org>
197c75
- Add patch to fix warning in tcp_fastretrans_alert (rhbz 989251)
197c75
00fe90
* Tue Oct 22 2013 Kyle McMartin <kyle@fedoraproject.org>
00fe90
- armv7hl,aarch64: re-enable kernel-modules-extra temporarily
00fe90
5205fb
* Tue Oct 22 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git1.1
5205fb
- Linux v3.12-rc6-57-g69c88dc
5205fb
- Reenable debugging options.
5205fb
66681b
* Tue Oct 22 2013 Peter Robinson <pbrobinson@fedoraproject.org>
66681b
- Minor ARM config update
66681b
3b5c96
* Mon Oct 21 2013 Kyle McMartin <kyle@fedoraproject.org>
3b5c96
- aarch64: add AFTER_LINK to $vdsold for debuginfo generation of the vdso.
3b5c96
1113a8
* Sun Oct 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
1113a8
- Build BIG_KEYS into the kernel (rhbz 1017683)
1113a8
e45650
* Sun Oct 20 2013 Peter Robinson <pbrobinson@fedoraproject.org>
e45650
- Enable U8500 SoC (Snowball) on ARM
e45650
141877
* Sun Oct 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc6.git0.1
141877
- Linux v3.12-rc6
141877
- Disable debugging options.
141877
249d53
* Fri Oct 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git4.1
249d53
- Linux v3.12-rc5-123-g04919af
249d53
8664f7
* Fri Oct 18 2013 Josh Boyer <jwboyer@fedoraproject.org> 
8664f7
- Fix keyring quota misaccounting (rhbz 1017683)
8664f7
a806f2
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git3.1
a806f2
- Linux v3.12-rc5-78-g056cdce
a806f2
b980a8
* Thu Oct 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
34e7db
- Add patch to fix BusLogic error (rhbz 1015558)
b980a8
- Fix rt2800usb polling timeouts and throughput issues (rhbz 984696)
b980a8
458031
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
c517fd
- Fix btrfs balance/scrub issue (rhbz 1011714)
458031
- Clean up a bunch of stale patches
458031
630a06
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git2.1
630a06
- Linux v3.12-rc5-48-g34ec4de
630a06
5e6535
* Wed Oct 16 2013 Peter Robinson <pbrobinson@fedoraproject.org>
5e6535
- ARM config updates for IIO and enable sensors for ARM platforms
5e6535
5e6535
* Wed Oct 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
f7a31d
- Enable VIRTIO_CONSOLE as a module on all ARM (rhbz 1005551)
f7a31d
e1f118
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org>
e1f118
- Enable IIO and various sensor options for Win8 laptops (rhbz 995510)
e1f118
7f2383
* Tue Oct 15 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git1.1
7f2383
- Linux v3.12-rc5-36-g1e52db6
7f2383
- Reenable debugging options.
7f2383
75caab
* Mon Oct 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc5.git0.1
75caab
- Linux v3.12-rc5
75caab
- Disable debugging options.
75caab
2fba3e
* Sun Oct 13 2013 Peter Robinson <pbrobinson@fedoraproject.org>
2fba3e
- Minor ARM config updates/cleanups
2fba3e
- ARM GPIO/I2C updates
2fba3e
- ARM usb gadget updates
2fba3e
694dc9
* Sat Oct 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git4.1
694dc9
- Linux v3.12-rc4-91-g46f3751
694dc9
Kyle McMartin e119a6
* Fri Oct 11 2013 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin e119a6
- Turn off some drivers on aarch64 and armv7hl that are unlikely to ever be
Kyle McMartin e119a6
  seen there.
Kyle McMartin e119a6
064673
* Fri Oct 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git3.1
7792df
- Fix segfault in cpupower set (rhbz 1000439)
064673
- Linux v3.12-rc4-62-g2fe80d3
064673
2d3300
* Thu Oct 10 2013 Josh Boyer <jwboyer@fedoraproject.org>
2d3300
- Fix large order allocation in dm mq policy (rhbz 993744)
2d3300
821590
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git2.1
b81731
- Don't trigger a stack trace on crashing iwlwifi firmware (rhbz 896695)
821590
- Linux v3.12-rc4-29-g0e7a3ed
821590
0713af
* Wed Oct 09 2013 Josh Boyer <jwboyer@fedoraproject.org>
0713af
- Add patch to fix VFIO IOMMU crash (rhbz 998732)
0713af
020390
* Tue Oct 8  2013 Peter Robinson <pbrobinson@fedoraproject.org>
020390
- Tiny ARM config update
020390
72d016
* Tue Oct 08 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git1.1
72d016
- Linux v3.12-rc4-19-g8b5ede6
72d016
- Reenable debugging options.
72d016
- Quiet irq remapping stack trace (rhbz 982153)
72d016
82bda6
* Mon Oct 7  2013 Peter Robinson <pbrobinson@fedoraproject.org>
82bda6
- General ARM config cleanups
82bda6
- Remove old/dupe ARM config options
82bda6
- Enable external connectors on ARM
82bda6
- Enable i.MX and TI thermal controllers
82bda6
- Enable i.MX RNG driver
82bda6
- ARM MFD and REGULATOR changes and cleanups
82bda6
- AM33xx (BeagleBone) config improvements
82bda6
- Rebase OMAP DVI patch
82bda6
- Enable console for Zynq-7xxx SoCs
82bda6
511955
* Sun Oct 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc4.git0.1
511955
- Linux v3.12-rc4
511955
- Disable debugging options.
511955
dce629
* Fri Oct 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git5.1
dce629
- Linux v3.12-rc3-296-g15c83d2
dce629
6058f0
* Thu Oct 03 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git4.1
6058f0
- Linux v3.12-rc3-267-g6d15ee4
6058f0
9d22d5
* Thu Oct 03 2013 Josh Boyer <jwboyer@fedoraproject.org>
9d22d5
- Add patch to support not importing certs from db
9d22d5
Kyle McMartin f1adcb
* Thu Oct 03 2013 Kyle McMartin <kyle@fedoraproject.org>
Kyle McMartin f1adcb
- Add config-no-extra and disable with_extra on ARM and AArch64 to reduce
Kyle McMartin f1adcb
  time building untestable code (because the hardware doesn't exist, or it
Kyle McMartin f1adcb
  would be futile.)
Kyle McMartin f1adcb
dd6a11
* Thu Oct 03 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git3.1
dd6a11
- Linux v3.12-rc3-253-ge6e7fb1
dd6a11
51a9ef
* Wed Oct 02 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git2.1
51a9ef
- Linux v3.12-rc3-186-gc31eeac
51a9ef
- Enable options for Intel Low Power Subsystem Support
51a9ef
c1a928
* Tue Oct 01 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git1.1
c1a928
- Linux v3.12-rc3-65-gf927318
c1a928
- Reenable debugging options.
c1a928
084247
* Mon Sep 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
7211d4
- Add support for rf3070 devices from Stanislaw Gruszka (rhbz 974072)
084247
- Drop VC_MUTE patch (rhbz 859485)
084247
0aaf0b
* Mon Sep 30 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc3.git0.1
0aaf0b
- Linux v3.12-rc3
0aaf0b
- Disable debugging options.
0aaf0b
3a4b91
* Sun Sep 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc2.git4.1
3a4b91
- Linux v3.12-rc2-160-g669fc2f
3a4b91
e66cf8
* Fri Sep 27 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc2.git3.1
e66cf8
- Linux v3.12-rc2-108-g6cac446
e66cf8
049b50
* Fri Sep 27 2013 Josh Boyer <jwboyer@fedoraproject.org>
879214
- Add patch to fix oops from applesmc (rhbz 1011719)
049b50
- Add patches to fix soft lockup from elevator changes (rhbz 902012)
049b50
518250
* Thu Sep 26 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc2.git2.1
518250
- Linux v3.12-rc2-83-g4b97280
518250
c294c6
* Wed Sep 25 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc2.git1.1
c294c6
- Linux v3.12-rc2-33-g22356f4
c294c6
- Reenable debugging options.
c294c6
fe05a2
* Wed Sep 25 2013 Josh Boyer <jwboyer@fedoraproject.org>
3e3a90
- Fix debuginfo_args regex for + separator (rhbz 1009751)
fe05a2
- Fix invalid value passed to pci_unmap_single in skge (rhbz 1008323)
fe05a2
85a711
* Tue Sep 24 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc2.git0.1
85a711
- Linux v3.12-rc2
85a711
- Disable debugging options.
85a711
4ffd4e
* Mon Sep 23 2013 Josh Boyer <jwboyer@fedoraproject.org>
4ffd4e
- Revert rt2x00 commit that breaks connectivity (rhbz 1010431)
4ffd4e
890c34
* Mon Sep 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git6.1
890c34
- Linux v3.12-rc1-336-gd8524ae
890c34
8f315e
* Fri Sep 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git5.1
8f315e
- Linux v3.12-rc1-250-g7b9e3a6
8f315e
12089c
* Fri Sep 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
12089c
- Fix RTC updates from ntp (rhbz 985522)
12089c
f2c5f4
* Fri Sep 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git4.1
f2c5f4
- Linux v3.12-rc1-250-g7b9e3a6
f2c5f4
f5be78
* Thu Sep 19 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git3.1
f5be78
- Linux v3.12-rc1-101-ged24fee
f5be78
95f221
* Wed Sep 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git2.1
95f221
- Linux v3.12-rc1-46-g9baa505
95f221
05e091
* Wed Sep 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git1.1
05e091
- Linux v3.12-rc1-27-g62d228b
05e091
- Reenable debugging options.
05e091
2c51e4
* Tue Sep 17 2013 Josh Boyer <jwboyer@fedoraproject.org>
2c51e4
- CVE-2013-4345 ansi_cprng: off by one error in non-block size request (rhbz 1007690 1009136)
2c51e4
Kyle McMartin cdb790
* Tue Sep 17 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin cdb790
- Add nvme.ko to modules.block for anaconda.
Kyle McMartin cdb790
984950
* Tue Sep 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc1.git0.1
984950
- Linux v3.12-rc1
984950
- Disable debugging options.
984950
3babd7
* Sun Sep 15 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git26.1
3babd7
- Linux v3.11-10064-gbff157b
3babd7
675aa1
* Sat Sep 14 2013 Josh Boyer <jwboyer@fedoraproject.org>
675aa1
- Update keys-x509-improv.patch to latest back from upstream git
675aa1
181a7a
* Sat Sep 14 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git25.1
181a7a
- Linux v3.11-10050-g3711d86
181a7a
bd6d19
* Fri Sep 13 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git24.1
bd6d19
- Linux v3.11-10007-g399a946
bd6d19
1d47ac
* Fri Sep 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer e101f0
- Add patch to fix btrfs build on ARM
842978
- CVE-2013-4350 net: sctp: ipv6 ipsec encryption bug in sctp_v6_xmit (rhbz 1007872 1007903)
1d47ac
- CVE-2013-4343 net: use-after-free TUNSETIFF (rhbz 1007733 1007741)
1d47ac
d3179a
* Thu Sep 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git23.1
d3179a
- Linux v3.11-9747-gff812d7
d3179a
01d60a
* Thu Sep 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git22.1
01d60a
- Linux v3.11-9420-gd5d04bb
01d60a
356f0c
* Thu Sep 12 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git21.1
356f0c
- Linux v3.11-9411-gc2d9572
356f0c
5f27ad
* Wed Sep 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git20.1
5f27ad
- Linux v3.11-9031-ga22a0fd
5f27ad
a0e7ea
* Tue Sep 10 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git19.1
a0e7ea
- Linux v3.11-8935-g31f7c3a
a0e7ea
57e684
* Tue Sep 10 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git18.1
57e684
- Linux v3.11-8716-g26b0332
57e684
8da75d
* Mon Sep  9 2013 Peter Robinson <pbrobinson@fedoraproject.org>
8da75d
- Enable OF option to allocate CMA memory using device tree on ARM
8da75d
ef211b
* Mon Sep 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git17.1
ef211b
- Linux fscache-fixes-for-ceph-8429-g300893b
ef211b
Kyle McMartin a6b4f8
* Mon Sep 09 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin a6b4f8
- [arm] re-enable CONFIG_PCIEPORTBUS, now that tegra is fixed upstream.
Kyle McMartin a6b4f8
6176c6
* Mon Sep 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git16.1
6176c6
- Linux v3.11-7890-ge5c832d
6176c6
220bf4
* Mon Sep 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git15.1
220bf4
- Linux v3.11-7547-g44598f9
220bf4
f34b9d
* Sun Sep  8 2013 Peter Robinson <pbrobinson@fedoraproject.org>
f34b9d
- Minor updates to OMAP and AM33xx
f34b9d
21c795
* Sat Sep 07 2013 Josh Boyer <jwboyer@fedoraproject.org>
21c795
- Add patch to fix ARM kernel neon build
21c795
012898
* Fri Sep 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git14.1
012898
- Linux v3.11-6855-g4de9ad9
012898
Kyle McMartin a7ff86
* Fri Sep 06 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin a7ff86
- [arm] enable KERNEL_MODE_NEON, safe to do, as the raid6 code tests hwcaps
Kyle McMartin a7ff86
  so it won't impact tegra.
Kyle McMartin a7ff86
4eae13
* Fri Sep 06 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git13.1
4eae13
- Linux v3.11-6422-g2e03285
4eae13
eca31b
* Thu Sep 05 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git12.1
eca31b
- Linux v3.11-4809-ga09e9a7
eca31b
f55bd2
* Thu Sep 05 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git11.1
d5a4ef
- Fix perf build on ARM (from Kyle McMartin)
d5a4ef
d5a4ef
* Thu Sep 05 2013 Josh Boyer <jwboyer@fedoraproject.org>
f55bd2
- Linux v3.11-3891-gae7a835
f55bd2
7f84e8
* Thu Sep 05 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git10.1
7f84e8
- Linux v3.11-3120-g816434e
7f84e8
Josh Boyer d0e2e5
* Thu Sep 5 2013 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer d0e2e5
- Fixup perf build
Josh Boyer d0e2e5
Kyle McMartin 3e892b
* Wed Sep 4 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 3e892b
- [arm] Disable CONFIG_PCIEPORTBUS in arm-generic, causes untold problems
Kyle McMartin 3e892b
  with registering bus windows on tegra.
Kyle McMartin 3e892b
f2ae91
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git9.1
f2ae91
- Linux v3.11-3070-gcb3e433
f2ae91
4ae720
* Wed Sep 4 2013 Josh Boyer <jwboyer@fedoraproject.org>
4ae720
- Update linux-firmware requirements for newer radeon firmware (rhbz 988268 972518)
4ae720
6e85b3
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git8.1
6e85b3
- Linux v3.11-2654-g458c3f6
6e85b3
4bace4
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git7.1
4bace4
- Linux v3.11-2529-ga923874
4bace4
9aa82f
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git6.1
9aa82f
- Linux v3.11-2455-g40031da
9aa82f
56937f
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git5.1
56937f
- Linux v3.11-2200-gf66c83d
56937f
0593e5
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git4.1
0593e5
- Linux v3.11-1851-g7511442
0593e5
625301
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git3.1
625301
- Linux v3.11-782-g1d1fdd9
625301
625301
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git2.1
f32bbb
- Linux v3.11-716-gb3b4911
f32bbb
82dce8
* Wed Sep  4 2013 Peter Robinson <pbrobinson@fedoraproject.org>
bad69a
- Add patch set to fix MMC on AM33xx
bad69a
- Add support for BeagleBone Black (very basic!)
9cd528
- Renable cpuidle on ARM, was disabled sometime back due to instability
bad69a
b730ee
* Wed Sep 04 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-0.rc0.git1.1
b730ee
- Linux v3.11-351-g1ccfd5e
b730ee
- Reenable debugging options.
b730ee
Josh Boyer d7ee6f
* Tue Sep 03 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-3
Josh Boyer d7ee6f
- Add system_keyring patches back in
Josh Boyer d7ee6f
Kyle McMartin 663b7f
* Tue Sep 03 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 663b7f
- Pull in some Calxeda highbank fixes that are destined for 3.12
Kyle McMartin 663b7f
- Add a %with_extra twiddle to disable building kernel-modules-extra
Kyle McMartin 663b7f
  subpackages.
Kyle McMartin 663b7f
- Fix dtbs install path to use %install_image_path (not that it's different
Kyle McMartin 663b7f
  at the moment.)
Kyle McMartin 663b7f
Josh Boyer 9cb73b
* Tue Sep 03 2013 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer 9cb73b
- Add keyring patches to support krb5 (rhbz 1003043)
Josh Boyer 9cb73b
Kyle McMartin 49ba08
* Tue Sep 03 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 49ba08
- [arm64] disable VGA_CONSOLE and PARPORT_PC
Kyle McMartin 49ba08
- [arm64] install dtb as on %{arm}
Kyle McMartin 49ba08
7ad7e4
* Tue Sep 03 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-1
7ad7e4
- Linux v3.11
7ad7e4
- Disable debugging options.
7ad7e4
0eff0b
* Mon Sep 02 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git5.1
0eff0b
- Linux v3.11-rc7-96-ga878764
0eff0b
fceb35
* Sun Sep  1 2013 Peter Robinson <pbrobinson@fedoraproject.org>
fceb35
- Build in OMAP MMC again (fix at least omap3)
fceb35
0f1c9f
* Sat Aug 31 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git4.1
0f1c9f
- Linux v3.11-rc7-42-gd9eda0f
0f1c9f
37b8e7
* Fri Aug 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
37b8e7
- Fix HID CVEs.  Absurd.
37b8e7
- CVE-2013-2888 rhbz 1000451 1002543 CVE-2013-2889 rhbz 999890 1002548
37b8e7
- CVE-2013-2891 rhbz 999960 1002555  CVE-2013-2892 rhbz 1000429 1002570
37b8e7
- CVE-2013-2893 rhbz 1000414 1002575 CVE-2013-2894 rhbz 1000137 1002579
37b8e7
- CVE-2013-2895 rhbz 1000360 1002581 CVE-2013-2896 rhbz 1000494 1002594
37b8e7
- CVE-2013-2897 rhbz 1000536 1002600 CVE-2013-2899 rhbz 1000373 1002604
37b8e7
7bf585
* Fri Aug 30 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git3.1
7bf585
- Linux v3.11-rc7-30-g41615e8
7bf585
Josh Boyer c9d9c5
* Fri Aug 30 2013 Josh Boyer <jwboyer@fedoraproject.org>
Josh Boyer c9d9c5
- Rework Secure Boot support to use the secure_modules approach
Josh Boyer c9d9c5
- Drop pekey
Josh Boyer c9d9c5
05be2c
* Thu Aug 29 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git2.1
05be2c
- Linux v3.11-rc7-24-gc95389b
6db141
- Add mei patches that fix various s/r issues (rhbz 994824 989373)
05be2c
e79570
* Wed Aug 28 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git1.1
e79570
- Linux v3.11-rc7-14-gfa8218d
e79570
- Reenable debugging options.
e79570
Kyle McMartin 7ee0bd
* Tue Aug 27 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 7ee0bd
- [arm] build pinctrl-single in, needed to prevent deferral of
Kyle McMartin 7ee0bd
  omap_serial registration.
Kyle McMartin 7ee0bd
6072b1
* Mon Aug 26 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc7.git0.1
6072b1
- Linux v3.11-rc7
6072b1
- Disable debugging options.
6072b1
01c05a
* Fri Aug 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git4.1
01c05a
- Linux v3.11-rc6-139-g89b53e5
01c05a
afae50
* Fri Aug 23 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git3.1
afae50
- Linux v3.11-rc6-76-g6a7492a
afae50
c2a5d3
* Fri Aug 23 2013 Peter Robinson <pbrobinson@fedoraproject.org>
c2a5d3
- Minor ARM config cleanups
c2a5d3
- Enable some IOMMU drivers on ARM
c2a5d3
- Enable some i.MX sound drivers
c2a5d3
11cc8d
* Thu Aug 22 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git2.1
11cc8d
- Linux v3.11-rc6-72-g1f8b766
11cc8d
Kyle McMartin dbb082
* Thu Aug 22 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin dbb082
- Drop arm-tegra-remove-direct-vbus-regulator-control.patch, proper fix
Kyle McMartin dbb082
  will be in the next rebase.
Kyle McMartin dbb082
a63b06
* Wed Aug 21 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git1.2
16ce0f
- Add patch to fix brcmsmac oops (rhbz 989269)
b588ef
- CVE-2013-0343 handling of IPv6 temporary addresses (rhbz 914664 999380)
b588ef
bf0f2a
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git1.1
bf0f2a
- Linux v3.11-rc6-28-gfd3930f
bf0f2a
- Reenable debugging options.
bf0f2a
d7fe8b
* Tue Aug 20 2013 Josh Boyer <jwboyer@fedoraproject.org>
d7fe8b
- Disable Dell RBU so userspace firmware path isn't selected (rhbz 997149)
d7fe8b
875f13
* Mon Aug 19 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc6.git0.1
875f13
- Linux v3.11-rc6
875f13
- Disable debugging options.
875f13
09ffc5
* Mon Aug 19 2013 Peter Robinson <pbrobinson@fedoraproject.org>
09ffc5
- Minor kernel configs cleanup merging duplicated config opts into generic
09ffc5
cb5174
* Sun Aug 18 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc5.git6.1
cb5174
- Linux v3.11-rc5-168-ga08797e
cb5174
c83f04
* Sat Aug 17 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc5.git5.1
c83f04
- Linux v3.11-rc5-165-g215b28a
c83f04
e86eaa
* Fri Aug 16 2013 Peter Robinson <pbrobinson@fedoraproject.org>
e86eaa
- Update ARM drivers config for Zynq 7000 devices
e86eaa
4eb90a
* Fri Aug 16 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.11.0-0.rc5.git4.1
4eb90a
- Linux v3.11-rc5-150-g0f7dd1a
4eb90a
8eb218
* Fri Aug 16 2013 Josh Boyer <jwboyer@fedoraproject.org>
8eb218
- Add patch from Nathanael Noblet to fix mic on Gateway LT27 (rhbz 845699)
8eb218
fe4e95
* Thu Aug 15 2013 Peter Robinson <pbrobinson@fedoraproject.org>
fe4e95
- Major cleanup of arm64 config
fe4e95
- Add patch to enable build exynos5 as multi platform for lpae
fe4e95
- Minor cleanup of ARMv7 configs
fe4e95
Josh Boyer d4a304
* Thu Aug 15 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc5.git3.1
Josh Boyer 4c2389
- Enable CONFIG_HID_SENSOR_HUB (rhbz 995510)
Josh Boyer 169008
- Add patch to fix regression on TeVII S471 devices (rhbz 963715)
Josh Boyer d4a304
- Linux v3.11-rc5-35-gf1d6e17
Josh Boyer d4a304
Josh Boyer b3ef08
* Wed Aug 14 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc5.git2.1
Josh Boyer b3ef08
- Linux v3.11-rc5-21-g28fbc8b
Josh Boyer b3ef08
- Disable WIMAX.  It's fairly broken and abandoned upstream.
Josh Boyer b3ef08
Josh Boyer d487df
* Tue Aug 13 2013 Josh Boyer <jwboyer@gmail.com> - 3.11.0-0.rc5.git1.1
Josh Boyer d487df
- Linux v3.11-rc5-13-g584d88b
Josh Boyer d487df
- Reenable debugging options.
Josh Boyer d487df
Josh Boyer 400c81
* Mon Aug 12 2013 Josh Boyer <jwboyer@gmail.com> - 3.11.0-0.rc5.git0.1
Josh Boyer 400c81
- Linux v3.11-rc5
Josh Boyer 400c81
- Disable debugging options.
Josh Boyer 400c81
Josh Boyer a1028b
* Sun Aug 11 2013 Josh Boyer <jwboyer@gmail.com> - 3.11.0-0.rc4.git5.1
Josh Boyer a1028b
- Linux v3.11-rc4-216-g77f63b4
Josh Boyer a1028b
612585
* Sun Aug 11 2013 Peter Robinson <pbrobinson@fedoraproject.org>
612585
- Drop a bunch of generic dupe config from aarch64
612585
Josh Boyer 7cffb6
* Sat Aug 10 2013 Josh Boyer <jwboyer@gmail.com> - 3.11.0-0.rc4.git4.1
Josh Boyer 7cffb6
- Linux v3.11-rc4-162-g14e9419
Josh Boyer 7cffb6
Josh Boyer 041cf8
* Fri Aug 09 2013 Josh Boyer <jwboyer@gmail.com> - 3.11.0-0.rc4.git3.1
Josh Boyer 041cf8
- Linux v3.11-rc4-103-g6c2580c
Josh Boyer 041cf8
Josh Boyer be0785
* Wed Aug 07 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc4.git2.1
Josh Boyer be0785
- Linux v3.11-rc4-27-ge4ef108
Josh Boyer 42d219
- Add zero file length check to make sure pesign didn't fail (rhbz 991808)
Josh Boyer 42d219
Josh Boyer b8f052
* Tue Aug 06 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc4.git1.1
Josh Boyer b8f052
- Linux v3.11-rc4-20-g0fff106
Josh Boyer b8f052
- Reenable debugging options.
Josh Boyer d3cca1
- Don't package API man pages in -doc (rhbz 993905)
Josh Boyer d3cca1
Josh Boyer ebebb8
* Mon Aug 05 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc4.git0.1
Josh Boyer ebebb8
- Linux v3.11-rc4
Josh Boyer ebebb8
- Disable debugging options.
Josh Boyer ebebb8
Josh Boyer 56d4a4
* Sun Aug 04 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc3.git4.1
Josh Boyer 56d4a4
- Linux v3.11-rc3-376-g72a67a9
Josh Boyer 56d4a4
Josh Boyer 5f6bb1
* Sat Aug 03 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc3.git3.1
Josh Boyer 5f6bb1
- Linux v3.11-rc3-288-gabe0308
Josh Boyer 5f6bb1
Kyle McMartin b85304
* Fri Aug 02 2013 Kyle McMartin <kyle@redhat.com> - 3.11.0-0.rc3.git2.1
Kyle McMartin b85304
- radeon-si_calculate_leakage-use-div64.patch: fix a compile error on i686.
Kyle McMartin b85304
- arm: disable CONFIG_LOCK_STAT, bloats .data massively, revisit shortly.
Kyle McMartin b85304
- arm: build-in more rtc drivers.
Kyle McMartin b85304
Josh Boyer c8491a
* Fri Aug 02 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc3.git2.1
Josh Boyer c8491a
- Linux v3.11-rc3-207-g64ccccf
Josh Boyer c8491a
390fae
* Thu Aug  1 2013 Peter Robinson <pbrobinson@fedoraproject.org>
390fae
- Minor ARM config update
390fae
Josh Boyer 833088
* Thu Aug 01 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 548164
- Fix mac80211 connection issues (rhbz 981445)
Josh Boyer c35d85
- Fix firmware issues with iwl4965 and rfkill (rhbz 977053)
Josh Boyer 833088
- Drop hid-logitech-dj patch that was breaking enumeration (rhbz 989138)
Josh Boyer 833088
Josh Boyer f7eb1e
* Tue Jul 30 2013 Josh Boyer <jwboyer@redhat.com> - 3.11.0-0.rc3.git1.1
Josh Boyer f7eb1e
- Linux v3.11-rc3-4-g36f571e
Josh Boyer f7eb1e
- Reenable debugging options.
Josh Boyer f7eb1e
Josh Boyer d4864f
* Tue Jul 30 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer d4864f
- Revert some changes to make Logitech devices function properly (rhbz 989138)
Josh Boyer d4864f
Kyle McMartin 3f8c3d
* Mon Jul 29 2013 Kyle McMartin <kyle@redhat.com> - 3.11.0-0.rc3.git0.1
Kyle McMartin 963bc0
- arm-sound-soc-samsung-dma-avoid-another-64bit-division.patch: ditto
Kyle McMartin 963bc0
Kyle McMartin 963bc0
* Mon Jul 29 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 8260f1
- arm-dma-amba_pl08x-avoid-64bit-division.patch: STAHP libgcc callouts
Kyle McMartin 8260f1
Kyle McMartin 3f8c3d
* Mon Jul 29 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3f4248
- Linux v3.11-rc3
Josh Boyer 3f4248
- Disable debugging options.
Josh Boyer d71372
- Always include x509.genkey in Sources list
Josh Boyer 3f4248
ad160e
* Fri Jul 26 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git4.1
ad160e
- Linux v3.11-rc2-333-ga9b5f02
ad160e
Josh Boyer 3cfb91
* Fri Jul 26 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 3cfb91
- Add patch to fix NULL deref in iwlwifi (rhbz 979581)
Josh Boyer 3cfb91
20fe3c
* Thu Jul 25 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git3.1
20fe3c
- Linux v3.11-rc2-185-g07bc9dc
20fe3c
b7a62e
* Wed Jul 24 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git2.1
b7a62e
- Linux v3.11-rc2-158-g04012e3
b7a62e
Kyle McMartin abe756
* Tue Jul 23 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin abe756
- arm-tegra-remove-direct-vbus-regulator-control.patch: backport patches
Kyle McMartin abe756
  to fix ehci-tegra.
Kyle McMartin abe756
bd4721
* Tue Jul 23 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git1.1
bd4721
- Linux v3.11-rc2-93-gb3a3a9c
bd4721
faf252
* Mon Jul 22 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git0.2
faf252
- let flavors/variants end with "+$flavor" in the uname patch from harald@redhat.com
faf252
- Reenable debugging options.
faf252
Josh Boyer 8d40c3
* Mon Jul 22 2013 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 8d40c3
- Fix timer issue in bridge code (rhbz 980254)
Josh Boyer 8d40c3
7af7ee
* Mon Jul 22 2013 Justin M. Forbes <jforbes@redhat.com> - 3.11.0-0.rc2.git0.1
7af7ee
- Linux v3.11-rc2
7af7ee
- Disable debugging options.
7af7ee
Kyle McMartin 88a192
* Sun Jul 21 2013 Kyle McMartin <kmcmartin@redhat.com> - 3.11.0-0.rc1.git4.1
Kyle McMartin 88a192
- Linux v3.11-rc1-247-g90db76e
Kyle McMartin 88a192
Kyle McMartin ed963a
* Sun Jul 21 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin ed963a
- arm-omap-bbb-dts.patch: disable for now, it needs too much work for
Kyle McMartin ed963a
  a sunday morning.
Kyle McMartin ed963a
Kyle McMartin e6dec5
* Fri Jul 19 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin e6dec5
- arm-omap-bbb-dts.patch: fix arch/arm/boot/dtb/Makefile rule
Kyle McMartin e6dec5
Kyle McMartin e5e32b
* Fri Jul 19 2013 Kyle McMartin <kmcmartin@redhat.com> - 3.11.0-0.rc1.git3.1
Kyle McMartin e5e32b
- Linux v3.11-rc1-181-gb8a33fc
Kyle McMartin e5e32b
Kyle McMartin d8509b
* Fri Jul 19 2013 Kyle McMartin <kmcmartin@redhat.com> - 3.11.0-0.rc1.git2.1
Kyle McMartin d8509b
- Linux v3.11-rc1-135-g0a693ab
Kyle McMartin d8509b
Kyle McMartin 8aeb27
* Thu Jul 18 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 57716b
- Applied patch from Kay Sievers to kill initscripts Conflicts & Requires and
Kyle McMartin 57716b
  udev Conflicts...
Kyle McMartin 57716b
- And then clean up some of the ancient crap from our Conflicts and Requires
Kyle McMartin 57716b
  which reference versions not shipped since 2006.
Kyle McMartin 57716b
Kyle McMartin 57716b
* Thu Jul 18 2013 Kyle McMartin <kyle@redhat.com>
Kyle McMartin 8aeb27
- devel-sysrq-secure-boot-20130717.patch: add a patch that allows the user to
Kyle McMartin 8aeb27
  disable secure boot restrictions from the local console or local serial
Kyle McMartin 8aeb27
  (but not /proc/sysrq-trigger or via uinput) by using SysRQ-x.
Kyle McMartin 8aeb27
Kyle McMartin e9ba93
* Wed Jul 17 2013 Kyle McMartin <kyle@redhat.com> - 3.11.0-0.rc1.git1.1
Kyle McMartin e9ba93
- Linux v3.11-rc1-19-gc0d15cc
Kyle McMartin e9ba93
- Reenable debugging options.
Kyle McMartin e9ba93
dcf602
* Wed Jul 17 2013 Kyle McMartin <kyle@redhat.com>
dcf602
- update s390x config [Dan Horák]
dcf602
279e75
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.11.0-0.rc1.git0.2
279e75
- Perl 5.18 rebuild
279e75
10166a
* Wed Jul 17 2013 Peter Robinson <pbrobinson@fedoraproject.org>
10166a
- Add patch for BeagleBone Black DTB
10166a
Kyle McMartin de50ed
* Tue Jul 16 2013 Kyle McMartin <kyle@redhat.com> - 3.11.0-0.rc1.git0.1
Kyle McMartin de50ed
- Linux v3.11-rc1
Kyle McMartin de50ed
- Disable debugging options.
Kyle McMartin de50ed
- Fix %kernel_modules warning.
Kyle McMartin de50ed
654446
* Sun Jul 14 2013 Peter Robinson <pbrobinson@fedoraproject.org>
654446
- Update ARM config
41d476<