Skip to content

Commit

Permalink
hydrajobs: Add BPMP virt enabled versions
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi committed Jan 7, 2024
1 parent 00efb3f commit 85142e1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion hydrajobs.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{self, ...}: {
{self, ...}: let
mkBpmpEnabled = cfg: let
bpmpEnableModule = {lib, ...}: {
ghaf.hardware.nvidia = {
virtualization.enable = lib.mkForce true;
virtualization.host.bpmp.enable = lib.mkForce true;
passthroughs.host.uarta.enable = lib.mkForce true;
};
};
newCfg = cfg.extendModules {modules = [bpmpEnableModule];};
package = newCfg.config.system.build.${newCfg.config.formatAttr};
in
package;
in {
flake.hydraJobs = {
generic-x86_64-debug.x86_64-linux = self.packages.x86_64-linux.generic-x86_64-debug;
lenovo-x1-carbon-gen11-debug.x86_64-linux = self.packages.x86_64-linux.lenovo-x1-carbon-gen11-debug;
Expand All @@ -19,5 +32,11 @@
# Build also cross-compiled images without demo apps
nvidia-jetson-orin-agx-debug-nodemoapps-from-x86_64.x86_64-linux = self.packages.x86_64-linux.nvidia-jetson-orin-agx-debug-nodemoapps-from-x86_64;
nvidia-jetson-orin-nx-debug-nodemoapps-from-x86_64.x86_64-linux = self.packages.x86_64-linux.nvidia-jetson-orin-nx-debug-nodemoapps-from-x86_64;

# BPMP virt enabled versions
nvidia-jetson-orin-agx-debug-bpmp.aarch64-linux = mkBpmpEnabled self.nixosConfigurations.nvidia-jetson-orin-agx-debug;
nvidia-jetson-orin-nx-debug-bpmp.aarch64-linux = mkBpmpEnabled self.nixosConfigurations.nvidia-jetson-orin-nx-debug;
nvidia-jetson-orin-agx-debug-bpmp-from-x86_64.x86_64-linux = mkBpmpEnabled self.nixosConfigurations.nvidia-jetson-orin-agx-debug-from-x86_64;
nvidia-jetson-orin-nx-debug-bpmp-from-x86_64.x86_64-linux = mkBpmpEnabled self.nixosConfigurations.nvidia-jetson-orin-nx-debug-from-x86_64;
};
}

0 comments on commit 85142e1

Please sign in to comment.