git.iko.soy/typeable/nixpkgs
on master help sign in
kernel, initrd: Remove legacy ubootChooser
commitb50693d16ca394690bfec52ddd9eaf43d346ca8b authorTuomas Tynkkynen <tuomas@tuxera.com> dateFri 3 Nov 2017, 15:55 (9 years ago) parentcf610f8
3 files changed+5−8
pkgs/build-support/kernel/make-initrd.nix+2−2 pkgs/os-specific/linux/kernel/manual-config.nix+3−3 pkgs/top-level/all-packages.nix−3
pkgs/build-support/kernel/make-initrd.nix+2−2
@@ -12,13 +12,13 @@
1212# `contents = {object = ...; symlink = /init;}' is a typical
1313# argument.
1414
15−{ stdenv, perl, cpio, contents, ubootChooser, compressor, prepend
15+{ stdenv, perl, cpio, contents, compressor, prepend, ubootTools
1616, hostPlatform
1717}:
1818
1919let
2020 inputsFun = ubootName : [ perl cpio ]
21− ++ stdenv.lib.optional (ubootName != null) [ (ubootChooser ubootName) ];
21+ ++ stdenv.lib.optional (ubootName != null) ubootTools;
2222 makeUInitrdFun = ubootName : (ubootName != null);
2323in
2424stdenv.mkDerivation {
pkgs/os-specific/linux/kernel/manual-config.nix+3−3
@@ -1,5 +1,5 @@
11{ runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
2−, writeTextFile, ubootChooser
2+, writeTextFile, ubootTools
33, hostPlatform
44}:
55
@@ -225,7 +225,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKe
225225 enableParallelBuilding = true;
226226
227227 nativeBuildInputs = [ perl bc nettools openssl gmp libmpc mpfr ] ++ optional (stdenv.platform.uboot != null)
228− (ubootChooser stdenv.platform.uboot);
228+ ubootTools;
229229
230230 hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" ];
231231
@@ -248,6 +248,6 @@ stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKe
248248 # crossDrv builds x86 tools on x86 (but arm uboot). If this is fixed, uboot
249249 # can just go into buildInputs (but not nativeBuildInputs since cp.uboot
250250 # may be different from stdenv.platform.uboot)
251− buildInputs = optional (cp.uboot != null) (ubootChooser cp.uboot).crossDrv;
251+ buildInputs = optional (cp.uboot != null) ubootTools.crossDrv;
252252 };
253253})
pkgs/top-level/all-packages.nix−3
@@ -13002,9 +13002,6 @@ with pkgs;
1300213002
1300313003 tunctl = callPackage ../os-specific/linux/tunctl { };
1300413004
13005− # TODO(dezgeg): either refactor & use ubootTools directly, or remove completely
13006− ubootChooser = name: ubootTools;
13007−
1300813005 # Upstream U-Boots:
1300913006 inherit (callPackage ../misc/uboot {})
1301013007 buildUBoot