mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
lib.systems.loongarch64-multiplatform: init
This commit is contained in:
parent
4a2c6cc55d
commit
9988795010
1 changed files with 11 additions and 0 deletions
|
@ -583,6 +583,14 @@ rec {
|
||||||
# https://github.com/llvm/llvm-project/pull/132173
|
# https://github.com/llvm/llvm-project/pull/132173
|
||||||
cmodel = "medium";
|
cmodel = "medium";
|
||||||
};
|
};
|
||||||
|
linux-kernel = {
|
||||||
|
name = "loongarch-multiplatform";
|
||||||
|
target = "vmlinuz.efi";
|
||||||
|
autoModules = true;
|
||||||
|
preferBuiltin = true;
|
||||||
|
baseConfig = "defconfig";
|
||||||
|
DTB = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# This function takes a minimally-valid "platform" and returns an
|
# This function takes a minimally-valid "platform" and returns an
|
||||||
|
@ -611,6 +619,9 @@ rec {
|
||||||
else if platform.isAarch64 then
|
else if platform.isAarch64 then
|
||||||
if platform.isDarwin then apple-m1 else aarch64-multiplatform
|
if platform.isDarwin then apple-m1 else aarch64-multiplatform
|
||||||
|
|
||||||
|
else if platform.isLoongArch64 then
|
||||||
|
loongarch64-multiplatform
|
||||||
|
|
||||||
else if platform.isRiscV then
|
else if platform.isRiscV then
|
||||||
riscv-multiplatform
|
riscv-multiplatform
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue