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
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareOn 9/10/07, Keir Fraser <[email protected]> wrote:
[snip]
Quoted 7 lines
Quoted 4 lines
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
Quoted 5 lines
-- Keir
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareQuoted 10 lines · pradeep singh rautela
Quoted 2 lines
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 noKconfigor Makefiles in linux-2.6.-xen-sparse/net/core/* .If i add my foo/ directory under net, will xen build automatically recognize my
Kconfigand 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
On 9/10/07, Keir Fraser <[email protected]> wrote:
[...]
Quoted 7 lines
Quoted 5 lines
If i add my foo/ directory under net, will xen build automatically recognize my
Kconfigand 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
Quoted 10 lines · pradeep singh rautela
On 9/10/07, Keir Fraser <[email protected]> wrote:
[snip]Quoted 7 lines
Quoted 4 lines
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.
Quoted 7 lines
aah.. i see.
BTW there are noKconfigor Makefiles in linux-2.6.-xen-sparse/net/core/* .If i add my foo/ directory under net, will xen build automatically recognize my
Kconfigand 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.
On 9/10/07, Ian Campbell <[email protected]> wrote:
[snip]
Quoted 8 lines
Quoted 4 lines
If i add my foo/ directory under net, will xen build automatically recognize my
Kconfigand 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
Quoted 7 lines
If this is just for local hacking you could modify the versions in the build tree without touching the sparse tree.
Ian.
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareHi Keir,
On 9/10/07, Keir Fraser <[email protected]> wrote:
[...]
Quoted 7 lines
Quoted 5 lines
If i add my foo/ directory under net, will xen build automatically recognize my
Kconfigand 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
Ok. Will give it a try.
thanks for the help.
--pradeep
Quoted 25 lines · Keir Fraser
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
Quoted 14 lines · pradeep singh rautela
Ok i added a new directory in standard Linux kernel, with correct
Kconfigand 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?
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareYou 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
Quoted 14 lines · pradeep singh rautela
Ok i added a new directory in standard Linux kernel, with correct
Kconfigand 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?
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
Quoted 39 lines · pradeep singh rautela
Ok. Will give it a try.
thanks for the help.--pradeep
Quoted 4 lines · Keir Fraser
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.
Quoted 21 lines
-- Keir
Quoted 14 lines · pradeep singh rautela
Ok i added a new directory in standard Linux kernel, with correct
Kconfigand 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
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareQuoted 4 lines · pradeep singh rautela
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.
Quoted 2 lines
- 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
Quoted 10 lines · Keir Fraser
Quoted 2 lines · pradeep singh rautela
- 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.
Quoted 2 lines
- 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?
Quoted 6 lines
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.hgMake world in xen-unstable will then pick up the adjacent Linux repository.
Sounds better.
Thank you for clarifications.
--pradeep
Quoted 5 lines
-- Keir
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. Shakespeare