public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* getting path to backport directory
@ 2009-09-29 20:15 Robert D. Russell
       [not found] ` <Pine.LNX.4.64.0909291613310.13129-yQ+R4xhlqLEyozb/sh1beDe48wsgrGvP@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Robert D. Russell @ 2009-09-29 20:15 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA


A general question on getting the correct backport.

On my machine, if I do "uname -r" I get
2.6.18-128.el5

If I do "cat /etc/redhat-release" I get
CentOs release 5.3 (Final)

If I look in "/usr/src/ofa_kernel/kernel_addons/backport"
the subdirectory I need to use for the current kernel is:
2.6.18-EL5.3

My question:  Is there somewhere in the system where I can
find (or generate) the string "2.6.18-EL5.3"?
I want to put that in my scripts so they will automatically
pick it up whenever we change versions (as we just did when
going to Centos -- it used to be 2.6.18-EL5.2 in the RedHat
version we were running before).  At present I have to edit
these scripts by hand, and that's a lousy way to do business.

Thanks,
Bob Russell

--
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] 4+ messages in thread

* Re: getting path to backport directory
       [not found] ` <Pine.LNX.4.64.0909291613310.13129-yQ+R4xhlqLEyozb/sh1beDe48wsgrGvP@public.gmane.org>
@ 2009-09-29 21:05   ` Steve Wise
  2009-09-29 21:47   ` John A. Gregor
  1 sibling, 0 replies; 4+ messages in thread
From: Steve Wise @ 2009-09-29 21:05 UTC (permalink / raw)
  To: Robert D. Russell; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA


If you have a configured ofa_kernel tree, then look at 
<path_to_ofa_kernel>/config.mk.  It contains the backport path.

Steve.


Robert D. Russell wrote:
>
> A general question on getting the correct backport.
>
> On my machine, if I do "uname -r" I get
> 2.6.18-128.el5
>
> If I do "cat /etc/redhat-release" I get
> CentOs release 5.3 (Final)
>
> If I look in "/usr/src/ofa_kernel/kernel_addons/backport"
> the subdirectory I need to use for the current kernel is:
> 2.6.18-EL5.3
>
> My question:  Is there somewhere in the system where I can
> find (or generate) the string "2.6.18-EL5.3"?
> I want to put that in my scripts so they will automatically
> pick it up whenever we change versions (as we just did when
> going to Centos -- it used to be 2.6.18-EL5.2 in the RedHat
> version we were running before).  At present I have to edit
> these scripts by hand, and that's a lousy way to do business.
>
> Thanks,
> Bob Russell
>
> -- 
> 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

--
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] 4+ messages in thread

* Re: getting path to backport directory
       [not found] ` <Pine.LNX.4.64.0909291613310.13129-yQ+R4xhlqLEyozb/sh1beDe48wsgrGvP@public.gmane.org>
  2009-09-29 21:05   ` Steve Wise
@ 2009-09-29 21:47   ` John A. Gregor
       [not found]     ` <4ac28072.jEyJX+IRBrF1KkkL%john.gregor-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org>
  1 sibling, 1 reply; 4+ messages in thread
From: John A. Gregor @ 2009-09-29 21:47 UTC (permalink / raw)
  To: rdr-zcUZCMB5SQOVc3sceRu5cw, linux-rdma-u79uwXL29TY76Z2rM5mHXA

"Robert D. Russell" <rdr-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org> wrote:
> A general question on getting the correct backport.
>
> On my machine, if I do "uname -r" I get
> 2.6.18-128.el5
>
> If I do "cat /etc/redhat-release" I get
> CentOs release 5.3 (Final)
>
> If I look in "/usr/src/ofa_kernel/kernel_addons/backport"
> the subdirectory I need to use for the current kernel is:
> 2.6.18-EL5.3
>
> My question:  Is there somewhere in the system where I can
> find (or generate) the string "2.6.18-EL5.3"?
> I want to put that in my scripts so they will automatically
> pick it up whenever we change versions (as we just did when
> going to Centos -- it used to be 2.6.18-EL5.2 in the RedHat
> version we were running before).  At present I have to edit
> these scripts by hand, and that's a lousy way to do business.

Run the script ofed_scripts/get_backport_dir.sh

-John Gregor
--
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] 4+ messages in thread

* Re: getting path to backport directory
       [not found]     ` <4ac28072.jEyJX+IRBrF1KkkL%john.gregor-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org>
@ 2009-09-30  8:35       ` Guy Coates
  0 siblings, 0 replies; 4+ messages in thread
From: Guy Coates @ 2009-09-30  8:35 UTC (permalink / raw)
  Cc: rdr-zcUZCMB5SQOVc3sceRu5cw, linux-rdma-u79uwXL29TY76Z2rM5mHXA

John A. Gregor wrote:
> "Robert D. Russell" <rdr-zcUZCMB5SQOVc3sceRu5cw@public.gmane.org> wrote:
>> A general question on getting the correct backport.
>>
>> On my machine, if I do "uname -r" I get
>> 2.6.18-128.el5
>>
>> If I do "cat /etc/redhat-release" I get
>> CentOs release 5.3 (Final)
>>
>> If I look in "/usr/src/ofa_kernel/kernel_addons/backport"
>> the subdirectory I need to use for the current kernel is:
>> 2.6.18-EL5.3
>>
>> My question:  Is there somewhere in the system where I can
>> find (or generate) the string "2.6.18-EL5.3"?
>> I want to put that in my scripts so they will automatically
>> pick it up whenever we change versions (as we just did when
>> going to Centos -- it used to be 2.6.18-EL5.2 in the RedHat
>> version we were running before).  At present I have to edit
>> these scripts by hand, and that's a lousy way to do business.
>

You can force the ofa-kernel build system to use a specific backport by doing:

ofed_scripts/ofed_patch.sh --kernel-version=2.6.18-EL5.3
./configure ; make ; make install

That is handy if the kernel version contains extra bits that confuses the 
ofed_patch script.

Cheers,

Guy



-- 
Dr. Guy Coates,  Informatics System Group
The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
Tel: +44 (0)1223 834244 x 6925
Fax: +44 (0)1223 496802


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
--
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] 4+ messages in thread

end of thread, other threads:[~2009-09-30  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29 20:15 getting path to backport directory Robert D. Russell
     [not found] ` <Pine.LNX.4.64.0909291613310.13129-yQ+R4xhlqLEyozb/sh1beDe48wsgrGvP@public.gmane.org>
2009-09-29 21:05   ` Steve Wise
2009-09-29 21:47   ` John A. Gregor
     [not found]     ` <4ac28072.jEyJX+IRBrF1KkkL%john.gregor-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org>
2009-09-30  8:35       ` Guy Coates

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