]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Implement ARCH_HAS_CC_CAN_LINK
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Sun, 7 Jun 2026 02:17:52 +0000 (20:17 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 7 Jun 2026 02:17:52 +0000 (20:17 -0600)
commit84894ceb3c2ef5c5404359efd4edc6c438aa6d0c
tree721b5dce1f63c8802fee78a03a9584f18737ff2d
parentc0db0690f7fae7bd8cf1493e2f6b2a672e0c0de8
riscv: Implement ARCH_HAS_CC_CAN_LINK

The generic CC_CAN_LINK detection relies on -m32/-m64 compiler flags.
These are not supported by riscv compilers.

Use architecture-specific logic using -mabi instead.

Prefer the 'd' ABI variant when possible as todays toolchains are most
likely to provide a libc for that one.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260316-cc-can-link-riscv-v4-1-64c072b456dd@linutronix.de
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/Kconfig