On Mon, Jul 13, 2026 at 06:23:56PM +0200, Guillermo Rodriguez Garcia wrote:
> Hello,
> 
> Our BSP is currently defining:
> 
> TARGET_EXTRA_CFLAGS=-mtune=cortex-a7 -mfpu=neon-vfpv4
> 
> However this is causing us some trouble with TF-A, as the code
> generated by the toolchain contains NEON instructions, which makes it
> fail at runtime with "Undefined instruction" exceptions.
> 
> We could skip this for TF-A specifically by adding TARGET_EXTRA_CFLAGS
> to TF_A_WRAPPER_BLACKLIST.
> 
> But actually we'd like to do the same for all low level code,
> including kernel and bootloaders (U-Boot, OP-TEE). Since all of these
> already set <package>_WRAPPER_BLACKLIST to
> $(PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST), the easiest and more robust way
> would be to add TARGET_EXTRA_CFLAGS to
> PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST itself. Is this possible?

Untested, but I think, you can create rules/pre/blacklist.make with:

PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST += TARGET_EXTRA_CFLAGS

to your BSP (any filename is fine as long as it is in rules/pre/ and has a
.make suffix).

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Reply via email to