Reputation: 1
I'm trying to understand why the below code doesn't work. From bitbake -e
it would seem that task do_deploy
is empty. I'm using Yocto gatesgarth.
addtask deploy after do_install before do_build
do_deploy_MACHINE-A () {
bbinfo "Doing something for machine A"
}
do_deploy_MACHINE-B () {
bbinfo "Doing something for machine B"
}
Upvotes: 0
Views: 789
Reputation: 2368
I tried adding:
do_xyz() {
echo 1
}
do_xyz:qemux86-64() {
echo 2
}
to the bash.inc file, then running "bitbake-getvar -r bash do_xyz" with MACHINE = "qemux86-64" I see:
# line: 133, file: /xxx/meta/recipes-extended/bash/bash.inc
do_xyz() {
echo 2
}
This is with master where bitbake-getvar is available and overrides use the ":" character. Your branch may vary but it does appear to work.
Upvotes: 0