Bart Van Assche
041ef55247
scripts/kernel-functions: Fix the RHEL 6.x build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-13 21:27:11 +00:00
Bart Van Assche
115ec5be90
scripts/kernel-functions: Only apply RHEL patches on RHEL kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-13 20:37:30 +00:00
Bart Van Assche
58a1ea5bd7
scripts/generate-kernel-patch: Use read instead of readarray and fix shellcheck warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-11 20:38:25 +00:00
Bart Van Assche
056f426165
scripts/kernel-functions: Make this script compatible with bash versions that do not support readarray
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-11 20:37:43 +00:00
Bart Van Assche
9429a9930f
scripts/rhel-rpm-functions: Use ${...//...} instead of setting the IFS variable
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-11 20:36:04 +00:00
Bart Van Assche
04b4ee34fe
scripts/run-regression-tests: Fix the CentOS 6.x build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-10 20:47:33 +00:00
Bart Van Assche
f40d96c8a0
scripts/run-regression-tests: Make the CentOS build less noisy
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-10 19:00:39 +00:00
Bart Van Assche
ab4f2f5077
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
2020-05-10 18:59:38 +00:00
Bart Van Assche
8485b98f05
scripts/kernel-functions: Suppress RHEL warnings about module_init() / module_exit()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-10 18:38:58 +00:00
Bart Van Assche
676b1717fb
scripts/specialize-patch: More bug fixes for RHEL / CentOS kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-10 18:37:03 +00:00
Bart Van Assche
1195daa855
scripts/specialize-patch: Fix RHEL kernel version checks
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 22:56:56 +00:00
Bart Van Assche
6773f8e9a5
scripts/run-regression-tests: Add support for distro kernels
...
A few examples of how to run the regression tests against a distro kernel:
scripts/run-regression-tests -l 4.18.0-147.5.1.el8_1^CentOS^8.1.1911-nc
scripts/run-regression-tests -l 4.18.0-80.11.2.el8_0^CentOS^8.0.1905-nc
scripts/run-regression-tests -l 3.10.0-1127.el7^CentOS^7.8.2003-nc
scripts/run-regression-tests -l 3.10.0-1062.18.1.el7^CentOS^7.7.1908-nc
scripts/run-regression-tests -l 3.10.0-957.27.2.el7^CentOS^7.6.1810-nc
scripts/run-regression-tests -l 3.10.0-862.14.4.el7^CentOS^7.5.1804-nc
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 22:54:47 +00:00
Bart Van Assche
b3b658bd09
scripts/generate-kernel-patch: Make several paths absolute
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8884 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 22:48:23 +00:00
Bart Van Assche
24caf06381
scripts/rhel-rpm-functions: Add more URLs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8883 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 22:47:45 +00:00
Bart Van Assche
5400331606
scripts/rhel-rpm-functions: Restore this file by reverting r8111
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8880 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 19:38:33 +00:00
Bart Van Assche
9ece5279ad
Add the qla2x00t-32gbit/trace/events/qla.h file to the output of scripts/generate-kernel-patch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-08 15:23:43 +00:00
Bart Van Assche
33ae08da62
scripts/kernel-functions: Apply the -fno-PIE to more kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:16 +00:00
Bart Van Assche
40b4dfd289
scst: Split the scst_targ.c source file
...
Since the scst_targ.c source file is large, move the functions for processing
SCSI commands into a new source file, scst_local_cmd.c.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 17:16:12 +00:00
Bart Van Assche
2a757086d4
scripts/checkpatch: Ignore the iscsi-scst/usr directory
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:15:35 +00:00
Bart Van Assche
5ca9d97b65
scst: Remove the code that depends on the SCSI_EXEC_REQ_FIFO_DEFINED macro
...
The exec_req_fifo patches have been removed some time ago. Hence also remove
the code that depends on these patches having been applied. See also commit
78d6da4517 ("scst: Remove obsolete exec_req_fifo kernel patches"; r8022).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-23 18:55:58 +00:00
Bart Van Assche
2ec09741db
scripts/checkpatch: Suppress more checkpatch complaints about long lines
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-23 18:52:57 +00:00
Bart Van Assche
ffb1b505cc
scripts/specialize-patch: Fix expansion of HAVE_IB_SG_DMA_LEN
...
This patch fixes commit ac145e1cb6 ("ib_srpt: Detect ib_sg_dma_len()
presence at compile time"; r8655).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-23 15:37:37 +00:00
Bart Van Assche
fa156aa40d
scripts/update-version: Fix the code for updating the scstadmin version number
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-04 05:00:49 +00:00
Bart Van Assche
7fec3457f6
scripts/update-version: Also update the iSERt version number
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-04 04:55:30 +00:00
Bart Van Assche
ac145e1cb6
ib_srpt: Detect ib_sg_dma_len() presence at compile time
...
This patch makes it possible to build the ib_srpt driver against a kernel
before v5.1 + latest MOFED.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-11-08 21:28:37 +00:00
Bart Van Assche
e634e03a78
scripts/specialize-patch: Add support for HAVE_SRP_DATA_DESC_IMM
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8654 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-11-08 21:17:29 +00:00
Bart Van Assche
2f37a91d77
Remove more references to the ibmvstgt, mpt and mvsas_tgt drivers
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8652 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-11-03 21:29:36 +00:00
Bart Van Assche
a444b28dfa
scripts/sign-modules: Do not try to sign modules CONFIG_MODULE_SIG=n
...
This fixes the build on e.g. Debian 9. See also
https://sourceforge.net/p/scst/tickets/30/ .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8617 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-11 02:08:09 +00:00
Bart Van Assche
5d3e3e9590
scripts/specialize-patch: Port to RHEL 8
...
Signed-off-by: Ivan Orlov <orlov@soligran.ru >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-09 02:41:48 +00:00
Bart Van Assche
87d64c162d
scst: Unbreak the build for RHEL 6 / CentOS 6
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8610 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-09 01:33:25 +00:00
Bart Van Assche
8df56e2ea3
scripts/sign-modules: Fix module signing for Debian
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-06 23:24:06 +00:00
Bart Van Assche
982e33160f
scripts/specialize-patch: Fix a gawk warning
...
gawk: scripts/specialize-patch:329: (FILENAME=- FNR=26) warning: regexp escape sequence `\&' is not a known regexp operator
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-09-29 23:13:49 +00:00
Bart Van Assche
84725029ce
scst: Add support for signing SCST kernel modules
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-09-29 04:42:40 +00:00
Bart Van Assche
9267f92ba5
scripts/generate-kernel-patch: Only select new QLogic driver for kernel versions >= 3.15
...
A recent change (.cmd_size in the SCSI host template) increased the
minimal kernel version required for qla2x00t-32gbit. Update
scripts/generate-kernel-patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8571 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-08-26 00:25:58 +00:00
Bart Van Assche
1d2a50ecaa
scripts/run-regression-tests: Suppress several gcc 9 compiler warnings
...
Suppress several gcc 9 compiler warnings for kernel versions before v5.1.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-08-26 00:24:45 +00:00
Bart Van Assche
c205138e87
scripts: Fix multiple shellcheck warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-08-25 22:51:57 +00:00
Bart Van Assche
ef98056164
scripts/specialize-patch: Expand HAVE_DEV_ATTR_MAX_RECV_SGE
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8407 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-02 15:48:12 +00:00
Bart Van Assche
4c74d8a2c7
scripts/generate-kernel-patch: Remove obsolete download_kernel() calls
...
See also 0dceefe878 ("qla2x00t, scripts: Introduce download_and_extract_kernel_tree()") / r8117.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-02 15:01:46 +00:00
Bart Van Assche
8e862c6d9b
iscsi-scst, srpt: Restore MOFED_MAJOR and MOFED_MINOR definitions
...
This patch reverts commit bcdb25e550 (r7363).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-30 13:41:27 +00:00
Bart Van Assche
163e34b548
scripts/kernel-functions: Fix download_and_extract_kernel_tree()
...
Use grep to check whether or not 'git tag' succeeded since the exit status
of 'git tag' is always zero.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8395 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-30 02:46:35 +00:00
Bart Van Assche
86b2b49ade
scripts/kernel-functions: Fetch both Linus' tree and the stable tree
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8362 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-16 16:30:08 +00:00
Bart Van Assche
22f1132073
Makefiles: Rework build mode switching
...
Move the build_mode file from the top level into the scst directory. Write
build mode defines into scst/include/build_mode.h and include that file
directly or indirectly in all source files that depend on these #defines.
This approach has the advantage that "make clean" does no longer has to
be run when switching between build modes because the kernel build system
recognizes build_mode.h as a dependency and triggers a rebuild of all
source files that directly or indirectly include the build_mode.h header
file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:19:38 +00:00
Bart Van Assche
2c9922245d
scripts/kernel-functions: Fix the code for retrieving kernel code from a git repo
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-10 15:00:33 +00:00
Bart Van Assche
339d30b6bc
scripts/kernel-functions: Fix up ____ilog2_NaN() prototype
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-10 14:59:48 +00:00
Bart Van Assche
7944db8387
scripts/kernel-functions: Fix a check that controls whether or not a patch should be applied
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:11:45 +00:00
Bart Van Assche
6eb8e72ea6
scripts/kernel-functions: Override kernel gcc version detection
...
Older kernels do not support recent gcc versions. Hence override the kernel
version when building against an older kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8120 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:34:59 +00:00
Bart Van Assche
262c7f3b64
scripts/kernel-functions: Check local kernel git repo before downloading
...
This approach works faster than downloading kernel source code tarballs.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:31:29 +00:00
Bart Van Assche
48f37a91a6
scripts/kernel-functions: Rename ${kernel_sources} into ${kernel_downloads}
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:29:21 +00:00
Bart Van Assche
0dceefe878
qla2x00t, scripts: Introduce download_and_extract_kernel_tree()
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:28:44 +00:00
Bart Van Assche
8435275aec
scripts/rhel-rpm-functions: Remove because no longer used
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:25:14 +00:00