Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 10/10] Make savedefconfig save to a configured file.
Date: Wed, 07 Nov 2012 09:14:42 +0100	[thread overview]
Message-ID: <509A1872.1040108@lucaceresoli.net> (raw)
In-Reply-To: <1351063027-13800-11-git-send-email-arnout@mind.be>

Arnout Vandecappelle (Essensium/Mind) wrote:
> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
>
> Store BR2_DEFCONFIG in .config, and use it to update the original input
> defconfig file after updating the configuration.  When a config is
> created by using the BR2_DEFCONFIG=... option, this is saved in the
> .config file; later runs of savedefconfig will update that same location.
> It is also possible to configure this place in the interactive
> configuration.
>
> The BR2_DEFCONFIG value itself is not saved into the generated
> defconfig, since Kconfig considers it at its default. This is
> intentional, to avoid hard-coding an absolute path in the defconfig.
> It will anyway be set again when the defconfig is used with the
> 'make BR2_DEFCONFIG=... defconfig' command.
>
> As a side-effect of this change, the *config options have been moved out
> of the BR2_HAVE_DOT_CONFIG condition.  This doesn't make any functional
> difference, because the .config is still not read for the *config targets.
> However, the defconfig and savedefconfig targets do need to include
> .config now, which makes them slightly slower.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

...snip...

> diff --git a/docs/manual/customize-store.txt b/docs/manual/customize-store.txt
> index 05d1061..77b079c 100644
> --- a/docs/manual/customize-store.txt
> +++ b/docs/manual/customize-store.txt
> @@ -163,6 +163,7 @@ the buildroot tree).
>      * +BR2_TOOLCHAIN_CTNG_CONFIG+
>      * +BR2_UCLIBC_CONFIG+
>      * +BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE+
> +1. Set +BR2_DEFCONFIG+ to +<path-to-board-directory>/buildroot.config+

I've always been saving my Buildroot board config in configs/, to allow
me to startup from a clean working copy with a simple:
   make myboard_defconfig

The location you suggest requires a bit more typing, but it is probably
cleaner, and it does not prevent me to continue my way... so:

Acked-by: Luca Ceresoli <luca@lucaceresoli.net>

Luca

  reply	other threads:[~2012-11-07  8:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24  7:16 [Buildroot] [PATCH v2 00/10] Improvements for saving the configuration Arnout Vandecappelle
2012-10-24  7:16 ` [Buildroot] [PATCHv2 01/10] manual: add section about storing " Arnout Vandecappelle
2012-11-04 13:10   ` Luca Ceresoli
2012-10-24  7:16 ` [Buildroot] [PATCHv2 02/10] target/generic: add filesystem overlay option Arnout Vandecappelle
2012-11-04 18:19   ` Luca Ceresoli
2012-11-06  9:01     ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 03/10] ctng: add ctng-update-config target Arnout Vandecappelle
2012-11-07  8:12   ` Luca Ceresoli
2012-11-07  8:17     ` Arnout Vandecappelle
2012-11-07  8:28       ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 04/10] busybox: busybox-update-config should depend on busybox-configure Arnout Vandecappelle
2012-11-07  8:12   ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 05/10] at91bootstrap3: add -update-config target Arnout Vandecappelle
2012-11-07  8:12   ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 06/10] Add update-all-config target Arnout Vandecappelle
2012-11-07  8:12   ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 07/10] busybox: update-all-config shouldn't update default busybox config Arnout Vandecappelle
2012-11-07  8:13   ` Luca Ceresoli
2012-11-07 19:20     ` Arnout Vandecappelle
2012-10-24  7:17 ` [Buildroot] [PATCHv2 08/10] crosstool-ng: update-all-config shouldn't update default crosstool-ng config Arnout Vandecappelle
2012-11-07  8:13   ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 09/10] uClibc: update-all-config shouldn't update default uClibc config Arnout Vandecappelle
2012-11-07  8:13   ` Luca Ceresoli
2012-10-24  7:17 ` [Buildroot] [PATCHv2 10/10] Make savedefconfig save to a configured file Arnout Vandecappelle
2012-11-07  8:14   ` Luca Ceresoli [this message]
2012-11-07 19:24     ` Arnout Vandecappelle

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=509A1872.1040108@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=buildroot@busybox.net \
    /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