U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Robert P. J. Day <rpjday@crashcourse.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot] what is the *recommended* split between defconfig file and header file?
Date: Thu, 21 Jul 2016 07:24:10 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1607210711140.12650@localhost.localdomain> (raw)
In-Reply-To: <20160719192412.GK7260@bill-the-cat>

On Tue, 19 Jul 2016, Tom Rini wrote:

> On Tue, Jul 19, 2016 at 04:15:47AM -0400, Robert P. J. Day wrote:
> >
> > kind of a style question but what is the preferred way to define a
> > board in the sense of what belongs in the defconfig file and what
> > belongs in the header file?
>
> The header files will eventually go away.  Most of the contents are
> things that could be, but haven't yet been, converted.  A few things
> like default environment are going to be harder to figure out.

  perhaps i haven't thought this through sufficiently, but it seems
like moving all target configuration to the *_defconfig files and
Kbuild system is going to require a fair bit of variable renaming.

  as i recall from the linux kernel coding style, any variables that
begin with "CONFIG_" are meant to be defined in a Kconfig file
somewhere, so if variables are moved from header files to a Kconfig
file to be part of Kbuild, would that not require renaming them if
they don't begin with "CONFIG_"? unless there's no plan to try to keep
that standard.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

  parent reply	other threads:[~2016-07-21 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19  8:15 [U-Boot] what is the *recommended* split between defconfig file and header file? Robert P. J. Day
2016-07-19 19:24 ` Tom Rini
2016-07-20  8:56   ` Robert P. J. Day
2016-07-20 10:21     ` Andreas Färber
2016-07-20 12:20       ` Tom Rini
2016-07-21 11:24   ` Robert P. J. Day [this message]
2016-07-21 14:44     ` Tom Rini

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=alpine.LFD.2.20.1607210711140.12650@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --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