[Buildroot] [PATCH v2] Add option to copy config file to rootfs

Matthew Weber matthew.weber at rockwellcollins.com
Thu Jul 31 17:19:25 UTC 2014


Hi Nathaniel,

On Thu, Jul 31, 2014 at 10:26 AM, Nathaniel Roach <nroach44 at gmail.com> wrote:
> BR2_CONFIG_COPY copies the config file to /etc/buildroot.config
> as 0600 during target-finalize after overlay copy, but before
> post-build script install.
>
> ---
> Changes v1 to v2
>  - Corrected wording of config helper message (Thomas De Schampheleire)
>  - Moved order in menu to reflect actual order of the operation
> ---
>  Makefile         |  4 ++++
>  system/Config.in | 11 +++++++++++
>  2 files changed, 15 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 022beea..cc49291 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -614,6 +614,10 @@ endif
>                         --chmod=Du+w --exclude .empty --exclude '*~' \
>                         $(d)/ $(TARGET_DIR)$(sep))
>
> +ifeq ($(BR2_CONFIG_COPY),y)
> +       $(INSTALL) -m 0600 .config $(TARGET_DIR)/etc/buildroot.config

Before you do the copy, would it be worth doing a savedefconfig (or like)
activity to cleanup the .config file?  Then the file on target would be much
easier to read if you manually had to view it.

Thanks!
-- 
Matthew L Weber / Sr Software Engineer / Platform Software
matthew.weber at rockwellcollins.com
www.rockwellcollins.com


More information about the buildroot mailing list