Skip to content

Commit

Permalink
Add initial support for sparc64
Browse files Browse the repository at this point in the history
This is now supported in tuxmake 1.28.4 [1] and boot-utils [2].

Closes: ClangBuiltLinux#786
Link: https://gitlab.com/Linaro/tuxmake/-/merge_requests/456 [1]
Link: ClangBuiltLinux/boot-utils#122 [2]
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Nov 20, 2024
1 parent b5cb671 commit af06df8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions generator/yml/0005-architectures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ architectures:
- &powerpc-arch powerpc
- &riscv-arch riscv
- &s390-arch s390
- &sparc-arch sparc
- &um-arch um
1 change: 1 addition & 0 deletions generator/yml/0007-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ configs:
# CONFIG_BPF_PRELOAD disabled for pre-5.18 cross compiled Fedora configs: https://github.com/ClangBuiltLinux/linux/issues/1433
- &s390_fedora_bpf {config: [*s390-fedora-config-url, CONFIG_BPF_PRELOAD=n], ARCH: *s390-arch, << : *kernel}
- &s390_suse {config: *s390-suse-config-url, ARCH: *s390-arch, << : *kernel}
- &sparc64 {config: sparc64_defconfig, kernel_image: image, ARCH: *sparc-arch, << : *kernel}
- &um {config: defconfig, ARCH: *um-arch, << : *kernel}
- &x86_64 {config: defconfig, << : *kernel}
- &x86_64_lto_full {config: [defconfig, CONFIG_LTO_CLANG_FULL=y], << : *kernel}
Expand Down
1 change: 1 addition & 0 deletions generator/yml/0009-llvm-tot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
- {<< : *s390_kasan, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
- {<< : *s390_fedora, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
- {<< : *s390_suse, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
- {<< : *sparc64, << : *next, << : *clang, boot: true, << : *llvm_tot}
- {<< : *um, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
- {<< : *x86_64, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
- {<< : *x86_64_lto_full, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
Expand Down
2 changes: 2 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def get_image_name():
"mips": "vmlinux",
"riscv": "Image",
"s390": "bzImage",
"sparc": "image",
"um": "linux",
"x86_64": "bzImage",
}[arch]
Expand Down Expand Up @@ -126,6 +127,7 @@ def get_cbl_name():
"ppc44x_defconfig": "ppc32",
"ppc64_guest_defconfig": "ppc64",
"powernv_defconfig": "ppc64le",
"sparc64_defconfig": "sparc64",
}
if "CONFIG_CPU_BIG_ENDIAN=y" in full_config:
if arch == "arm64":
Expand Down

0 comments on commit af06df8

Please sign in to comment.