> There is something wrong with the conditional:
>
> .if !empty{USE_CROSS_COMPILE:M[yY][eE][sS]}
>
> because it doesn't test for yes or YES, but simply for setting.
No, it looks for a word matching the pattern (it filters and then tests on not empty).