'make cross_tools' regressed in v2022.04 (and persists in v2022.07rc1)
With v2022.04 I am getting this in Yocto for the u-boot-tools recipe, e.g. a target tool is attempted to be executed on the build host:
| tools/bmp_logo --gen-info /srv/work/alex/poky/build-arm-32-alt/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/u-boot-tools/1_2022.04-r0/git/tools/logos/denx.bmp > include/bmp_logo.h
| tools/bmp_logo --gen-bmp /srv/work/alex/poky/build-arm-32-alt/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/u-boot-tools/1_2022.04-r0/git/tools/logos/denx.bmp > include/bmp_logo_data.h
| /bin/sh: 1: tools/bmp_logo: Exec format error
| make[2]: *** [/srv/work/alex/poky/build-arm-32-alt/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/u-boot-tools/1_2022.04-r0/git/tools/Makefile:306: include/bmp_logo.h] Error 126
| make[2]: *** Deleting file 'include/bmp_logo.h'
| make[2]: *** Waiting for unfinished jobs....
| /bin/sh: 1: tools/bmp_logo: Exec format error
| make[2]: *** [/srv/work/alex/poky/build-arm-32-alt/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/u-boot-tools/1_2022.04-r0/git/tools/Makefile:310: include/bmp_logo_data.h] Error 126
| make[2]: *** Deleting file 'include/bmp_logo_data.h'
| make[1]: *** [/srv/work/alex/poky/build-arm-32-alt/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/u-boot-tools/1_2022.04-r0/git/Makefile:1894: tools] Error 2
After bisection, the offending commit is:
commit 7a8555d871361a1e36152c25826359704c1e46de
Author: Simon Glass <sjg@chromium.org>
Date: Fri Nov 19 13:24:04 2021 -0700
video: Show the U-Boot logo by default