[Pkg-ofed-commits] r751 - /branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/
gmpc-guest at alioth.debian.org
gmpc-guest at alioth.debian.org
Thu May 6 14:13:36 UTC 2010
Author: gmpc-guest
Date: Thu May 6 14:13:23 2010
New Revision: 751
URL: http://svn.debian.org/wsvn/pkg-ofed/?sc=1&rev=751
Log:
Allow end user to specify which kernel modules should be
built.
Modified:
branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/README.Debian
branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/rules
Modified: branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/README.Debian?rev=751&op=diff
==============================================================================
--- branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/README.Debian (original)
+++ branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/README.Debian Thu May 6 14:13:23 2010
@@ -3,12 +3,80 @@
Please see ./README for a description of the ofa-kernel software.
-This package contains source for the OFED kernel modules. The building
-of some modules has been disabled as they do not build correctly.
+This package contains source for the OFED kernel modules.
- iser-mod
- ipath_inf-mod
- ehca-mod
+
+Customising the build process
+-----------------------------
+
+By default the package will build the core set of infiniband modules that
+are known to build on all architectures and kernel versions.
+
+If you wish to build the non-default modules, you can pass extra options to
+configure using the $OFAKERNELOPTS environment variable.
+
+
+
+--with-ipoib_debug-mod
+--with-ipoib_debug_data-mod
+--with-sdp_debug-mod
+--with-sdp_debug_data-mod
+--with-addr_trans-mod
+--with-mthca_debug-mod
+--with-mlx4_debug-mod
+--with-ipath_inf-mod
+--with-qib-mod
+--with-iser-mod
+--with-ehca-mod
+--with-rds_debug-mod
+--with-qlgc_vnic-mod
+--with-qlgc_vnic_stats-mod
+--with-cxgb3_debug-mod
+--with-nes_debug-mod
+--with-memtrack
+--with-debug-info
+--with-nfsrdma-mod
+
+
+Building against non-standard kernels
+-------------------------------------
+
+The build process needs to know the providence of the kernel it is building against.
+If you are building against a non-vanilla kernel, (eg one based on SLES or Redhat
+sources,) or a kernel with a heavily customised version string,
+the detection logic may fail.
+
+You can tell the build process which kernel you are actually building against by
+setting $BASEKERNEL prior to the build. Valid settings for this variable are:
+
+2.6.16_sles10_sp2
+2.6.16_sles10_sp3
+2.6.18
+2.6.18-EL5.2
+2.6.18-EL5.3
+2.6.18-EL5.4
+2.6.18-EL5.5
+2.6.19
+2.6.20
+2.6.21
+2.6.22
+2.6.23
+2.6.24
+2.6.25
+2.6.25_suse11
+2.6.26
+2.6.27
+2.6.27_sles11
+2.6.27_sles11_update
+2.6.28
+2.6.29
+2.6.31
+2.6.32
+2.6.9_U6
+2.6.9_U7
+2.6.9_U8
+
+
The ofa-kernel-source package can be used in several ways,
Modified: branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ofed/branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/rules?rev=751&op=diff
==============================================================================
--- branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/rules (original)
+++ branches/ofed-1.5.1lenny/ofa-kernel/trunk/debian/rules Thu May 6 14:13:23 2010
@@ -70,30 +70,12 @@
kdist_config: prep-deb-files
# Run quilt stage manually so we can set the correct kernel patchsetpwd
./ofed_scripts/ofed_patch.sh --kernel-version=$(BASEKERNEL)
-ifeq "$(DEB_HOST_ARCH)" "amd64"
+
./configure --kernel-sources=$(KSRC) --kernel-version=$(KVERS) \
--with-core-mod --with-ipoib-mod --with-ipoib-cm --with-sdp-mod --with-srp-mod --with-srp-target-mod \
--with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_core-mod \
- --with-mlx4_en-mod --with-mlx4_inf-mod --with-rds-mod --with-madeye-mod --with-ipath_inf-mod \
- --with-cxgb3-mod --with-nes-mod
-endif
-
-# ipath_inf-mod does not build on 32bit architectures
-
-ifeq "$(DEB_HOST_ARCH)" "i386"
- ./configure --kernel-sources=$(KSRC) --kernel-version=$(KVERS) \
- --with-core-mod --with-ipoib-mod --with-ipoib-cm --with-sdp-mod --with-srp-mod --with-srp-target-mod \
- --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_core-mod \
- --with-mlx4_en-mod --with-mlx4_inf-mod --with-rds-mod --with-madeye-mod \
- --with-cxgb3-mod --with-nes-mod
-endif
-
-
-# Broken opts
-# --with-iser-mod
-# --with-ehca
-# --with-nfsrdma-mod will not build for kernels >= 2.6.32
-# --with qlgc_vnic-mod will not build for kernels >= 2.6.31
+ --with-mlx4_en-mod --with-mlx4_inf-mod --with-rds-mod --with-madeye-mod \
+ --with-cxgb3-mod --with-nes-mod $(OFAKERNELOPTS)
# the kdist_clean target is called by make-kpkg modules_clean and from
# kdist* rules. It is responsible for cleaning up any changes that have
More information about the Pkg-ofed-commits
mailing list