[Pkg-ofed-commits] r685 - /trunk/ofa-kernel/trunk/debian/rules

gmpc-guest at alioth.debian.org gmpc-guest at alioth.debian.org
Mon Mar 1 13:40:33 UTC 2010


Author: gmpc-guest
Date: Mon Mar  1 13:40:26 2010
New Revision: 685

URL: http://svn.debian.org/wsvn/pkg-ofed/?sc=1&rev=685
Log:
Fix architecture detection

Modified:
    trunk/ofa-kernel/trunk/debian/rules

Modified: trunk/ofa-kernel/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ofed/trunk/ofa-kernel/trunk/debian/rules?rev=685&op=diff
==============================================================================
--- trunk/ofa-kernel/trunk/debian/rules (original)
+++ trunk/ofa-kernel/trunk/debian/rules Mon Mar  1 13:40:26 2010
@@ -26,6 +26,8 @@
 CROSS= --build $(DEB_BUILD_GNU_TYPE)
 endif
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 # Ofed quilt script assumes kernel versions with extra bits on the end are SLES/RH kernels 
 # and so applies the wrong patch sets. We cut the extra versions off and feed just the base
 # kernel version to OFED build scripts
@@ -69,6 +71,9 @@
 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 \




More information about the Pkg-ofed-commits mailing list