Skip to contentSkip to conversation

Platform files question

DISCUSSION Michael Sokolov 3 participants 3 messages Nov 28, 2001 – Dec 28, 2001

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 10 lines · Michael Sokolov

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

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/

#2 lore raw
Quoted 2 lines · Armin Kuster

AFAIK your board header should go in include/asm-ppc/platforms and your board.c file should go arch/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/