Updating include/asm symlink when $ARCH changes

Previous thread: 2.6.23-rc8-mm2 by Andrew Morton on Thursday, September 27, 2007 - 5:22 am. (56 messages)

Next thread: [PATCH -mm] task_struct: move ->fpu_counter and ->oomkilladj by Alexey Dobriyan on Thursday, September 27, 2007 - 5:55 am. (2 messages)
To: Sam Ravnborg <sam@...>
Cc: <linux-kernel@...>
Date: Thursday, September 27, 2007 - 5:25 am

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/
-

To: Martin Michlmayr <tbm@...>
Cc: <linux-kernel@...>
Date: Thursday, September 27, 2007 - 7:30 am

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
-

To: Martin Michlmayr <tbm@...>
Cc: Sam Ravnborg <sam@...>, <linux-kernel@...>
Date: Thursday, September 27, 2007 - 6:08 am

You can use O= feature and skip this issue completely.

make ARCH=mips O=../build/mips ...
-

Previous thread: 2.6.23-rc8-mm2 by Andrew Morton on Thursday, September 27, 2007 - 5:22 am. (56 messages)

Next thread: [PATCH -mm] task_struct: move ->fpu_counter and ->oomkilladj by Alexey Dobriyan on Thursday, September 27, 2007 - 5:55 am. (2 messages)