xen: move patches specific for 4.10

Makes it easier to include 4.15 patches later.
This commit is contained in:
William Johansson
2021-11-13 18:33:07 +01:00
parent d14a8e372f
commit e9ad024615
6 changed files with 7 additions and 4 deletions
@@ -165,6 +165,13 @@ callPackage (import ./generic.nix (rec {
"-Wno-error=zero-length-bounds"
];
patches = [
./0000-fix-ipxe-src.4.10.patch
./0000-fix-install-python.4.10.patch
./0004-makefile-use-efi-ld.4.10.patch
./0005-makefile-fix-efi-mountdir-use.4.10.patch
];
postPatch = ''
# Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' \
@@ -133,10 +133,6 @@ stdenv.mkDerivation (rec {
'';
patches = [
./0000-fix-ipxe-src.patch
./0000-fix-install-python.patch
./0004-makefile-use-efi-ld.patch
./0005-makefile-fix-efi-mountdir-use.patch
] ++ (config.patches or []);
postPatch = ''