diff options
| author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2026-04-05 03:42:40 +0300 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-04-05 03:42:40 +0300 |
| commit | c8d0c36d852ccd7caf9d5a44f3090f80a060c28d (patch) | |
| tree | 72f1998c799f4725eeab6d57cb7c3394684d0369 | |
| parent | d8e99133eb4a8d09dcbf71f7277dc948d3413227 (diff) | |
| download | linux-c8d0c36d852ccd7caf9d5a44f3090f80a060c28d.tar.xz | |
riscv: Simplify assignment for UTS_MACHINE
The BITS variable conveniently allows to simplify the assignment for
UTS_MACHINE.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260313164012.1153936-2-u.kleine-koenig@baylibre.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
| -rw-r--r-- | arch/riscv/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 371da75a47f9..87102314103c 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -28,7 +28,6 @@ endif export BITS ifeq ($(CONFIG_ARCH_RV64I),y) BITS := 64 - UTS_MACHINE := riscv64 KBUILD_CFLAGS += -mabi=lp64 KBUILD_AFLAGS += -mabi=lp64 @@ -39,13 +38,14 @@ ifeq ($(CONFIG_ARCH_RV64I),y) -Cno-redzone else BITS := 32 - UTS_MACHINE := riscv32 KBUILD_CFLAGS += -mabi=ilp32 KBUILD_AFLAGS += -mabi=ilp32 KBUILD_LDFLAGS += -melf32lriscv endif +UTS_MACHINE := riscv$(BITS) + # LLVM has an issue with target-features and LTO: https://github.com/llvm/llvm-project/issues/59350 # Ensure it is aware of linker relaxation with LTO, otherwise relocations may # be incorrect: https://github.com/llvm/llvm-project/issues/65090 |
