Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Apr 16, 2024
1 parent b67763e commit 9d2383a
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions hacking/nix/scope/worlds.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ in rec {
qemu-arm-virt =
let
mk =
{ smp ? false
{ debugBuild ? null
, printing ? null
, benchmarks ? null

, smp ? false
, mcs ? false
, el2 ? true
, hypervisor ? false
Expand All @@ -53,16 +57,20 @@ in rec {
KernelPlatform = mkString "qemu-arm-virt";
KernelMaxNumNodes = mkString numCores;
KernelIsMCS = fromBool mcs;

} // lib.optionalAttrs hypervisor {
KernelArmHypervisorSupport = on;
} // lib.optionalAttrs (debugBuild != null) {
KernelDebugBuild = fromBool debugBuild;
} // lib.optionalAttrs (printing != null) {
KernelPrinting = fromBool printing;
} // lib.optionalAttrs (benchmarks != null) {
KernelDebugBuild = mkString benchmarks;
};
# benchmarking config
# KernelDebugBuild = off;
# KernelBenchmarks = mkString "track_utilisation";
# KernelArmExportPMUUser = on;
# KernelSignalFastpath = on;

} // lib.optionalAttrs hypervisor {
KernelArmHypervisorSupport = on;
};
canSimulate = true;
mkInstanceForPlatform = platUtils.qemu.mkMkInstanceForPlatform {
mkQemuCmd = loader: [
Expand All @@ -88,6 +96,20 @@ in rec {
cpu = "cortex-a53";
mkSeL4KernelLoaderWithPayloadArgs = loader: [ "-device" "loader,file=${loader},addr=0x70000000,cpu-num=0" ];
};

release = {
mcs = mk {
debugBuild = false;
printing = false;
benchmarks = "track_utilisation";
mcs = true;
};
legacy = mk {
debugBuild = false;
printing = false;
benchmarks = "track_utilisation";
};
};
};

bcm2711 = mkWorld {
Expand Down

0 comments on commit 9d2383a

Please sign in to comment.