From 0075908363f977735ebb4ab2e9254782629e72b3 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Mon, 1 Nov 2021 12:07:42 +0000
Subject: [PATCH] oniro-image.bbclass: Avoid empty IMAGE_BOOT_FILES warning

Many targets we support don't use IMAGE_BOOT_FILES which is specific to
the bootfiles wic plugin. Checking for this variable on targets that
don't even use that plugin, makes no sense. Let's drop it for now.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/classes/oniro-image.bbclass | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta-oniro-core/classes/oniro-image.bbclass b/meta-oniro-core/classes/oniro-image.bbclass
index 50071c6a..a68fd3a6 100644
--- a/meta-oniro-core/classes/oniro-image.bbclass
+++ b/meta-oniro-core/classes/oniro-image.bbclass
@@ -118,7 +118,6 @@ python deploy_boot_artifacts_to_rootfs() {
     if not boot_files:
         # Nothing to do if IMAGE_BOOT_FILES is not defined. Custom wic plugins
         # are not supported.
-        bb.warn('IMAGE_BOOT_FILES empty, so no boot files will be included in the rootfs')
         return
     deploy_dir = d.getVar('DEPLOY_DIR_IMAGE')
     rootfs_dir = d.getVar('IMAGE_ROOTFS')
-- 
GitLab