Merge staging into staging-next
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sof-firmware";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.alsa-project.org/files/pub/misc/sof/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1nkh020gjm45vxd6fvmz63hj16ilff2nl5avvsklajjs6xci1sf5";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
rm lib/firmware/intel/{sof/LICENCE,sof-tplg/LICENCE}
|
||||
mkdir $out
|
||||
cp -r lib $out/lib
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sound Open Firmware";
|
||||
homepage = "https://www.sofproject.org/";
|
||||
license = with licenses; [ bsd3 isc ];
|
||||
maintainers = with maintainers; [ lblasc ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
@@ -254,6 +254,27 @@ let
|
||||
SND_USB_CAIAQ_INPUT = yes;
|
||||
# Enable PSS mixer (Beethoven ADSP-16 and other compatible)
|
||||
PSS_MIXER = whenOlder "4.12" yes;
|
||||
# Enable Sound Open Firmware support
|
||||
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" &&
|
||||
versionAtLeast version "5.5") {
|
||||
SND_SOC_SOF_TOPLEVEL = yes;
|
||||
SND_SOC_SOF_ACPI = module;
|
||||
SND_SOC_SOF_PCI = module;
|
||||
SND_SOC_SOF_APOLLOLAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_CANNONLAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_COFFEELAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_COMETLAKE_H_SUPPORT = yes;
|
||||
SND_SOC_SOF_COMETLAKE_LP_SUPPORT = yes;
|
||||
SND_SOC_SOF_ELKHARTLAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_GEMINILAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_HDA_AUDIO_CODEC = yes;
|
||||
SND_SOC_SOF_HDA_COMMON_HDMI_CODEC = yes;
|
||||
SND_SOC_SOF_HDA_LINK = yes;
|
||||
SND_SOC_SOF_ICELAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_INTEL_TOPLEVEL = yes;
|
||||
SND_SOC_SOF_JASPERLAKE_SUPPORT = yes;
|
||||
SND_SOC_SOF_MERRIFIELD_SUPPORT = yes;
|
||||
SND_SOC_SOF_TIGERLAKE_SUPPORT = yes;
|
||||
};
|
||||
|
||||
usb-serial = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ buildPackages, runCommand, nettools, bc, bison, flex, perl, rsync, gmp, libmpc, mpfr, openssl
|
||||
, libelf, cpio
|
||||
, utillinux
|
||||
, utillinuxMinimal
|
||||
, writeTextFile
|
||||
}:
|
||||
|
||||
@@ -281,7 +281,7 @@ let
|
||||
in
|
||||
|
||||
assert stdenv.lib.versionAtLeast version "4.14" -> libelf != null;
|
||||
assert stdenv.lib.versionAtLeast version "4.15" -> utillinux != null;
|
||||
assert stdenv.lib.versionAtLeast version "4.15" -> utillinuxMinimal != null;
|
||||
stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches configfile) // {
|
||||
pname = "linux";
|
||||
inherit version;
|
||||
@@ -292,7 +292,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches
|
||||
nativeBuildInputs = [ perl bc nettools openssl rsync gmp libmpc mpfr ]
|
||||
++ optional (stdenv.hostPlatform.platform.kernelTarget == "uImage") buildPackages.ubootTools
|
||||
++ optional (stdenv.lib.versionAtLeast version "4.14") libelf
|
||||
++ optional (stdenv.lib.versionAtLeast version "4.15") utillinux
|
||||
++ optional (stdenv.lib.versionAtLeast version "4.15") utillinuxMinimal
|
||||
++ optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ]
|
||||
++ optional (stdenv.lib.versionAtLeast version "5.2") cpio
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user