builders/uimage: support aligning the FIT

This is necessary when writing to a MTD partition with a certain erasesize.
This commit is contained in:
Raito Bezarius
2023-12-04 14:07:30 +01:00
parent c59364d623
commit dde8386f75
3 changed files with 4 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ in {
, extraName ? "" # e.g. socFamily
, loadAddress
, imageFormat
, alignment ? null
, dtb ? null
} : stdenv.mkDerivation {
name = "kernel.image";
@@ -70,7 +71,7 @@ in {
};
};
_VARS
mkimage -f mkimage.its kernel.uimage
mkimage -f mkimage.its ${lib.optionalString (alignment != null) "-B 0x${lib.toHexString alignment}"} kernel.uimage
mkimage -l kernel.uimage
'';