Add configuration for Lagarto Ox

This commit is contained in:
2024-06-25 11:11:05 +02:00
parent 4344f73d87
commit c8efa952f9
2 changed files with 167 additions and 0 deletions

View File

@@ -58,6 +58,17 @@
./no-compressed.nix
];
};
# FPGA Lagarto Ox CPU
lagarto-ox = nixosSystem {
specialArgs = { inherit self; };
system = "${system}";
modules = [
./configuration.nix
./lagarto-ox.nix
./no-compressed.nix
];
};
};
# A development shell with QEMU ready to boot the RISC-V system in an x86
@@ -97,5 +108,29 @@
echo " UBOOT_ENV = $UBOOT_ENV"
'';
};
devShells.x86_64-linux.lagarto-ox =
let
nixosconf = self.nixosConfigurations.lagarto-ox;
syspkgs = nixosconf.pkgs;
build = nixosconf.config.system.build;
in syspkgs.mkShell {
pname = "lagarto-ox-shell";
TOPLEVEL = build.toplevel;
OPENSBI = syspkgs.opensbi;
KERNEL = build.kernel;
INITRD = build.initialRamdisk;
ROOTFS = build.sdImage;
UBOOT_ENV = syspkgs.uboot-env;
shellHook = ''
echo "Here are the current system pieces:"
echo " TOPLEVEL = $TOPLEVEL"
echo " KERNEL = $KERNEL"
echo " OPENSBI = $OPENSBI"
echo " INITRD = $INITRD"
echo " ROOTFS = $ROOTFS"
echo " UBOOT_ENV = $UBOOT_ENV"
'';
};
};
}