about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-04-28 13:21:42 +0300
committerGitHub <noreply@github.com>2023-04-28 13:21:42 +0300
commitb2ef7956b631118c98f2e3de2f7594f6f844230c (patch)
tree480e7be099f871d7a7616f392a3a548e7491e336 /nixos
parentc0f57c1d2359234280f2b6d47ff220f58c19c53d (diff)
parent15e3a50bd354dfa561eaae222159832829834f65 (diff)
Merge pull request #227560 from jackyliu16/loongnix-commit
lib.platforms.loongarch64: init
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/binfmt.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix
index cceb02c1a73b..b003d983d2be 100644
--- a/nixos/modules/system/boot/binfmt.nix
+++ b/nixos/modules/system/boot/binfmt.nix
@@ -125,6 +125,10 @@ let
       magicOrExtension = ''\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00'';
       mask = ''\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'';
     };
+    loongarch64-linux = {
+      magicOrExtension = ''\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02\x01'';
+      mask = ''\xff\xff\xff\xff\xff\xff\xff\xfc\x00\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'';
+    };
     wasm32-wasi = {
       magicOrExtension = ''\x00asm'';
       mask = ''\xff\xff\xff\xff'';