Unverified Commit 3836bf02 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #209120 from NickCao/opensbi

opensbi: 1.1 -> 1.2
parents c8ef918e 168c2b62
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub
{ lib
, stdenv
, fetchFromGitHub
, python3
, withPlatform ? "generic"
, withPayload ? null
, withFDT ? null
@@ -6,19 +9,21 @@

stdenv.mkDerivation rec {
  pname = "opensbi";
  version = "1.1";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "riscv-software-src";
    repo = "opensbi";
    rev = "v${version}";
    sha256 = "sha256-k6f4/lWY/f7qqk0AFY4tdEi4cDilSv/jngaJYhKFlnY=";
    sha256 = "sha256-Zcl+SE2nySMycV/ozsl4AvGipRsMblA5mt3oVZ81Z44=";
  };

  postPatch = ''
    patchShebangs ./scripts
  '';

  nativeBuildInputs = [ python3 ];

  installFlags = [
    "I=$(out)"
  ];