Hi,
We have a shell function that's being called from a do_install task:
custom_install() {
DIR=$1
echo "Operating on '${DIR}'"
install <some params> -m 0644 ${S}/$DIR/<some file> \
${D}${some_path}/<some_file>
}
do_install() {
custom_install "dev"
}
The output of the above is:
Operating on 'dev'
exit 1 from 'install <some params> -m 0644 <recipe path>/1.0-r0/<expanded S
folder>/${DIR}/<some file>
<recipe path>/image/<some_path>/<some_file>'
Why is ${DIR} expanded inside the echo, but not in the install command? I
also tried with and without quotes, and with and without curly braces..
We are on poky sumo.
Thanks,
Kind regards,
Maik Vermeulen
Embedded Software Engineer — Lightyear <https://www.lightyear.one/>
+31 6 16 82 73 79 <+31616827379>
--
<https://lightyear.one/careers?utm_source=signature&utm_campaign=spotlightroles&utm_medium=email#vacancies>
--
Automotive Campus 70 —5708 JZ Helmond, the Netherlands
www.lightyear.one
<https://lightyear.one/>
<https://www.linkedin.com/company/lightyear.one/>
This email may contain information which is privileged and/or
confidential. If you received this e-mail in error, please notify us
immediately by e-mail and delete the email without copying or disclosing
its contents to any other person. Lightyear is a trade name of Atlas
Technologies B.V. and is registered at the Dutch Chamber of Commerce under
number 67264298.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58536): https://lists.yoctoproject.org/g/yocto/message/58536
Mute This Topic: https://lists.yoctoproject.org/mt/94937849/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-