Commit graph

686 commits

Author SHA1 Message Date
Evgenii Shatokhin
cbfb2a9197 Updated to version 4.8.6 2016-11-01 11:46:09 +03:00
Evgenii Shatokhin
eced5244ca Do not meddle with 'Documentation/DocBook/media/*.b64' 2016-10-24 11:02:17 +03:00
Evgenii Shatokhin
0260460708 Updated to version 4.8.4, the first take
Besides the upstream kernel update to 4.8.x, the following changes were
made:

* BFQ was updated to v8r4
* AUFS was updated to version 4.8-20161010
2016-10-23 22:01:06 +03:00
Evgenii Shatokhin
bc7a217f8e Updated to version 4.7.9 2016-10-21 15:17:29 +03:00
Evgenii Shatokhin
4fc279050a Updated to version 4.7.8 2016-10-17 18:57:40 +03:00
Evgenii Shatokhin
4112dcc178 Updated to version 4.7.7 2016-10-08 21:41:05 +03:00
Evgenii Shatokhin
41c61e07eb Updated to version 4.7.6 2016-09-30 22:00:26 +03:00
Evgenii Shatokhin
b5c9cb5405 Updated to version 4.7.5 2016-09-25 16:30:25 +03:00
Evgenii Shatokhin
156e7930a5 Disable FW_LOADER_USER_HELPER_FALLBACK
It causes problems with WiFi:
http://forum.rosalab.ru/viewtopic.php?f=53&t=5372&p=76294#p76294
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1398458
2016-09-18 22:39:48 +03:00
Evgenii Shatokhin
72851070e5 Updated to version 4.7.4 2016-09-16 18:12:58 +03:00
Evgenii Shatokhin
aed506f599 Updated to version 4.7.3 2016-09-09 18:01:01 +03:00
Evgenii Shatokhin
d621eef633 Updated BFQ to v8r3
Changes since v8r2:

* BUGFIX:
Update weight-raising coefficient when switching from interactive to soft
real-time.
2016-09-09 17:55:10 +03:00
Evgenii Shatokhin
779aaf6307 Enabled support for SMB2, SMB3 as well as FS cache for CIFS 2016-09-05 18:00:59 +03:00
Evgenii Shatokhin
1ecfcf2705 Made "schedutil", "conservative" and "powersave" CPU governors built-in
They were built as cpufreq_* modules before, unlike "ondemand" and such.
Making them all builtin makes it easier experimenting with them.
2016-08-31 16:34:11 +03:00
Evgenii Shatokhin
7f79fc7648 Version of libcpupower.so changed to 0.0.1, take this into account 2016-08-23 21:35:47 +03:00
Evgenii Shatokhin
e7a7e32ae0 Revisited the patches and configs for the kernel 4.7.x 2016-08-23 16:24:13 +03:00
Evgenii Shatokhin
46b844c77d Updated to version 4.6.7 2016-08-17 14:05:08 +03:00
Evgenii Shatokhin
9e4cb88857 Removed unused stuff 2016-07-29 22:51:19 +03:00
Evgenii Shatokhin
47fe53318a Revisited the patch for memory sanitization
Based on the patch by Grsecurity:
https://grsecurity.net/test/grsecurity-3.1-4.6.5-201607272152.patch
2016-07-29 15:14:20 +03:00
Evgenii Shatokhin
5533da8c64 Updated to version 4.6.5 2016-07-29 13:47:55 +03:00
Evgenii Shatokhin
9d9b9b948c Revisited memory sanitization mechanism for 4.6.x
1. Got rid of statistics to simplify maintenance. Changing global
kernel structures is not a thing to take lightly.

2. Removed sanitization of pages. Starting from kernel 4.6, page
poisoning should be used instead. To enable it, set page_poison=on in
the boot options for the kernel.

3. The sanitization patch is now applied only if enhanced security is
enabled (disabled by default for ROSA Fresh, enabled for cert. builds).

You can also use "rpmbuild -ba --with enhanced_security <...>" to force
enable the feature.
2016-07-29 13:39:16 +03:00
Evgenii Shatokhin
16da528365 Require development files of libcrypto for the build: Perf may need them 2016-07-26 18:18:51 +03:00
Evgenii Shatokhin
870fa28828 Process the headers needed for SELinux 2016-07-26 17:11:01 +03:00
Evgenii Shatokhin
2704c491b7 Release up for a rebuild 2016-07-26 16:18:47 +03:00
Evgenii Shatokhin
fc4df3e1ea Build support for SELinux instead of TOMOYO
This helps unify the kernels for the ordinary systems and for the
certified systems a bit more.

SELinux components are built-in but disabled by default. To enable
SELinux, it should be enough to add "selinux=1" to the kernel options
at boot time (or in the bootloader configuration file).
2016-07-26 16:14:14 +03:00
Evgenii Shatokhin
7a379a810d Require more recent firmware 2016-07-26 13:23:48 +03:00
Evgenii Shatokhin
457c8e99e4 Enabled INTEGRITY and IMA
This helps unify the kernels for the ordinary systems and for the
certified systems a bit more.
2016-07-26 12:54:15 +03:00
Evgenii Shatokhin
61fcf120c7 Removed the conflicts with and obsoletes for the driver packages
It does not work. Say, kernel 4.6.x does not support broadcom-wl version
5.x. However, installing kernel 4.6.x should not remove that driver
because the user might have a different kernel installed that supports
it.

It would be cleaner if the driver packages specified the minimum required
kernel versions, "kernel >= x.y.z" (the kernel has the appropriate
"Provides" for that). Same for the maximum kernel versions supported by
the driver.

Similar for the obsoletes: this kernel may provide the listed drivers
but we cannot be sure about other kernels the user might have installed.
A safer route seems to be not to require dkms-* directly but rather -
via "Requires: kmod(xxx)". Again, it is not the kernel's responsibility
to keep track of all this.

While at it, cleaned up the spec a bit more.
2016-07-26 12:14:03 +03:00
Evgenii Shatokhin
7b27d594bb Do not build the RPM with the sources by default
If anyone needs the sources of our kernel, they can easily get an SRPM,
unpack it and run "rpmbuild -bp" to get the properly patched source
tree.

The configuration files for the different kernel flavours will also be
available in that source tree, in arch/x86/configs/.

Let us save a bit of a build time then and not build the RPM with the
sources by default.
2016-07-26 11:45:23 +03:00
Evgenii Shatokhin
32b2537bcc Removed some distro-specific descriptions and comments
Mandriva seems to use these kernels no longer, their ones are different.
ROSA may use other kernels as well.
2016-07-26 11:41:00 +03:00
Evgenii Shatokhin
e42e28c709 Keep the patches in the kernel project instead of a separate one
Earlier, the patches were kept in the respective branches of a separate
project, https://abf.io/soft/kernel-patches-and-configs. And before that -
in the custom tarballs.

Now all the patches are kept here along with the spec file and are
applied the default way rather than by separate scripts. This should
make the maintenance of the patches as well as the experiments with the
new ones a lot easier.

The previous scheme seemed to offer a bit more flexibility (different
patch sets for different cases) at the cost of maintenance. But as it
turned out,  that flexibility was not worth it and was rarely used,
at most.
2016-07-26 11:24:24 +03:00
Evgenii Shatokhin
09495972a4 Get rid of %kgit and similar stuff
The intent behind these things was to simplify building of pre-release
kernels and such. Over time, it became too cumbersome to use though.

Let us get rid of all that stuff and make the spec a bit cleaner.
2016-07-22 22:05:03 +03:00
Evgenii Shatokhin
a09fd0a0d4 Fixed the glob expression for the .config files 2016-07-22 21:33:33 +03:00
Evgenii Shatokhin
05855ebd63 Do not include include/soc into devel RPMs, it is for ARM only 2016-07-22 16:51:18 +03:00
Evgenii Shatokhin
ac9c3f22c5 Clean up after the config files have been generated
Otherwise these no longer needed configuration files get installed,
which is not good.
2016-07-22 16:37:05 +03:00
Evgenii Shatokhin
6b2dbb8ee0 Removed more ARM-specific stuff 2016-07-22 15:04:54 +03:00
Evgenii Shatokhin
f30b4e83b7 Fixed building of the RPM with the sources
It needs a valid .config file for the kernel, so use the config for
nrj-desktop for that.
2016-07-22 13:50:32 +03:00
Evgenii Shatokhin
7427d5561d Explicitly specify 'x86' in the path to bzImage 2016-07-21 17:28:38 +03:00
Evgenii Shatokhin
6e763e9b52 Arrange seamless updates of the older PAE kernels
kernel*-latest packages now also obsolete & provide kernel*-pae*-latest.
This way, the older kernel*-pae*-latest packages will be properly
replaced with the appropriate new packages in the users' systems.
2016-07-21 16:09:18 +03:00
Evgenii Shatokhin
ec9b2ccf64 Minor fixes for the builds with debug info enabled
"rpmbuild -ba --with debug kernel.spec" can now be used to build the
kernel with debug info.
2016-07-21 15:59:26 +03:00
Evgenii Shatokhin
cf2326e1e1 Cosmetic 2016-07-21 15:58:13 +03:00
Evgenii Shatokhin
05a8c49046 Revisited the set of kernel flavours and the generation of config files
Until now, the build system for the kernel supported a number of
flavours: nrj and non-nrj ones, desktop-, laptop-, server- and
netbook-oriented, etc.

It turned out over the years, however, that our users mostly need the
following:

* a kernel to use on the desktops (home and office use) with reasonable
  default settings for performance and responsiveness;
* a kernel for laptops, with a bit more emphasis on power consumption.

Other variants were rarely used. We also did not have enough time to
properly support all these.

Besides, the kernels for ARM and other architectures need a somewhat
different build process than for x86. So, they are better off to be in
separate ABF projects, even if they are needed. No signs of ROSA on ARM
yet, btw.

So, I kept only nrj-desktop and nrj-laptop flavours and only x86.

Non-PAE systems also seem to be rare now, so I enabled PAE by default
for the 32-bit kernels. Non-PAE kernels are no longer built. If they are
needed, we may use a separate git branch or an ABF project for that.

To simplify debugging, maintenance and experimentation with the kernel
builds further, I revisited the process of preparing the kernel
configuration files. The goal is to get rid of a separate git repo with
the default configs (kernel-patches-and-configs) and keep everything in
this project.

The default config files are now kept here. For x86_64:
* kernel-x86_64.config contains the options for both nrj-desktop and
  nrn-laptop flavours;
* kernel-{nrj_desktop|nrj_laptop}-x86_64.config files contain the
  flavour-specific options.

This way, it is easier to track which config options changed when,
easier to experiment with the custom configs and so on.

The kernel will be built with debug info if rpmbuild is called with
"--with debug".
2016-07-21 13:56:25 +03:00
Evgenii Shatokhin
f2aa050ba4 Updated to version 4.6.3 2016-06-25 19:48:19 +03:00
Evgenii Shatokhin
1e672fdde1 Set version to 4.6.2 2016-06-13 16:47:16 +03:00
Evgenii Shatokhin
3eb54f5393 Revisited mrproper patch for the kernel 4.6 2016-06-13 15:31:59 +03:00
Evgenii Shatokhin
eb018d749d Added the files for the kernel 4.6 2016-06-13 15:31:29 +03:00
Evgenii Shatokhin
05f8225876 Updated to version 4.5.7 2016-06-09 13:16:00 +03:00
Evgenii Shatokhin
3339476d72 Updated to version 4.5.5 2016-05-19 15:47:49 +03:00
Evgenii Shatokhin
0721f8787e Updated to version 4.5.4 2016-05-14 15:35:28 +03:00
Evgenii Shatokhin
9ff16ac3df Added a missing file for Perf to the list 2016-05-11 11:52:53 +03:00