]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix building of pmac32 when CONFIG_NVRAM=m
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 29 Apr 2008 01:42:32 +0000 (11:42 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 29 Apr 2008 05:57:34 +0000 (15:57 +1000)
commit21e38dfee53a2159d14a24a3d2277ae757599efa
tree95011183bb7e21aba9cd679e276384243d48be97
parent85218827cc4ca900867807f19345418164ffc108
[POWERPC] Fix building of pmac32 when CONFIG_NVRAM=m

Kamalesh Babulal (kamalesh@linux.vnet.ibm.com) reports that CONFIG_NVRAM=m
is valid in terms of Kconfig but fails to build with:
  Building modules, stage 2.
  MODPOST 1401 modules
ERROR: "pmac_newworld" [arch/powerpc/platforms/powermac/nvram.ko] undefined!
ERROR: "__alloc_bootmem" [arch/powerpc/platforms/powermac/nvram.ko] undefined!
make[1]: *** [__modpost] Error

The arch/powerpc/platforms/powermac/nvram.c code really needs to be
builtin, but as its compilation is dependent on a generic Kconfig
symbol we force nvram.c to be builtin if CONFIG_NVRAM is 'y' or 'm'.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/powermac/Makefile
arch/powerpc/platforms/powermac/setup.c