diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-21 16:07:30 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-25 12:36:11 -0700 |
commit | ce51884f5181573eaf3d62c4f84e19b80899aba6 (patch) | |
tree | 9522e36ad10f8d8fb6d4dfb0fa0b51969d576665 /drivers | |
parent | 3e7749eaeac8022329df9dd876b7fc5692d0e2d1 (diff) | |
download | u-boot-ce51884f5181573eaf3d62c4f84e19b80899aba6.tar.gz u-boot-ce51884f5181573eaf3d62c4f84e19b80899aba6.tar.bz2 u-boot-ce51884f5181573eaf3d62c4f84e19b80899aba6.zip |
sandbox: sandbox_serial_pending depends on DM_VIDEO
When building sandbox_defconfig with CONFIG_DM_VIDEO=n a link time error
occurs:
in function `sandbox_serial_pending':
drivers/serial/sandbox.c:101: undefined reference to `video_sync_all'
video_sync_all() is only defined if we have CONFIG_DM_VIDEO=y.
Calling this function in a serial driver looks quite hackish
but at least let's add the missing build constraint.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index dbbcea5bb4..0b1756f5c0 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -97,7 +97,7 @@ static int sandbox_serial_pending(struct udevice *dev, bool input) return 0; os_usleep(100); - if (!IS_ENABLED(CONFIG_SPL_BUILD)) + if (IS_ENABLED(CONFIG_DM_VIDEO) && !IS_ENABLED(CONFIG_SPL_BUILD)) video_sync_all(); avail = membuff_putraw(&priv->buf, 100, false, &data); if (!avail) |