<div dir="ltr"><div>Hi,<br></div>I am building an image using Yocto Project (dora branch) for the Cubox-i and I am getting an error when trying to build libmtp.<br><div><div><br>Here is part of the log file (log.do_unpack) with the error:<br>
<br>DEBUG: Executing shell function skip_udev_rules_generation<br>sed: can't read Makefile.am: No such file or directory<br>WARNING: exit code 2 from a shell command.<br>ERROR: Function failed: skip_udev_rules_generation (log file is located at /home/charles/fsl-community-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libmtp/1.1.5-r0/temp/log.do_unpack.14617)<br>
<br></div><div><a href="http://libmtp_1.1.5.bb">libmtp_1.1.5.bb</a> has the following in it:<br><br>skip_udev_rules_generation () {<br> sed -i -e '/^noinst_DATA=/,/util\/mtp-hotplug -H/d' Makefile.am<br> cp ${WORKDIR}/69-libmtp.rules ${S}/<br>
}<br><br></div><div>but it looks to me like it should be:<br><br>skip_udev_rules_generation () {<br> sed -i -e '/^noinst_DATA=/,/util\/mtp-hotplug -H/d' ${S}/Makefile.am<br> cp ${WORKDIR}/69-libmtp.rules ${S}/<br>
}<br><br></div><div>i.e. with ${S}/ path to Makefile.am.<br><br></div><div>With this change it builds (not sure yet wither it runs as I have other build errors to fix).<br></div><div>I'm still learning about Yocto and OpenEmbedded - does this fix look right?<br>
<br></div><div>regards,<br>Charles<br></div></div></div>