Re: [kbuild-devel] Building out of a different source branch

2007-05-03 Thread Sam Ravnborg
On Thu, May 03, 2007 at 10:47:48AM -0700, H. Peter Anvin wrote:
 Hello,
 
 I would like to get rid of arch/x86_64/boot, which *should* be binary
 identical with arch/i386/boot (it's not right now, but I'm fixing that.)
 
 Is there a way to make Kbuild decend so that src=arch/i386/boot but
 obj=arch/x86_64/boot (which may entail having to create directories even
 when not compiling with O=?)  It seems the infrastructure is already there.

There is no way to do that today - despite some part of the
infrastructure is prepared as you have noticed.

Would it be OK if we have arch/x86_64/boot present and have stub Makefiles
in all directories?
If thats OK I can try to cook up something.

It has been discussed to put all common stuff in arch/x86 which would anyway
call for a generic solution. For kbuild it does not matter if src shall be
located in i386 or x86 directory structure.

Sam

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


Re: [kbuild-devel] Building out of a different source branch

2007-05-03 Thread H. Peter Anvin
Sam Ravnborg wrote:
 On Thu, May 03, 2007 at 01:14:15PM -0700, H. Peter Anvin wrote:
 Sam Ravnborg wrote:
 Would it be OK if we have arch/x86_64/boot present and have stub Makefiles
 in all directories?
 If thats OK I can try to cook up something.

 That's certainly acceptable as an interrim solution.  The right thing
 can wait for the x86 merge, probably.
 
 The general issue with current infrastructure is that we do not
 honour $(src) and $(obj) in the implicit rules.
 So I added these.
 
 Then next problem is how to set src to the correct value.
 For arch/x86_64/boot I could just set it in the make invocation.
 For directories below boot/ I do not know yet how to do it.
 
 With patch below and with a one line Makefile in
 x86_64/boot thet just included arch/i386/boot/Makefile
 I could compile the boot directory.
 So not a full solution yet but on the right track.
 

FWIW, in the meantime I'm making forward progress simply by symlinking
arch/x86_64/boot - ../../i386/boot.  Works great, but I don't think
symlinks in the tarball are accepted, and if it's dynamically generated
it would break O=.

-hpa

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel