u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] add a generic set of configs to enable Distros to more easier support u-boot based systems
Date: Thu, 16 Jan 2014 13:43:59 -0700	[thread overview]
Message-ID: <52D8448F.6050205@wwwdotorg.org> (raw)
In-Reply-To: <1387264612-17834-3-git-send-email-dennis@ausil.us>

On 12/17/2013 12:16 AM, Dennis Gilmore wrote:

> diff --git a/include/common.h b/include/common.h

>  #include <flash.h>
>  #include <image.h>
>  
> +/* use generic distro config */
> +#ifdef DISTRO_DEFAULTS
> +#include <config_distro_default.h>
> +#endif

There is another issue with including this header at this location:

This include is pretty late in <common.h>. In particular, <part.h> is
included before this point, and only prototypes some functions such as
test_part_dos() if the relevant config option is enabled.

I want to simplify all the Tegra config headers and remove any options
that are also set by <config_distro_default.h>. However, if I do this,
then e.g. CONFIG_DOS_PARTITION isn't set when <part.h> is included, and
the build breaks.

One could probably move the include of <config_distro_default.h> very
near the top of <common.h>, i.e. just after the include of <config.h>.
However, this still doesn't solve all problems, since <config.h> itself
(which is an auto-generated file) includes <config_fallbacks.h>, which
is where e.g. CONFIG_FS_FAT gets auto-enabled if CONFIG_CMD_FAT is
enabled. This can cause the build to break since the makefiles don't
know to link in the FAT fs code.

I'd like to propose that instead of board config files doing:

#define DISTRO_DEFAULTS

They simply do:

#include <distro_defaults.h>

That way, there's nothing unusual about the handling of this header
file; it's just some common location that sets up some common values,
and the control flow of all the includes doesn't look any different to
the tools that process the board config header file.

Would you like me to post revised versions of your patches to show what
I mean?

  parent reply	other threads:[~2014-01-16 20:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17  7:16 [U-Boot] [RFC v2] implementation of generic distro configs Dennis Gilmore
2013-12-17  7:16 ` [U-Boot] [PATCH 1/6] cmd_pxe.c add any option for filesystem with sysboot uses generic load Dennis Gilmore
2014-01-16 20:03   ` Stephen Warren
2013-12-17  7:16 ` [U-Boot] [PATCH 2/6] add a generic set of configs to enable Distros to more easier support u-boot based systems Dennis Gilmore
2014-01-16 20:05   ` Stephen Warren
2014-01-16 20:17   ` Stephen Warren
2014-01-16 20:43   ` Stephen Warren [this message]
2013-12-17  7:16 ` [U-Boot] [PATCH 3/6] port andboard to use generic distro config Dennis Gilmore
2013-12-17  7:16 ` [U-Boot] [PATCH 4/6] port am335x_evm to use generic distro configs Dennis Gilmore
2013-12-17  7:16 ` [U-Boot] [PATCH 5/6] port beagleboard " Dennis Gilmore
2013-12-17  7:16 ` [U-Boot] [PATCH 6/6] port omap4 boards " Dennis Gilmore

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=52D8448F.6050205@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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;
as well as URLs for NNTP newsgroup(s).