moby: cross-compile the kernel
This commit is contained in:
parent
f0b772d688
commit
913c9e5fdf
2
TODO.md
2
TODO.md
|
@ -12,3 +12,5 @@
|
||||||
nixpkgs.crossSystem.system = "aarch64-linux";
|
nixpkgs.crossSystem.system = "aarch64-linux";
|
||||||
}];
|
}];
|
||||||
```
|
```
|
||||||
|
- <https://github.com/nix-community/aarch64-build-box>
|
||||||
|
- apply for access to the community arm build box
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, mobile-nixos, ... }:
|
{ config, pkgs, nixpkgs, lib, mobile-nixos, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# (import "${mobile-nixos}/lib/configuration.nix" {
|
# (import "${mobile-nixos}/lib/configuration.nix" {
|
||||||
|
@ -57,7 +57,10 @@
|
||||||
# - and sun50i-a64-cpu-opp.dtsi
|
# - and sun50i-a64-cpu-opp.dtsi
|
||||||
# - no need to touch the allwinner-h6 stuff: that's the SBC pine product
|
# - no need to touch the allwinner-h6 stuff: that's the SBC pine product
|
||||||
# - i think it's safe to ignore sun9i stuff, but i don't know what it is
|
# - i think it's safe to ignore sun9i stuff, but i don't know what it is
|
||||||
boot.kernelPackages = pkgs.linuxPackages_5_18;
|
# boot.kernelPackages = pkgs.linuxPackages_5_18;
|
||||||
|
boot.kernelPackages =
|
||||||
|
let p = (import nixpkgs { localSystem = "x86_64-linux"; });
|
||||||
|
in p.pkgsCross.aarch64-multiplatform.linuxPackages_5_18;
|
||||||
boot.kernelPatches =
|
boot.kernelPatches =
|
||||||
let
|
let
|
||||||
# use the last commit on the 5.18 branch (5.18.14)
|
# use the last commit on the 5.18 branch (5.18.14)
|
||||||
|
|
|
@ -12,6 +12,7 @@ with lib;
|
||||||
|
|
||||||
# enable cross compilation
|
# enable cross compilation
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
# nixpkgs.config.allowUnsupportedSystem = true;
|
||||||
# nixpkgs.crossSystem.system = "aarch64-linux";
|
# nixpkgs.crossSystem.system = "aarch64-linux";
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user