public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN
Date: Tue, 29 Sep 2015 10:38:54 +0200	[thread overview]
Message-ID: <560A4E1E.7070206@redhat.com> (raw)
In-Reply-To: <20150928211248.GI22966@bill-the-cat>

Hi,

On 28-09-15 23:12, Tom Rini wrote:
> On Mon, Sep 28, 2015 at 09:22:35PM +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 28-09-15 17:10, Tom Rini wrote:
>>> On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote:
>>>
>>>> As config migrates from board config files to Kconfig, when adding
>>>> CONFIG_SYS_BOOTM_LEN to a platform, I decided to add
>>>> Kconfig support for CONFIG_SYS_BOOTM_LEN.
>>>>
>>>> Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
>>>> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>>>> CC: Masahiro Yamada <yamada.m@jp.panasonic.com>
>>>> CC: Simon Glass <sjg@chromium.org>
>>>> CC: Linus Walleij <linus.walleij@linaro.org>
>>>
>>> Thanks for trying to do this.  The problem however is that you need to
>>> use tools/moveconfig.py so that all of the other boards (which is a lot)
>>> get updated too, otherwise they fail to build.
>>
>> No, just no, not more polluting of defconfig files with things which really
>> belong in a per SoC file not a per board file.
>
> Well, we should be putting SoC/arch-specific stuff into the defaults

Agreed, but where, do we add a long list of:

	default FOO if ARCH_BAR

To the Kconfig file where the actual CONFIG_SOMETHING gets defined, or
do we add it to board/bar/Kconfig ? Currently we've a bit of a mix,
I personally prefer the board/bar/Kconfig version as that puts everything for
one SoC(-family) in one place and it helps avoiding merge conflicts.

> and
> also using this as a chance to look at places where defaults differ
> pointlessly.
>
> But, I also hear your concern.  I see Masahiro has been working with
> merge_config.sh from the kernel in the kernel.   How crazy would it be
> to re-work things (in some cases..) to have a merge in the config
> process so that there could be a sunxi-common config fragment.

Either we then ask the user to take an extra step during building
(not a good idea IMHO), or we somehow need to automate this, which is
hard because figuring out which foo_common_config fragment belongs
to which board_defconfig file is going to be hard and / or will
involve a long list of hardcoded values in a Makefile or some such.

> Or
> can/should we really just use default foo if Y in more places.

I believe that this is the better option, currently board/sunxi/Kconfig
already has:

config SYS_CLK_FREQ
         default 912000000 if MACH_SUN7I
         default 1008000000 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I

config SYS_CONFIG_NAME
         default "sun4i" if MACH_SUN4I
         default "sun5i" if MACH_SUN5I
         default "sun6i" if MACH_SUN6I
         default "sun7i" if MACH_SUN7I
         default "sun8i" if MACH_SUN8I
         default "sun9i" if MACH_SUN9I

Apparently these are not a problem for the script which is used to rewrite all
the defconfig-s, where as in the past having:

config CMD_FOO
	default y

in board/sunxi/Kconfig was a problem (it caused the script to emit
a ton of warnings IIRC) so I guess that doing something like:

config FOO
	default bar if ARCH_SUNXI

Will workaround the script issuing all kind of warnings, and then we
can keep per SoC(-family) defaults in board/foo/Kconfig.

Regards,

Hans

  reply	other threads:[~2015-09-29  8:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 17:25 [U-Boot] [PATCH 00/11] vexpress64 FVP and Juno configuration updates Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 01/11] vexpress64: fix checkpatch warnings Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 02/11] vexpress64: Kconfig: tidy up Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN Ryan Harkin
2015-09-28 15:10   ` Tom Rini
2015-09-28 15:35     ` Ryan Harkin
2015-09-28 16:03       ` Tom Rini
2015-09-28 19:22     ` Hans de Goede
2015-09-28 21:12       ` Tom Rini
2015-09-29  8:38         ` Hans de Goede [this message]
2015-09-23 17:25 ` [U-Boot] [PATCH 04/11] vexpress64: " Ryan Harkin
2015-09-28 15:13   ` Tom Rini
2015-09-23 17:25 ` [U-Boot] [PATCH 05/11] vexpress64: fvp dram: add DRAM configuration Ryan Harkin
2015-09-28 15:14   ` Tom Rini
2015-09-28 15:27     ` Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 06/11] vexpress64: juno: add androidboot.hardware=juno Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 07/11] common/armflash: add command to check if image exists Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 08/11] common/armflash: load_image returns success or failure Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 09/11] vexpress64: juno: add optional initrd Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 10/11] vexpress64: juno: add alternate kernel and device tree filenames Ryan Harkin
2015-09-23 17:25 ` [U-Boot] [PATCH 11/11] vexpress64: juno: use /dev/sda2 Ryan Harkin
2015-09-23 17:35 ` [U-Boot] [PATCH 00/11] vexpress64 FVP and Juno configuration updates Ryan Harkin
2015-09-24 16:33 ` Linus Walleij

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=560A4E1E.7070206@redhat.com \
    --to=hdegoede@redhat.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