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.
This commit is contained in:
@@ -16,17 +16,14 @@
|
||||
, hostPlatform
|
||||
}:
|
||||
|
||||
let
|
||||
inputsFun = ubootName : [ perl cpio ]
|
||||
++ stdenv.lib.optional (ubootName != null) ubootTools;
|
||||
makeUInitrdFun = ubootName : (ubootName != null);
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "initrd";
|
||||
builder = ./make-initrd.sh;
|
||||
nativeBuildInputs = inputsFun hostPlatform.platform.uboot;
|
||||
|
||||
makeUInitrd = makeUInitrdFun hostPlatform.platform.uboot;
|
||||
makeUInitrd = hostPlatform.platform.kernelTarget == "uImage";
|
||||
|
||||
nativeBuildInputs = [ perl cpio ]
|
||||
++ stdenv.lib.optional makeUInitrd ubootTools;
|
||||
|
||||
# !!! should use XML.
|
||||
objects = map (x: x.object) contents;
|
||||
|
||||
Reference in New Issue
Block a user