]> git.ipfire.org Git - thirdparty/linux.git/commit
check-uapi: honor ${CROSS_COMPILE} setting
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Mar 2026 16:33:08 +0000 (17:33 +0100)
committerNicolas Schier <nsc@kernel.org>
Fri, 20 Mar 2026 20:43:56 +0000 (21:43 +0100)
commit9940ec38f12ed8ffe8edc1944f9bbdf9b9a4689e
tree56ba374f3c6722cd468d1d6398bda5db971993cd
parenta261f6dff3c1653c19c065c3b3650c625447b8a7
check-uapi: honor ${CROSS_COMPILE} setting

When ${CROSS_COMPILE} is set, but ${CC} is not set, the logic in
check-uapi.sh is different from the top-level Makefile, which defaults
to using the cross gcc. This leads to using the native gcc instead of the
cross version, resulting in unexpected false-positive and false-negative
output.

Use the same logic here that we use in Kbuild for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260306163309.2015837-3-arnd@kernel.org
Signed-off-by: Nicolas Schier <nsc@kernel.org>
scripts/check-uapi.sh