Skip to contentSkip to conversation

test: Do not build expo and cedit test if no SDL

PATCH In review Kory Maincent 3 participants 7 messages Oct 6, 2025 – Oct 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Do not build expo and cedit test if no SDL

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)
test/boot/Makefile +2 -0
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
 
 ifdef CONFIG_SANDBOX
 obj-$(CONFIG_$(PHASE_)CMDLINE) += bootm.o
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Kory,

Quoted 8 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)

We should be careful that a future CI change doesn't cause these tests to stop running.

- Simon

#2 lore raw
Quoted 12 lines · Simon Glass

Hi Kory,

Quoted 8 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Quoted 4 lines

We should be careful that a future CI change doesn't cause these tests to stop running.

Given how HOST_HAS_SDL is defined, CI will be fine.

Signature · 1 line
Tom
#3 lore raw

Hello Tom,

Quoted 14 lines · On Mon, 6 Oct 2025 15:44:36 -0600 Tom Rini <[email protected]> wrote:
Quoted 13 lines · Simon Glass

Hi Kory,

Quoted 8 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)  
Quoted 6 lines
Quoted 4 lines

We should be careful that a future CI change doesn't cause these tests to stop running.

Given how HOST_HAS_SDL is defined, CI will be fine.

What is the status on this fix? I see that it is still not merged. Is there a reason for this?

Regards,

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#4 lore raw
Quoted 21 lines · Kory Maincent

Hello Tom,

Quoted 16 lines · On Mon, 6 Oct 2025 15:44:36 -0600 Tom Rini <[email protected]> wrote:
Quoted 15 lines · Simon Glass

Hi Kory,

Quoted 8 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)  
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

We should be careful that a future CI change doesn't cause these tests to stop running.

Given how HOST_HAS_SDL is defined, CI will be fine.

What is the status on this fix? I see that it is still not merged. Is there a reason for this?

It's on my list to pick up very soon. The general window for applying patches is about 2 weeks to allow time for feedback.

Signature · 1 line
Tom
#5 lore raw
Quoted 25 lines · On Wed, 15 Oct 2025 08:15:35 -0600 Tom Rini <[email protected]> wrote:
Quoted 24 lines · Kory Maincent

Hello Tom,

Quoted 19 lines · On Mon, 6 Oct 2025 15:44:36 -0600 Tom Rini <[email protected]> wrote:
Quoted 17 lines · Simon Glass

Hi Kory,

Quoted 8 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

---
 test/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)    

We should be careful that a future CI change doesn't cause these tests to stop running.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Given how HOST_HAS_SDL is defined, CI will be fine.

What is the status on this fix? I see that it is still not merged. Is there a reason for this?

It's on my list to pick up very soon. The general window for applying patches is about 2 weeks to allow time for feedback.

Oh ok. Didn't know about that. I am used to the Linux merge process. Sorry for the noise!

Regards,

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#6 lore raw
In reply to Kory Maincent
Quoted 4 lines · Kory Maincent

expo and cedit tests depend on the host having the SDL library. Build these tests only if VIDEO_SANDBOX_SDL config is enabled.

Applied to u-boot/master, thanks!

[1/1] test: Do not build expo and cedit test if no SDL

      commit: 00ed9753c803402935c6d67e839637c5c144e70b
Signature · 1 line
Tom