diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 362f98f..d22fa56 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -346,6 +346,9 @@ _tkg_srcprep() { # add upstream patch if [ "$_sub" != "0" ]; then msg2 "Patching from $_basekernel to $pkgver" + if [ ! -e "$srcdir/patch-${pkgver}" ]; then + ( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ ) + fi tkgpatch="$srcdir/patch-${pkgver}" && _tkg_patcher fi