generate-kernel-patch: optimize generation of Makefile for drivers/Kconfig

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7026 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2016-11-17 05:12:33 +00:00
parent 66b195dd2f
commit 11be80dac7
31 changed files with 7 additions and 379 deletions

View File

@@ -339,8 +339,13 @@ done
# Directory drivers/
(
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" \
"drivers/Kconfig"
if [ -e "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" ]; then
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" \
"drivers/Kconfig"
else
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux.patch" \
"drivers/Kconfig"
fi
add_patch "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch"\
"drivers/Makefile"