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-devel

[Xen-devel] Re: [Xen-staging] [xen-unstable] If we find a Linux reposito

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [Xen-staging] [xen-unstable] If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 04 Jun 2007 16:19:05 -0600
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Jun 2007 15:17:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1180994618.5416.29.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <200706041442.l54EgKQp007662@xxxxxxxxxxxxxxxxxxxxxxx> <1180982974.6221.151.camel@bling> <1180993053.5416.6.camel@xxxxxxxxxxxxxxxxxxxxxx> <1180993454.6221.200.camel@bling> <1180994618.5416.29.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2007-06-04 at 23:03 +0100, Ian Campbell wrote:
> 
> Are you sure?

   Yup.

> $ ls
> COPYING    Config.mk.orig  Makefile  buildconfigs/  config/  extras/      
> patches/  unmodified_drivers/
> Config.mk  Config.mk~      README    commitmsg~     docs/    install.sh*  
> tools/    xen/
> $ make linux-2.6-xen0-prep
> [...snip...]
> select-repository: Searching `.:..' for linux-2.6.18-xen.hg
> select-repository: Ignoring `.'
> select-repository: Found ../linux-2.6.18-xen.hg
> Linking ../linux-2.6.18-xen.hg to linux-2.6.18-xen.hg.
> $ ls -l
> [...snip...]
> lrwxrwxrwx   1 ianc xendev    22 Jun  4 22:55 linux-2.6.18-xen.hg -> 
> ../linux-2.6.18-xen.hg/
> 
> versus (in the same directory)
> 
> $ make distclean
> $ ls
> COPYING    Config.mk.orig  Makefile  buildconfigs/  config/  extras/      
> patches/  unmodified_drivers/
> Config.mk  Config.mk~      README    commitmsg~     docs/    install.sh*  
> tools/    xen/
> $ LINUX_SRC_PATH='' make linux-2.6-xen0-prep
> select-repository: Found http://hg.uk.xensource.com/linux-2.6.18-xen.hg
> Cloning http://hg.uk.xensource.com/linux-2.6.18-xen.hg to linux-2.6.18-xen.hg.

You're cloning from a remote repo, mine is local on disk:

#:~$ hg clone ~/xen-upstream/staging/xen-unstable.hg test
2979 files updated, 0 files merged, 0 files removed, 0 files unresolved
#:~$ cd test
#:~/test$ LINUX_SRC_PATH='' make linux-2.6-xen0-prep
make -f buildconfigs/mk.linux-2.6-xen0 prep
make[1]: Entering directory `/home/awilliam/test'
set -e ; \
        if [ ! -e linux-2.6.18-xen.hg/.hg ] ; then \
            __repo=$(sh buildconfigs/select-repository linux-2.6.18-xen.hg ) ; \
            if [ -d ${__repo} ] ; then \
                echo "Linking ${__repo} to linux-2.6.18-xen.hg." ; \
                ln -s ${__repo} linux-2.6.18-xen.hg ; \
            else \
                echo "Cloning ${__repo} to linux-2.6.18-xen.hg." ; \
                hg clone ${__repo} linux-2.6.18-xen.hg ; \
            fi ; \
        else \
            __parent=$(hg -R linux-2.6.18-xen.hg path default) ; \
            echo "Pulling changes from ${__parent} into linux-2.6.18-xen.hg." ; 
\
            hg -R linux-2.6.18-xen.hg pull ${__parent} ; \
        fi
select-repository: Found /home/awilliam/xen-upstream/staging/linux-2.6.18-xen.hg
Linking /home/awilliam/xen-upstream/staging/linux-2.6.18-xen.hg to 
linux-2.6.18-xen.hg.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

#:~/test$ ls -l
...
lrwxrwxrwx  1 awilliam awilliam    55 2007-06-04 16:11 linux-2.6.18-xen.hg -> 
/home/awilliam/xen-upstream/staging/linux-2.6.18-xen.hg

#:~test$ ls -l ~/xen-upstream/staging
drwxr-xr-x 21 awilliam awilliam 4096 2007-06-04 12:36 linux-2.6.18-xen.hg
drwxr-xr-x 10 awilliam awilliam 4096 2007-06-04 12:32 xen-unstable.hg

I would think this is a pretty standard development setup.  With the
number of trees I go through in a day, I certainly don't want to have to
keep them remote in order to get a cloned copy.

> $ ls -l 
> [...snip...]
> drwxr-xr-x   3 ianc xendev    72 Jun  4 22:57 linux-2.6.18-xen.hg/
> 
> I think you are saying that you have a directory 'working' which is
> parented off a pristine '../xen-unstable.hg'. Therefore it should
> calculate the parent Linux repository as being
> '../linux-2.6.18-xen.hg'
> and clone that, since it won't find it via LINUX_SRC_PATH which is ''.

   It finds it via the hg path, not the search path.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


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

<Prev in Thread] Current Thread [Next in Thread>