Bart Van Assche
ec49c2fa77
Merge r7434 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 04:16:40 +00:00
Bart Van Assche
186366a990
Merge r7416 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7672 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 03:45:28 +00:00
Bart Van Assche
4ac04ea2dc
Merge r7407 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 03:41:24 +00:00
Bart Van Assche
198143172d
Merge r7371 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7631 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 03:06:00 +00:00
Bart Van Assche
611c402782
Merge r7363 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7623 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 03:00:15 +00:00
Bart Van Assche
9806075ee2
Merge r7362 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7622 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 02:59:42 +00:00
Bart Van Assche
a9ab8659c2
Merge r7355 from trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-04 02:53:25 +00:00
Bart Van Assche
ac78b5fb12
ib_srpt: Fix build against MLNX-4.5 (merge r7597 from trunk)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-11-01 05:29:23 +00:00
Bart Van Assche
1e457529eb
ib_srpt: Port to Linux kernel v4.12
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:40:59 +00:00
Bart Van Assche
b58937bf62
srpt/Makefile: Add support for make -i
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-15 04:10:44 +00:00
Bart Van Assche
4f6fc459c0
ib_srpt: Optimize Makefile
...
Cache conftest results and enable parallel invocation of conftests.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-14 04:21:38 +00:00
Bart Van Assche
db5426169b
ib_srpt: Improve portability
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:23:31 +00:00
Bart Van Assche
122a343343
ib_srpt: Fix RHEL / CentOS 7.3 build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-17 12:46:51 +00:00
Bart Van Assche
aae05f0af4
ib_srpt: Fix build against MOFED v3.4
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-17 12:41:41 +00:00
Bart Van Assche
b3893277be
ib_srpt: Reduce build time
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7048 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 16:19:40 +00:00
Bart Van Assche
7cb08382ac
ib_srpt Makefile: Follow-up for trunk r6138
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-01 16:19:14 +00:00
Bart Van Assche
d2dd61c072
isert-scst, srpt: Fix build on systems with kernel >= 4.2.0 + MOFED 3.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 04:28:52 +00:00
Bart Van Assche
d13b730d6d
ib_srpt: Improve robustness of "make clean"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-12-11 01:38:46 +00:00
Bart Van Assche
68ce2d0ce4
ib_srpt: Port to MOFED 3.0
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-08 16:18:27 +00:00
Bart Van Assche
0651bc1e4e
ib_srpt: Linux kernel v4.2 ib_create_cq() build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6426 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-14 23:49:48 +00:00
Bart Van Assche
5f95edc612
ib_srpt: Test whether ib_create_send_mad() needs a base_version argument
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-14 23:24:26 +00:00
Bart Van Assche
87b6fde56d
ib_srpt: Linux kernel v4.2 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-14 22:50:25 +00:00
Bart Van Assche
e2210ff40f
ib_srpt, make clean: Remove all temporary files
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6381 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-17 00:28:39 +00:00
Bart Van Assche
550ab7c1d3
ib_srpt: RHEL 7.1 build fix
...
With the RHEL 7.0 kernel ib_register_mad_agent() takes eight
arguments. With the RHEL 7.1 kernel the same function takes nine
arguments. Detect at build time how many arguments this function
takes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6331 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-16 20:12:28 +00:00
Vladislav Bolkhovitin
e719f0eca5
ib_srpt: cleanup fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-05-06 02:05:54 +00:00
Bart Van Assche
1c8574763b
ib_srpt, Makefile: Pass same flags to "make modules" and to "make install"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-04 10:42:38 +00:00
Bart Van Assche
940faa9ad4
ib_srpt: Enable building against OFED headers without patching the build system
...
Additionally, include the OFED flavor name in the ib_srpt version number.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-03-02 14:28:25 +00:00
Bart Van Assche
387a603482
ib_srpt: Detect Mellanox OFED 2.3 correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5990 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-01-26 11:32:32 +00:00
Bart Van Assche
dd5561c93a
srpt/Makefile: Add double quotes around a path
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-19 00:17:41 +00:00
Bart Van Assche
3cff1e083f
ib_srpt: Make "make -j<n> install" work for n >= 2 if "make all" has not been run first
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-09-15 12:30:43 +00:00
Bart Van Assche
56fbcf3ce5
srpt/Makefile: SLES + Mellanox OFED build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5681 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-18 09:28:22 +00:00
Bart Van Assche
1ba2b87afa
srpt/Makefile: Remove a superfluous assignment statement
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-18 09:27:41 +00:00
Bart Van Assche
47e087abb4
ib_srpt: Fix Mellanox OFED build
...
Use the proper include directory when building against Mellanox OFED.
Do not require to remove /lib/modules/$(KVER)/kernel/drivers/infiniband
before building ib_srpt.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-07-16 08:29:16 +00:00
Bart Van Assche
bebce1c99f
ib_srpt: Remove existing ib_srpt.ko kernel modules before installation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-28 19:56:36 +00:00
Bart Van Assche
f4a38d3e6e
ib_srpt: Complain if another ib_srpt.ko kernel module already exists
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5621 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-24 13:32:18 +00:00
Bart Van Assche
e902f79ecf
kernel module installation: Skip "depmod" when building an RPM
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5612 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-19 12:48:25 +00:00
Bart Van Assche
dc869faeca
ib_srpt: Make non-OFED build work again
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-12 13:38:38 +00:00
Bart Van Assche
c7f9bcd1c0
ib_srpt: Set MOFED include path correctly if MOFED has been installed with --add-kernel-support
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-12 11:33:00 +00:00
Bart Van Assche
60a8326a28
ib_srpt: RHEL 5 build fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-11 10:02:15 +00:00
Bart Van Assche
a941f47817
ib_srpt: Make IB_EVENT_GID_CHANGE test independent of the OFED detection code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5578 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-10 14:49:59 +00:00
Bart Van Assche
007e3dfbbf
ib_srpt: Make the test for IB_EVENT_GID_CHANGE support more robust
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-06-10 14:16:14 +00:00
Bart Van Assche
99b7abe259
ib_srpt, Makefile: Introduce the OFED_KERNEL_DIR variable
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 12:27:00 +00:00
Bart Van Assche
cd0dcb32ab
ib_srpt: Add support in the Makefile for MLNX OFED and for OFED 3.x
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-24 10:38:37 +00:00
Bart Van Assche
3c5a901bf0
srpt/Makefile: Avoid that the build process depends on source control tools
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5361 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-03-21 16:29:26 +00:00
Bart Van Assche
ecc0a4a25d
ib_srpt/Makefile: Add kerneldoc target
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-03-20 15:16:27 +00:00
Bart Van Assche
bcc5cefce8
srpt: Minor buid process terminology change
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5338 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-03-16 13:38:50 +00:00
Bart Van Assche
69d5b979eb
Makefiles: 'uninstall' target fixes
...
Some components don't have 'uninstall' targets although the top-level
Makefile references them. Some others don't remove the proper file.
Signed-off-by: Steven J. Magnani <steve@digidescorp.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5290 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-18 08:41:30 +00:00
Bart Van Assche
7d89372c53
Makefiles: respect DESTDIR when specified
...
Not all SCST components handle DESTDIR properly, or at all.
In particular:
* INSTALL_MOD_PATH should account for DESTDIR when 'make modules_install'
is invoked, so the kernel make infrastructure deploys the modules
and runs depmod against the proper directory tree.
* depmods must include a '-b' option to reference the proper directory tree.
* Drop special ISCSI_DESTDIR.
Signed-off-by: Steven J. Magnani <steve@digidescorp.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5289 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-18 08:40:36 +00:00
Bart Van Assche
79b8ce942e
Makefiles: calculate KVER properly
...
When deriving the kernel version (KVER) from KDIR, the file
$(KDIR)/include/config/kernel.release should be preferred over
'make kernelversion'.
For example, the Ubuntu 3.2.0-23-generic kernel has a kernel.release
file containing '3.2.0-23-generic', but 'make kernelversion' returns
3.2.14. Since the modules are stored under /lib/modules/3.2.0-23-generic,
the value in kernel.release is the correct one to use.
Also:
- Evaluate KVER only once
- All depmod commands must include KVER
Signed-off-by: Steven J. Magnani <steve@digidescorp.com >
[bvanassche: Split long lines / removed trailing whitespace]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5286 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-14 15:52:10 +00:00
Bart Van Assche
c33cf3f81b
Makefiles: Convert from "install" to "make modules_install"
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5284 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-02-14 13:48:54 +00:00