From: Jagan Teki Date: Wed, 14 Dec 2022 17:50:47 +0000 (+0530) Subject: ram: Mark ram-uclass depend on TPL_DM or SPL_DM X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=78276c531321ef989ae8d9d83144fb0ddd45962f;p=u-boot.git ram: Mark ram-uclass depend on TPL_DM or SPL_DM ram-uclass is building irrespective of whether TPL_DM or SPL_DM is enabled. So control the ram uclass build based on TPL/SPL_DM. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- diff --git a/drivers/ram/Makefile b/drivers/ram/Makefile index 5a39611349..83948e2c43 100644 --- a/drivers/ram/Makefile +++ b/drivers/ram/Makefile @@ -3,7 +3,7 @@ # Copyright (c) 2015 Google, Inc # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # -obj-$(CONFIG_RAM) += ram-uclass.o +obj-$(CONFIG_$(SPL_TPL_)DM) += ram-uclass.o obj-$(CONFIG_MPC83XX_SDRAM) += mpc83xx_sdram.o obj-$(CONFIG_SANDBOX) += sandbox_ram.o obj-$(CONFIG_STM32MP1_DDR) += stm32mp1/