Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pieter Smith <pieter@boesman.nl>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v6 0/5] Support building barebox with an auxiliary config
Date: Sun, 24 Apr 2016 23:15:22 +0200	[thread overview]
Message-ID: <cover.1461531859.git.pieter@boesman.nl> (raw)

This patch-set adds support for building barebox with an auxiliary config.
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, with minor adjustments:
1. Have boot/barebox contain the common stuff.
2. Move the non-shared parts to boot/barebox/barebox and duplicate it in
   boot/barebox/barebox-aux.
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 that makes use of the added functionality.

Revision history:
v6: Review rework based on feedback from Thomas Pettazoni:
    - Second config build renamed to auxiliary build.
    - Primary package build moved to boot/barebox/barebox to keep things symmetric.
    - Dropped already merged parts of series.
v5: Review rework based on feedback from Arnout Vandecappelle, Yegor Yefremov
    and Thomas Petazzoni:
    - Dropped support to rename output/images (same can be achieved with
      genimage)
    - Simplified barebox INSTALL_IMAGE_CMDS
    - Simplified KConfig option naming
    - Appends test defconfig to last commit message
    Improvements to the BBB barebox test config:
    - Latest kernel and headers
    - Tunes barebox.env to boot from eMMC/SD
    - Use genimage to generate a full sdcard.img
v4: Introduces barebox-package function to reduce duplication and maintenance
    Simplifies built image selection
    Ease review with smaller patches
    Review re-work: Special thanks to Arnout Vandecappelle and Yegor Yefremov
v3: Updated for master at 544e2c5871f223facd1ab3c2853cd07ad70dd9d1
v2: Dropped x-loader build specialization in favor of 2 generic barebox builds
v1: Initial posting

Pieter Smith (3):
  barebox: prepare for auxiliarry build
  barebox: support auxiliary config build
  beaglebone: adds barebox bootloader defconfig

 board/beaglebone/barebox/barebox.env/boot/sd      | 11 ++++
 board/beaglebone/barebox/barebox.env/config-board |  4 ++
 board/beaglebone/barebox/genimage.cfg             | 32 +++++++++++
 board/beaglebone/barebox/post-image.sh            | 17 ++++++
 boot/barebox/Config.in                            | 70 ++++-------------------
 boot/barebox/barebox-aux/Config.in                | 60 +++++++++++++++++++
 boot/barebox/barebox-aux/barebox-aux.hash         |  1 +
 boot/barebox/barebox-aux/barebox-aux.mk           |  8 +++
 boot/barebox/barebox.mk                           |  4 +-
 boot/barebox/barebox/Config.in                    | 65 +++++++++++++++++++++
 boot/barebox/barebox/barebox.hash                 |  1 +
 boot/barebox/barebox/barebox.mk                   |  8 +++
 configs/beaglebone_barebox_defconfig              | 43 ++++++++++++++
 13 files changed, 262 insertions(+), 62 deletions(-)
 create mode 100644 board/beaglebone/barebox/barebox.env/boot/sd
 create mode 100644 board/beaglebone/barebox/barebox.env/config-board
 create mode 100644 board/beaglebone/barebox/genimage.cfg
 create mode 100755 board/beaglebone/barebox/post-image.sh
 create mode 100644 boot/barebox/barebox-aux/Config.in
 create mode 120000 boot/barebox/barebox-aux/barebox-aux.hash
 create mode 100644 boot/barebox/barebox-aux/barebox-aux.mk
 create mode 100644 boot/barebox/barebox/Config.in
 create mode 120000 boot/barebox/barebox/barebox.hash
 create mode 100644 boot/barebox/barebox/barebox.mk
 create mode 100644 configs/beaglebone_barebox_defconfig

-- 
2.5.0

             reply	other threads:[~2016-04-24 21:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-24 21:15 Pieter Smith [this message]
2016-04-24 21:15 ` [Buildroot] [PATCH v6 1/3] barebox: prepare for auxiliarry build Pieter Smith
2016-05-01 12:34   ` Thomas Petazzoni
2016-05-01 20:49     ` Pieter Smith
2016-04-24 21:15 ` [Buildroot] [PATCH v6 2/3] barebox: support auxiliary config build Pieter Smith
2016-05-01 12:34   ` Thomas Petazzoni
2016-05-01 20:48     ` Pieter Smith
2016-04-24 21:15 ` [Buildroot] [PATCH v6 3/3] beaglebone: adds barebox bootloader defconfig Pieter Smith
2016-05-01 12:35   ` Thomas Petazzoni
2016-05-01 20:46     ` Pieter Smith
2016-04-24 21:21 ` [Buildroot] [PATCH v6 0/5] Support building barebox with an auxiliary config Thomas Petazzoni
2016-04-24 21:24   ` Pieter Smith

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=cover.1461531859.git.pieter@boesman.nl \
    --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