Skip to contentSkip to conversation

test: Update logic for video test

PATCH In review Tom Rini 2 participants 7 messages Aug 18, 2025 – Oct 6, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 test: Update logic for video test

The video test here is specific to the sandbox SDL video driver, so only build it when that is enabled rather than VIDEO is enabled.

---
 test/dm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/dm/Makefile +1 -1
index 474e77a2151f..2db0e3b8dfd0 100644
@@ -126,7 +126,7 @@ obj-$(CONFIG_TEE) += tee.o
 obj-$(CONFIG_TIMER) += timer.o
 obj-$(CONFIG_TPM_V2) += tpm.o
 obj-$(CONFIG_DM_USB) += usb.o
-obj-$(CONFIG_VIDEO) += video.o
+obj-$(CONFIG_VIDEO_SANDBOX_SDL) += video.o
 ifeq ($(CONFIG_VIRTIO_SANDBOX),y)
 obj-y += virtio.o
 obj-$(CONFIG_VIRTIO_RNG) += virtio_device.o
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

The video test here is specific to the sandbox SDL video driver, so only build it when that is enabled rather than VIDEO is enabled.

Applied to u-boot/next, thanks!

[1/1] test: Update logic for video test

      commit: c9ffeefeb3efedd754e3ffa3440bfeb15cea00c3
Signature · 1 line
Tom
#2 lore raw
In reply to Tom Rini
Quoted 2 lines · On Mon, 18 Aug 2025 10:54:06 -0600 Tom Rini <[email protected]> wrote:

The video test here is specific to the sandbox SDL video driver, so only build it when that is enabled rather than VIDEO is enabled.

This broke the build of sandbox_defconfig:

/usr/bin/ld: /tmp/cc9hfosg.ltrans55.ltrans.o: in function `expo_render_image':
/home/kory/uboot/test/boot/expo.c:674:(.text+0x5eea): undefined reference to `video_compress_fb'
/usr/bin/ld: /home/kory/uboot/test/boot/expo.c:687:(.text+0x6196): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:688:(.text+0x61ea): undefined reference to video_check_copy_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:696:(.text+0x62df): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:699:(.text+0x63cb): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:704:(.text+0x650b): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:707:(.text+0x65fe): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/expo.c:733:(.text+0x68e9): undefined reference to video_compress_fb' /usr/bin/ld: /tmp/cc9hfosg.ltrans56.ltrans.o:/home/kory/uboot/test/boot/cedit.c:267: more undefined references to video_compress_fb' follow /usr/bin/ld: /tmp/cc9hfosg.ltrans56.ltrans.o: in function `cedit_render':
/home/kory/uboot/test/boot/cedit.c:268:(.text+0x63e): undefined reference to `video_check_copy_fb'
/usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:275:(.text+0x6c1): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:282:(.text+0x777): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:289:(.text+0x82d): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:296:(.text+0x8e3): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:303:(.text+0x999): undefined reference to video_compress_fb' /usr/bin/ld: /tmp/cc9hfosg.ltrans56.ltrans.o:/home/kory/uboot/test/boot/cedit.c:309: more undefined references to video_compress_fb' follow /usr/bin/ld: /tmp/cc9hfosg.ltrans56.ltrans.o: in function `cedit_render_lineedit':
/home/kory/uboot/test/boot/cedit.c:398:(.text+0x10b3): undefined reference to `video_check_copy_fb'
/usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:405:(.text+0x1136): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:413:(.text+0x11ec): undefined reference to video_compress_fb' /usr/bin/ld: /home/kory/uboot/test/boot/cedit.c:424:(.text+0x135b): undefined
reference to `video_compress_fb'

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#3 lore raw
Quoted 7 lines · On Mon, 6 Oct 2025 17:13:35 +0200 Kory Maincent <[email protected]>…
Quoted 2 lines · On Mon, 18 Aug 2025 10:54:06 -0600 Tom Rini <[email protected]> wrote:

The video test here is specific to the sandbox SDL video driver, so only build it when that is enabled rather than VIDEO is enabled.

This broke the build of sandbox_defconfig:

It seems CONFIG_SANDBOX_SDL=y is missing in every sandbox defconfig, and it is required to have CONFIG_VIDEO_SANDBOX_SDL enabled.

Quoted 44 lines

/usr/bin/ld: /tmp/cc9hfosg.ltrans55.ltrans.o: in function `expo_render_image':
/home/kory/uboot/test/boot/expo.c:674:(.text+0x5eea): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:687:(.text+0x6196): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:688:(.text+0x61ea): undefined reference to `video_check_copy_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:696:(.text+0x62df): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:699:(.text+0x63cb): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:704:(.text+0x650b): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:707:(.text+0x65fe): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/expo.c:733:(.text+0x68e9): undefined reference to `video_compress_fb' /usr/bin/ld:
/tmp/cc9hfosg.ltrans56.ltrans.o:/home/kory/uboot/test/boot/cedit.c:267: more undefined references to `video_compress_fb' follow /usr/bin/ld:
/tmp/cc9hfosg.ltrans56.ltrans.o: in function `cedit_render':
/home/kory/uboot/test/boot/cedit.c:268:(.text+0x63e): undefined reference to `video_check_copy_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:275:(.text+0x6c1): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:282:(.text+0x777): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:289:(.text+0x82d): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:296:(.text+0x8e3): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:303:(.text+0x999): undefined reference to `video_compress_fb' /usr/bin/ld:
/tmp/cc9hfosg.ltrans56.ltrans.o:/home/kory/uboot/test/boot/cedit.c:309: more undefined references to `video_compress_fb' follow /usr/bin/ld:
/tmp/cc9hfosg.ltrans56.ltrans.o: in function `cedit_render_lineedit':
/home/kory/uboot/test/boot/cedit.c:398:(.text+0x10b3): undefined reference to `video_check_copy_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:405:(.text+0x1136): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:413:(.text+0x11ec): undefined reference to `video_compress_fb' /usr/bin/ld:
/home/kory/uboot/test/boot/cedit.c:424:(.text+0x135b): undefined reference to `video_compress_fb'

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
author
#4 lore raw
Quoted 6 lines · Kory Maincent
Quoted 3 lines · On Mon, 6 Oct 2025 17:13:35 +0200 Kory Maincent <[email protected]>…

On Mon, 18 Aug 2025 10:54:06 -0600
Tom Rini <[email protected]> wrote:

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

The video test here is specific to the sandbox SDL video driver, so only build it when that is enabled rather than VIDEO is enabled.

This broke the build of sandbox_defconfig:

It seems CONFIG_SANDBOX_SDL=y is missing in every sandbox defconfig, and it is required to have CONFIG_VIDEO_SANDBOX_SDL enabled.

How we detect SDL is kind of odd and could be improved. I suspect that VIDEO_SANDBOX_SDL needs to 'depends on SANDBOX_SDL' as part of the solution too.

Signature · 1 line
Tom
#5 lore raw
Quoted 9 lines · On Mon, 6 Oct 2025 09:33:28 -0600 Tom Rini <[email protected]> wrote:
Quoted 6 lines · Kory Maincent
Quoted 3 lines · On Mon, 6 Oct 2025 17:13:35 +0200 Kory Maincent <[email protected]>…

On Mon, 18 Aug 2025 10:54:06 -0600
Tom Rini <[email protected]> wrote:

[...]

Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

This broke the build of sandbox_defconfig:

It seems CONFIG_SANDBOX_SDL=y is missing in every sandbox defconfig, and it is required to have CONFIG_VIDEO_SANDBOX_SDL enabled.

How we detect SDL is kind of odd and could be improved. I suspect that VIDEO_SANDBOX_SDL needs to 'depends on SANDBOX_SDL' as part of the solution too.

Oh indeed didn't know it was a dynamic check.

So the issue is not SANDBOX_SDL missing but rather not compile expo and cedit boot tests if SDL is not available:

test/boot/Makefile +2 -1
index 00223b44fe0..89538d4f0a6 100644
@@ -6,9 +6,11 @@ ifdef CONFIG_UT_BOOTSTD
 obj-$(CONFIG_BOOTSTD) += bootdev.o bootstd_common.o bootflow.o bootmeth.o
 obj-$(CONFIG_FIT) += image.o
 
+ifdef CONFIG_VIDEO_SANDBOX_SDL
 obj-$(CONFIG_EXPO) += expo.o
 obj-$(CONFIG_CEDIT) += cedit.o
 endif
+endif
 
 
-- 

Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

author
#6 lore raw
Quoted 31 lines · Kory Maincent
Quoted 9 lines · On Mon, 6 Oct 2025 09:33:28 -0600 Tom Rini <[email protected]> wrote:
Quoted 6 lines · Kory Maincent
Quoted 3 lines · On Mon, 6 Oct 2025 17:13:35 +0200 Kory Maincent <[email protected]>…

On Mon, 18 Aug 2025 10:54:06 -0600
Tom Rini <[email protected]> wrote:

[...]

Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

This broke the build of sandbox_defconfig:

It seems CONFIG_SANDBOX_SDL=y is missing in every sandbox defconfig, and it is required to have CONFIG_VIDEO_SANDBOX_SDL enabled.

How we detect SDL is kind of odd and could be improved. I suspect that VIDEO_SANDBOX_SDL needs to 'depends on SANDBOX_SDL' as part of the solution too.

Oh indeed didn't know it was a dynamic check.

So the issue is not SANDBOX_SDL missing but rather not compile expo and cedit boot tests if SDL is not available:

test/boot/Makefile +0 -0
index 00223b44fe0..89538d4f0a6 100644

test/boot/Makefile ifdef CONFIG_UT_BOOTSTD · line 13

Quoted 8 lines
test/boot/Makefile +2 -0
@@ -6,9 +6,11 @@ ifdef CONFIG_UT_BOOTSTD
 obj-$(CONFIG_BOOTSTD) += bootdev.o bootstd_common.o bootflow.o bootmeth.o
 obj-$(CONFIG_FIT) += image.o
 
+ifdef CONFIG_VIDEO_SANDBOX_SDL
 obj-$(CONFIG_EXPO) += expo.o
 obj-$(CONFIG_CEDIT) += cedit.o
 endif
+endif

Looks good, please make a proper patch, thanks!

Signature · 1 line
Tom