[U-Boot] [PATCH 2/2] Kconfig: Add BUILD_TARGET for i.MX6 images

Shyam Saini shyam.saini at amarulasolutions.com
Thu May 16 08:02:28 UTC 2019


Right now, i.MX6 supports single image variants like u-boot-with-spl.imx
and u-boot-nand-with-spl.imx for MMC and NAND boots respectively.

But, it requires an explicit argument passing to 'make' to build
these images, like 'make  u-boot-with-spl.imx'

This patch would fix this by selecting BUILD_TARGET images with
respective SPL variants MMC, NAND. This would eventually help us to get
rid of explicit argument passing to 'make' to build these single images.

Tested-by: Shyam Saini <shyam.saini at amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
Signed-off-by: Shyam Saini <shyam.saini at amarulasolutions.com>
---
 Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Kconfig b/Kconfig
index 7a5491bd67..05d1a19b1d 100644
--- a/Kconfig
+++ b/Kconfig
@@ -243,6 +243,8 @@ config BUILD_TARGET
 	default "u-boot.itb" if SPL_LOAD_FIT && ARCH_SUNXI
 	default "u-boot.kwb" if KIRKWOOD
 	default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
+	default "u-boot-with-spl.imx" if ARCH_MX6 && SPL_MMC_SUPPORT
+	default "u-boot-with-nand-spl.imx" if ARCH_MX6 && SPL_NAND_SUPPORT
 	help
 	  Some SoCs need special image types (e.g. U-Boot binary
 	  with a special header) as build targets. By defining
-- 
2.11.0



More information about the U-Boot mailing list