Compare commits

..

2 Commits

Author SHA1 Message Date
c19786a3d4 Enable ovni for cross compilation
All checks were successful
CI / build:cross (pull_request) Successful in 6s
CI / build:all (pull_request) Successful in 15s
2025-10-09 14:42:26 +02:00
437c9cbc50 Add RISC-V cross-compilation target for CI 2025-10-09 14:42:09 +02:00
5 changed files with 9 additions and 6 deletions

View File

@ -97,7 +97,11 @@ let
pkgs = filterAttrs (_: isDerivation) bscPkgs;
# TODO: Native build in that platform doesn't imply cross build works
canCrossCompile = platform: pkg: (isDerivation pkg) && (meta.availableOn platform pkg);
canCrossCompile = platform: pkg:
(isDerivation pkg) &&
# Must be defined explicitly
(pkg.meta.cross or false) &&
(meta.availableOn platform pkg);
# For now only RISC-V
crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgs; };

View File

@ -86,7 +86,4 @@ in
patchelf --add-needed libnuma.so $out/bin/AMDuProfPcm
set +x
'';
meta = {
platforms = [ "x86_64-linux" ];
};
}

View File

@ -28,6 +28,6 @@ in stdenv.mkDerivation {
meta = {
description = "AMD Power Profiler Driver";
homepage = "https://www.amd.com/es/developer/uprof.html";
platforms = [ "x86_64-linux" ];
platforms = lib.platforms.linux;
};
}

View File

@ -40,5 +40,4 @@ stdenv.mkDerivation (finalAttrs: {
'';
installPhase = "touch $out";
};
meta.platforms = [ "x86_64-linux" ];
})

View File

@ -55,4 +55,7 @@ in
doCheck = true;
checkTarget = "test";
hardeningDisable = [ "all" ];
meta = {
cross = true;
};
}