Skip to content

Commit 0b3d29d

Browse files
zohlMic92
authored andcommittedJul 18, 2017
linux_samus_4_12: init at 4.12.2
Co-authored-by: Nikolay Amiantov <ab@fmap.me> fixes #26038
1 parent dcdbbbb commit 0b3d29d

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ncurses, ... } @ args:
2+
3+
assert stdenv.is64bit;
4+
5+
import ./generic.nix (args // rec {
6+
version = "4.12.2";
7+
extraMeta.branch = "4.12-2";
8+
9+
src =
10+
let upstream = fetchFromGitHub {
11+
owner = "raphael";
12+
repo = "linux-samus";
13+
rev = "v${extraMeta.branch}";
14+
sha256 = "1dr74i79p8r13522w2ppi8gnjd9bhngc9d2hsn91ji6f5a8fbxx9";
15+
}; in "${upstream}/build/linux";
16+
17+
features.iwlwifi = true;
18+
features.efiBootStub = true;
19+
features.needsCifsUtils = true;
20+
features.netfilterRPFilter = true;
21+
22+
extraMeta.hydraPlatforms = [];
23+
} // (args.argsOverride or {}))

‎pkgs/top-level/all-packages.nix

+18
Original file line numberDiff line numberDiff line change
@@ -12108,6 +12108,20 @@ with pkgs;
1210812108
];
1210912109
};
1211012110

12111+
12112+
linux_samus_4_12 = callPackage ../os-specific/linux/kernel/linux-samus-4.12.nix {
12113+
kernelPatches =
12114+
[ kernelPatches.bridge_stp_helper
12115+
kernelPatches.p9_fixes
12116+
# See pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/README.md
12117+
# when adding a new linux version
12118+
kernelPatches.cpu-cgroup-v2."4.11"
12119+
kernelPatches.modinst_arg_list_too_long
12120+
];
12121+
};
12122+
12123+
linux_samus_latest = linux_samus_4_12;
12124+
1211112125
linux_chromiumos_3_18 = callPackage ../os-specific/linux/kernel/linux-chromiumos-3.18.nix {
1211212126
kernelPatches = [ kernelPatches.chromiumos_Kconfig_fix_entries_3_18
1211312127
kernelPatches.chromiumos_no_link_restrictions
@@ -12312,6 +12326,10 @@ with pkgs;
1231212326

1231312327
linux_grsec_server_xen = linux_grsec_nixos;
1231412328

12329+
# Samus kernels
12330+
linuxPackages_samus_4_12 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_samus_4_12);
12331+
linuxPackages_samus_latest = recurseIntoAttrs (linuxPackagesFor pkgs.linux_samus_latest);
12332+
1231512333
# ChromiumOS kernels
1231612334
linuxPackages_chromiumos_3_18 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_chromiumos_3_18);
1231712335
linuxPackages_chromiumos_latest = recurseIntoAttrs (linuxPackagesFor pkgs.linux_chromiumos_latest);

0 commit comments

Comments
 (0)
Please sign in to comment.