[openwrt/openwrt] tools/mkimage: increase tmpfile name length limit

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 5 03:39:29 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/f77d77e7269bba8fecf228621a47e66f7c4fc608

commit f77d77e7269bba8fecf228621a47e66f7c4fc608
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Jun 5 11:28:11 2022 +0100

    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 at makrotopia.org>
    (cherry picked from commit 3fbf9689b652e230e21bbc7ab2a9b8c936bd6e80)
---
 .../patches/100-increase-tmpfile-name-length-limit.patch      | 11 +++++++++++
 1 file changed, 11 insertions(+)

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
+ 




More information about the lede-commits mailing list