linux kernel 4.4: fix race during build

Patch drivers/crypto/qat/qat_common/Makefile so that qat_asym_algs.o
explicitly depends on headers qat_rsaprivkey-asn1.h and qat_rsapubkey-asn1.h

Hopefully fixes #14595
This commit is contained in:
obadz 2016-04-12 19:30:14 +01:00
parent 860aa01782
commit 4788ec1372
3 changed files with 15 additions and 1 deletions

View file

@ -154,4 +154,8 @@ rec {
{ name = "mfd_fix_dependency"; { name = "mfd_fix_dependency";
patch = ./chromiumos-patches/mfd-fix-dependency.patch; patch = ./chromiumos-patches/mfd-fix-dependency.patch;
}; };
qat_common_Makefile =
{ name = "qat_common_Makefile";
patch = ./qat_common_Makefile.patch;
};
} }

View file

@ -0,0 +1,10 @@
--- a/drivers/crypto/qat/qat_common/Makefile
+++ b/drivers/crypto/qat/qat_common/Makefile
@@ -2,6 +2,7 @@
$(obj)/qat_rsapubkey-asn1.h
$(obj)/qat_rsaprivkey-asn1.o: $(obj)/qat_rsaprivkey-asn1.c \
$(obj)/qat_rsaprivkey-asn1.h
+$(obj)/qat_asym_algs.o: $(obj)/qat_rsaprivkey-asn1.h $(obj)/qat_rsapubkey-asn1.h
clean-files += qat_rsapubkey-asn1.c qat_rsapubkey-asn1.h
clean-files += qat_rsaprivkey-asn1.c qat_rsapvivkey-asn1.h

View file

@ -10450,7 +10450,7 @@ in
}; };
linux_4_4 = callPackage ../os-specific/linux/kernel/linux-4.4.nix { linux_4_4 = callPackage ../os-specific/linux/kernel/linux-4.4.nix {
kernelPatches = [ kernelPatches.bridge_stp_helper ] kernelPatches = [ kernelPatches.bridge_stp_helper kernelPatches.qat_common_Makefile ]
++ lib.optionals ((platform.kernelArch or null) == "mips") ++ lib.optionals ((platform.kernelArch or null) == "mips")
[ kernelPatches.mips_fpureg_emu [ kernelPatches.mips_fpureg_emu
kernelPatches.mips_fpu_sigill kernelPatches.mips_fpu_sigill