munit-solutions / meta-azure-device-update

A meta layer for Azure Device Update
Other
8 stars 5 forks source link

Dunfell dev fix #7

Closed fboor closed 2 years ago

fboor commented 3 years ago

Some more changes included, tested so far that it is able to build from scratch right to the image including swu support in the image target.

SimonSimCity commented 3 years ago

@Pan5ky can you please check if this PR would also solve the problem you reported in #4? Here we are removing the usage of the variable IMGDEPLOYDIR which you said was not defined at your end.

ghost commented 2 years ago

@Pan5ky can you please check if this PR would also solve the problem you reported in #4? Here we are removing the usage of the variable IMGDEPLOYDIR which you said was not defined at your end.

Yes, this fixes my issue but adu-update-image still does not build correctly. It fails in do_swuimg with this output:

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_swuimage
DEBUG: Searching for sw-description in paths:
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/
DEBUG: Searching for manifest.json.template in paths:
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/poky
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/raspberrypi3
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/armv7ve
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/rpi
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/arm
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image-1.0/
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/adu-update-image/
    /home/em/Dev/Yocto/meta-azure-device-update/recipes-extended/images/files/
sh: 1: openssl: not found
ERROR: Failed to sign sw-description with /home/em/Dev/Yocto/build/priv.pem
DEBUG: Python function do_swuimage finished

I'm not sure why the process is not finding sw-description because the debug output prints the exact path of the file..

SimonSimCity commented 2 years ago

Thanks for the confirmation. I'll then merge these changes and close #4