Azure / meta-azure-device-update

A Proof-Of-Concept meta layer for Device Update for IotHub
Other
2 stars 8 forks source link

Build for kirkstone fails #5

Closed libreo-mwebert closed 8 months ago

libreo-mwebert commented 11 months ago

When building this meta layer as a part of iot hub device update, the build fails with:

cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/azure-device-update/1.0+gitAUTOINC+4794e82716-r0/image/usr/lib/adu/adu-shell': No such file or directory

When digging into the bb file, I think that the code here is not doing what the comment above tells us: https://github.com/Azure/meta-azure-device-update/blob/kirkstone/recipes-azure-device-update/azure-device-update/azure-device-update_git.bb#L166 I am a newby with bitbake but I think that the adu directory is created but the adu-shell is not copied/installed? I fixed this with adding this line:

install -m 0550 ${D}${libdir}/../bin/adu-shell ${D}${libdir}/adu

For me, this fixed the build. Thoughts?

Nox-MSFT commented 8 months ago

@libreo-mwebert thanks for reporting the issue and suggesting the fix. We will take a look at it. At a glance, the adu-shell file permission will need the 'setuid' (s) bit. So, please try this:

install -m 4550 ${D}${libdir}/../bin/adu-shell ${D}${libdir}/adu

Nox-MSFT commented 8 months ago

Close this issue as we've recently made the kirkstone branch available.