Skip to content

Commit 67ba83a

Browse files
Drew Hessdezgeg
Drew Hess
authored andcommittedNov 9, 2017
kernel: add beagleboard.org kernel
And update the existing platform variant to use it
1 parent dfa0bcd commit 67ba83a

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed
 

‎lib/systems/platforms.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ rec {
462462

463463
beaglebone = armv7l-hf-multiplatform // {
464464
name = "beaglebone";
465-
kernelBaseConfig = "omap2plus_defconfig";
465+
kernelBaseConfig = "bb.org_defconfig";
466466
kernelAutoModules = false;
467467
kernelExtraConfig = ""; # TBD kernel config
468468
kernelTarget = "zImage";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
2+
3+
let
4+
modDirVersion = "4.9.59";
5+
tag = "r73";
6+
in
7+
import ./generic.nix (args // rec {
8+
version = "${modDirVersion}-ti-${tag}";
9+
inherit modDirVersion;
10+
11+
src = fetchFromGitHub {
12+
owner = "beagleboard";
13+
repo = "linux";
14+
rev = "${version}";
15+
sha256 = "1kzbbaqmzgvfls1v9jir2ck9vcdd774mq474vhr5x6dqjnnb5kg9";
16+
};
17+
18+
kernelPatches = args.kernelPatches;
19+
20+
features = {
21+
efiBootStub = false;
22+
} // (args.features or {});
23+
24+
extraMeta.hydraPlatforms = [];
25+
} // (args.argsOverride or {}))

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

+10
Original file line numberDiff line numberDiff line change
@@ -12414,6 +12414,15 @@ with pkgs;
1241412414

1241512415
klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
1241612416

12417+
linux_beagleboard = callPackage ../os-specific/linux/kernel/linux-beagleboard.nix {
12418+
kernelPatches =
12419+
[ kernelPatches.bridge_stp_helper
12420+
kernelPatches.p9_fixes
12421+
kernelPatches.cpu-cgroup-v2."4.9"
12422+
kernelPatches.modinst_arg_list_too_long
12423+
];
12424+
};
12425+
1241712426
linux_hardened_copperhead = callPackage ../os-specific/linux/kernel/linux-hardened-copperhead.nix {
1241812427
kernelPatches = with kernelPatches; [
1241912428
kernelPatches.bridge_stp_helper
@@ -12682,6 +12691,7 @@ with pkgs;
1268212691
linux_latest = linuxPackages_latest.kernel;
1268312692

1268412693
# Build the kernel modules for the some of the kernels.
12694+
linuxPackages_beagleboard = linuxPackagesFor pkgs.linux_beagleboard;
1268512695
linuxPackages_hardened_copperhead = linuxPackagesFor pkgs.linux_hardened_copperhead;
1268612696
linuxPackages_mptcp = linuxPackagesFor pkgs.linux_mptcp;
1268712697
linuxPackages_rpi = linuxPackagesFor pkgs.linux_rpi;

0 commit comments

Comments
 (0)
Please sign in to comment.