Looking at the combination of the patches and the following + boot_files = d.getVar("IMAGE_BOOT_FILES") + if boot_files is None: + return + + install_files = get_boot_files(deploy_image_dir, boot_files) + if install_files is None: + bb.warn("Could not find any boot files to install even though IMAGE_BOOT_FILES is not empty") + return
get_boot_files only returns None if boot_files is None, which is caught already earlier on here, so the bb.warn clause likely will not be reached Personally a check like `if install_files:` would make more sense IMAGE_PREPROCESS_COMMAND += "bootfiles_populate;" I'm not sure if that wouldn't raise issues if any of the packages would install a file by the same path/name as also set here. In my opinion moving it to a POSTPROCESS function with some checks that it won't overwrite any files/folders might be the better option
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200772): https://lists.openembedded.org/g/openembedded-core/message/200772 Mute This Topic: https://lists.openembedded.org/mt/106385581/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-