diff options
| author | Hugo Villeneuve <[email protected]> | 2026-02-06 15:55:29 -0500 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-02-06 20:32:36 -0300 |
| commit | 48133bcd1685a24925205d32fb4e3e2dbc885514 (patch) | |
| tree | 45b232e1a24ce5271758afa2a402d023000b35f2 | |
| parent | 40b8b3431565418482bd25f3b5e9d46bba1b27dc (diff) | |
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 <[email protected]>
| -rw-r--r-- | board/variscite/imx8mn_var_som/Makefile | 4 | ||||
| -rw-r--r-- | board/variscite/imx8mn_var_som/imx8mn_var_som.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/board/variscite/imx8mn_var_som/Makefile b/board/variscite/imx8mn_var_som/Makefile index 36d9c36dd2d..b75661ce271 100644 --- a/board/variscite/imx8mn_var_som/Makefile +++ b/board/variscite/imx8mn_var_som/Makefile @@ -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 diff --git a/board/variscite/imx8mn_var_som/imx8mn_var_som.c b/board/variscite/imx8mn_var_som/imx8mn_var_som.c index 14aa93c527b..945f389cdd9 100644 --- a/board/variscite/imx8mn_var_som/imx8mn_var_som.c +++ b/board/variscite/imx8mn_var_som/imx8mn_var_som.c @@ -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 */ |
