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
Bart Van Assche
9b4f212b09
scripts/generate-scst-patch: Remove this script because it is no longer used
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:24:35 +00:00
Bart Van Assche
b8a1634ced
qla2x00t-32gbit: Import this driver into the SCST repository
...
The source code in this commit is a combination of the v4.18.20 qla2xxx
driver and the QLogic target driver from the QLogic git repository
(commit ac4faf74f437 ("qla2xxx: Fix session creation fail")).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:29:46 +00:00
Bart Van Assche
0bc77ddfd2
qla2x00t, regression tests: Move QLogic target code
...
Move the QLogic target code from drivers/scst/qla2x00-target/ to
drivers/scsi/qla2xxx/.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8084 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-26 02:03:17 +00:00
Bart Van Assche
bf9fd22294
scripts/generate-kernel-patch: Fix shellcheck warnings
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-26 02:02:07 +00:00
Bart Van Assche
cb194c3c1b
scripts/specialize-patch: Fix handling of #endif followed by a tab
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 23:30:32 +00:00
Bart Van Assche
304766529e
scripts/generate-kernel-patch: Only include fcst for kernel versions >= 2.6.37
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-14 01:49:26 +00:00
Bart Van Assche
41e8fe860c
scripts/checkpatch: Add --ignore=LONG_LINE_STRING
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-11 03:48:26 +00:00
Bart Van Assche
34cf8f2d5d
scripts/run-regression-tests: Make sure CONFIG_STACK_VALIDATION is disabled
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8043 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 17:05:20 +00:00
Bart Van Assche
68b40638de
scripts/specialize-patch: Add support for UEK_KABI_RENAME
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:45:23 +00:00
Bart Van Assche
1b23ac9120
scripts/specialize-patch: Support specializing a patch for RHEL 6.x/7.x
...
This patch is based on a patch from <orlov@soligran.ru >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:08:47 +00:00
Bart Van Assche
1698ec7944
scripts/kernel-functions: Backport the -fno-PIE patch to the 2.6 kernel series
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8015 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-08 02:19:44 +00:00
Bart Van Assche
3e0790141a
scripts/kernel-functions: Fix -fno-PIE backport
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8007 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-07 01:36:31 +00:00
Bart Van Assche
e87970d094
scripts/specialize-patch: Remove a duplicate test
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-05 02:25:33 +00:00
Bart Van Assche
de656af3f0
scripts/kernel-functions: Avoid that compilation fails with "error: code model kernel does not support PIC mode"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7996 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-28 22:01:28 +00:00
Bart Van Assche
fa1336c452
scripts/run-regression-tests: Disable SELinux
...
The regression tests fail with an error message that is not related to SCST
if SELinux is enabled. Hence disable SELinux for the regression tests.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7989 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-02-24 16:54:04 +00:00
Bart Van Assche
c3ed16a8ef
scripts/run-regression-tests: Print an error message if downloading a kernel tar ball failed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-01-13 21:09:32 +00:00
Bart Van Assche
e170b8dabc
ib_srpt: Port to Linux kernel v4.21
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:06:37 +00:00
Bart Van Assche
7e72a79cf2
scripts/spread-mlx4-ib-interrupts: Remove this script
...
Recent kernels spread interrupts automatically for device drivers that
allocate multiple interrupts. That means that this script is no longer
necessary.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7832 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-27 04:38:30 +00:00
Bart Van Assche
1587638134
Remove support for "make enable_proc" and "make disable_proc"
...
Since RHEL 5 and kernel versions before 2.6.26 rely on procfs support,
this patch removes support for RHEL 5.x and also for kernel versions
before 2.6.26.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 22:13:40 +00:00
Bart Van Assche
0ad8d21ce0
scripts/run-regression-tests: Stop testing the procfs interface
...
Since the procfs interface is obsolete, stop testin it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 22:03:37 +00:00
Bart Van Assche
0c1ca90007
scripts/generate-kernel-patch: Download the correct kernel version
...
Additionally, only try to download the Linux kernel when including the
qla2x00t driver in the output.
This is a modified version of a patch supplied by Pascal de Bruijn.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 05:58:42 +00:00
Bart Van Assche
e46b7a93fc
scripts/generate-kernel-patch: Fix the code that only includes fcst for kernel versions >= 2.6.33
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 05:56:18 +00:00
Bart Van Assche
4e4e586a82
scripts/kernel-functions: Fix kernel_version_le()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-22 05:48:57 +00:00
Bart Van Assche
acf304fb88
scripts/generate-kernel-patch: Download the kernel tarball if necessary
...
From Pascal de Bruijn <p.debruijn@unilogic.nl >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-21 02:54:34 +00:00
Bart Van Assche
7c0540c556
Merge r7814:7819 from the 3.3.x branch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-19 04:25:36 +00:00
Bart Van Assche
a201fadd3e
scripts/generate-release-archive: Fix shellcheck warnings and add -h to the tar command line
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-19 02:10:19 +00:00
Bart Van Assche
5f77ac3dd3
scripts/generate-kernel-patch: Only add scst/README_in-tree if present
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7793 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 21:19:52 +00:00
Bart Van Assche
04ad78071b
scripts/update-version: Also update usr/include/version.h
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7788 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 20:08:59 +00:00
Bart Van Assche
90e883d76b
scripts/update-version: Left-align the *_REV revision numbers in scst_vdisk.c
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7523 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-31 14:23:26 +00:00
Bart Van Assche
969a36a235
scripts/checkpatch: Suppress more warning categories
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7519 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 22:00:46 +00:00
Bart Van Assche
8bec8ffea3
scripts/checkpatch: Add a script that analyzes all SCST files with checkpatch
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-14 03:58:46 +00:00
Bart Van Assche
5470ff4986
scripts/rebuild-rhel-kernel-rpm: Remove this script
...
Since rebuilding the RHEL kernel is no longer recommended, remove the script
that rebuilds the RHEL kernel RPM.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-10-03 01:44:26 +00:00
Bart Van Assche
f1357f410e
scst: Remove the existing latency measurement infrastructure
...
Remove the existing latency measurement infrastructure since it will be
replaced by a new and more powerful latency measurement infrastructure.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-09-27 02:25:43 +00:00
Bart Van Assche
6619a1a6ae
scripts/specialize-patch: Follow-up for the kernel v4.19 port
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-08-28 01:36:38 +00:00
Bart Van Assche
6864e0b759
scripts/run-regression-tests: Include the qla2xxx driver
...
Make sure that not only the qla2x00tgt but also the qla2xxx_scst driver
gets built when scripts/run-regression-tests is run.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-07-23 04:32:28 +00:00