linuxHeadersCross: Remove and just use linuxHeaders
This commit is contained in:
parent
5870795cc6
commit
f0e1907bee
@ -7707,7 +7707,7 @@ with pkgs;
|
|||||||
|
|
||||||
glibcCross = forcedNativePackages.glibc.override {
|
glibcCross = forcedNativePackages.glibc.override {
|
||||||
gccCross = gccCrossStageStatic;
|
gccCross = gccCrossStageStatic;
|
||||||
linuxHeaders = linuxHeadersCross;
|
inherit (forcedNativePackages) linuxHeaders;
|
||||||
};
|
};
|
||||||
|
|
||||||
# We can choose:
|
# We can choose:
|
||||||
@ -11684,25 +11684,30 @@ with pkgs;
|
|||||||
|
|
||||||
lkl = callPackage ../applications/virtualization/lkl { };
|
lkl = callPackage ../applications/virtualization/lkl { };
|
||||||
|
|
||||||
linuxHeaders = linuxHeaders_4_4;
|
linuxHeaders_2_4 = callPackage ../os-specific/linux/kernel-headers/2.4.nix {
|
||||||
|
cross = if targetPlatform != hostPlatform then targetPlatform else null;
|
||||||
linuxHeaders24Cross = forcedNativePackages.callPackage ../os-specific/linux/kernel-headers/2.4.nix {
|
|
||||||
cross = assert targetPlatform != buildPlatform; targetPlatform;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
linuxHeaders26Cross = forcedNativePackages.callPackage ../os-specific/linux/kernel-headers/4.4.nix {
|
linuxHeaders_2_6 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
|
||||||
cross = assert targetPlatform != buildPlatform; targetPlatform;
|
cross = if targetPlatform != hostPlatform then targetPlatform else null;
|
||||||
};
|
};
|
||||||
|
|
||||||
linuxHeaders_4_4 = callPackage ../os-specific/linux/kernel-headers/4.4.nix { };
|
linuxHeaders_4_4 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
|
||||||
|
cross = if targetPlatform != hostPlatform then targetPlatform else null;
|
||||||
|
};
|
||||||
|
|
||||||
# We can choose:
|
# We can choose:
|
||||||
linuxHeadersCrossChooser = ver : if ver == "2.4" then linuxHeaders24Cross
|
linuxHeaders =
|
||||||
else if ver == "2.6" then linuxHeaders26Cross
|
if targetPlatform != hostPlatform
|
||||||
else throw "Unknown linux kernel version";
|
then
|
||||||
|
{ # switch
|
||||||
linuxHeadersCross = assert targetPlatform != buildPlatform;
|
"2.4" = linuxHeaders_2_4;
|
||||||
linuxHeadersCrossChooser targetPlatform.platform.kernelMajor;
|
"2.6" = linuxHeaders_2_6;
|
||||||
|
"4.4" = linuxHeaders_4_4;
|
||||||
|
}.${targetPlatform.platform.kernelMajor}
|
||||||
|
or (throw "Unknown linux kernel version")
|
||||||
|
else
|
||||||
|
linuxHeaders_4_4;
|
||||||
|
|
||||||
kernelPatches = callPackage ../os-specific/linux/kernel/patches.nix { };
|
kernelPatches = callPackage ../os-specific/linux/kernel/patches.nix { };
|
||||||
|
|
||||||
@ -12358,7 +12363,7 @@ with pkgs;
|
|||||||
uclibc = callPackage ../os-specific/linux/uclibc { };
|
uclibc = callPackage ../os-specific/linux/uclibc { };
|
||||||
|
|
||||||
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
|
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
|
||||||
linuxHeaders = linuxHeadersCross;
|
inherit (buildPackages) linuxHeaders;
|
||||||
gccCross = gccCrossStageStatic;
|
gccCross = gccCrossStageStatic;
|
||||||
cross = assert targetPlatform != buildPlatform; targetPlatform;
|
cross = assert targetPlatform != buildPlatform; targetPlatform;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user