mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
linux-headers 4.4: Remove arch fallback code
@dezgeg was right: The `platform` field of a linux platorm is already manadatory---if not specified it is inferred, and all such inferences include a `kernelArch` field. Therefore linux packages can indeed rely on it being defined.
This commit is contained in:
parent
baaed4c801
commit
c13cf47e79
1 changed files with 1 additions and 6 deletions
|
@ -20,12 +20,7 @@ stdenvNoCC.mkDerivation {
|
|||
|
||||
targetConfig = if hostPlatform != buildPlatform then hostPlatform.config else null;
|
||||
|
||||
platform = hostPlatform.platform.kernelArch or (
|
||||
if hostPlatform.system == "i686-linux" then "i386" else
|
||||
if hostPlatform.system == "x86_64-linux" then "x86_64" else
|
||||
if hostPlatform.system == "powerpc-linux" then "powerpc" else
|
||||
if hostPlatform.isArm then "arm" else
|
||||
abort "don't know what the kernel include directory is called for this platform");
|
||||
platform = hostPlatform.platform.kernelArch;
|
||||
|
||||
# It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
|
||||
# We do this so we have a build->build, not build->host, C compiler.
|
||||
|
|
Loading…
Reference in a new issue