summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/manual-config.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2017-11-05 16:58:14 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2017-11-05 17:06:59 +0200
commit0d9f2f0bb497020af31c93706cdf970a3db4bdfc (patch)
treeb0c7e8ec53c54f93c1b1bb00c0a98d0bb909f1e7 /pkgs/os-specific/linux/kernel/manual-config.nix
parent14f232d812e94a9de4fdb5693c362b8660d2c272 (diff)
downloadnixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar.gz
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar.bz2
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar.lz
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar.xz
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.tar.zst
nixlib-0d9f2f0bb497020af31c93706cdf970a3db4bdfc.zip
platforms.nix: Clean up more 'uboot' legacy
For a while now, the only thing the 'uboot' attribute does is to tell
whether to add ubootTools to kernel/initrd builds. That can be
determined with platform.kernelTarget == "uImage" just as well.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/manual-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/manual-config.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix
index 61349175c78f..28ad5aeca35f 100644
--- a/pkgs/os-specific/linux/kernel/manual-config.nix
+++ b/pkgs/os-specific/linux/kernel/manual-config.nix
@@ -224,8 +224,8 @@ stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKe
 
   enableParallelBuilding = true;
 
-  nativeBuildInputs = [ perl bc nettools openssl gmp libmpc mpfr ] ++ optional (stdenv.platform.uboot != null)
-    ubootTools;
+  nativeBuildInputs = [ perl bc nettools openssl gmp libmpc mpfr ]
+    ++ optional (stdenv.platform.kernelTarget == "uImage") ubootTools;
 
   hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" ];
 
@@ -244,10 +244,6 @@ stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKe
 
       karch = cp.kernelArch;
 
-      # !!! uboot has messed up cross-compiling, nativeDrv builds arm tools on x86,
-      # crossDrv builds x86 tools on x86 (but arm uboot). If this is fixed, uboot
-      # can just go into buildInputs (but not nativeBuildInputs since cp.uboot
-      # may be different from stdenv.platform.uboot)
-      buildInputs = optional (cp.uboot != null) ubootTools.crossDrv;
+      nativeBuildInputs = optional (cp.kernelTarget == "uImage") ubootTools;
   };
 })