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

Re: [Xen-devel] How to build my own Linux tarball?

To: Michael David Crawford <mdc@xxxxxxxxx>
Subject: Re: [Xen-devel] How to build my own Linux tarball?
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Tue, 12 May 2009 10:32:01 +1000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 11 May 2009 17:32:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A02FAB7.8070908@xxxxxxxxx>
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>
References: <4A02FAB7.8070908@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Thu, May 07, 2009 at 08:13:59AM -0700, Michael David Crawford wrote:
> I'm trying to build my own version of the Linux Dom0 kernel.  I started  
> with the linux-2.6.18-xen-3.3.0 tarball, then made some edits, then  
> rolled up my sources into a .tar.bz2.
>
> According to the Wiki I should be able to build using *my* version of  
> the sources with the following commands:
>
> $ export XEN_LINUX_SOURCE=tarball
> $ make world
>
> but no matter what I try, I can't get it to build my source.  Sometimes  
> it wants to download the kernel.org tarball, and sometimes the build  
> just fails, depending on what I try.
>
> I have Googled from horizon to horizon, but have not found any insight.
>
> If the above commands are expected to work, where exactly should my  
> tarball be placed in relation to the xen-3.3.1 directory?
>
> Does my Linux tarball have to have a particular name?

Hi Mike,

looking at the code, it seems to me that the tarball target
is not designed to handle the case where the tarball already
exists locally. As a work-around, could unpack the kernel manually.
Note that this won't work if you run make world, as it runs
make kclean, which cleans the kernel directory before building:

# cd xen-3.3.1
# make clean kdelete
# tar -zxf ../../xen-3.3.0/linux-2.6.18-xen-3.3.0.tar.gz
# mv linux-2.6.18-xen-3.3.0 linux-2.6.18
# touch linux-2.6.18/.valid-src
# make XEN_LINUX_SOURCE=tarball dist

Or you could build the kernel(s) separately,
possibly outside of the xen-3.3.1 tree.

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

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