mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
Add Microchip Icicle-kit board support.
* Uses Linux kernel released by Microchip - https://github.com/linux4microchip/linux.git - Ver: v5.15 Tag: linux4microchip+fpga-2023.02 * Uses UBoot released by Microchip - Ver: uboot-2022-01 Tag: linux4microchip+fpga-2023.02 To generate NixOS sd image for MICROCHIP icicle-kit refer: https://github.com/tiiuae/ghaf.git Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
This commit is contained in:
50
microchip/common/bsp/hss-payload-generator.nix
Normal file
50
microchip/common/bsp/hss-payload-generator.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ pkgs, ...}:
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hss";
|
||||
version = "v2022.09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "polarfire-soc";
|
||||
repo = "hart-software-services";
|
||||
rev = version;
|
||||
sha256 = "sha256-j/nda7//CjJW09zt/YrBy6h+q+VKE5t/ueXxDzwVWQ0=";
|
||||
};
|
||||
|
||||
depsBuildBuild = [
|
||||
buildPackages.stdenv.cc
|
||||
];
|
||||
|
||||
nativeBuildInputs = with buildPackages; [
|
||||
libyaml
|
||||
elfutils
|
||||
openssl
|
||||
zlib
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
|
||||
substituteInPlace ./tools/hss-payload-generator/Makefile \
|
||||
--replace "/bin/bash" "bash"
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
make -C ./tools/hss-payload-generator
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp ./tools/hss-payload-generator/hss-payload-generator $out
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user