Compare commits
2 Commits
59e224a8cf
...
c19786a3d4
| Author | SHA1 | Date | |
|---|---|---|---|
| c19786a3d4 | |||
| 437c9cbc50 |
@ -97,7 +97,11 @@ let
|
|||||||
pkgs = filterAttrs (_: isDerivation) bscPkgs;
|
pkgs = filterAttrs (_: isDerivation) bscPkgs;
|
||||||
|
|
||||||
# TODO: Native build in that platform doesn't imply cross build works
|
# 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
|
# For now only RISC-V
|
||||||
crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgs; };
|
crossSet = { riscv64 = final.pkgsCross.riscv64.bsc.pkgs; };
|
||||||
|
|||||||
@ -86,7 +86,4 @@ in
|
|||||||
patchelf --add-needed libnuma.so $out/bin/AMDuProfPcm
|
patchelf --add-needed libnuma.so $out/bin/AMDuProfPcm
|
||||||
set +x
|
set +x
|
||||||
'';
|
'';
|
||||||
meta = {
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,6 @@ in stdenv.mkDerivation {
|
|||||||
meta = {
|
meta = {
|
||||||
description = "AMD Power Profiler Driver";
|
description = "AMD Power Profiler Driver";
|
||||||
homepage = "https://www.amd.com/es/developer/uprof.html";
|
homepage = "https://www.amd.com/es/developer/uprof.html";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,5 +40,4 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
'';
|
'';
|
||||||
installPhase = "touch $out";
|
installPhase = "touch $out";
|
||||||
};
|
};
|
||||||
meta.platforms = [ "x86_64-linux" ];
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -55,4 +55,7 @@ in
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
|
meta = {
|
||||||
|
cross = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user