[openib-general] Re: Gen2 build/update process

Michael S. Tsirkin mst at mellanox.co.il
Mon Jul 11 13:11:05 PDT 2005


Quoting r. Bernhard Fischer <rep.nop at aon.at>:
> Subject: Re: Gen2 build/update process
> 
> On Mon, Jul 11, 2005 at 12:10:48PM -0700, Tom Duffy wrote:
> >Sayantan Sur wrote:
> >
> >>Hi,
> >>
> >>Is there any plan to have any formal install procedure instead of the
> >>current process of going into subdirectories and building?
> >>
> >>If someone has build scripts to share, that'll be real nice.
> >> 
> >>
> >
> >What are you trying to build?  Kernel build should not need to do this.
> 
> .. and src/userspace/management has a 'automake' target.
> 
> In case it's helpful for you, i'm attaching a simple script which can
> be easily extended to cover the rest. I usually call it like this:
> nohup ./mk.openib2.usr.sh 01a
> It's not pretty but you get the idea.
> 
> hth,
> Bernhard

My scripts are simpler: e.g. for management (I have one for libibverbs too):

#!/bin/sh -x
#1. In libibcommon, libibumad, and libibmad (in that order), run:
( cd libibcommon && ./autogen.sh && ./configure && make && make install )
( cd libibumad && ./autogen.sh && ./configure && make && make install )
( cd libibmad && ./autogen.sh && ./configure && make && make install )

#2. In osm/complib and osm/libvendor, run:
( cd osm/complib && ./autogen.sh && ./configure && make && make install )
( cd osm/libvendor && ./autogen.sh && ./configure && make && make install )
#3. In all util/mad_test, diags, and osm/opensm subdirectories, run:
( cd util/mad_test && ./autogen.sh && ./configure )
( cd diags && ./autogen.sh && ./configure )
( cd osm/opensm && ./autogen.sh && ./configure )
#4. At top level of management, run:
( make && make install )

-- 
MST



More information about the general mailing list