Skip to content

Commit 5669302

Browse files
committed
Add support for LoongArch
Closes: ClangBuiltLinux#599 Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 4383a10 commit 5669302

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

generator.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,16 @@ tree_schedules:
248248
- &arm64-fixes_llvm_12 {<< : *llvm_12, << : *arm64-fixes, << : *daily_eighteen}
249249
- &arm64-fixes_llvm_11 {<< : *llvm_11, << : *arm64-fixes, << : *daily_eighteen}
250250
architectures:
251-
- &arm-arch arm
252-
- &arm64-arch arm64
253-
- &hexagon-arch hexagon
254-
- &i386-arch i386
255-
- &mips-arch mips
256-
- &powerpc-arch powerpc
257-
- &riscv-arch riscv
258-
- &s390-arch s390
259-
- &um-arch um
251+
- &arm-arch arm
252+
- &arm64-arch arm64
253+
- &hexagon-arch hexagon
254+
- &i386-arch i386
255+
- &loongarch-arch loongarch
256+
- &mips-arch mips
257+
- &powerpc-arch powerpc
258+
- &riscv-arch riscv
259+
- &s390-arch s390
260+
- &um-arch um
260261
targets:
261262
- &default {targets: [default]}
262263
- &kernel {targets: [kernel]}
@@ -267,6 +268,14 @@ chromeos_configs:
267268
kasan_configs:
268269
- &arm64-kasan-configs {config: [defconfig, CONFIG_FTRACE=y, CONFIG_KASAN=y, CONFIG_KASAN_KUNIT_TEST=y, CONFIG_KASAN_VMALLOC=y, CONFIG_KUNIT=y]}
269270
- &arm64-kasan-sw-configs {config: [defconfig, CONFIG_FTRACE=y, CONFIG_KASAN=y, CONFIG_KASAN_KUNIT_TEST=y, CONFIG_KASAN_SW_TAGS=y, CONFIG_KUNIT=y]}
271+
loongarch_configs:
272+
# CONFIG_CRASH_DUMP / CONFIG_RELOCATABLE: https://github.com/ClangBuiltLinux/linux/issues/1883
273+
# CONFIG_KCOV: https://github.com/ClangBuiltLinux/linux/issues/1895
274+
# CONFIG_MODULES: https://github.com/ClangBuiltLinux/linux/issues/1884
275+
- &loongarch-defconfigs {config: [defconfig, CONFIG_CRASH_DUMP=n, CONFIG_MODULES=n, CONFIG_RELOCATABLE=n]}
276+
- &loongarch-defconfigs-lto-thin {config: [defconfig, CONFIG_CRASH_DUMP=n, CONFIG_MODULES=n, CONFIG_RELOCATABLE=n, CONFIG_LTO_CLANG_THIN=y]}
277+
- &loongarch-allyesconfigs {config: [allyesconfig, CONFIG_CRASH_DUMP=n, CONFIG_KCOV=n, CONFIG_MODULES=n, CONFIG_RELOCATABLE=n]}
278+
- &loongarch-allyesconfigs-lto-thin {config: [allyesconfig, CONFIG_CRASH_DUMP=n, CONFIG_KCOV=n, CONFIG_MODULES=n, CONFIG_RELOCATABLE=n, CONFIG_GCOV_KERNEL=n, CONFIG_LTO_CLANG_THIN=y]}
270279
configs:
271280
# config: image target (optional) [ARCH:] (Optional: x86) targets to build
272281
- &arm32_v5 {config: multi_v5_defconfig, ARCH: *arm-arch, << : *kernel_dtbs}
@@ -308,6 +317,10 @@ configs:
308317
- &hexagon_allmod {config: [allmodconfig, CONFIG_WERROR=n], ARCH: *hexagon-arch, << : *default}
309318
- &i386 {config: defconfig, ARCH: *i386-arch, << : *kernel}
310319
- &i386_suse {config: *i386-suse-config-url, ARCH: *i386-arch, << : *default}
320+
- &loong {<< : *loongarch-defconfigs, ARCH: *loongarch-arch, << : *kernel}
321+
- &loong_lto_thin {<< : *loongarch-defconfigs-lto-thin, ARCH: *loongarch-arch, << : *kernel}
322+
- &loong_allyes {<< : *loongarch-allyesconfigs, ARCH: *loongarch-arch, << : *default}
323+
- &loong_allyes_lto {<< : *loongarch-allyesconfigs-lto-thin, ARCH: *loongarch-arch, << : *default}
311324
- &mips {config: [malta_defconfig, CONFIG_BLK_DEV_INITRD=y, CONFIG_CPU_BIG_ENDIAN=y], kernel_image: vmlinux, ARCH: *mips-arch, << : *kernel}
312325
- &mipsel {config: [malta_defconfig, CONFIG_BLK_DEV_INITRD=y], kernel_image: vmlinux, ARCH: *mips-arch, << : *kernel}
313326
- &ppc32 {config: ppc44x_defconfig, kernel_image: uImage, ARCH: *powerpc-arch, << : *kernel}
@@ -409,6 +422,10 @@ builds:
409422
- {<< : *hexagon_allmod, << : *mainline, << : *llvm_full, boot: false, << : *llvm_tot}
410423
- {<< : *i386, << : *mainline, << : *llvm_full, boot: true, << : *llvm_tot}
411424
- {<< : *i386_suse, << : *mainline, << : *llvm_full, boot: false, << : *llvm_tot}
425+
- {<< : *loong, << : *mainline, << : *llvm_full, boot: true, << : *llvm_tot}
426+
- {<< : *loong_lto_thin, << : *mainline, << : *llvm_full, boot: true, << : *llvm_tot}
427+
- {<< : *loong_allyes, << : *mainline, << : *llvm_full, boot: false, << : *llvm_tot}
428+
- {<< : *loong_allyes_lto, << : *mainline, << : *llvm_full, boot: false, << : *llvm_tot}
412429
- {<< : *mips, << : *mainline, << : *llvm_full, boot: true, << : *llvm_tot}
413430
- {<< : *mipsel, << : *mainline, << : *llvm_full, boot: true, << : *llvm_tot}
414431
# ppc32: Boot disabled (https://github.com/ClangBuiltLinux/linux/issues/1814)
@@ -478,6 +495,10 @@ builds:
478495
- {<< : *hexagon_allmod, << : *next, << : *llvm_full, boot: false, << : *llvm_tot}
479496
- {<< : *i386, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
480497
- {<< : *i386_suse, << : *next, << : *llvm_full, boot: false, << : *llvm_tot}
498+
- {<< : *loong, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
499+
- {<< : *loong_lto_thin, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
500+
- {<< : *loong_allyes, << : *next, << : *llvm_full, boot: false, << : *llvm_tot}
501+
- {<< : *loong_allyes_lto, << : *next, << : *llvm_full, boot: false, << : *llvm_tot}
481502
- {<< : *mips, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
482503
- {<< : *mipsel, << : *next, << : *llvm_full, boot: true, << : *llvm_tot}
483504
# ppc32: Boot disabled (https://github.com/ClangBuiltLinux/linux/issues/1814)
@@ -548,6 +569,10 @@ builds:
548569
- {<< : *hexagon_allmod, << : *stable, << : *llvm_full, boot: false, << : *llvm_tot}
549570
- {<< : *i386, << : *stable, << : *llvm_full, boot: true, << : *llvm_tot}
550571
- {<< : *i386_suse, << : *stable, << : *llvm_full, boot: false, << : *llvm_tot}
572+
- {<< : *loong, << : *stable, << : *llvm_full, boot: true, << : *llvm_tot}
573+
- {<< : *loong_lto_thin, << : *stable, << : *llvm_full, boot: true, << : *llvm_tot}
574+
- {<< : *loong_allyes, << : *stable, << : *llvm_full, boot: false, << : *llvm_tot}
575+
- {<< : *loong_allyes_lto, << : *stable, << : *llvm_full, boot: false, << : *llvm_tot}
551576
- {<< : *mips, << : *stable, << : *llvm_full, boot: true, << : *llvm_tot}
552577
- {<< : *mipsel, << : *stable, << : *llvm_full, boot: true, << : *llvm_tot}
553578
# ppc32: Boot disabled (https://github.com/ClangBuiltLinux/linux/issues/1814)

utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def get_image_name():
3131
"arm": "zImage",
3232
"arm64": "Image.gz",
3333
"i386": "bzImage",
34+
"loongarch": "vmlinuz.efi",
3435
"mips": "vmlinux",
3536
"riscv": "Image",
3637
"s390": "bzImage",

0 commit comments

Comments
 (0)