Add cacheline parameter to nOS-V

By default it is set to 64 bits. The cacheline parameter is required
when cross-compiling nOS-V, as it cannot be read from the build machine.

Tested-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
Rodrigo Arias 2024-11-18 11:02:28 +01:00 committed by Rodrigo Arias Mallo
parent 73550ad5a9
commit 6782fc6c5b

View File

@ -6,6 +6,7 @@
, pkg-config , pkg-config
, numactl , numactl
, hwloc , hwloc
, cacheline ? 64 # bits
, ovni ? null , ovni ? null
, useGit ? false , useGit ? false
, gitUrl ? "git@gitlab-internal.bsc.es:nos-v/nos-v.git" , gitUrl ? "git@gitlab-internal.bsc.es:nos-v/nos-v.git"
@ -43,7 +44,10 @@ in
hardeningDisable = [ "all" ]; hardeningDisable = [ "all" ];
dontStrip = true; dontStrip = true;
separateDebugInfo = true; separateDebugInfo = true;
configureFlags = [ "--with-ovni=${ovni}" ]; configureFlags = [
"--with-ovni=${ovni}"
"CACHELINE_WIDTH=${toString cacheline}"
];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
pkg-config pkg-config