mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-26 03:29:44 +01:00
add hydra jobset to build kernel for raspberry pi 5
This commit is contained in:
parent
cf737e2eba
commit
3a0fabdeeb
3 changed files with 23 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
||||||
{ lib, pkgs, config, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
linux_rpi5 = pkgs.linux_rpi4.override {
|
inherit (import ./packages.nix {inherit lib pkgs;}) linux_rpi5;
|
||||||
rpiVersion = 5;
|
|
||||||
argsOverride.defconfig = "bcm2712_defconfig";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
|
|
7
raspberry-pi/5/packages.nix
Normal file
7
raspberry-pi/5/packages.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ lib, pkgs, }:
|
||||||
|
{
|
||||||
|
linux_rpi5 = pkgs.linux_rpi4.override {
|
||||||
|
rpiVersion = 5;
|
||||||
|
argsOverride.defconfig = "bcm2712_defconfig";
|
||||||
|
};
|
||||||
|
}
|
15
release.nix
Normal file
15
release.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
let
|
||||||
|
lib = import <nixpkgs/lib>;
|
||||||
|
pkgsFor.aarch64-linux = import <nixpkgs> {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
linux_rpi5.aarch64-linux =
|
||||||
|
(
|
||||||
|
import ./raspberry-pi/5/packages.nix {
|
||||||
|
inherit lib;
|
||||||
|
pkgs = pkgsFor.aarch64-linux;
|
||||||
|
}
|
||||||
|
).linux_rpi5;
|
||||||
|
}
|
Loading…
Reference in a new issue