* Updating include/asm symlink when $ARCH changes
@ 2007-09-27 9:25 Martin Michlmayr
2007-09-27 10:08 ` Alexey Dobriyan
2007-09-27 11:30 ` Sam Ravnborg
0 siblings, 2 replies; 3+ messages in thread
From: Martin Michlmayr @ 2007-09-27 9:25 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
I cross compile arm and mips kernels from the same kernel tree. When
I build a kernel the first time with a fresh kernel tree, the
include/asm symlink is set properly. However, when I compile for a
different $ARCH, the include/asm is not changed and the build fails.
Would it be possible for the build system to update the include/asm
symlink when it doesn't correspond to the architecture you're
currently trying to build for?
--
Martin Michlmayr
http://www.cyrius.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Updating include/asm symlink when $ARCH changes
2007-09-27 9:25 Updating include/asm symlink when $ARCH changes Martin Michlmayr
@ 2007-09-27 10:08 ` Alexey Dobriyan
2007-09-27 11:30 ` Sam Ravnborg
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2007-09-27 10:08 UTC (permalink / raw)
To: Martin Michlmayr; +Cc: Sam Ravnborg, linux-kernel
On 9/27/07, Martin Michlmayr <tbm@cyrius.com> wrote:
> I cross compile arm and mips kernels from the same kernel tree.
You can use O= feature and skip this issue completely.
make ARCH=mips O=../build/mips ...
make ARCH=arm O=../build/arm ...
> When
> I build a kernel the first time with a fresh kernel tree, the
> include/asm symlink is set properly. However, when I compile for a
> different $ARCH, the include/asm is not changed and the build fails.
>
> Would it be possible for the build system to update the include/asm
> symlink when it doesn't correspond to the architecture you're
> currently trying to build for?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Updating include/asm symlink when $ARCH changes
2007-09-27 9:25 Updating include/asm symlink when $ARCH changes Martin Michlmayr
2007-09-27 10:08 ` Alexey Dobriyan
@ 2007-09-27 11:30 ` Sam Ravnborg
1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2007-09-27 11:30 UTC (permalink / raw)
To: Martin Michlmayr; +Cc: linux-kernel
On Thu, Sep 27, 2007 at 11:25:21AM +0200, Martin Michlmayr wrote:
> I cross compile arm and mips kernels from the same kernel tree. When
> I build a kernel the first time with a fresh kernel tree, the
> include/asm symlink is set properly. However, when I compile for a
> different $ARCH, the include/asm is not changed and the build fails.
>
> Would it be possible for the build system to update the include/asm
> symlink when it doesn't correspond to the architecture you're
> currently trying to build for?
You are not the first to ask for this - suprise.
Alexey point out a good solution but I have added to my tod list
to do something a bit more intelligent when ARCH changes.
The patches I have seen so far has been lacking fundamental functionality
and on top of this I hope to find a nice way to preserve CROSSCOMPILE
since that often change too.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-27 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-27 9:25 Updating include/asm symlink when $ARCH changes Martin Michlmayr
2007-09-27 10:08 ` Alexey Dobriyan
2007-09-27 11:30 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome