Commit graph

107 commits

Author SHA1 Message Date
Eugene Shatokhin
591f61b95c Updated to version 4.1.7 2015-09-14 15:52:22 +03:00
Eugene Shatokhin
15683e9b64 Updated to version 4.1.6 2015-08-17 19:09:32 +03:00
Eugene Shatokhin
b76c5b5a93 Updated to version 4.1.5 2015-08-11 11:11:09 +03:00
Eugene Shatokhin
70d7def0d2 Updated to version 4.1.4 2015-08-04 18:13:45 +03:00
Eugene Shatokhin
84f1c1c832 Updated to version 4.1.3 2015-07-22 20:11:17 +03:00
Eugene Shatokhin
27c769f334 Updated to version 4.1.2 2015-07-12 18:48:14 +03:00
Eugene Shatokhin
d558706bc9 Use the branch name rather than tag for the patchset and configs
The tag had to contain both the version and the release of the package.
This is inconvenient when mass rebuilds are in action: the release is
incremented automatically then.

Using the top of the appropriate branch is safer. It is also possible to
specify any other revision, so this scheme is more flexible as well.
2015-07-08 15:27:53 +03:00
Eugene Shatokhin
a6ca9ce2cf Prepared the initial variant of the kernel 4.1.1 2015-07-01 16:47:47 +03:00
Eugene Shatokhin
d62eb50f9d Updated to version 4.0.7 2015-06-30 15:25:12 +03:00
Eugene Shatokhin
10ef3c93f1 Updated to version 4.0.6 with additional changes needed for QEMU VMs
See http://bugs.rosalinux.ru/show_bug.cgi?id=5649#c6 for details.
2015-06-23 14:01:32 +03:00
Eugene Shatokhin
550e20dccb Updated to version 4.0.5; updated BFQ to v7r8 2015-06-08 13:07:23 +03:00
Eugene Shatokhin
d2a6992af7 Updated to version 4.0.4; changed the location of the patchset, etc.
It is no longer required to upload each archive
kernel-patches-and-configs.* to FileStore. They are now retrieved from
https://abf.io/soft/kernel-patches-and-configs/ according to the git
tags.

If you are going to build kernel version X.Y.Z release R, you need to
tag the appropriate commit in kernel-patches-and-configs git repo as
"X.Y.Z-R", without quotes.

For experiments and testing, one may still upload the archives with the
pacthes and configs to FileStore and probably edit the URL in SOURCE100
in the spec.
2015-05-20 11:37:44 +03:00
Eugene Shatokhin
c4dad57ac5 Updated to version 4.0.3 2015-05-14 16:30:16 +03:00
Eugene Shatokhin
bbc7fd35fa Updated to version 4.0.2 + enabled early loading of CPU microcode 2015-05-08 11:19:55 +03:00
Eugene Shatokhin
6c27b7beff Updated to version 4.0.1; enabled CONFIG_SPI++ 2015-04-30 18:22:50 +03:00
Eugene Shatokhin
8b9e6f4f94 Revisited the patchset, scripts and spec to build kernel 4.0
Most external components have been removed to simplify maintenance.

The following ones are kept because they are more important and/or
maintained well in upstream:
- BFQ
- AUFS
- ndiswrapper
- several bug fixes

reiser4 is kept too but disabled by default until its maintainers update
it for kernel 4.x.
2015-04-28 16:36:29 +03:00
Eugene Shatokhin
c7bea583ca Fix removal of the old initrd images 2015-04-23 15:41:41 +03:00
Eugene Shatokhin
ae6ea95100 Remove stale initrd images 2015-04-23 12:11:47 +03:00
Eugene Shatokhin
ba72441225 Call depmod again to make sure all installed modules can be found
Without it, the DKMS-modules built before might have been missed.

For the same reason, kernel-<...>-devel package is now in Requires(post)
for kernel-<...>. The former must be installed completely before we call
depmod for the latter.
2015-04-23 11:54:19 +03:00
Eugene Shatokhin
3ea731f5fe Release up 2015-04-22 15:12:12 +03:00
Eugene Shatokhin
8b2a335235 Use "dkms uninstall" rather than "dkms remove"
dkms remove may be too heavy as it may make it impossible to build the
modules for the kernels that will be installed some time after.
2015-04-22 15:09:58 +03:00
Eugene Shatokhin
b23ab7b0a0 Do not update GRUB configs explicitly
File triggers from grub2 package already handle this.
2015-04-22 15:07:16 +03:00
Eugene Shatokhin
b0fd2a9614 Merge branch 'master' into rosa2014.1 2015-04-22 10:42:59 +03:00
Eugene Shatokhin
b3ad450eba Try harder to clean up after package uninstallation 2015-04-22 10:42:42 +03:00
Eugene Shatokhin
7cc486719f Always regenerate initrd
Even if it already exists. This may happen if kernel-<...>-devel is
installed first, triggers rebuild of DKMS modules and some of these
request remaking of initrd. The initrd that is created then will be
non-functional. But when the user installs kernel-<...> package, that
defunct initrd will be replaced with a working one here.
2015-04-22 10:35:53 +03:00
Eugene Shatokhin
acfd41594c Release up 2015-04-21 20:58:37 +03:00
Eugene Shatokhin
3f8c750033 More fixes for the removal of DKMS-built modules 2015-04-21 20:54:48 +03:00
Eugene Shatokhin
1f89ac43b5 Fix creation of the symlinks + some minor fixes 2015-04-21 19:03:58 +03:00
Eugene Shatokhin
3e9fece6bd DKMS operations should be tied to kernel-<...>-devel packages
Before this commit, DKMS was called to build and install the external
kernel modules when kernel-<flavour> packages were installed, and
only if the development files were also available.

This is error-prone because there is no guarantee the -devel package
creates the necessary files before. As a result, some proprietary
drivers could not be built when the kernel is updated.

This is an attempt to fix the problem. Because kernel-<flavour>-devel
package is enough to build kernel modules with DKMS, I moved these build
and install operations to kernel-<flavour>-devel from kernel-<flavour>.
Some of the related code was simplified as well.
2015-04-21 15:35:28 +03:00
Eugene Shatokhin
c0342f35bc Updated to 3.14.39 2015-04-20 21:14:22 +03:00
Eugene Shatokhin
337110ee34 Remove unnecessary files from /usr/include
.install, ..install.cmd - see
http://bugs.rosalinux.ru/show_bug.cgi?id=630
2015-04-17 14:53:53 +03:00
Eugene Shatokhin
8ecd473a65 kernel-<flavour> packages should suggest kernel-<flavour>-devel as well
We still use DKMS and provide DKMS-packages with widely used proprietary
drivers.

Although we do not recommend installing kernel-<flavour> package without
the corresponding devel package, some users still do so no matter what.
They get problems then due to the proprietary drivers failing to rebuild,
etc.

kernel-<flavour> now has kernel-<flavour>-devel in "Suggests:" to
mitigate this.
2015-04-16 18:27:39 +03:00
Eugene Shatokhin
30244cdc05 Updated to version 3.14.38 2015-04-16 18:12:11 +03:00
Eugene Shatokhin
8e8d20c66a Updated to version 3.14.37
Besides the all-around fixes from the upstream, a patch was added
to fix Kprobes on x86-64:
http://www.spinics.net/lists/kernel/msg1941309.html
2015-04-10 11:47:54 +03:00
Eugene Shatokhin
e6f2856989 Make sure cpupower starts after the list of governors is available
On EeePC 1015 PED (in Live mode), cpupower.service seemed to start too
early, before /sys/devices/.../scaling_available_governors was there,
and failed as a result. There were no such problems on faster machines,
but still.

Now cpupower.service will start only when 'scaling_available_governors'
file is available. cpupower.path unit handles this. If CPU frequency
scaling is not supported the file will never appear and cpupower.service
will not start at all, which is natural.
2015-03-17 20:53:12 +03:00
Eugene Shatokhin
e8480bfda5 Add the architecture to the kernel version string
Might help with http://bugs.rosalinux.ru/show_bug.cgi?id=4823
2015-03-16 18:42:29 +03:00
Eugene Shatokhin
9cc5cc94af build: Properly replace dashes with underscores (should fix bug #5071) 2015-03-13 19:13:08 +03:00
Eugene Shatokhin
ecc4aae2dc cpupower: Select the governor at start time rather than during install
Should fix bug #4810.

cpupower will now select the governor automatically during the start of
the service, based on what is available. This can be overridden with
the variables in /etc/sysconfig/cpupower (see the comments there).
2015-03-13 17:29:40 +03:00
Eugene Shatokhin
97fa969d8a Merge branch 'rosa2014.1' of https://abf.io/import/kernel into rosa2014.1 2015-02-19 18:14:37 +03:00
Andrey Bondrov
5e1d49b570 Replace with version from current 2015-02-16 18:26:30 +10:00
Eugene Shatokhin
2aba5664b9 Upstream update to version 3.14.33 2015-02-11 12:16:56 +03:00
Eugene Shatokhin
9af0b90cf1 Revisited the kernel config based on what Fedora 21 and Ubuntu 14.10 do
1. Made ACPI stuff built-in:
'm' => 'y'
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y

not set => 'y'
CONFIG_ACPI_HOTPLUG_MEMORY=y (x64 only)

2. Enabled support for security attributes (used by SElinux, etc.) in 2
more file systems:
CONFIG_9P_FS_SECURITY=y
CONFIG_F2FS_FS_SECURITY=y (Fedora 21 does not build F2FS, by the way.)

3. Make the core DM-related components built-in, enable RAID
detection at boot:
CONFIG_BLK_DEV_DM=y
CONFIG_MD_AUTODETECT=y

4. Unset CONFIG_EMBEDDED. These kernels are not for embedded systems
anyway.

5. Make evdev input driver built-in:
CONFIG_INPUT_EVDEV=y

6. Increase the memory buffer to store the kernel log from 128Kb to
256Kb. This will allow for more messages to be stored there, good for
bug reporting.
CONFIG_LOG_BUF_SHIFT=18

7. No need to print the kernel logs to a printer directly:
Unset CONFIG_LP_CONSOLE.

8. Disable "opportunistic suspend" for now, it is still an experimental
feature.
Unset CONFIG_PM_AUTOSLEEP.
2015-02-09 21:03:28 +03:00
Eugene Shatokhin
85fcd22a4c cpupower: Use 'performance' instead of '<not_supported>' on failure
At least, it will be easier to start the service this way, although
this does not solve bug #4810 yet.
2015-02-09 21:00:36 +03:00
Eugene Shatokhin
1f160d2b5e Updated to version 3.14.31 with a couple more patches
Apart from the update to version 3.14.31 itself, the following changes
were made:
* BFQ was updated to version 7r7.
* arch-x86-kernel-tsc-hide-warning.patch was removed as the issue had
  been addressed in the mainline.
* A patch was added to increase inotify max_user_watch limit to 32768
  (bug 4791).
* A patch was added that might help fix bug 4613 (no output to an
  external monitor on HP EliteBook 820 G1).
2015-01-31 17:44:01 +03:00
Eugene Shatokhin
4fbfc2828f Fixed generation of configs for 32-bit x86 2015-01-14 20:13:23 +03:00
Eugene Shatokhin
077425adaf Make sure the makefiles, etc., for 3rdparty are generated 2015-01-14 18:52:39 +03:00
Eugene Shatokhin
999c40f045 Renamed .spec file to kernel.spec to unify with other projects 2015-01-14 11:45:49 +03:00
Eugene Shatokhin
2216dad38b Unify the specs for 2014.1 and the future cert. systems; revisit configs
The source code of the kernel and the patchset are the same for both
2014.1 and the "current" platform, so are the scripts used during the
build.

1.
I updated create_configs-withBFQ so that it creates different kernel
configuration files depending on its --with-enhanced-security parameter.

If --with-enhanced-security is set,
* SELinux is used instead of TOMOYO;
* Memory sanitization facilities are compiled in (but are disabled by
  default - should be enabled at boot time with boot options
  pax_sanitize_slab=1 paxsanitize_pages=1).

Similar to other packages, I added a conditional in the spec that
enables enhanced security features when building for 'current' (i.e. for
the future cert. systems) and leaves everithing as is.

Besides, I fixed create_configs-withBFQ: even if --user-cpu=... was
given, it still generated the configs for all architectures, a waste
of time. Now it creates the config only for the architecture
corresponding to --user-cpu=... if it is set and for all otherwise.
----------------

The changes in the configs listed below are for i586 and x86_64 only.

2.
Added the following to make lxc-checkconfig happy:
* CONFIG_MEMCG=y
* CONFIG_MEMCG_SWAP=y
* CONFIG_MEMCG_KMEM=y

3.
Added the following options that 'make oldconfig' adds anyway during the
build:
* CONFIG_MM_OWNER=y
* CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
* CONFIG_IOSF_MBI=m
* CONFIG_LRU_CACHE=m
* (x86_64 only) CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y

4.
Removed the following options (they are no longer available in 3.14):
* CONFIG_CPU_FREQ_TABLE
* CONFIG_IP_NF_MATCH_PSD
* CONFIG_IP_NF_TARGET_IFWLOG

5.
Increased CONFIG_SERIAL_8250_NR_UARTS from 4 to 8: some of our users
have unusual boards with more than 4 serial ports.

Also added CONFIG_SERIAL_8250_MANY_PORTS=y: needed for these users too.

6.
Unset CONFIG_DRM_RADEON_UMS: it has been deprecated for quite some time
and was seemingly ignored. 'radeon' driver the kernel provides works
via KMS rather than UMS now and its UMS support is obsolete and buggy.

7.
Finally dropped support for Mach64 GPUs. If there are enough users with
such hardware, we could enable it is some kernel flavour in contrib
(project: https://abf.io/import/kernel-other/).

8.
Changed CONFIG_FB_TILEBLITTING to "y": 'make oldconfig' already does this
during the kernel build because it is needed for Matrox GPUs
(CONFIG_FB_MATROX). BTW, some of our users do seem to have Matrox GPUs.

Consequently, I had to disable CONFIG_FB_CON_DECOR: it needs
CONFIG_FB_TILEBLITTING unset.

9.
Changed
  CONFIG_X86_VERBOSE_BOOTUP=n
to
  # CONFIG_X86_VERBOSE_BOOTUP is not set

10.
(x86_64 only)

Changed
  CONFIG_X86_ESPFIX32=y
to
  CONFIG_X86_ESPFIX64=y

This is what 'make oldconfig' does with that option anyway.
2015-01-13 19:32:41 +03:00
Eugene Shatokhin
158dd70776 Added missing escape for $ 2014-12-12 10:59:34 +03:00
Eugene Shatokhin
fa383e5c25 Get rid of the dependency on bootloader-utils
And, indirectly, - on drakxtools-backed, namely, on bootloader-config.
The appropriate operations can be done in the .spec as well.
2014-12-11 19:36:25 +03:00