Skip to content

Commit f6dee26

Browse files
koachanandreas-gaisler
authored andcommitted
sparc/build: Add SPARC target flags for compiling with clang
clang only supports building 64-bit kernel, so we use the sparc64-linux-gnu target. See also: https://lore.kernel.org/lkml/e26PTXUXEz8OYXmaeKn4Mpuejr4IOlFfFwdB5vpsluXlYiqDdlyQTYcDtdAny_o4gO4SfPeQCCN2qpyT6e0nog5EaP3xk2SeUPTrF54p1gM=@protonmail.com/T/#m068e010dcf8b99d3510a90d7532bcdb70e2e2c6b Signed-off-by: Koakuma <[email protected]> Acked-by: Masahiro Yamada <[email protected]> Acked-by: Nathan Chancellor <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent 69114be commit f6dee26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Documentation/kbuild/llvm.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ yet. Bug reports are always welcome at the issue tracker below!
179179
* - s390
180180
- Maintained
181181
- ``LLVM=1`` (LLVM >= 18.1.0), ``CC=clang`` (LLVM < 18.1.0)
182+
* - sparc (sparc64 only)
183+
- Maintained
184+
- ``CC=clang LLVM_IAS=0`` (LLVM >= 20)
182185
* - um (User Mode)
183186
- Maintained
184187
- ``LLVM=1``

scripts/Makefile.clang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu
1010
CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu
1111
CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu
1212
CLANG_TARGET_FLAGS_s390 := s390x-linux-gnu
13+
CLANG_TARGET_FLAGS_sparc := sparc64-linux-gnu
1314
CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu
1415
CLANG_TARGET_FLAGS_um := $(CLANG_TARGET_FLAGS_$(SUBARCH))
1516
CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(SRCARCH))

0 commit comments

Comments
 (0)