Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pieter Smith <pieter@boesman.nl>
To: buildroot@busybox.net
Subject: [Buildroot] [v3, 0/4] Supporting building a second Barebox config
Date: Sun, 21 Feb 2016 18:25:08 +0100	[thread overview]
Message-ID: <20160221172508.GA14073@smipidev> (raw)
In-Reply-To: <CAGm1_ktVyZcj+ubstRVr+oUAH5gKnB688nTp2Ad+gFiv3pR-zA@mail.gmail.com>

On Tue, Feb 16, 2016 at 10:27:46PM +0100, Yegor Yefremov wrote:
> On Tue, Feb 16, 2016 at 7:55 PM, Pieter Smith <pieter@boesman.nl> wrote:
> > On Tue, Feb 16, 2016 at 12:55:30PM +0100, Yegor Yefremov wrote:
> >> Hi Pieter,
> >>
> >> On Wed, Jan 20, 2016 at 11:43 PM, Pieter Smith <pieter@boesman.nl> wrote:
> >> > This patch-set in 4 parts adds support for building barebox with up to 2
> >> > configurations. It can be used to build the barebox x-loader or MLO (also
> >> > called Secondary Program Loader) in addition to the standard barebox build
> >> > (Tertiary Program Loader). This implements the design proposed in
> >> > http://elinux.org/Buildroot#Todo_list:
> >> > 1. Have boot/barebox/ containing the common stuff.
> >> > 2. Add two separate packages boot/barebox-1/ and boot/barebox-2/.
> >> > 3. There is only one version selection, but each package allows to
> >> >    define the configuration to be used.
> >> > 4. Design is a little bit like package/gcc, where we have multiple gcc builds,
> >> >    but share a lot of common definitions between the packages.
> >> >
> >> > To demonstrate that it works as advertized, the last patch adds a defconfig for
> >> > the beaglebone black that makes use of the added functionality.
> >>
> >> I've applied the patches and built both MLO and barebox.bin binaries.
> >> The patches are working as expected.
> >
> > Glad to hear it.
> >
> >> I have following use case: I have one board, but want provide
> >> different environment scripts per project. These scripts should be
> >> stored in BR2_EXTERNAL folder. I'd like to also embed them into
> >> barebox.bin. How can I do it in BR?
> >
> > If I understand you correctly, you would like to customize the barebox
> > environment integrated into barebox.bin on a per-project basis. This is
> > something I spent a few hours looking into, but I have not found an adequate
> > solution. It may be easier to bake a new buildroot environment and flash that.
> >
> > Will this satisfy your use-case?
> 
> I've found a solution: http://patchwork.ozlabs.org/patch/583444/
> 
> The question is should enable both inetrnel and external env image? I
> think we should keep both in parallel.

I agree with having both in parallel. I have a personal preference for a
baked-in environments. It allows environment resetting with an erase or delete
(not the case with a separate env image). I can however come up with a number
of use-cases where an external env image is useful from a manufacturing
perspective.
 
> Yegor

- Pieter

      reply	other threads:[~2016-02-21 17:25 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20 22:43 [Buildroot] [v3, 0/4] Supporting building a second Barebox config Pieter Smith
2016-01-20 22:43 ` [Buildroot] [v3, 1/4] barebox: prepare for secondary config build Pieter Smith
2016-02-22 11:03   ` Yegor Yefremov
2016-02-26 23:17   ` Arnout Vandecappelle
2016-02-28  8:12     ` Pieter Smith
2016-02-29  7:47       ` Pieter Smith
2016-03-01 23:08         ` Arnout Vandecappelle
2016-03-02  7:50           ` Pieter Smith
2016-03-02 18:12             ` Arnout Vandecappelle
2016-03-02 21:32               ` Pieter Smith
2016-03-05 13:16                 ` Pieter Smith
2016-03-06 21:16                   ` Arnout Vandecappelle
2016-03-07 18:31                     ` Pieter Smith
2016-02-29  7:57     ` Pieter Smith
2016-01-20 22:43 ` [Buildroot] [v3, 2/4] barebox: adds option to build secondary config Pieter Smith
2016-02-22 11:03   ` Yegor Yefremov
2016-02-26 23:26   ` Arnout Vandecappelle
2016-02-29  8:01     ` Pieter Smith
2016-01-20 22:43 ` [Buildroot] [v3, 3/4] barebox: user selection of build output images Pieter Smith
2016-02-22 11:03   ` Yegor Yefremov
2016-02-26 23:43   ` Arnout Vandecappelle
2016-02-29  8:38     ` Pieter Smith
2016-03-01 23:14       ` Arnout Vandecappelle
2016-03-02  7:54         ` Pieter Smith
2016-03-02 18:18           ` Arnout Vandecappelle
2016-03-02 21:40             ` Pieter Smith
2016-03-06 23:03               ` Arnout Vandecappelle
2016-01-20 22:43 ` [Buildroot] [v3, 4/4] beaglebone: adds barebox bootloader defconfig Pieter Smith
2016-02-22 11:04   ` Yegor Yefremov
2016-02-26 23:47   ` Arnout Vandecappelle
2016-02-26 23:48     ` Arnout Vandecappelle
2016-02-29  8:44     ` Pieter Smith
2016-03-01 23:15       ` Arnout Vandecappelle
2016-03-02  7:55         ` Pieter Smith
2016-02-16 11:55 ` [Buildroot] [v3, 0/4] Supporting building a second Barebox config Yegor Yefremov
2016-02-16 18:55   ` Pieter Smith
2016-02-16 21:27     ` Yegor Yefremov
2016-02-21 17:25       ` Pieter Smith [this message]

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=20160221172508.GA14073@smipidev \
    --to=pieter@boesman.nl \
    --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