Skip to content

Commit 9b3545d

Browse files
authored
lib.systems.loongarch64-multiplatform: init (#402689)
2 parents 050bbae + 9988795 commit 9b3545d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/systems/platforms.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,14 @@ rec {
583583
# https://github.com/llvm/llvm-project/pull/132173
584584
cmodel = "medium";
585585
};
586+
linux-kernel = {
587+
name = "loongarch-multiplatform";
588+
target = "vmlinuz.efi";
589+
autoModules = true;
590+
preferBuiltin = true;
591+
baseConfig = "defconfig";
592+
DTB = true;
593+
};
586594
};
587595

588596
# This function takes a minimally-valid "platform" and returns an
@@ -611,6 +619,9 @@ rec {
611619
else if platform.isAarch64 then
612620
if platform.isDarwin then apple-m1 else aarch64-multiplatform
613621

622+
else if platform.isLoongArch64 then
623+
loongarch64-multiplatform
624+
614625
else if platform.isRiscV then
615626
riscv-multiplatform
616627

0 commit comments

Comments
 (0)