aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-06-05 11:28:11 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-06-05 11:32:58 +0100
commit3fbf9689b652e230e21bbc7ab2a9b8c936bd6e80 (patch)
tree9467b79da3fcbe84d8d23545a6881646811fed4c
parent9be35180f43a4916f53430d8c93437d33896e860 (diff)
downloadupstream-3fbf9689b652e230e21bbc7ab2a9b8c936bd6e80.tar.gz
upstream-3fbf9689b652e230e21bbc7ab2a9b8c936bd6e80.tar.bz2
upstream-3fbf9689b652e230e21bbc7ab2a9b8c936bd6e80.zip
tools/mkimage: increase tmpfile name length limit
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>
-rw-r--r--tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..d375f40f61
--- /dev/null
+++ b/tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch
@@ -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
+