]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test/dm: fix watchdog test
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 2 Nov 2021 18:44:29 +0000 (19:44 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Nov 2021 15:16:52 +0000 (08:16 -0700)
For successful execution of the watchdog test we need both the GPIO as well
as the SANDBOX watchdog.

Avoid a build failure for CONFIG_WDT_GPIO=n.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/Makefile

index 7de013f636887101248a9f140929686ee93dbb20..548649f8e82ed6aa2562b34e2c75cb3c4becf263 100644 (file)
@@ -106,6 +106,8 @@ obj-$(CONFIG_TIMER) += timer.o
 obj-$(CONFIG_DM_USB) += usb.o
 obj-$(CONFIG_DM_VIDEO) += video.o
 obj-$(CONFIG_VIRTIO_SANDBOX) += virtio.o
-obj-$(CONFIG_WDT) += wdt.o
+ifeq ($(CONFIG_WDT_GPIO)$(CONFIG_WDT_SANDBOX),yy)
+obj-y += wdt.o
+endif
 endif
 endif # !SPL