From: Gary Jennejohn <garyj@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mgcoge make ether_scc.c work with CONFIG_NET_MULTI
Date: Tue, 11 Nov 2008 11:41:11 +0100 [thread overview]
Message-ID: <20081111114111.3dbdab3b@ernst.jennejohn.org> (raw)
In-Reply-To: <49187526.7000902@gmail.com>
Hi Ben,
Ben Warren <biggerbadderben@gmail.com> wrote:
> Gary Jennejohn wrote:
> > Ben Warren <biggerbadderben@gmail.com> wrote:
> >
> >> Gary Jennejohn wrote:
> >>
> > [snip]
> >
> >>> #if defined(CONFIG_ETHER_ON_SCC) && defined(CONFIG_CMD_NET)
> >>>
> >>>
> >> While you're mucking around with this file, please settle on a single
> >> CONFIG that can allow conditional compilation from the Makefile, then
> >> get rid of this stuff.
> >>
> >>
> >
> > You mean get rid of CONFIG_ETHER_ON_SCC and CONFIG_CMD_NET? But isn't at
> > least CONFIG_CMD_NET required to get networking support in other parts of
> > U-Boot, which would make it a prerequisite for compiling this?
> >
> > And eliminating or supplementing CONFIG_ETHER_ON_SCC with a new CONFIG
> > would mean changing a whole slew of configuration files, not to mention
> > include/net.h.
> >
> >
> I don't mean get rid of them completely, just move the conditionality to
> the Makefile. IMHO the CONFIG_ETHER_ON_SCC conditional is enough, you
> don't need to check for CONFIG_CMD_NET. It the user doesn' t have it
> set, problems will show up all over the place, and very quickly. I'd
> prefer to change the name of CONFIG_ETHER_ON_SCC to something indicating
> 82xx-ness, since this driver is specific to the 82xx family of SOCs, but
> SCCs have been around longer than PowerPC. One thing you'll notice is
> that most of the config files that mention this option are #undef'ing it
> only.
>
OK, I think I'll keep CONFIG_ETHER_ON_SCC because
a) there's less repo churn and less work for me :-)
b) it's also used in board/pm826/pm826.c and board/pm828/pm828.c to
control setup of port pins and I hesitate to touch board-specific
code.
---
Gary Jennejohn
*********************************************************************
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
*********************************************************************
next prev parent reply other threads:[~2008-11-11 10:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 10:58 [U-Boot] [PATCH] mgcoge make ether_scc.c work with CONFIG_NET_MULTI Gary Jennejohn
2008-11-10 6:09 ` Ben Warren
2008-11-10 17:27 ` Gary Jennejohn
2008-11-10 17:53 ` Ben Warren
2008-11-11 10:41 ` Gary Jennejohn [this message]
2008-11-11 16:07 ` [U-Boot] [PATCH v2] " Gary Jennejohn
2008-12-08 20:50 ` Wolfgang Denk
2008-12-08 21:00 ` Wolfgang Denk
2008-12-08 22:05 ` Ben Warren
2008-12-09 8:56 ` Gary Jennejohn
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=20081111114111.3dbdab3b@ernst.jennejohn.org \
--to=garyj@denx.de \
--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