board: imx8mn-var-som: compile SPL-only stuff only in SPL build

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>
This commit is contained in:
Hugo Villeneuve
2026-02-06 15:55:29 -05:00
committed by Fabio Estevam
parent 40b8b34315
commit 48133bcd16
2 changed files with 2 additions and 6 deletions

View 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

View 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 */