tools/mkimage: increase tmpfile name length limit
authorDaniel Golle <daniel@makrotopia.org>
Sun, 5 Jun 2022 10:28:11 +0000 (11:28 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 5 Jun 2022 10:32:58 +0000 (11:32 +0100)
mkimage limits the length of the file paths in can deal with to 256
characters. Turns out that in automated builds by asu we break this
limit, so increase it to 1024 characters.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch [new file with mode: 0644]

diff --git a/tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch b/tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch
new file mode 100644 (file)
index 0000000..d375f40
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tools/mkimage.h
++++ b/tools/mkimage.h
+@@ -42,7 +42,7 @@ static inline ulong map_to_sysmem(void *
+ }
+ #define MKIMAGE_TMPFILE_SUFFIX                ".tmp"
+-#define MKIMAGE_MAX_TMPFILE_LEN               256
++#define MKIMAGE_MAX_TMPFILE_LEN               1024
+ #define MKIMAGE_DEFAULT_DTC_OPTIONS   "-I dts -O dtb -p 500"
+ #define MKIMAGE_MAX_DTC_CMDLINE_LEN   2 * MKIMAGE_MAX_TMPFILE_LEN + 35