From: Biwen Li Date: Thu, 14 Nov 2019 18:36:20 +0800 Subject: [U-Boot] [PATCH 21/42] include/configs: ls1046a_common: do not define CONFIG_DM_I2C for spl In-Reply-To: <20191114103641.34085-1-biwen.li@nxp.com> References: <20191114103641.34085-1-biwen.li@nxp.com> Message-ID: <20191114103641.34085-21-biwen.li@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This is used to fix build error as follows: - drivers/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:920: undefined reference to `fdt_stringlist_search' drivers/i2c/mxc_i2c.c:920:(.text.mxc_i2c_probe+0x7c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `fdt_stringlist_search' drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:924:(.text.mxc_i2c_probe+0xb4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927:(.text.mxc_i2c_probe+0xd4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `gpio_request_by_name_nodev' scripts/Makefile.spl:404: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1762: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2 Signed-off-by: Biwen Li --- include/configs/ls1046a_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h index 932aa55af5..ebf3682413 100644 --- a/include/configs/ls1046a_common.h +++ b/include/configs/ls1046a_common.h @@ -16,6 +16,7 @@ #define SPL_NO_QSPI #define SPL_NO_USB #define SPL_NO_SATA +#undef CONFIG_DM_I2C #endif #if defined(CONFIG_SPL_BUILD) && \ (defined(CONFIG_NAND_BOOT) || defined(CONFIG_QSPI_BOOT)) -- 2.17.1