From: Alex Williamson <alex.williamson@hp.com>
To: Ian Campbell <Ian.Campbell@XenSource.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [Xen-staging] [xen-unstable] If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it
Date: Mon, 04 Jun 2007 16:19:05 -0600 [thread overview]
Message-ID: <1180995545.6624.6.camel@lappy> (raw)
In-Reply-To: <1180994618.5416.29.camel@cthulhu.hellion.org.uk>
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.
next prev parent reply other threads:[~2007-06-04 22:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200706041442.l54EgKQp007662@latara.uk.xensource.com>
2007-06-04 18:49 ` [Xen-staging] [xen-unstable] If we find a Linux repository in $(LINUX_SRC_PATH) then symlink it Alex Williamson
2007-06-04 21:37 ` Ian Campbell
2007-06-04 21:44 ` Alex Williamson
2007-06-04 22:03 ` Ian Campbell
2007-06-04 22:19 ` Alex Williamson [this message]
2007-06-05 7:11 ` Ian Campbell
2007-06-05 7:31 ` Re: [Xen-staging] [xen-unstable] If we find a Linuxrepository " Cui, Dexuan
2007-06-05 7:54 ` Ian Campbell
2007-06-05 8:29 ` Re: [Xen-staging] [xen-unstable] If we find aLinuxrepository " Cui, Dexuan
2007-06-05 15:27 ` Ian Campbell
2007-06-05 7:59 ` Re: [Xen-staging] [xen-unstable] If we find a Linux repository " Ian Campbell
2007-06-05 14:21 ` Alex Williamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1180995545.6624.6.camel@lappy \
--to=alex.williamson@hp.com \
--cc=Ian.Campbell@XenSource.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.