Skip to content

Commit

Permalink
lib.platform.loongnix: FIX Makefile not exist
Browse files Browse the repository at this point in the history
  Debug:
    - the linux-headers didn't support the Arch `loongarch64`, but it
    provide the support of `loongarch`.
    - After the trying to change the linuxArch from `loongarch64` into
    `loongarch` to avoid this error, it case another error which gcc not
    support `--with-arch=loongarch`.
  Action:
    Make a kind of Mapping in linux-headers for `loongarch64` into
    `loongarch`
  With-Bug:
    Gold linker didn't support loongarch64
  • Loading branch information
jackyliu16 committed Apr 22, 2023
1 parent 917ad6a commit 906bdc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/os-specific/linux/kernel-headers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ let
destination = "/include/byteswap.h";
};

linuxArchMapping = {
"loongarch64" = "loongarch";
};

makeLinuxHeaders = { src, version, patches ? [] }: stdenvNoCC.mkDerivation {
inherit src;

pname = "linux-headers";
inherit version;

ARCH = stdenvNoCC.hostPlatform.linuxArch;
ARCH = linuxArchMapping."${stdenvNoCC.hostPlatform.linuxArch}" or stdenvNoCC.hostPlatform.linuxArch;

strictDeps = true;
enableParallelBuilding = true;
Expand Down

0 comments on commit 906bdc3

Please sign in to comment.