kernel: add beagleboard.org kernel
And update the existing platform variant to use it
This commit is contained in:
parent
dfa0bcd9e2
commit
67ba83a934
|
@ -462,7 +462,7 @@ rec {
|
||||||
|
|
||||||
beaglebone = armv7l-hf-multiplatform // {
|
beaglebone = armv7l-hf-multiplatform // {
|
||||||
name = "beaglebone";
|
name = "beaglebone";
|
||||||
kernelBaseConfig = "omap2plus_defconfig";
|
kernelBaseConfig = "bb.org_defconfig";
|
||||||
kernelAutoModules = false;
|
kernelAutoModules = false;
|
||||||
kernelExtraConfig = ""; # TBD kernel config
|
kernelExtraConfig = ""; # TBD kernel config
|
||||||
kernelTarget = "zImage";
|
kernelTarget = "zImage";
|
||||||
|
|
25
pkgs/os-specific/linux/kernel/linux-beagleboard.nix
Normal file
25
pkgs/os-specific/linux/kernel/linux-beagleboard.nix
Normal 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 {}))
|
|
@ -12414,6 +12414,15 @@ with pkgs;
|
||||||
|
|
||||||
klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
|
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 {
|
linux_hardened_copperhead = callPackage ../os-specific/linux/kernel/linux-hardened-copperhead.nix {
|
||||||
kernelPatches = with kernelPatches; [
|
kernelPatches = with kernelPatches; [
|
||||||
kernelPatches.bridge_stp_helper
|
kernelPatches.bridge_stp_helper
|
||||||
|
@ -12682,6 +12691,7 @@ with pkgs;
|
||||||
linux_latest = linuxPackages_latest.kernel;
|
linux_latest = linuxPackages_latest.kernel;
|
||||||
|
|
||||||
# Build the kernel modules for the some of the kernels.
|
# 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_hardened_copperhead = linuxPackagesFor pkgs.linux_hardened_copperhead;
|
||||||
linuxPackages_mptcp = linuxPackagesFor pkgs.linux_mptcp;
|
linuxPackages_mptcp = linuxPackagesFor pkgs.linux_mptcp;
|
||||||
linuxPackages_rpi = linuxPackagesFor pkgs.linux_rpi;
|
linuxPackages_rpi = linuxPackagesFor pkgs.linux_rpi;
|
||||||
|
|
Loading…
Reference in a new issue