]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: video: Fix building without SDL
authorSimon Glass <sjg@chromium.org>
Fri, 17 Feb 2023 22:45:47 +0000 (15:45 -0700)
committerAnatolij Gustschin <agust@denx.de>
Fri, 7 Apr 2023 15:43:36 +0000 (17:43 +0200)
commit67a36465216a292240b8b0ae088dd1ee7223029a
treea3a1e86dd843c2f8ca64e95d44a58f3c85395130
parent340bebf9c799793affefd166875d5776744988bd
sandbox: video: Fix building without SDL

This is currently broken. If SDL is not installed, SANDBOX_SDL becomes
false and build errors are generated, e.g.:

   test/dm/video.c:424: undefined reference to `sandbox_sdl_set_bpp'

Fix it by making the function return an error in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/test.h