Hi team,
Well, I throw in the towel. But it's looks like so simple .... for me 🤣🤣.
I've a function to replace the version file in /etc/version. This function is
integrated into my mybase-image.bbclass, defined in my layer and I add, in my
core-image-minimal.bbappend recipe inherit mybase-image.bbclass.
In my bbclass, I call my function using
ROOTFS_POSTPROCESS_COMMAND += " \
set_version_file ; \
"
My function is written like this
set_version_file () {
bbplain "set_version_file BEGIN"
mkdir -p ${IMAGE_ROOTFS} /etc/tmp/
echo ${PV} > ${IMAGE_ROOTFS} /etc/tmp/version
chmod 644 ${IMAGE_ROOTFS} /etc/tmp/version
rm ${IMAGE_ROOTFS} /etc/version
ln -sf /etc/tmp/version " ${IMAGE_ROOTFS} /etc/version"
}
Note: /etc/tmp is just for the purpose of this test
I mean, I don't try to do anything outstanding but the ln -sf line makes my
compilation crash BUT.... it works like a charm with Warrior but Kirkstone
rejects "ln -sf" command.
I'm definitely not the only one who adds symlinks to the recipes
I've also tried:
* lnr
* inherit relative_symlinks (don't have any impact but I've given it a try),
* from the poky folder I've tried grep -r "ln" ./* | grep bbclass (to validate
the syntax)
* Read many posts on this topic
I'm unable to find where is my issue.
Any ideas are welcome, even if it works like a charm on Warrior but not in
Kirkstone.
BR,
Martin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57729): https://lists.yoctoproject.org/g/yocto/message/57729
Mute This Topic: https://lists.yoctoproject.org/mt/92770329/21656
Mute #kirkstone:https://lists.yoctoproject.org/g/yocto/mutehashtag/kirkstone
Mute #python:https://lists.yoctoproject.org/g/yocto/mutehashtag/python
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-