Platform files question
Quoted 2 lines · Armin Kuster
AFAIK your board header should go in
include/asm-ppc/platformsand yourboard.cfile should goarch/ppc/platforms
Then are all the platforms that have their headers together with source files in arch/ppc/platforms and nothing in include/asm-ppc wrong? For example, back in MVista's 2.2 tree k2.h was in include/asm-ppc, but when I got to the public tree, which by then was linuxppc_2_4_devel, it moved to arch/ppc/kernel and is now in arch/ppc/platforms.
MS
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 11 lines · Michael Sokolov
Quoted 2 lines · Armin Kuster
AFAIK your board header should go in
include/asm-ppc/platformsand yourboard.cfile should goarch/ppc/platformsThen are all the platforms that have their headers together with source files in
arch/ppc/platformsand nothing ininclude/asm-ppcwrong? For example, back in MVista's 2.2 treek2.hwas ininclude/asm-ppc, but when I got to the public tree, which by then waslinuxppc_2_4_devel, it moved toarch/ppc/kerneland is now inarch/ppc/platforms.
There's no exact way right now. But it breaks down like this, if you have a port which does _not_ need to change include/asm-ppc/serial.h, they can all go in arch/ppc/platforms. If you change include/asm-ppc/serial.h AND newBoard_serial.h needs to include newBoard.h, they both go in include/asm-ppc/platforms/.
If you're 8xx or 8260 tho, they always go in include/asm-ppc/platforms because of how m8xx/m8260 ports work.
And there's always exceptions to the rule to boot :)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/