[PATCH] sandbox: fix linker error for SDL build
Tom Rini
trini at konsulko.com
Mon Aug 18 18:53:09 CEST 2025
On Sun, Aug 17, 2025 at 04:49:40PM -0700, alison at she-devel.com wrote:
> From: Alison Chaiken <alison at she-devel.com>
>
> The patches fixes the following build failure:
>
> $ make sandbox_defconfig
>
> $ make nconfig
>
> Turn on SANDBOX_SDL.
>
> $ make u-boot
>
> [ . . . ]
>
> LTO u-boot
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o: in function
> `dm_test_video_bmp8':
> /home/alison/gitsrc/u-boot/test/dm/video.c:415:(.text+0x16bb): undefined
> reference to `sandbox_sdl_set_bpp'
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o: in function
> `dm_test_video_bmp32':
> /home/alison/gitsrc/u-boot/test/dm/video.c:507:(.text+0x189c): undefined
> reference to `sandbox_sdl_set_bpp'
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o: in function
> `dm_test_video_comp_bmp32':
> /home/alison/gitsrc/u-boot/test/dm/video.c:543:(.text+0x1a7d): undefined
> reference to `sandbox_sdl_set_bpp'
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o: in function
> `dm_test_video_comp_bmp8':
> /home/alison/gitsrc/u-boot/test/dm/video.c:563:(.text+0x1c5e): undefined
> reference to `sandbox_sdl_set_bpp'
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o: in function
> `dm_test_video_bmp16':
> /home/alison/gitsrc/u-boot/test/dm/video.c:437:(.text+0x1e49): undefined
> reference to `sandbox_sdl_set_bpp'
> /usr/bin/ld: /tmp/ccEZac9f.ltrans48.ltrans.o:
> /home/alison/gitsrc/u-boot/test/dm/video.c:461: more undefined
> references to `sandbox_sdl_set_bpp' follow
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:2029: u-boot] Error 1
>
> Signed-off-by: Alison Chaiken <alison at she-devel.com>
Ah, good catch. Looking at this in more detail, the tests are driver
dependent, I'll go make up a patch in a moment.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250818/99bc0f65/attachment.sig>
More information about the U-Boot
mailing list