public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] mkimage: fix using long pathnames
@ 2020-04-27  0:08 Sven Roederer
  2020-04-27  0:08 ` [PATCH 1/2] tools/mkimage: fix handling long filenames Sven Roederer
  2020-04-27  0:08 ` [PATCH 2/2] tools/fit-image: print a warning when cmd-line for dtc might be truncated Sven Roederer
  0 siblings, 2 replies; 5+ messages in thread
From: Sven Roederer @ 2020-04-27  0:08 UTC (permalink / raw)
  To: u-boot

When running an buildbot with OpenWrt-CI I got the following error:

mkimage -f /var/lib/buildbot/slaves/slave/ipq40xx-generic/build/firmware/openwrt/
build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/tmp/
freifunk-berlin-dev-daily-1907-f66973b-ipq40xx-generic-asus_map-ac2200-initramfs-fit-uImage.itb.its
 /var/lib/buildbot/slaves/slave/ipq40xx-generic/build/firmware/openwrt/build_dir/
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/tmp/
freifunk-berlin-dev-daily-1907-f66973b-ipq40xx-generic-asus_map-ac2200-initramfs-fit-uImage.itb.new
sh: 1: Syntax error: Unterminated quoted string

The syntax error is reported by the system()-call of fit_image.c as the cmd-
variable get truncated when using such long pathnames for teh output and the
FIT-file.
It's fixed by redefining the MKIMAGE_MAX_DTC_CMDLINE_LEN based on the size.
of MKIMAGE_MAX_TMPFILE_LEN. Also a Warning will be printed when detecting 
that the cmd-variable has reached its maximal size.

Sven Roederer (2):
  tools/mkimage: fix handling long filenames
  tools/fit-image: print a warning when cmd-line for dtc might be
    truncated

 tools/fit_image.c | 4 ++++
 tools/mkimage.h   | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-01 21:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-27  0:08 [PATCH 0/2] mkimage: fix using long pathnames Sven Roederer
2020-04-27  0:08 ` [PATCH 1/2] tools/mkimage: fix handling long filenames Sven Roederer
2020-05-01 21:56   ` Tom Rini
2020-04-27  0:08 ` [PATCH 2/2] tools/fit-image: print a warning when cmd-line for dtc might be truncated Sven Roederer
2020-05-01 21:57   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox