arm64 kernel: cross-compile
This commit is contained in:
parent
dc5569f331
commit
e9f3ef3b2b
|
@ -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:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue