How about a few symlinks.....
While editing some Makefiles I was wondering what people thought of using symlinks to processor dependent files instead of nested ifdefs in Makefiles?
For starters, make arch/ppc/kernel/head.S a symlink to the appropriate one in that directory, and derive the name to use from one of the config options. I thought I would ask before demonstrating the change.
Thanks.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Dan Malek
While editing some Makefiles I was wondering what people thought of using symlinks to processor dependent files instead of nested ifdefs in Makefiles?
For starters, make
arch/ppc/kernel/head.Sa symlink to the appropriate one in that directory, and derive the name to use from one of the config options. I thought I would ask before demonstrating the change.
I like the general concept. I was suggesting the general idea for header files to Tom Rini recently since I really like how clean it makes things in include/asm-arm where there are include/asm-arm/arch-???? directories. Although their overall software architecture is different and we'd need some changes, I think it's a great cleanup goal.
--
Matt Porter
MontaVista Software, Inc.
[email protected]
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Dan Malek
While editing some Makefiles I was wondering what people thought of using symlinks to processor dependent files instead of nested ifdefs in Makefiles?
For starters, make
arch/ppc/kernel/head.Sa symlink to the appropriate one in that directory, and derive the name to use from one of the config options. I thought I would ask before demonstrating the change.
Also, include/asm is just a lymlink to asm-${arch}.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Mike Fedyk
Quoted 5 lines · Dan Malek
While editing some Makefiles I was wondering what people thought of using symlinks to processor dependent files instead of nested ifdefs in Makefiles?
Quoted 6 lines
Quoted 4 lines
For starters, make
arch/ppc/kernel/head.Sa symlink to the appropriate one in that directory, and derive the name to use from one of the config options. I thought I would ask before demonstrating the change.Also,
include/asmis just a lymlink to asm-${arch}.
Yes, and ARM goes and makes a few other config-dependant symlinks. So there's precidence (and it'd be easy to setup too, more or less).
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/