kernel: add beagleboard.org kernel

And update the existing platform variant to use it
This commit is contained in:
Drew Hess 2017-11-09 08:28:14 -08:00 committed by Tuomas Tynkkynen
parent dfa0bcd9e2
commit 67ba83a934
3 changed files with 36 additions and 1 deletions

View File

@ -462,7 +462,7 @@ rec {
beaglebone = armv7l-hf-multiplatform // {
name = "beaglebone";
kernelBaseConfig = "omap2plus_defconfig";
kernelBaseConfig = "bb.org_defconfig";
kernelAutoModules = false;
kernelExtraConfig = ""; # TBD kernel config
kernelTarget = "zImage";

View File

@ -0,0 +1,25 @@
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
let
modDirVersion = "4.9.59";
tag = "r73";
in
import ./generic.nix (args // rec {
version = "${modDirVersion}-ti-${tag}";
inherit modDirVersion;
src = fetchFromGitHub {
owner = "beagleboard";
repo = "linux";
rev = "${version}";
sha256 = "1kzbbaqmzgvfls1v9jir2ck9vcdd774mq474vhr5x6dqjnnb5kg9";
};
kernelPatches = args.kernelPatches;
features = {
efiBootStub = false;
} // (args.features or {});
extraMeta.hydraPlatforms = [];
} // (args.argsOverride or {}))

View File

@ -12414,6 +12414,15 @@ with pkgs;
klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
linux_beagleboard = callPackage ../os-specific/linux/kernel/linux-beagleboard.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.p9_fixes
kernelPatches.cpu-cgroup-v2."4.9"
kernelPatches.modinst_arg_list_too_long
];
};
linux_hardened_copperhead = callPackage ../os-specific/linux/kernel/linux-hardened-copperhead.nix {
kernelPatches = with kernelPatches; [
kernelPatches.bridge_stp_helper
@ -12682,6 +12691,7 @@ with pkgs;
linux_latest = linuxPackages_latest.kernel;
# Build the kernel modules for the some of the kernels.
linuxPackages_beagleboard = linuxPackagesFor pkgs.linux_beagleboard;
linuxPackages_hardened_copperhead = linuxPackagesFor pkgs.linux_hardened_copperhead;
linuxPackages_mptcp = linuxPackagesFor pkgs.linux_mptcp;
linuxPackages_rpi = linuxPackagesFor pkgs.linux_rpi;