mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-29 18:00:18 +00:00
scripts/specialize-patch: Improve RHEL / CentOS support
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -66,7 +66,7 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
|
||||
gsub("defined\\(REGISTER_MAD_AGENT_HAS_FLAGS_ARG\\)",
|
||||
"(LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) || " \
|
||||
"RHEL_RELEASE_CODE -0 >= 6 * 256 + 10)", stmnt)
|
||||
"RHEL_RELEASE_CODE -0 >= 6 * 256 + 9)", stmnt)
|
||||
|
||||
gsub("SOCK_RECVMSG_HAS_FOUR_ARGS",
|
||||
"(LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0))", stmnt)
|
||||
@@ -131,7 +131,7 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
|
||||
gsub("defined\\(HAVE_IB_EVENT_GID_CHANGE\\)",
|
||||
"(LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) || " \
|
||||
"RHEL_RELEASE_CODE -0 >= 6 * 256 + 10)", stmnt)
|
||||
"RHEL_RELEASE_CODE -0 >= 6 * 256 + 9)", stmnt)
|
||||
|
||||
gsub("defined\\(HAVE_IB_QUERY_DEVICE\\)",
|
||||
"(LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) \\&\\& " \
|
||||
@@ -153,7 +153,8 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
"(LINUX_VERSION_CODE >= KERNEL_VERSION(0, 0, 0))", stmnt)
|
||||
|
||||
gsub("HAVE_IB_SG_DMA_LEN",
|
||||
"(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0))", stmnt)
|
||||
"(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) \\&\\& " \
|
||||
"RHEL_RELEASE_CODE -0 < 8 * 256 + 2)", stmnt)
|
||||
|
||||
gsub("defined(ENABLE_NPIV)", 0, stmnt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user