Skip to contentSkip to conversation

Makefile fix for infinipath-psm

PATCH James A Simmons 2 participants 3 messages Sep 1, 2010 – Sep 2, 2010 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch allows make to work. The arch command has gone away with new coreutils so it is recommended to use uname -m instead.

Makefile renamed from Makefile.orig +4 -4
@@ -69,14 +69,14 @@
 include $(top_srcdir)/buildflags.mak
 lib_build_dir := $(build_dir)
 
-ifneq (x86_64,$(arch))
-   ifneq (i386,$(arch))
-      $(error Unsupported architecture $(arch))
+ifneq (x86_64,$(shell uname -m))
+   ifneq (i386,$(shell uname -m))
+      $(error Unsupported architecture $(shell uname -m))
    endif
 endif
 
 ifndef LIBDIR
-   ifeq (${arch},x86_64)
+   ifeq ($(shell uname -m),x86_64)
       INSTALL_LIB_TARG=/usr/lib64
    else
       INSTALL_LIB_TARG=/usr/lib

A message that is not in the archive (sent off-list or not yet received): 1283354621.14487.80.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org

#2 lore raw

install libsdp openib setup

This patch has the install.pl pass in the default --with-openib=$value for libsdp.

install.pl renamed from install.pl.orig +6 -0
@@ -3098,6 +3098,12 @@
             $cmd .= " --define 'build_ibmgtsim 1'";
             $cmd .= " --define '__arch_install_post %{nil}'";
         }
+        elsif ( $parent eq "libsdp") {
+            $packages_info{'libsdp'}{'configure_options'} .= " --with-openib=$prefix/src/openib";
+            $cmd .= " --define '_prefix $prefix'";
+            $cmd .= " --define '_exec_prefix $prefix'";
+            $cmd .= " --define '_sysconfdir $sysconfdir'";
+        }
         elsif ( $parent eq "mvapich") {
             my $compiler = (split('_', $name))[1];
             $cmd .= " --define '_name $name'";

A message that is not in the archive (sent off-list or not yet received): 1283355558.14487.83.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org

#4 lore raw

Re: install libsdp openib setup

It was a mistake to make a linkage between libsdp and the kernel.
I will roll back this constrain - so --with-openib will not be used any more, and duplicate sdp_socket.h in both, libsdp rpm and the kernel.

So, this will make your fix redundant.

Thanks anyway,
Amir

Quoted 4 lines · James A Simmons

This patch has the install.pl pass in the default --with-openib=$value for libsdp.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html