treewide: Remove usage of remaining redundant platform compatability stuff
Want to get this out of here for 18.09, so it can be deprecated thereafter.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
{ stdenv, fetchurl, linuxHeaders, perl
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
{ stdenv, fetchurl, linuxHeaders, perl }:
|
||||
|
||||
let
|
||||
commonMakeFlags = [
|
||||
@@ -25,12 +23,12 @@ stdenv.mkDerivation rec {
|
||||
hardeningDisable = [ "format" "stackprotector" ];
|
||||
|
||||
makeFlags = commonMakeFlags ++ [
|
||||
"KLIBCARCH=${hostPlatform.platform.kernelArch}"
|
||||
"KLIBCARCH=${stdenv.hostPlatform.platform.kernelArch}"
|
||||
"KLIBCKERNELSRC=${linuxHeaders}"
|
||||
] # TODO(@Ericson2314): We now can get the ABI from
|
||||
# `hostPlatform.parsed.abi`, is this still a good idea?
|
||||
++ stdenv.lib.optional (hostPlatform.platform.kernelArch == "arm") "CONFIG_AEABI=y"
|
||||
++ stdenv.lib.optional (hostPlatform != buildPlatform) "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
|
||||
# `stdenv.hostPlatform.parsed.abi`, is this still a good idea?
|
||||
++ stdenv.lib.optional (stdenv.hostPlatform.platform.kernelArch == "arm") "CONFIG_AEABI=y"
|
||||
++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
|
||||
|
||||
# Install static binaries as well.
|
||||
postInstall = ''
|
||||
|
||||
Reference in New Issue
Block a user