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

Re: [Xen-users] how to reduce time of git pulling each time when you do

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] how to reduce time of git pulling each time when you do a make world on Xen source
From: Tapas Mishra <mightydreams@xxxxxxxxx>
Date: Thu, 3 Mar 2011 14:34:11 +0530
Cc: Patrick Scharrenberg <pittipatti@xxxxxx>
Delivery-date: Thu, 03 Mar 2011 01:05:37 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5JKL7u8m9++bvFL2M7b9d4V8oDAFOrLDQut3yCcPHI4=; b=qFIaSM8D5l/9caVM+Figj81+UtznOvdgZeg2GkBVl5mPQa/PmOCbFFQCsaIJ5+c2qU WZPi/xMhCpr6wbScHHqHjftdTQuw014fBV7HHZMvCd4qdvTra/oCxBKwJjyrvJshE69+ 0L8XlHpJ8dB08ZvzCabiC44rQMvEna4/gZbJo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oTX5f1eApXVSLenIQM3PuQN9BwlbY9BU/YWscwvzzc5jNZ7b9Tvhck/Yr02RonBDFX urAHiVYUsMlTD7jdfvmIrORD24FQHJSYLLC0tYIrLELi0jb/qdPJ82IvpuLYZvrCmE7c KrROROr2cATlOIIDitjDyLeS4krJp23rPOigA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=dszYgC2NicOejJbSqP89bQR4-36USboR37F+=@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikn3kn59EHmiWWJujNsu3aqGtaKzLf-s8LZD0Af@xxxxxxxxxxxxxx> <201102261524.34974.patrick@xxxxxxxxxxxxxxxx> <AANLkTik-uiYxD7asK-g42poJMqnWS77bwuOjW+5JooFk@xxxxxxxxxxxxxx> <201102261729.16186.pittipatti@xxxxxx> <AANLkTi=dszYgC2NicOejJbSqP89bQR4-36USboR37F+=@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Feb 26, 2011 at 10:33 PM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
> On Sat, Feb 26, 2011 at 9:59 PM, Patrick Scharrenberg <pittipatti@xxxxxx> 
> wrote:
>> You can take a look into the Makefile:
>> there you'll find e.g.:
>>
>> world:
>>        $(MAKE) clean
>>        $(MAKE) kdelete
>>        $(MAKE) dist
>>
>> so what a "make world" does is
>>   make clean
>>   make kdelete
>> and finally
>>   make dist
>>
>> so if you solely do a "make dist" the build process skips the deletition of
>> the compiled binary objects (make clean) and skips deleting your checked out
>> kernel tree (make kdelete)
Thanks for this information Patrick.
>> so a "make dist" after an upgraded working copy (hg pull -u) only compiles 
>> the
>> files which have changed, which saves time.
>>
>> Please have a look at the Makefile, do a "make help" and take a look at the
>> README file for further information.
>>
>> Patrick
>>
>>
>>
>>
>

After digging this problem for some time I finally found a remedy for the same.

One needs to fix the src.git-clone file  for the same from the xen-4.0 tar


When you untar xen-4.0.1.tar then you see

xen-4.0.1/buildconfigs directory open file
src.git-clone and comment out following

[ -d $(LINUX_SRCDIR) ]; then \
               rm -rf $(LINUX_SRCDIR) $(LINUX_SRCDIR).tmp; \
               mkdir $(LINUX_SRCDIR).tmp; rmdir $(LINUX_SRCDIR).tmp; \
               $(GIT) clone -o $(XEN_GIT_ORIGIN) -n
$(XEN_LINUX_GIT_URL) $(LINUX_SRCDIR).tmp; \
               (cd $(LINUX_SRCDIR).tmp; git checkout -b
$(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \
               mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \
fi

The above lines in src.git-clone are responsible for this time consuming pull.

So what I did was manually did a pull in the above directory location
and during make xen and make tools etc I had had uncommented above
lines.So that pull does not happen again and again.

Now when you need to compile again and again xen-tools you can simply
copy the $HOME/linux-2.6-pvops.git.tmp to /usr/src/xen-4.0.1/

and  begin the compile process again.

make install xen-tools
and it should work fine.

I feel with this approach I have been able to save a lot of expensive
bandwidth and download time as well.
Let me know if some one feels this is wrong.
----
Regards
Tapas

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] how to reduce time of git pulling each time when you do a make world on Xen source, Tapas Mishra <=