Thread (21 messages) 21 messages, 7 authors, 2012-05-17

Re: kilauea compilation breaks with v3.3 kernel and ELDK 4.2

flat view

From: Josh Boyer <hidden>
Date: 2012-03-21 13:29:44

On Wed, Mar 21, 2012 at 8:10 AM, Robert Berger
[off-list ref] wrote:
Hi,

Up to 3.2.x I was able to compile a mainline kernel for the kilauea
board, but...

http://git.denx.de/?p=linux-denx.git;a=commitdiff;h=075bcf5879225d0c2a119c23d8046b890e051e81

shows, that mfdcrx was introduced in the v3.3 kernel.

The problem is that for ppc-linux-gcc (GCC) 4.2.2 (which comes with the
ELDK 4.2) this assembly instruction is not known and the build breaks.
Sigh.  GCC 4.2 is pretty old at this point.
There are some obvious workarounds, like using a more recent toolchain
(e.g ELDK 5.x) or use make -k to keep on compiling even when there is an
error as much as possible;)
That would be the most expedient option, yes.
What puzzles me is that also stuff for boards is being compiled which is
not really needed like treeboot-currituck.c even when I configure the
kernel for a kilauea board.

Is this on purpose and if so why?
All of the stuff in arch/powerpc/boot/ is built regardless of the
configured board and stuffed into a wrapper.a archive.  Then the
individual board targets are built and the necessary pieces are pulled
from the wrapper.a file.
Please advise.
If upgrading ELDK is an option for you, it will get you the quickest
solution.  Otherwise we'll need to figure out how to stub out the
instruction in boot/dcr.h and use the asm long trick.  Ew.  I can look
at that next week.

josh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help