arm64 kernel: cross-compile

This commit is contained in:
Motiejus Jakštys 2024-03-07 11:47:15 +02:00
parent dc5569f331
commit e9f3ef3b2b
2 changed files with 8 additions and 1 deletions

View File

@ -110,6 +110,13 @@
nicer = super.callPackage ./pkgs/nicer.nix {};
gamja = super.callPackage ./pkgs/gamja.nix {};
})
(_: _: {
crossArm64 = import nixpkgs {
system = "x86_64-linux";
hostPlatform.config = "aarch64-linux";
buildPlatform.config = "x86_64-linux";
};
})
];
mkVM = system:

View File

@ -5,7 +5,7 @@
modulesPath,
...
}: let
crossPkgs = pkgs.pkgsCross.aarch64-multiplatform;
crossPkgs = pkgs.crossArm64.pkgsCross.aarch64-multiplatform;
in {
boot = {
kernelPackages = crossPkgs.linuxPackagesFor (crossPkgs.buildLinux rec {