* How about a few symlinks.....
@ 2001-08-07 20:59 Dan Malek
2001-08-07 21:04 ` Matt Porter
2001-08-07 23:23 ` Mike Fedyk
0 siblings, 2 replies; 4+ messages in thread
From: Dan Malek @ 2001-08-07 20:59 UTC (permalink / raw)
To: linuxppc-dev
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How about a few symlinks.....
2001-08-07 20:59 How about a few symlinks Dan Malek
@ 2001-08-07 21:04 ` Matt Porter
2001-08-07 23:23 ` Mike Fedyk
1 sibling, 0 replies; 4+ messages in thread
From: Matt Porter @ 2001-08-07 21:04 UTC (permalink / raw)
To: Dan Malek; +Cc: linuxppc-dev
On Tue, Aug 07, 2001 at 04:59:22PM -0400, Dan Malek wrote:
>
> 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.
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.
mporter@mvista.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How about a few symlinks.....
2001-08-07 20:59 How about a few symlinks Dan Malek
2001-08-07 21:04 ` Matt Porter
@ 2001-08-07 23:23 ` Mike Fedyk
2001-08-08 0:21 ` Tom Rini
1 sibling, 1 reply; 4+ messages in thread
From: Mike Fedyk @ 2001-08-07 23:23 UTC (permalink / raw)
To: linuxppc-dev
On Tue, Aug 07, 2001 at 04:59:22PM -0400, Dan Malek wrote:
>
> 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.
>
Also, include/asm is just a lymlink to asm-${arch}.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How about a few symlinks.....
2001-08-07 23:23 ` Mike Fedyk
@ 2001-08-08 0:21 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2001-08-08 0:21 UTC (permalink / raw)
To: linuxppc-dev
On Tue, Aug 07, 2001 at 04:23:37PM -0700, Mike Fedyk wrote:
>
> On Tue, Aug 07, 2001 at 04:59:22PM -0400, Dan Malek wrote:
> >
> > 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.
> >
>
> Also, include/asm is 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-08-08 0:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-07 20:59 How about a few symlinks Dan Malek
2001-08-07 21:04 ` Matt Porter
2001-08-07 23:23 ` Mike Fedyk
2001-08-08 0:21 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).