Skip to content

Commit

Permalink
kernel: add beagleboard.org kernel
Browse files Browse the repository at this point in the history
And update the existing platform variant to use it
  • Loading branch information
Drew Hess authored and dezgeg committed Nov 9, 2017
1 parent dfa0bcd commit 67ba83a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/systems/platforms.nix
Expand Up @@ -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";
Expand Down
25 changes: 25 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-beagleboard.nix
@@ -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 {}))
10 changes: 10 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 67ba83a

Please sign in to comment.