[PATCH] fix prom_init undefined error

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Feb 8 14:59:21 EST 2006


On Tue, 2006-02-07 at 15:10 -0800, Geoff Levand wrote:
> Paul,
> 
> This patch fixes a build error when CONFIG_PPC_OF=n,
> CONFIG_PPC_MULTIPLATFORM=y.  It makes the conditionals
> consistent in arch/powerpc/kernel/Makefile and head_64.S
> to both be on CONFIG_PPC_OF.
> 
>   arch/powerpc/kernel/head_64.o: In function `.__boot_from_prom':
>   linux/arch/powerpc/kernel/head_64.S:(.text+0x8158): undefined reference to `.prom_init'
> 
> obj-$(CONFIG_PPC_OF) += prom_init.o

With ARCH=powerpc, CONFIG_PPC_OF should always be set. It's supposed to
be set when the device-tree accessors exist which they always do.

Besides, I'll be removing support for !MULTIPLATFORM too :) (Except for
iSeries at least for a little while). Look at the patch I posted that
removes _machine for an idea of where things are going.

Why do you want CONFIG_PPC_OF not set ?

Ben.




More information about the Linuxppc64-dev mailing list