WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] 3.1 build structure... Is there a way to get ONE linux direc

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] 3.1 build structure... Is there a way to get ONE linux directory? (fwd)
From: Tom Brown <xensource.com@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 2 Sep 2007 13:55:02 -0700 (PDT)
Delivery-date: Sun, 02 Sep 2007 13:55:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

My apologies if this has been asked (and answered) before.

The 3.1 tree seems to use a rather strange build tree... which
uses a bunch of directories (5?), none of which are a complete linux
source tree... (the build-linux-2.6.18-xen_x86_64 directory seems
to be the main one, and changes you make there with make
menuconfig do take effect.)

this is an issue, because some programs expect to be able to find
a complete linux source tree ... e.g. this is one of the errors
that stops drbd from building:

ls: /lib/modules/2.6.18-xen/build/include/linux/sched.h: No such file or directory

There are in fact 3 copies of linux/sched.h ... or links or
whatever...   (*)

    [root@gt2b /usr/src/xen-3.1.0-src]# find . -path *linux/sched.h
    ./linux-2.6.18-xen/include/linux/sched.h
    ./pristine-linux-2.6.18/include/linux/sched.h
    ./ref-linux-2.6.18/include/linux/sched.h

but the /lib/modules link points to build-linux-2.6.18-xen_x86_64
... and there's no sched.h reference in that directory tree.

    root@gt2b /usr/src/xen-3.1.0-src]# ls -ld /lib/modules/2.6.18-xen/build
    lrwxrwxrwx  1 root root 52 Aug 28 07:43 /lib/modules/2.6.18-xen/build ->
       /usr/src/xen-3.1.0-src/build-linux-2.6.18-xen_x86_64

    [root@gt2b /usr/src/xen-3.1.0-src]# du -sc *
    249120  build-linux-2.6.18-xen_x86_64
    273264  linux-2.6.18-xen
    5140    linux-2.6-xen-sparse
    7568    pristine-linux-2.6.18
    5088    ref-linux-2.6.18

Is there some magic incantation that we can call that will push
all these directories together so we have a complete linux source
tree that represents the kernel we are using? 3.0.x was _much_ nicer

-Tom

(*) this is ugly, there are two different linux/sched.h files :(

[root@gt2b /usr/src/xen-3.1.0-src]# find . -path *linux/sched.h -ls
2 root root 50777 Aug 28 06:31 ./linux-2.6.18-xen/include/linux/sched.h
1 root root 50633 Sep 19 2006 ./pristine-linux-2.6.18/include/linux/sched.h
2 root root 50777 Aug 28 06:31 ./ref-linux-2.6.18/include/linux/sched.h

I suppose that makes sense... pristine is descriptive....


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] 3.1 build structure... Is there a way to get ONE linux directory? (fwd), Tom Brown <=