Skip to content

Commit

Permalink
riscv-pk: Add a variant with a kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Feb 19, 2018
1 parent 6173f2f commit fd2f2bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/misc/riscv-pk/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook }: let
{ stdenv, fetchFromGitHub, autoreconfHook, payload ? null }: let
rev = "e5846a2bc707eaa58dc8ab6a8d20a090c6ee8570";
sha256 = "1clynpp70fnbgsjgxx7xi0vrdrj1v0h8zpv0x26i324kp2gwylf4";
revCount = "438";
Expand All @@ -21,6 +21,9 @@ in stdenv.mkDerivation {

configureScript = "../configure";

configureFlags = stdenv.lib.optional (payload != null)
"--with-payload=${payload}";

hardeningDisable = [ "all" ];

meta = {
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -13565,6 +13565,10 @@ with pkgs;

riscv-pk = callPackage ../misc/riscv-pk { };

riscv-pk-with-kernel = riscv-pk.override {
payload = "${linux_riscv}/vmlinux";
};

rtkit = callPackage ../os-specific/linux/rtkit { };

rt5677-firmware = callPackage ../os-specific/linux/firmware/rt5677 { };
Expand Down

0 comments on commit fd2f2bb

Please sign in to comment.