Skip to contentSkip to conversation

BUG: make O= broken

DISCUSSION Gerd Hoffmann 3 participants 6 messages Dec 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

Building xenlinux kernels with separate source/build trees (aka "make O=/path/to/build/tree") doesn't work.

cheers,
Gerd

Signature · 1 line
Gerd Hoffmann <[email protected]>
#1 lore raw
Quoted 2 lines · Gerd Hoffmann

Building xenlinux kernels with separate source/build trees (aka "make O=/path/to/build/tree") doesn't work.

I build that way all the time, what specifically is broken?

Ian.

#2 lore raw
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Gerd Hoffmann

Building xenlinux kernels with separate source/build trees (aka "make O=/path/to/build/tree") doesn't work.

I build that way all the time, what specifically is broken?

Sorry, was something different.

I've tried to turn the sparse tree into a big patch (is there an easy way to do this btw?). Documentation/dontdiff excludes too much giving me a incomplete xenlinux tree, which in turn generated build errors looking much like it takes the wrong (native) include files. I've seen that in the past with O=, so I blamed it first ...

cheers,
Gerd

Signature · 1 line
Gerd Hoffmann <[email protected]>
#3 lore raw
Quoted 2 lines · Gerd Hoffmann

I've tried to turn the sparse tree into a big patch (is there an easy way to do this btw?).

make linux-2.6-xen.patch should give you a patch against the upstream kernel, is that what you are looking for?

Quoted 4 lines

Documentation/dontdiff excludes too much giving
me a incomplete xenlinux tree, which in turn generated build errors looking much like it takes the wrong (native) include files. I've seen that in the past with O=, so I blamed it first ...

That's strange -- I wouldn't expect the sparse tree to add anything which would be listed in dontdiff. Are the symlinks into the sparse tree confusing diff perhaps?

Ian.

#4 lore raw
Quoted 6 lines · Ian Campbell
Quoted 2 lines · Gerd Hoffmann

I've tried to turn the sparse tree into a big patch (is there an easy way to do this btw?).

make linux-2.6-xen.patch should give you a patch against the upstream kernel, is that what you are looking for?

I needed a patch against the ref tree, not the pristine tree. It should come close though, I'll have a look.

Quoted 8 lines
Quoted 4 lines

Documentation/dontdiff excludes too much giving
me a incomplete xenlinux tree, which in turn generated build errors looking much like it takes the wrong (native) include files. I've seen that in the past with O=, so I blamed it first ...

That's strange -- I wouldn't expect the sparse tree to add anything which would be listed in dontdiff. Are the symlinks into the sparse tree confusing diff perhaps?

No. Fixed up dontdiff, now it works, at least as long as I do the "prep" step only. Offending entries:

asm-offset.c (which is a bug IMHO).
asm (probably to catch include/asm symlink, but catches
include/asm-{arch}/mach-xen/asm too).
version.h (guess for the generated include/linux/version.h,
but catches include/xen/interface/version.h too).

cheers,
Gerd

Signature · 1 line
Gerd Hoffmann <[email protected]>
#5 lore raw
In reply to Gerd Hoffmann
Quoted 5 lines · Gerd Hoffmann

I've tried to turn the sparse tree into a big patch (is there an easy way to do this btw?). Documentation/dontdiff excludes too much giving me a incomplete xenlinux tree, which in turn generated build errors looking much like it takes the wrong (native) include files. I've seen that in the past with O=, so I blamed it first ...

I'm guess you got bit by dontdiff excluding `asm'? unfortunate naming there of asm-i386/mach-xen/asm and asm-x86/mach-xen/asm.

Cheers,
Muli