Xilinx / meta-xilinx-tools

Yocto Project layer enables AMD Xilinx tools related metadata for MicroBlaze, Zynq, ZynqMP and Versal devices.
MIT License
53 stars 51 forks source link

BOOT.bin is directly deployed to DEPLOY_DIR_IMAGE #5

Closed kylemanna closed 6 years ago

kylemanna commented 6 years ago

They BOOT.bin binary is directly written to the ${DEPLOY_DIR_IMAGE} which bypasses all the shared state caching and deployment clean-ups.

The deploy class and do_deploy are the proper ways to implement this. A warning is in the Yocto Project Mega Manual:

Caution Do not write the output directly to ${DEPLOY_DIR_IMAGE}, as this causes the sstate mechanism to malfunction.

This creates issues for me when BOOT.bin isn't deployed correctly breaking builds. Additionally it isn't cleaned-up.

mharth commented 6 years ago

This is being changed and reworked as a recipe instead of a class, please see mailing list for the patch. You could change DEPLOY_DIR_IMAGE to DEPLOYDIR to see of it fixes your issue

kylemanna commented 6 years ago

Thanks, can you share a link to a mailing list archive somewhere? Curious to learn more.

A receipe sounds like a better approach then a image class.

mharth commented 6 years ago

https://github.com/Xilinx/meta-xilinx-tools/blob/rel-v2018.1/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb this will be moved to master soon

Please join mailing list: https://lists.yoctoproject.org/listinfo/meta-xilinx