endif # BR2_TARGET_UBOOT_NETWORK
+config BR2_TARGET_UBOOT_SPL
+ bool "U-Boot SPL support"
+ depends on !BR2_TARGET_XLOADER
+ help
+ Enable the U-Boot SPL support. SPL is a first stage
+ bootloader loaded into internal memory in charge of
+ enabling and configuring the external memory (DDR),
+ and load the u-boot program into DDR.
+
+config BR2_TARGET_UBOOT_SPL_NAME
+ string "U-Boot SPL target name"
+ default "u-boot-spl.bin"
+ depends on BR2_TARGET_UBOOT_SPL
+ help
+ This is the name of the SPL binary, generated during
+ u-boot build. For most platform it is u-boot-spl.bin
+ but not always. It is MLO on OMAP for example.
+
endif # BR2_TARGET_UBOOT
define UBOOT_INSTALL_IMAGES_CMDS
cp -dpf $(@D)/$(UBOOT_BIN) $(BINARIES_DIR)/
+ $(if $(BR2_TARGET_UBOOT_SPL),
+ cp -dpf $(@D)/$(BR2_TARGET_UBOOT_SPL_NAME) $(BINARIES_DIR)/)
endef
$(eval $(call GENTARGETS))