From: Kory Maincent (TI.com) Date: Thu, 30 Oct 2025 16:44:58 +0000 (+0100) Subject: board: compulab: Exclude compulab extension board detection from XPL builds X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06199ca751199bc432f33f10a3992df27a3bdac7;p=thirdparty%2Fu-boot.git board: compulab: Exclude compulab extension board detection from XPL builds Disable compulab extension board detection functionality in XPL (eXtended Program Loader) images to reduce size and complexity in the early boot stage. Signed-off-by: Kory Maincent (TI.com) --- diff --git a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c index bda7aac5be4..be4f293bd4a 100644 --- a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c +++ b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c @@ -249,6 +249,8 @@ int board_mmc_get_env_dev(int devno) #define IOT_GATE_IMX8_EXT_I2C_ADDR_GPIO 0x22 /* I2C address of the GPIO extender */ +#if !IS_ENABLED(CONFIG_XPL_BUILD) + static int iot_gate_imx8_ext_id = IOT_GATE_EXT_EMPTY; /* Extension board ID */ static int iot_gate_imx8_ext_ied_id [3] = { IOT_GATE_IMX8_CARD_ID_EMPTY, @@ -541,6 +543,7 @@ int extension_board_scan(struct list_head *extension_list) return ret; } +#endif static int setup_mac_address(void) {