Platform files question
Hi there,
Now that we have arch/ppc/platforms and include/asm-ppc/platforms for all platform-specific files, I have this question for you guys. When I do a new platform port, should I put the main .h file for the platform in arch/ppc/platforms or in include/asm-ppc/platforms?
MS
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Michael Sokolov
Hi there,
Now that we have
arch/ppc/platformsandinclude/asm-ppc/platformsfor all platform-specific files, I have this question for you guys. When I do a new platform port, should I put the main .h file for the platform inarch/ppc/platformsor ininclude/asm-ppc/platforms?MS
AFAIK your board header should go in include/asm-ppc/platforms and your board.c file should go arch/ppc/platforms
-- armin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Armin Kuster
AFAIK your board header should go in
include/asm-ppc/platformsand yourboard.cfile should goarch/ppc/platforms
Which is of course true today but a big change from the way the kernel has evolved. We used to put all of the include files (or others) that were unique to a platform (or unused outside of the kernel) together in lower level directories. Just a bit of trivia so eveyone understands why it was done the "old" way and why it may be hard to change to the "new" way :-).
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/