Skip to content

Commit

Permalink
nix: Clean up microkit
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <nick@nickspinale.com>
  • Loading branch information
nspin committed Jun 8, 2024
1 parent 2690e37 commit 2ed5d33
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions hacking/nix/scope/world/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ self: with self;
microkitForUserspace = microkit;
microkitForBoot = microkit;

microkitDir =
let
inherit (worldConfig.microkitConfig) board config;
in
"${microkitForUserspace.sdk}/board/${board}/${config}";

seL4 = assert !worldConfig.isMicrokit; mkSeL4 worldConfig.kernelConfig;

seL4ForUserspace = seL4;
Expand All @@ -64,21 +70,15 @@ self: with self;
seL4IncludeDir =
if worldConfig.isMicrokit
then
let
d = "${microkitForUserspace.sdk}/board/qemu_virt_aarch64/debug";
in
"${d}/include"
"${microkitDir}/include"
else
"${seL4ForUserspace}/libsel4/include";

seL4RustEnvVars =
if worldConfig.isMicrokit
then
let
d = "${microkitForUserspace.sdk}/board/qemu_virt_aarch64/debug";
in {
SEL4_INCLUDE_DIRS = "${d}/include";
}
then {
SEL4_INCLUDE_DIRS = "${microkitDir}/include";
}
else {
SEL4_PREFIX = seL4ForUserspace;
};
Expand Down

0 comments on commit 2ed5d33

Please sign in to comment.