]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: imx8mn-var-som: compile SPL-only stuff only in SPL build
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Fri, 6 Feb 2026 20:55:29 +0000 (15:55 -0500)
committerFabio Estevam <festevam@gmail.com>
Fri, 6 Feb 2026 23:32:36 +0000 (20:32 -0300)
SPL-specific stuff is already in spl.c, so avoid compiling other source
files in SPL build.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
board/variscite/imx8mn_var_som/Makefile
board/variscite/imx8mn_var_som/imx8mn_var_som.c

index 36d9c36dd2d867a708ff8547aa10864b9ea2dbc3..b75661ce271299f7298fc4c461187867da307a48 100644 (file)
@@ -4,9 +4,9 @@
 # SPDX-License-Identifier:      GPL-2.0+
 #
 
-obj-y += imx8mn_var_som.o
-
 ifdef CONFIG_XPL_BUILD
 obj-y += spl.o
 obj-y += ddr4_timing.o
+else
+obj-y += imx8mn_var_som.o
 endif
index 14aa93c527b57256ce390a56c603972cc489348d..945f389cdd9d2a926528bf682bf97cf400e1c1d0 100644 (file)
@@ -49,8 +49,6 @@ int board_mmc_get_env_dev(int devno)
        return devno;
 }
 
-#if !defined(CONFIG_XPL_BUILD)
-
 #if defined(CONFIG_DISPLAY_BOARDINFO)
 
 static void display_som_infos(struct var_imx8_eeprom_info *info)
@@ -221,5 +219,3 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        return configure_phy_reset_gpios(blob);
 }
 #endif /* CONFIG_OF_BOARD_SETUP */
-
-#endif /* CONFIG_XPL_BUILD */