17 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
cd97cdf642 Build scripts: add new variables, update MARCH.
Changes to all build scripts:
 * all remaining occurences of 'make -j N' replaced by
   'make -j $(nproc)'
 * obsolete 'atom' machine architecture replaced with
   'bonnell', but both new and old MARCH strings are kept
    for compatibility
 * optimize TMP variable setting
 * add OUTDIR variable (default to $TMP) that defines output
   directory for package; the goal is to simplify building
   in containers

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2022-02-18 19:40:50 +01:00
Michal Cieslakiewicz
c9892a0f03 k/kmod-i2c-ch341: improve versioning and building.
Module versioning schema changed, now it is DATE_COMMIT_KERNEL.
Allow to build module against any kernel source specified by KERNSRC
environment variable.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2022-01-30 18:36:09 +01:00
Michal Cieslakiewicz
167dbce1f8 k/kmod-nvidia: enable building 390.144 with kernel 5.16.
Rebase and fix patch to successfully build module for kernel 5.16.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2022-01-13 00:33:28 +01:00
Michal Cieslakiewicz
1abf1aa5b2 k/kmod-nvidia: improve building 390.144 with kernel 5.15.
Building module for kernel 5.15 requires the same patch as
for previous one (5.14), but at the same time it generates
a lot of warnings with gcc 11.2.
Remedy for these warnings is put atop existing 5.14 fix and
combined into one patch that makes compilation successful
and with no warnings at all.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-11-22 23:58:28 +01:00
Michal Cieslakiewicz
82ec687d17 k/kmod-nvidia: enable building 390.144 with kernel 5.14.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-08-31 17:22:37 +02:00
Michal Cieslakiewicz
9cd1d71cd6 Nvidia legacy driver packages updated to version 390.144.
l/nvidia-driver and k/kmod-nvidia packages updated to 390.144.
Patch for kernel 5.13 is no longer needed.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-08-20 23:55:14 +02:00
Michal Cieslakiewicz
33986595fe k/kmod-nvidia: enable building 390.143 with kernel 5.13.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-08-16 13:48:02 +02:00
Michal Cieslakiewicz
bdcd7d5900 Nvidia legacy driver packages updated to version 390.143.
Nvidia legacy binary driver updated to version 390.143.

Affected packages:

  l/nvidia-driver - no changes to build script, new package
  provides newer versions of libraries included in 390.141
  only.

  k/kmod-nvidia - this kernel driver builds successfully for
  kernels 5.11 with no patches required.

Performance and suspend/resume tested - works as expected.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-04-20 12:42:33 +02:00
Michal Cieslakiewicz
9dadc95ce9 k/kmod-nvidia: enable building for kernel 5.11.
Add patch to allow successful compilation with kernel version 5.11.
Build script logic improved to automatically select and apply kernel
version-specific patches located in patches/linux-X.Y directory.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-02-24 18:11:01 +01:00
Michal Cieslakiewicz
54cad462cc Nvidia legacy driver packages updated to version 390.141.
Nvidia legacy binary driver updated to version 390.141.

Affected packages:

  l/nvidia-driver - no changes to build script, new package
  provides newer versions of libraries included in 390.138
  only.

  k/kmod-nvidia - this kernel driver builds successfully for
  kernels 5.10 with no patches required, so we going back to
  vanilla module code and obsolete all 390.138 fixes for 5.10.
  Performance and suspend/resume tested - works as expected.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-01-08 17:59:37 +01:00
Michal Cieslakiewicz
7853d2f1be k/kmod-nvidia: minor fixes, compatibility with kernels up to 5.10.
This time kernel module is patched with selected fixes from Debian Unstable.
Confirmed to compile successfully with kernels 5.4, 5.9 and 5.10.
For latest 5.10.1 kernel, suspend/resume finally appears to work correctly.
Commit provides minor fixes in build script as well.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-12-18 20:21:41 +01:00
Michal Cieslakiewicz
7b0913d649 l/nvidia-driver: nvidia legacy driver added, version 390.138.
This package contains libraries, binaries, config files and X.org
support - basically everything except kernel integration, which
itself has been moved to k/kmod-nvidia package.
Package building process does not perform any sort of installation.
Some files (like CUDA binaries) have been removed.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-11-23 15:50:36 +01:00
Michal Cieslakiewicz
65d88f5096 k/kmod-nvidia: make patching more flexible.
Auto-apply correct patch for specific kernel version - if one is found.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-11-19 18:09:41 +01:00
Michal Cieslakiewicz
2c163641ba Revert "k/kmod-nvidia: added compatibility with kernel 5.9."
Driver is unstable. It resets at suspend/resume killing desktop session.
Have to wait for official support for 5.9.
2020-11-15 13:29:41 +01:00
Michal Cieslakiewicz
0b28ff50ed k/kmod-nvidia: added compatibility with kernel 5.9.
Module now successfully compiles for kernels 5.9.x.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-11-14 18:00:42 +01:00
Michal Cieslakiewicz
0e917c8775 k/kmod-nvidia: nvidia kernel modules added, version 390.138.
These are kernel modules from Nvidia proprietary driver, legacy version
(for older cards, supported until 2022). CUDA is not supported. Fix for
5.8 kernels is included. Module taints kernel.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-10-24 10:54:27 +02:00
Michal Cieslakiewicz
e9571a1fa6 Initial commit.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-04-16 19:31:17 +02:00