Hi @[Sindhu Vadde] ,
If you only disable the peripherals, the size will remain the same. When you disable a peripheral, it will not be probed during the boot, but the code of the driver is still built and present in the final image.
If you want to completely remove the code of a specific driver from your U-Boot, you have to disable the CONFIG that enable the build of the driver. You must run:
make menuconfig
Please have a look at the wiki: https://wiki.st.com/stm32mpu/wiki/Menuconfig_or_how_to_configure_kernel
And you disable the drivers that you do not need.
But regarding your first request about "ltdc and hdmi", I don't understand because normally the driver related to HDMI is already disabled on U-Boot.
The configuration that enables the hdmi video driver is VIDEO_SUNXI, which is disabled by default:
And the configuration which allows to choose to use the HDMI is CONFIG_LCD_MODE :
But it is also disabled by default
Maybe you are talking about the support of the DSI peripheral, in this case you can disable it by disabling DM_VIDEO :
If this configuration is disable, the compelte driver model to support video will be disabled, even the splash screen of u-boot will be turned off.
Regards,
Kevin