[PATCH] thermal: sandbox: Don't build sandbox thermal driver for sandbox64

Sughosh Ganu sughosh.ganu at linaro.org
Tue Oct 18 10:04:18 CEST 2022


The sandbox64 defconfig does not enable the thermal uclass, but builds
the thermal sandbox driver. This breaks booting the sandbox64 variant
with the test device tree. Do not build the driver for the sandbox64
variant.

Signed-off-by: Sughosh Ganu <sughosh.ganu at linaro.org>
---
 drivers/thermal/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index 8acc7d20cb..04559dbaf4 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -4,7 +4,9 @@
 # Author: Nitin Garg <nitin.garg at freescale.com>
 
 obj-$(CONFIG_DM_THERMAL) += thermal-uclass.o
+ifeq ($(CONFIG_SANDBOX64),)
 obj-$(CONFIG_SANDBOX) += thermal_sandbox.o
+endif
 obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o
 obj-$(CONFIG_IMX_SCU_THERMAL) += imx_scu_thermal.o
 obj-$(CONFIG_TI_DRA7_THERMAL) += ti-bandgap.o
-- 
2.34.1



More information about the U-Boot mailing list