pradeep singh rautela
2007-Sep-10 08:36 UTC
[Xen-devel] [Q]What are the build rules for Xen?
Hi All, the standard linux kernel Kbuild system is good. I have used it to add my new subsystem foo and build the modules by editing/adding Kconfig files and Makefiles. How do i add such a new directory in xen? e.g I want to add a new directory say foo under blkfront for domU. Can use the same rules as kbuild system? Any caveats? thanks --psr -- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 10/9/07 09:36, "pradeep singh rautela" <rautelap@gmail.com> wrote:> the standard linux kernel Kbuild system is good. > I have used it to add my new subsystem foo and build the modules by > editing/adding Kconfig files and Makefiles. > > How do i add such a new directory in xen? > e.g I want to add a new directory say foo under blkfront for domU. > Can use the same rules as kbuild system?In that specific example (blkfront/foo) you are modifying a Linux source tree, so of course you use Kbuild. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-10 08:50 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
On 9/10/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: [snip]> > > > How do i add such a new directory in xen? > > e.g I want to add a new directory say foo under blkfront for domU. > > Can use the same rules as kbuild system? > > In that specific example (blkfront/foo) you are modifying a Linux source > tree, so of course you use Kbuild.aah.. i see. BTW there are no Kconfig or Makefiles in linux-2.6.-xen-sparse/net/core/* . If i add my foo/ directory under net, will xen build automatically recognize my Kconfig and makefile?[after i create them under sparse/net/foo/] and thus will it be included automatically during make world? Thanks for the clarification Keir. --psr> > -- Keir > > >-- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 10/9/07 09:50, "pradeep singh rautela" <rautelap@gmail.com> wrote:>> In that specific example (blkfront/foo) you are modifying a Linux source >> tree, so of course you use Kbuild. > > aah.. i see. > BTW there are no Kconfig or Makefiles in linux-2.6.-xen-sparse/net/core/* . > > If i add my foo/ directory under net, will xen build automatically > recognize my Kconfig and makefile?[after i create them under > sparse/net/foo/] and thus will it be included automatically during > make world?Yes, those files get overlayed on top of a full Linux tree. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-10 08:57 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
On 9/10/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: [...]> > > > If i add my foo/ directory under net, will xen build automatically > > recognize my Kconfig and makefile?[after i create them under > > sparse/net/foo/] and thus will it be included automatically during > > make world? > > Yes, those files get overlayed on top of a full Linux tree.Great!! Thank you Keir for help. Best Regards --psr -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, 2007-09-10 at 14:20 +0530, pradeep singh rautela wrote:> On 9/10/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: > [snip] > > > > > > How do i add such a new directory in xen? > > > e.g I want to add a new directory say foo under blkfront for domU. > > > Can use the same rules as kbuild system? > > > > In that specific example (blkfront/foo) you are modifying a Linux source > > tree, so of course you use Kbuild. > > aah.. i see. > BTW there are no Kconfig or Makefiles in linux-2.6.-xen-sparse/net/core/* . > > If i add my foo/ directory under net, will xen build automatically > recognize my Kconfig and makefile?[after i create them under > sparse/net/foo/] and thus will it be included automatically during > make world?I think you''d need to seed the sparse tree with net/{Kconfig,Makefile} fro the ref- tree and then modify them to refer to your new subdirectory. If this is just for local hacking you could modify the versions in the build tree without touching the sparse tree. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-10 11:27 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
On 9/10/07, Ian Campbell <Ian.Campbell@xensource.com> wrote: [snip]> > If i add my foo/ directory under net, will xen build automatically > > recognize my Kconfig and makefile?[after i create them under > > sparse/net/foo/] and thus will it be included automatically during > > make world? > > I think you''d need to seed the sparse tree with net/{Kconfig,Makefile} > fro the ref- tree and then modify them to refer to your new > subdirectory.Sorry Ian, but i did not understand fully what you mean here. Can you please elaborate? Thanks --psr> > If this is just for local hacking you could modify the versions in the > build tree without touching the sparse tree. > > Ian. > >-- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-11 05:41 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
Hi Keir, On 9/10/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: [...]> > > > If i add my foo/ directory under net, will xen build automatically > > recognize my Kconfig and makefile?[after i create them under > > sparse/net/foo/] and thus will it be included automatically during > > make world? > > Yes, those files get overlayed on top of a full Linux tree.Ok i added a new directory in standard Linux kernel, with correct Kconfig and Makefiles altered/changed. Linux kernel build was fine. I copied the tar.bz2 archive of this modified tree to xen-3.1 src directory and did a make world and now here is the problem. I get - "xen-3.1.0-src/linux-2.6.18-xen is not clean, please run ''make mrproper''." And i don''t want this. I want Xen to use the new tree. What am i supposed to do in Xen now? I am not an expert at xen build system so may be anybody good at it can give me some hints? Thanks in Advance --pradeep -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-11 06:17 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
Ok. Will give it a try. thanks for the help. --pradeep On 9/11/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> You could take xenbits.xensource.com/linux-2.6.18-xen.hg and use that full > Linux tree instead. We don''t use the Linux sparse tree in ongoing > development any more. > > -- Keir > > On 11/9/07 06:41, "pradeep singh rautela" <rautelap@gmail.com> wrote: > > > Ok i added a new directory in standard Linux kernel, with correct > > Kconfig and Makefiles altered/changed. Linux kernel build was fine. > > > > I copied the tar.bz2 archive of this modified tree to xen-3.1 src > > directory and did a make world and now here is the problem. > > I get - > > > > "xen-3.1.0-src/linux-2.6.18-xen is not clean, please run ''make mrproper''." > > > > And i don''t want this. I want Xen to use the new tree. What am i > > supposed to do in Xen now? > > > > I am not an expert at xen build system so may be anybody good at it > > can give me some hints? > > >-- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
You could take xenbits.xensource.com/linux-2.6.18-xen.hg and use that full Linux tree instead. We don''t use the Linux sparse tree in ongoing development any more. -- Keir On 11/9/07 06:41, "pradeep singh rautela" <rautelap@gmail.com> wrote:> Ok i added a new directory in standard Linux kernel, with correct > Kconfig and Makefiles altered/changed. Linux kernel build was fine. > > I copied the tar.bz2 archive of this modified tree to xen-3.1 src > directory and did a make world and now here is the problem. > I get - > > "xen-3.1.0-src/linux-2.6.18-xen is not clean, please run ''make mrproper''." > > And i don''t want this. I want Xen to use the new tree. What am i > supposed to do in Xen now? > > I am not an expert at xen build system so may be anybody good at it > can give me some hints?_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-11 08:50 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
Hi Keir, I have the latest linux-2.6.18-xen repos clone. xen-unstable repo is in the process of being cloned[ will take sometime it seems]. I have a very naive query now. - So a make world in xen-unstable now does not fetches a 2.6.18 bzipped kernel from kernel.org? - I guess now we need to copy the linux-2.6.18-xen src tree to xen-unstable and then do a make world??? or do make kernels? I hope answers to these are there in xen-unstables/README ? Thanks --pradeep On 9/11/07, pradeep singh rautela <rautelap@gmail.com> wrote:> Ok. Will give it a try. > thanks for the help. > > --pradeep > On 9/11/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: > > You could take xenbits.xensource.com/linux-2.6.18-xen.hg and use that full > > Linux tree instead. We don''t use the Linux sparse tree in ongoing > > development any more. > > > > -- Keir > > > > On 11/9/07 06:41, "pradeep singh rautela" <rautelap@gmail.com> wrote: > > > > > Ok i added a new directory in standard Linux kernel, with correct > > > Kconfig and Makefiles altered/changed. Linux kernel build was fine. > > > > > > I copied the tar.bz2 archive of this modified tree to xen-3.1 src > > > directory and did a make world and now here is the problem. > > > I get - > > > > > > "xen-3.1.0-src/linux-2.6.18-xen is not clean, please run ''make mrproper''." > > > > > > And i don''t want this. I want Xen to use the new tree. What am i > > > supposed to do in Xen now? > > > > > > I am not an expert at xen build system so may be anybody good at it > > > can give me some hints? > > > > > > > > > -- > -- > pradeep singh rautela > > "question = ( to ) ? be : ! be;" > -- Wm. Shakespeare >-- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 11/9/07 09:50, "pradeep singh rautela" <rautelap@gmail.com> wrote:> I have a very naive query now. > > - So a make world in xen-unstable now does not fetches a 2.6.18 > bzipped kernel from kernel.org?That''s right. It now looks for a linux-2.6.18-xen.hg repo, downloading it from xenbits if necessary.> - I guess now we need to copy the linux-2.6.18-xen src tree to > xen-unstable and then do a make world??? or do make kernels?You can put that repo adjacent to your xen-unstable tree. That is, you''ll have: /path/to/xen-unstable.hg /path/to/linux-2.6.18-xen.hg Make world in xen-unstable will then pick up the adjacent Linux repository. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Sep-11 10:14 UTC
Re: [Xen-devel] [Q]What are the build rules for Xen?
On 9/11/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> On 11/9/07 09:50, "pradeep singh rautela" <rautelap@gmail.com> wrote: > > - So a make world in xen-unstable now does not fetches a 2.6.18 > > bzipped kernel from kernel.org? > > That''s right. It now looks for a linux-2.6.18-xen.hg repo, downloading it > from xenbits if necessary. > > > - I guess now we need to copy the linux-2.6.18-xen src tree to > > xen-unstable and then do a make world??? or do make kernels? > > You can put that repo adjacent to your xen-unstable tree. That is, you''ll > have: > /path/to/xen-unstable.hg > /path/to/linux-2.6.18-xen.hg > > Make world in xen-unstable will then pick up the adjacent Linux repository.Sounds better. Thank you for clarifications. --pradeep> > -- Keir > > >-- -- pradeep singh rautela "question = ( to ) ? be : ! be;" -- Wm. Shakespeare _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel