Reputation: 43
this is a question for BitBake / Yocto on the Kirkstone branch (4.2). I am trying to append to a config.txt (for a Raspberry Pi) in my custom layer meta-x under meta-x/recipes-bsp/bootfiles/ using an rpi-config_git.bbappend
file.
I have seen online that I should be using the do_deploy_append()
function for this, but in Kirkstone in throws an old override syntax error:
ERROR: /home/hal/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb: Variable do_deploy_append contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake.
ERROR: Parsing halted due to errors, see error messages above
Replacing this with a simply do_deploy()
removes the error, but results in the contents of my do_deploy function completely overwriting the related config.txt instead of appending to it. I cannot find any reference to a new alternative to do_deploy_append()
in the Yocto docs.
Below is the contents of the rpi-config_git.bbappend
file:
DEPENDS:append = " linux-raspberrypi"
DEPENDS:append = " dtc-native"
inherit deploy
do_deploy() {
echo "dtoverlay=x-y-overlay" >> ${DEPLOYDIR}/bootfiles/config.txt
}
addtask deploy after do_compile
Is there an alternative to do_deploy_append()
since this seems to have been deprecated, or is there an entirely new mechanism I am unaware of, or is this not desired behavior?
My goal is to add a device tree overlay assignment in the config.txt without editing the meta-raspberrypi layer.
Upvotes: 0
Views: 874