All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Fix problem with get/setdcr commands introduced by cfg patches
Date: Fri, 6 Jul 2007 15:52:33 +0200	[thread overview]
Message-ID: <200707061552.33717.sr@denx.de> (raw)
In-Reply-To: <E1I6nbU-0000pu-95@jdl.com>

On Friday 06 July 2007, Jon Loeliger wrote:
> > -#if defined(CONFIG_4xx) && defined(CFG_CMD_SETGETDCR)
> > +#if defined(CONFIG_4xx) && ((CONFIG_COMMANDS & CFG_CMD_SETGETDCR) ||
> > defined(CONFIG_CMD_SETGETD CR))
> >
> >  #include <ppc4xx.h>
>
> Sorry about that.

No problem.

> Hmmm... Something is fishy here if this is a problem...
>
> While the above is a valid (temporary) "fix",
> I think rather than re-introducing this clause:
>
>     (CONFIG_COMMANDS & CFG_CMD_SETGETDCR)
>
> a better (long term) solution is to try and figure out
> why CONFIG_CMD_SETGETDCR isn't available.  The goal is
> to eliminate the CONFIG_COMMAND symbol, so we should
> be able to compile this file without it.

I have no problems with just using:

#if defined(CONFIG_4xx) && defined(CONFIG_CMD_SETGETDCR)

here. But we had:

#if defined(CONFIG_4xx) && defined(CFG_CMD_SETGETDCR)

So this couldn't work.

> My guesses off the top of my head:
>
>     1) I blitzed CONFIG_CMD_SETGETDCR in the 4xx.h config file
>     2) The 4xx board config file isn't being included here
>     3) Interaction with a .S file
>     4) Some secondary #include effect making config_cmd_default.h
>        be not included
>
> Please let me know if I can further here.

Feel free to clean this up with your next patchset.

Thanks.

Best regards,
Stefan

=====================================================================
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
=====================================================================

  reply	other threads:[~2007-07-06 13:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06  7:45 [U-Boot-Users] Fix problem with get/setdcr commands introduced by cfg patches Stefan Roese
2007-07-06  9:02 ` Wolfgang Denk
2007-07-06 13:12 ` Jon Loeliger
2007-07-06 13:52   ` Stefan Roese [this message]
2007-07-06 13:59     ` Jon Loeliger
2007-07-11 10:13 ` [U-Boot-Users] Fix some compile problems introduced by the latest CFG_CMD_xxx cleanup Stefan Roese
2007-07-11 19:22   ` Kim Phillips

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=200707061552.33717.sr@denx.de \
    --to=sr@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.