|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [Xen-staging] [xen-unstable] If we find a Linux reposito
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
|
|
|
|
|