sof-firmware: 2.2 -> 2.2.2

This commit is contained in:
Henri Menke 2022-11-17 17:39:32 +01:00
parent 4698895021
commit b2eb74c577
No known key found for this signature in database
GPG key ID: FB7AD61E3D806382

View file

@ -5,23 +5,26 @@
stdenvNoCC.mkDerivation rec {
pname = "sof-firmware";
version = "2.2";
version = "2.2.2";
src = fetchFromGitHub {
owner = "thesofproject";
repo = "sof-bin";
rev = "v${version}";
sha256 = "sha256-/gjGTDOXJ0vz/MH2hlistS3X3Euqf8T6TLnD1A2SBYo=";
sha256 = "sha256-ztewE/8Mc0bbKbxmbJ2sBn3TysuM9hoaSgqrboy77oI=";
};
dontFixup = true; # binaries must not be stripped or patchelfed
# There is no proper structure in the upstream repo.
# This needs to be adapted by hand for every new release.
installPhase = ''
runHook preInstall
cd "v${lib.versions.majorMinor version}.x"
mkdir -p $out/lib/firmware/intel/
cp -a sof-v${version} $out/lib/firmware/intel/sof
cp -a sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg
cd "v2.2.x"
mkdir -p $out/lib/firmware/intel/sof{,-tplg}
cp -a sof-v2.2/* $out/lib/firmware/intel/sof
cp -a sof-v2.2.2/* $out/lib/firmware/intel/sof
cp -a sof-tplg-v2.2.1/* $out/lib/firmware/intel/sof-tplg
runHook postInstall
'';