public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* Makefile fix for infinipath-psm
@ 2010-09-01 15:23 James A Simmons
       [not found] ` <1283354621.14487.80.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: James A Simmons @ 2010-09-01 15:23 UTC (permalink / raw)
  To: OFED; +Cc: infinipath-h88ZbnxC6KDQT0dZR+AlfA

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

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


[-- Attachment #2: make.diff --]
[-- Type: text/x-patch, Size: 593 bytes --]

--- Makefile.orig	2010-09-01 10:57:58.000000000 -0400
+++ Makefile	2010-09-01 10:58:40.000000000 -0400
@@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* install libsdp openib setup
       [not found] ` <1283354621.14487.80.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
@ 2010-09-01 15:39   ` James A Simmons
       [not found]     ` <1283355558.14487.83.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: James A Simmons @ 2010-09-01 15:39 UTC (permalink / raw)
  To: OFED; +Cc: amirv-VPRAkNaXOzVS1MOuV/RT9w

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

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



[-- Attachment #2: sdp-select.diff --]
[-- Type: text/x-patch, Size: 717 bytes --]

--- install.pl.orig	2010-09-01 11:36:11.000000000 -0400
+++ install.pl	2010-09-01 11:36:50.000000000 -0400
@@ -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'";

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: install libsdp openib setup
       [not found]     ` <1283355558.14487.83.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
@ 2010-09-02 12:34       ` Amir Vadai
  0 siblings, 0 replies; 3+ messages in thread
From: Amir Vadai @ 2010-09-02 12:34 UTC (permalink / raw)
  To: simmonsja-1Heg1YXhbW8; +Cc: James A Simmons, OFED

 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


On 09/01/2010 06:39 PM, James A Simmons wrote:
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-02 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 15:23 Makefile fix for infinipath-psm James A Simmons
     [not found] ` <1283354621.14487.80.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
2010-09-01 15:39   ` install libsdp openib setup James A Simmons
     [not found]     ` <1283355558.14487.83.camel-TbGF127JXZUcvh0c176lvQ@public.gmane.org>
2010-09-02 12:34       ` Amir Vadai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox