[Buildroot] [PATCH 1/2] Add support for U-Boot SPL

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Mon Feb 6 10:59:53 UTC 2012


On Sun, Feb 5, 2012 at 1:35 AM, Nicolas Dechesne <n-dechesne at ti.com> wrote:
> SPL is a first stage bootloader. On pandaboard it supercedes x-loader,
> and should now be used.
>
> - this patch ensures that either SPL or xloader can be selected
> - SPL will load 'u-boot.img' instead of 'u-boot.bin, so the name
>  is updated accordingly
>
> Signed-off-by: Nicolas Dechesne <n-dechesne at ti.com>
> ---
>  boot/uboot/Config.in |    6 ++++++
>  boot/uboot/uboot.mk  |    4 ++++
>  2 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index c8db9fb..1b94803 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -137,4 +137,10 @@ config BR2_TARGET_UBOOT_ETH1ADDR
>
>  endif # BR2_TARGET_UBOOT_NETWORK
>
> +config BR2_TARGET_UBOOT_SPL
> +       bool "U-Boot SPL suport"

typo: support

> +       depends on !BR2_TARGET_XLOADER
> +       help
> +         Enable the U-Boot SPL support
> +
>  endif # BR2_TARGET_UBOOT
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index db9de8d..b327f4b 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -29,6 +29,8 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_LDR),y)
>  UBOOT_BIN          = u-boot.ldr
>  else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
>  UBOOT_BIN          = u-boot-nand.bin
> +else ifeq ($(BR2_TARGET_UBOOT_SPL),y)
> +UBOOT_BIN          = u-boot.img
>  else
>  UBOOT_BIN          = u-boot.bin
>  endif
> @@ -88,6 +90,8 @@ endef
>
>  define UBOOT_INSTALL_IMAGES_CMDS
>        cp -dpf $(@D)/$(UBOOT_BIN) $(BINARIES_DIR)/
> +       $(if $(BR2_TARGET_UBOOT_SPL),
> +               cp -dpf $(@D)/MLO $(BINARIES_DIR)/)
>  endef
>
>  $(eval $(call GENTARGETS))
> --
> 1.7.8.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


More information about the buildroot mailing list