commit 3205a38ac91b21f56aef869f79438b0daf7b0ca9
parent 119d6ad37957cf1764da3bdbfb00282a2b59de2e
Author: Daniel Barlow <dan@telent.net>
Date: Sun, 24 Sep 2023 00:17:32 +0100
mac80211 use correct arch
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/pkgs/kernel-modules/default.nix b/pkgs/kernel-modules/default.nix
@@ -11,6 +11,11 @@
}:
let
writeConfig = import ../kernel/write-kconfig.nix { inherit lib writeText; };
+ arch = if stdenv.isMips
+ then "mips"
+ else if stdenv.isAarch64
+ then "arm64"
+ else throw "unknown arch";
in stdenv.mkDerivation {
name = "kernel-modules";
@@ -25,7 +30,7 @@ in stdenv.mkDerivation {
HOST_EXTRACFLAGS = with buildPackages.pkgs;
"-I${buildPackages.openssl.dev}/include -L${buildPackages.openssl.out}/lib";
CROSS_COMPILE = stdenv.cc.bintools.targetPrefix;
- ARCH = "mips"; # kernel uses "mips" here for both mips and mipsel
+ ARCH = arch;
KBUILD_BUILD_HOST = "liminix.builder";
buildPhase = ''
diff --git a/pkgs/mac80211/default.nix b/pkgs/mac80211/default.nix
@@ -14,6 +14,11 @@
, lib
}:
let
+ arch = if stdenv.isMips
+ then "mips"
+ else if stdenv.isAarch64
+ then "arm64"
+ else throw "unknown arch";
openwrtSrc = fetchFromGitHub {
name = "openwrt-source";
repo = "openwrt";
@@ -98,7 +103,7 @@ let
which kmod cpio
]);
inherit CC CROSS_COMPILE;
- ARCH = "mips"; # kernel uses "mips" here for both mips and mipsel
+ ARCH = arch;
dontStrip = true;
dontPatchELF = true;
phases = [