From 3a0fabdeeb547a9ce4b23a2603df9331a614d531 Mon Sep 17 00:00:00 2001 From: DavHau Date: Mon, 16 Dec 2024 11:27:23 +0700 Subject: [PATCH] add hydra jobset to build kernel for raspberry pi 5 --- raspberry-pi/5/default.nix | 5 +---- raspberry-pi/5/packages.nix | 7 +++++++ release.nix | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 raspberry-pi/5/packages.nix create mode 100644 release.nix diff --git a/raspberry-pi/5/default.nix b/raspberry-pi/5/default.nix index aba0178..32a464a 100644 --- a/raspberry-pi/5/default.nix +++ b/raspberry-pi/5/default.nix @@ -1,9 +1,6 @@ { lib, pkgs, config, ... }: let - linux_rpi5 = pkgs.linux_rpi4.override { - rpiVersion = 5; - argsOverride.defconfig = "bcm2712_defconfig"; - }; + inherit (import ./packages.nix {inherit lib pkgs;}) linux_rpi5; in { boot = { diff --git a/raspberry-pi/5/packages.nix b/raspberry-pi/5/packages.nix new file mode 100644 index 0000000..be140b0 --- /dev/null +++ b/raspberry-pi/5/packages.nix @@ -0,0 +1,7 @@ +{ lib, pkgs, }: +{ + linux_rpi5 = pkgs.linux_rpi4.override { + rpiVersion = 5; + argsOverride.defconfig = "bcm2712_defconfig"; + }; +} diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..4566484 --- /dev/null +++ b/release.nix @@ -0,0 +1,15 @@ +let + lib = import ; + pkgsFor.aarch64-linux = import { + system = "aarch64-linux"; + }; +in +{ + linux_rpi5.aarch64-linux = + ( + import ./raspberry-pi/5/packages.nix { + inherit lib; + pkgs = pkgsFor.aarch64-linux; + } + ).linux_rpi5; +}