3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #154241 from zhaofengli/opensbi

opensbi: init at 1.0
This commit is contained in:
0x4A6F 2022-01-24 00:49:43 +01:00 committed by GitHub
commit 96255dd472
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib, stdenv, fetchFromGitHub
, withPlatform ? "generic"
, withPayload ? null
, withFDT ? null
}:
stdenv.mkDerivation rec {
pname = "opensbi";
version = "1.0";
src = fetchFromGitHub {
owner = "riscv-software-src";
repo = "opensbi";
rev = "v${version}";
sha256 = "sha256-OgzcH+RLU680qF3+lUiWFFbif6YtjIknJriGlRqcOGs=";
};
installFlags = [
"I=$(out)"
];
makeFlags = [
"PLATFORM=${withPlatform}"
] ++ lib.optionals (withPayload != null) [
"FW_PAYLOAD_PATH=${withPayload}"
] ++ lib.optionals (withFDT != null) [
"FW_FDT_PATH=${withFDT}"
];
dontStrip = true;
dontPatchELF = true;
meta = with lib; {
description = "RISC-V Open Source Supervisor Binary Interface";
homepage = "https://github.com/riscv-software-src/opensbi";
license = licenses.bsd2;
maintainers = with maintainers; [ ius nickcao zhaofengli ];
platforms = [ "riscv64-linux" ];
};
}

View file

@ -8389,6 +8389,8 @@ with pkgs;
luaPackages = lua53Packages;
};
opensbi = callPackage ../misc/opensbi { };
opensc = callPackage ../tools/security/opensc {
inherit (darwin.apple_sdk.frameworks) Carbon PCSC;
};