Compare commits

..

1 Commits

Author SHA1 Message Date
59e224a8cf Add RISC-V cross-compilation target for CI
Some checks failed
CI / build:cross (pull_request) Failing after 43s
CI / build:all (pull_request) Successful in 45s
2025-10-09 14:33:04 +02:00
5 changed files with 6 additions and 9 deletions

View File

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

View File

@ -86,4 +86,7 @@ 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 = lib.platforms.linux;
platforms = [ "x86_64-linux" ];
};
}

View File

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

View File

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