From ab4f2f5077a7ed7db389d85396821807a74cef99 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 10 May 2020 18:59:38 +0000 Subject: [PATCH] scripts/generate-kernel-patch: Use the generic drivers Makefile for CentOS 6.x git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8892 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 91bd9bc25..fbf736e19 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -5,7 +5,7 @@ # Script for converting the SCST source tree as it exists in the Subversion # repository to a Linux kernel patch. # -# Copyright (C) 2008-2009 Bart Van Assche +# Copyright (C) 2008-2020 Bart Van Assche # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -342,7 +342,8 @@ else "drivers/Kconfig" fi -if [ -e "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch" ]; then +if [ "${full_kver#2.6.32-}" = "${full_kver}" ] && + [ -e "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch" ]; then add_patch "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch"\ "drivers/Makefile" else