Skip to content

Commit 679bc68

Browse files
authored
Merge pull request #788 from nathanchance/sparc64
Add initial support for testing sparc64
2 parents b5a3e83 + a7bee47 commit 679bc68

File tree

6 files changed

+41
-0
lines changed

6 files changed

+41
-0
lines changed

.github/workflows/next-clang-20.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,34 @@ jobs:
974974
name: boot_utils_json_defconfigs
975975
- name: Check Build and Boot Logs
976976
run: scripts/check-logs.py
977+
_c1f95a5d10da4358dc9fbc0075f7a8ca:
978+
runs-on: ubuntu-latest
979+
needs:
980+
- kick_tuxsuite_defconfigs
981+
- check_cache
982+
name: ARCH=sparc CC=clang LLVM_IAS=0 LLVM_VERSION=20 sparc64_defconfig
983+
if: ${{ needs.check_cache.outputs.status != 'pass' }}
984+
env:
985+
ARCH: sparc
986+
LLVM_VERSION: 20
987+
BOOT: 1
988+
CONFIG: sparc64_defconfig
989+
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
990+
container:
991+
image: ghcr.io/clangbuiltlinux/qemu
992+
options: --ipc=host
993+
steps:
994+
- uses: actions/checkout@v4
995+
with:
996+
submodules: true
997+
- uses: actions/download-artifact@v4
998+
with:
999+
name: output_artifact_defconfigs
1000+
- uses: actions/download-artifact@v4
1001+
with:
1002+
name: boot_utils_json_defconfigs
1003+
- name: Check Build and Boot Logs
1004+
run: scripts/check-logs.py
9771005
_d549f06de3b0361d62337ef98fc167b9:
9781006
runs-on: ubuntu-latest
9791007
needs:

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}

tuxsuite/next-clang-20.tux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,14 @@ jobs:
328328
make_variables:
329329
LLVM: 1
330330
LLVM_IAS: 1
331+
- target_arch: sparc
332+
toolchain: clang-nightly
333+
kconfig: sparc64_defconfig
334+
targets:
335+
- kernel
336+
kernel_image: image
337+
make_variables:
338+
LLVM_IAS: 0
331339
- target_arch: um
332340
toolchain: clang-nightly
333341
kconfig: defconfig

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)