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] Xen build process

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Xen build process
From: George Valzcig <gvalzcig@xxxxxxxxx>
Date: Sat, 24 Jan 2009 18:24:13 -0500
Delivery-date: Sat, 24 Jan 2009 15:25:02 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=gHh847euZ5r//QhFlL6KFbuoHa0+M10v4TStN9BU4PA=; b=MS5nLwAe6czsq9sJr9KinokFi3OFpThJk0mtDwapWcjbB5A1xTi9X12Ml9KGoA4LBU ABbswkc/OBqyOiCGrNVqUMI900dpg1ckRmG9vXb69KFvZGY7FXFtZNlm6sDAvMed6bHd kL6hQNazahxHeHX1hg4Ghjv5MVg61IqPsMHZk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MgHGOxiqOKOUuRgW5d0a1nClkWdbCy6upxpYKK/jlFRUUE5DoQvSpurNz1Mb2cyQnP EKdUsyhyl8LdbNs0e83638xQbeKOcteZ4lowgyaLV0NX4Vd3GmeWsQArRqGX31GycCts ZMZrJhjrE2CdJqhS6dMqJwXF68yL2ye9ZeOZQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,
I am a beginner at Xen wishing to understand more about it. I have installed Xen 3.1.0 on debian-etch following this tutorial (http://www.howtoforge.com/debian_etch_xen_3.1). Now I will like to add printks to different source code and recompile to understand better. I dont understand as to the method for doing this.

As per my understanding,  when I run make world the very first time, the following happens
1) Compile code within xen and then make xen.gz and copy this to dist/install/boot
2) Download linux-2.6.18.tar.bz2 - expand that to pristine-linux-2.6.18
3) Copy pristine-linux-2.6.18 to ref-linux-2.6.18 and apply patches in ref-linux-2.6.18 from patches/
4) Copy ref-linux-2.6.18 to linux-2.6.18-xen and apply arch-xen patches to linux-2.6.18-xen
5) makemenuconfig with scripted selections in linux-2.6.18-xen
6) Make the modules using source code in linux-2.6.18-xen and the destination is build-linux-2.6.18-xen_x86_32
7) INSTALL these modules
8) Make vmlinuz
9) Put vmlinuz, config file etc in dist/install/
10) Compile the xen tools (byte compile any python scripts) in tools/ - install them in correct places in dist/install/
11) Then make install copies from dist/install to the correct places on the system.

a) Is my understanding of the process correct?
b) In step 4 the patches - where they are located?
c) In step 7 -I think this copies the modules compiled in step 6 into dist/ - is that right?
d) I touched some files in xen/ and ran make again - I saw that those files alone were recompiled in step 1 (steps 2,3,4,5,6 were not executed)
e) I touched some files in linux-2.6.18-xen/ - but when I run make again these files were not recompiled in step 6. So then I edited linux-2.6.18-xen/fs/udf/dist.c - included a printf with error in syntax - ran make again. The make process completed without any error. I tried this with a couple of other .h and .c files - same result.

So if I want to make changes to the code - where should I make them - how should I compile it?

Thanks



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Xen build process, George Valzcig <=