Skip to content

Commit af06df8

Browse files
committed
Add initial support for sparc64
This is now supported in tuxmake 1.28.4 [1] and boot-utils [2]. Closes: #786 Link: https://gitlab.com/Linaro/tuxmake/-/merge_requests/456 [1] Link: ClangBuiltLinux/boot-utils#122 [2] Signed-off-by: Nathan Chancellor <[email protected]>
1 parent b5cb671 commit af06df8

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

generator/yml/0005-architectures.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ architectures:
88
- &powerpc-arch powerpc
99
- &riscv-arch riscv
1010
- &s390-arch s390
11+
- &sparc-arch sparc
1112
- &um-arch um

generator/yml/0007-configs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ configs:
8585
# CONFIG_BPF_PRELOAD disabled for pre-5.18 cross compiled Fedora configs: https://github.com/ClangBuiltLinux/linux/issues/1433
8686
- &s390_fedora_bpf {config: [*s390-fedora-config-url, CONFIG_BPF_PRELOAD=n], ARCH: *s390-arch, << : *kernel}
8787
- &s390_suse {config: *s390-suse-config-url, ARCH: *s390-arch, << : *kernel}
88+
- &sparc64 {config: sparc64_defconfig, kernel_image: image, ARCH: *sparc-arch, << : *kernel}
8889
- &um {config: defconfig, ARCH: *um-arch, << : *kernel}
8990
- &x86_64 {config: defconfig, << : *kernel}
9091
- &x86_64_lto_full {config: [defconfig, CONFIG_LTO_CLANG_FULL=y], << : *kernel}

generator/yml/0009-llvm-tot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
- {<< : *s390_kasan, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
148148
- {<< : *s390_fedora, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
149149
- {<< : *s390_suse, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
150+
- {<< : *sparc64, << : *next, << : *clang, boot: true, << : *llvm_tot}
150151
- {<< : *um, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
151152
- {<< : *x86_64, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
152153
- {<< : *x86_64_lto_full, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}

utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def get_image_name():
6060
"mips": "vmlinux",
6161
"riscv": "Image",
6262
"s390": "bzImage",
63+
"sparc": "image",
6364
"um": "linux",
6465
"x86_64": "bzImage",
6566
}[arch]
@@ -126,6 +127,7 @@ def get_cbl_name():
126127
"ppc44x_defconfig": "ppc32",
127128
"ppc64_guest_defconfig": "ppc64",
128129
"powernv_defconfig": "ppc64le",
130+
"sparc64_defconfig": "sparc64",
129131
}
130132
if "CONFIG_CPU_BIG_ENDIAN=y" in full_config:
131133
if arch == "arm64":

0 commit comments

Comments
 (0)