From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <15364.32906.728532.676746@gargle.gargle.HOWL> Date: Wed, 28 Nov 2001 17:13:30 +1100 (EST) To: Dan Malek Cc: linuxppc-dev@lists.linuxppc.org Subject: Re: include/asm-ppc/platforms/ In-Reply-To: <3C2B376F.9070508@embeddededge.com> References: <15363.31192.101536.919771@gargle.gargle.HOWL> <3C2B376F.9070508@embeddededge.com> Reply-To: paulus@samba.org Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Dan Malek writes: > That's a pretty good idea, and I have another one. Name the > directory include/asm-ppc/ppc-platforms or something, then > have a symbolic link > include/asm/platform -> include/asm-ppc/ppc-platforms/ > > That way we can just #include instead of having lots > of ifdefs in upper level files to determine which one is needed. If > we are moving files around, let's have some effect on actually making > it easier to use them, too. I have figured out a way to do this without too much pain. The idea is that we will have platform.h and platform-serial.h be symlinks to files in include/asm-ppc/platforms/. The way that I am suggesting that we do this is to have special comments in those files (the ones in include/asm-ppc/platforms) that say what should be symlinked, like this, from include/asm-ppc/platforms/all_ppc_serial.h: /* Link to platform_serial.h if CONFIG_ALL_PPC=y */ The comment has to be of the form: /* Link to if CONFIG_