So, I was given the task to upgrade our yocto based system from fido to morty. I have very little experience with yocto, I have been struggling with it and trying to understand it for almost a week now. I have managed to fix some issues, but now I'm facing a problem when trying to build the image:
dnsmasq-2.68-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/oe/.../dnsmasq/2.68-r0/packages-split/dnsmasq/usr/bin/dnsmasq'
I have looked online for a solution and I did find a way to suppress the error by adding:
INSANE_SKIP_${PN} = "ldflags"
in the recipe.
However I don't believe this is the 'correct' way to do it, and I had it on another recipe, that had the same problem. I also found that someone had similar issue and rearranging packages did the trick, but I don't know how to do that.
So my question is: Is it bad idea to just add the insane_skip to all recipes that have this issue and if so how can it be fixed?
You'd likely benefit from having a look at the dnsmasq
recipe in meta-oe
.
Your problem is that dnsmasq
doesn't respect the LDFLAGS
variable out of the box. Try adding:
EXTRA_OEMAKE_append = " 'LDFLAGS=${LDFLAGS}'"
to your recipe. (See the recipe in the linked URL).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With