depends on BR2_arm
bool "u-boot.sb"
+config BR2_TARGET_UBOOT_FORMAT_SD
+ depends on BR2_arm
+ bool "u-boot.sd"
+ help
+ This is Freescale i.MX28 SB format, with a header for booting
+ from an SD card.
+
+ U-boot includes an mxsboot tool to generate this format,
+ starting from 2011.12.
+
+ See doc/README.mxs (or doc/README.mx28_common before 2013.07)
+
config BR2_TARGET_UBOOT_FORMAT_CUSTOM
bool "Custom (specify below)"
help
UBOOT_BIN = u-boot.sb
UBOOT_MAKE_TARGET = $(UBOOT_BIN)
UBOOT_DEPENDENCIES += host-elftosb
+else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
+# BootStream (.sb) is generated by U-Boot, we convert it to SD format
+UBOOT_BIN = u-boot.sd
+UBOOT_MAKE_TARGET = u-boot.sb
+UBOOT_DEPENDENCIES += host-elftosb
else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
else
$(TARGET_CONFIGURE_OPTS) \
$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
$(UBOOT_MAKE_TARGET)
+ $(if $(BR2_TARGET_UBOOT_FORMAT_SD),
+ $(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
endef
define UBOOT_BUILD_OMAP_IFT