Go to file
2014-09-04 08:49:18 -04:00
scripts
.gitignore
0001-acpi-video-Add-4-new-models-to-the-use_native_backli.patch
0001-ACPI-video-Add-use_native_backlight-quirk-for-HP-Pro.patch Add use_native_backlight=1 quirk for HP ProBook 4540s (rhbz#1025690) 2014-07-28 17:55:47 +02:00
0001-acpi-video-Add-video.use_native_backlight-1-for-HP-E.patch Add use_native_backlight=1 quirk for HP ProBook 4540s (rhbz#1025690) 2014-07-28 17:55:47 +02:00
0001-ALSA-hda-Add-dock-pin-setups-for-Thinkpad-T440.patch Backport two patches to fix T440s dock audio (rhbz 1101386) 2014-08-02 10:02:20 -04:00
0001-ARM-sunxi-Add-driver-for-SD-MMC-hosts-found-on-Allwi.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
0001-HID-rmi-do-not-handle-touchscreens-through-hid-rmi.patch
0001-HID-rmi-introduce-RMI-driver-for-Synaptics-touchpads.patch
0001-ideapad-laptop-Change-Lenovo-Yoga-2-series-rfkill-ha.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
0001-lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
0001-uas-Limit-qdepth-to-32-when-connected-over-usb-2.patch UAS: Limit max number of requests over USB-2 to 32 (rhbz#1128472) 2014-08-14 15:23:45 +02:00
0001-xhci-Blacklist-using-streams-on-the-Etron-EJ168-cont.patch Add use_native_backlight=1 quirk for HP ProBook 4540s (rhbz#1025690) 2014-07-28 17:55:47 +02:00
0002-ALSA-hda-Add-a-fixup-for-Thinkpad-T540p.patch Backport two patches to fix T440s dock audio (rhbz 1101386) 2014-08-02 10:02:20 -04:00
acer-wmi-Add-Aspire-5741-to-video_vendor_dmi_table.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acer-wmi-Switch-to-acpi_video_unregister_backlight.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acpi-video-Add-an-acpi_video_unregister_backlight-fu.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acpi-video-Add-use_native_backlight-quirk-for-HP-Pro.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acpi-video-Add-use-native-backlight-quirk-for-the-Th.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acpi-video-Don-t-register-acpi_video_resume-notifier.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
acpi-video-Unregister-the-backlight-device-if-a-raw-.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
arm-beagle.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
arm-imx6-utilite.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
arm-tegra-usb-no-reset-linux33.patch
asus-wmi-Add-a-no-backlight-quirk.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
ath9k_rx_dma_stop_check.patch
backlight-Add-backlight-device-un-registration-notif.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
compile-fixes.patch
config-arm64 Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-arm-generic Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-armv7 Enable ISL12057 RTC for ARM (NetGear ReadyNAS) 2014-07-11 15:17:57 +01:00
config-armv7-generic Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-armv7-lpae Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-debug Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160) 2014-08-28 10:39:50 -04:00
config-generic Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160) 2014-08-28 10:39:50 -04:00
config-i686-PAE
config-local
config-no-extra
config-nodebug Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160) 2014-08-28 10:39:50 -04:00
config-powerpc32-generic Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-powerpc32-smp
config-powerpc64 Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-powerpc64p7 Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-powerpc-generic
config-s390x
config-x86_64-generic
config-x86-32-generic Linux v3.15.2 2014-06-30 14:20:50 -05:00
config-x86-generic Linux v3.15.2 2014-06-30 14:20:50 -05:00
cpupower.config
cpupower.service
crash-driver.patch
criu-no-expert.patch
defaults-acpi-video.patch
die-floppy-die.patch
disable-i8042-check-on-apple-mac.patch
disable-libdw-unwind-on-non-x86.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
drm-i915-hush-check-crtc-state.patch
drm-try-harder-to-avoid-regression-when-merging-mode.patch Re-add patch fixing spice resize (rhbz 1060327) 2014-07-25 08:11:18 -04:00
e1000e-Failure-to-write-SHRA-turns-on-PROMISC-mode.patch
eeepc-wmi-Add-no-backlight-quirk-for-Asus-H87I-PLUS-.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
hibernate-freeze-filesystems.patch
HID-rmi-do-not-fetch-more-than-16-bytes-in-a-query.patch
ideapad-laptop-Blacklist-rfkill-control-on-the-Lenov.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
input-kill-stupid-messages.patch
Input-wacom-Add-support-for-the-Cintiq-Companion.patch Add support for Wacom Cintiq Companion from Benjamin Tissoires (rhbz 1134969) 2014-09-04 08:49:18 -04:00
isofs-Fix-unbounded-recursion-when-processing-relocated-directories.patch CVE-2014-{5471,5472} isofs: Fix unbounded recursion when processing relocated directories 2014-08-27 15:52:39 -05:00
kernel.spec Add support for Wacom Cintiq Companion from Benjamin Tissoires (rhbz 1134969) 2014-09-04 08:49:18 -04:00
lis3-improve-handling-of-null-rate.patch
Makefile Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160) 2014-08-28 10:39:50 -04:00
makefile-after_link.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
Makefile.config
Makefile.release Don't enable CONFIG_DEBUG_WW_MUTEX_SLOWPATH (rhbz 1114160) 2014-08-28 10:39:50 -04:00
merge.pl
mod-extra.list
mod-extra.sh
mod-sign.sh
modsign-uefi.patch
namespaces-remount-fixes.patch CVE-2014-{5206,5207} ro bind mount bypass with namespaces (rhbz 1129662 1129669) 2014-08-13 09:13:40 -04:00
netlink-Only-check-file-credentials-for-implicit-des.patch
nfs3_list_one_acl-check-get_acl-result-with-IS_ERR_O.patch Fix NFSv3 oops (rhbz 1131551) 2014-08-19 12:12:21 -04:00
NFSv3-Fix-another-acl-regression.patch Fix NFSv3 ACL regression (rhbz 1132786) 2014-08-28 14:58:58 -04:00
no-pcspkr-modalias.patch
nouveau-Don-t-check-acpi_video_backlight_support-bef.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
nowatchdog-on-virt.patch
PatchList.txt
README.txt
rebase-notes.txt
revert-input-wacom-testing-result-shows-get_report-is-unnecessary.patch Revert commit that breaks Wacom Intuos4 from Benjamin Tissoires 2014-06-25 08:37:54 -04:00
s390-appldata-add-slab.h-for-kzalloc-kfree.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
samsung-laptop-Add-broken-acpi-video-quirk-for-NC210.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
sb-hibernate.patch
sched-fix-sched_setparam-policy-1-logic.patch Fix regression in sched_setparam (rhbz 1117942) 2014-07-24 10:42:00 -04:00
scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
secure-modules.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
silence-fbcon-logo.patch
silence-noise.patch
sources Linux v3.15.10 2014-08-14 11:09:54 -04:00
sysrq-secure-boot.patch
thinkpad_acpi-Add-mappings-for-F9-F12-hotkeys-on-X24.patch Linux v3.15.2 2014-06-30 14:20:50 -05:00
TODO
upstream-reverts.patch
weird-root-dentry-name-debug.patch
x509.genkey
xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch Disable streams on via XHCI (rhbz 1132666) 2014-08-27 09:33:32 -04:00

		Kernel package tips & tricks.
		~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The kernel is one of the more complicated packages in the distro, and
for the newcomer, some of the voodoo in the spec file can be somewhat scary.
This file attempts to document some of the magic.


Speeding up make prep
---------------------
The kernel is nearly 500MB of source code, and as such, 'make prep'
takes a while. The spec file employs some trickery so that repeated
invocations of make prep don't take as long.  Ordinarily the %prep
phase of a package will delete the tree it is about to untar/patch.
The kernel %prep keeps around an unpatched version of the tree,
and makes a symlink tree clone of that clean tree and than applies
the patches listed in the spec to the symlink tree.
This makes a huge difference if you're doing multiple make preps a day.
As an added bonus, doing a diff between the clean tree and the symlink
tree is slightly faster than it would be doing two proper copies of the tree.


build logs.
-----------
There's a convenience helper script in scripts/grab-logs.sh
that will grab the build logs from koji for the kernel version reported
by make verrel


config heirarchy.
-----------------
Instead of having to maintain a config file for every arch variant we build on,
the kernel spec uses a nested system of configs.  At the top level, is
config-generic. Add options here that should be present in every possible
config on all architectures.

Beneath this are per-arch overrides. For example config-x86-generic add
additional x86 specific options, and also _override_ any options that were
set in config-generic.

The heirarchy looks like this..

                           config-generic
                                 |
                         config-x86-generic
                         |                |
             config-x86-32-generic   config-x86-64-generic

An option set in a lower level will override the same option set in one
of the higher levels.


There exist two additional overrides, config-debug, and config-nodebug,
which override -generic, and the per-arch overrides. It is documented
further below.


debug options.
--------------
This is a little complicated, as the purpose & meaning of this changes
depending on where we are in the release cycle.
If we are building for a current stable release, 'make release' has
typically been run already, which sets up the following..
- Two builds occur, a 'kernel' and a 'kernel-debug' flavor.
- kernel-debug will get various heavyweight debugging options like
  lockdep etc turned on.

If we are building for rawhide, 'make debug' has been run, which changes
the status quo to:
- We only build one kernel 'kernel'
- The debug options from 'config-debug' are always turned on.
This is done to increase coverage testing, as not many people actually
run kernel-debug.

To add new debug options, add an option to _both_ config-debug and config-nodebug,
and also new stanzas to the Makefile 'debug' and 'release' targets.

Sometimes debug options get added to config-generic, or per-arch overrides
instead of config-[no]debug. In this instance, the options should have no
discernable performance impact, otherwise they belong in the debug files.