Skip to content

Commit

Permalink
nix: Remove Microkit example
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Jun 24, 2024
1 parent c5ece59 commit 92e782f
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions hacking/nix/scope/microkit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,42 +148,9 @@ let
-r $out/report.txt
'');

exampleSource = microkitSource + "/example/${board}/hello";

examplePDs = stdenv.mkDerivation {
name = "example";

src = exampleSource;

MICROKIT_SDK = sdk;
MICROKIT_BOARD = board;
MICROKIT_CONFIG = config;

MICROKIT_TOOL = "${tool}/bin/microkit";

dontConfigure = true;
dontFixup = true;

buildPhase = ''
mkdir build
make BUILD_DIR=build
'';

installPhase = ''
mkdir $out
mv build/hello.elf $out
'';
};

example = assert board == "qemu_virt_aarch64"; mkSystem {
searchPath = examplePDs;
systemXML = exampleSource + "/hello.system";
};

in rec {
inherit
sdk tool
mkSystem
example
;
}

0 comments on commit 92e782f

Please sign in to comment.