buildroot/boot
Pieter Smith 76165265af barebox: support auxiliary config build
Adds support to build barebox with an auxiliary config.

This is useful for building an SPL (Secondary Program Loader) in
addition to the traditional TPL (Tertiary Program Loader). The
Beaglebone Black for example has two barebox configurations:

- am335x_defconfig builds the full barebox bootloader with device
  tree

- am335x_mlo_defconfig builds the smaller MLO bootloader that loads
  the full barebox bootloader from the eMMC or SD card.

Tested with the following defconfig:

  # architecture
  BR2_arm=y
  BR2_cortex_a8=y
  BR2_ARM_EABIHF=y

  # system
  BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
  BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
  BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW=y

  # filesystem
  BR2_PACKAGE_AM33X_CM3=y
  BR2_TARGET_ROOTFS_EXT2=y
  BR2_TARGET_ROOTFS_EXT2_4=y

  # bootloader
  BR2_TARGET_BAREBOX=y
  BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="am335x"
  BR2_TARGET_BAREBOX_IMAGE_FILE="images/barebox-am33xx-beaglebone.img"
  BR2_TARGET_BAREBOX_CUSTOM_ENV=y
  BR2_TARGET_BAREBOX_CUSTOM_ENV_PATH="board/beaglebone/barebox/barebox.env"
  BR2_TARGET_BAREBOX_AUX=y
  BR2_TARGET_BAREBOX_AUX_BOARD_DEFCONFIG="am335x_mlo"
  BR2_TARGET_BAREBOX_AUX_IMAGE_FILE="images/barebox-am33xx-beaglebone-mlo.img"

  # kernel
  BR2_LINUX_KERNEL=y
  BR2_LINUX_KERNEL_USE_DEFCONFIG=y
  BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
  BR2_LINUX_KERNEL_ZIMAGE=y

  # use the barebox built-in dtb
  # BR2_LINUX_KERNEL_DTS_SUPPORT is not set

Signed-off-by: Pieter Smith <pieter@boesman.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-05-01 14:33:57 +02:00
..
afboot-stm32 afboot-stm32: use the Buildroot toolchain 2016-04-16 12:43:16 +02:00
at91bootstrap packages: refactor checks using BR_BUILDING 2015-04-26 21:43:25 +02:00
at91bootstrap3 Fix fallout after generated defconfig support 2015-12-23 09:54:14 +01:00
at91dataflashboot package: remove the trailing slash sign from <PKG>_SITE variable 2014-07-31 23:17:46 +02:00
barebox barebox: support auxiliary config build 2016-05-01 14:33:57 +02:00
boot-wrapper-aarch64 .mk files: bulk aligment and whitespace cleanup of assignments 2014-10-07 15:00:28 +02:00
grub boot/grub: add rootwait to default config 2016-03-10 22:29:36 +01:00
grub2 boot/grub2: enable squashfs support by default 2016-03-29 03:02:05 +02:00
gummiboot boot/gummiboot: switch to http for git clone 2015-05-01 10:26:51 +02:00
lpc32xxcdl Normalize separator size to 80 2013-06-07 10:54:54 +02:00
mxs-bootlets boot/mxs-bootlets: do not check hash of custom tarball 2015-05-02 15:11:01 +02:00
syslinux syslinux: Allow to build multiple flavors simultaneously 2016-04-18 23:41:37 +02:00
uboot boot/uboot: Add custom Subversion repository support for the package 2016-04-05 22:27:17 +02:00
xloader packages: refactor checks using BR_BUILDING 2015-04-26 21:43:25 +02:00
common.mk Fix build reproducibility in Make 3.82 2013-09-06 23:27:42 +02:00
Config.in afboot-stm32: new package 2016-02-22 23:23:17 +01:00