From: Andreas Engel <andreas.engel@ericsson.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [ARM] Moved conditional compile into Makefile
Date: Mon, 08 Sep 2008 16:44:57 +0200 [thread overview]
Message-ID: <48C53A69.6010006@ericsson.com> (raw)
In-Reply-To: <20080908140658.853C2248A5@gemini.denx.de>
Wolfgang Denk schrieb:
> Dear Jean-Christophe PLAGNIOL-VILLARD,
>
> In message <20080908133035.GB3956@game.jcrosoft.org> you wrote:
>> what append if CONFIG_PL010_SERIAL and CONFIG_PL011_SERIAL is active at the
>> same time?
>
> Then something is missing.
In this particular case, this will not work anyway. The driver is not prepared
to support both a PL010 and a PL011 at the same time. And I doubt that there's
some real hardware out there which actually contains both types of uarts.
>> serial_pl01x.c will be compile twice
>>
>> so please move to
>> +COBJS-$(CONFIG_PL010_SERIAL)$(CONFIG_PL011_SERIAL) += serial_pl01x.o
>
> This alone is not sufficient, since then you need to add a rule for
> the resulting COBJS-yy.
There's already such a rule in common/Makefile.
> But as I learned all of this is completely unnecessary.
>
> As Detlev Zundel pointed out, just doing "COBJS-y = $(sort COBJS-y)"
> would fix any such problems in a clean and readable way.
>
> I recommend to add such a statement instead.
Yes, that's definitely better, as it also catches cases with more than
two y's.
Regards,
Andreas
next prev parent reply other threads:[~2008-09-08 14:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 7:11 [U-Boot] [PATCH] [UPDATE] Merged serial_pl010.c and serial_pl011.c Andreas Engel
2008-09-06 20:34 ` Wolfgang Denk
2008-09-08 8:17 ` [U-Boot] [PATCH] [UPDATE #2] " Andreas Engel
2008-09-08 8:56 ` Jean-Christophe PLAGNIOL-VILLARD
2008-09-08 9:29 ` Andreas Engel
2008-09-08 10:49 ` Wolfgang Denk
2008-09-08 12:30 ` [U-Boot] [PATCH] [ARM] Moved conditional compile into Makefile Andreas Engel
2008-09-08 13:30 ` Jean-Christophe PLAGNIOL-VILLARD
2008-09-08 14:06 ` Wolfgang Denk
2008-09-08 14:44 ` Andreas Engel [this message]
2008-09-09 12:41 ` [U-Boot] [PATCH] [UPDATE #2] Merged serial_pl010.c and serial_pl011.c Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C53A69.6010006@ericsson.com \
--to=andreas.engel@ericsson.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox