From 01a83072d29fcbe6f7fd2c88cd09340e61993b02 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Mon, 1 Nov 2021 12:05:18 +0000
Subject: [PATCH] psplash: Set a higher priority for psplash-oniro

This fixes build warning:

[log_check] Warn: update-alternatives: psplash has multiple providers
with the same priority

It is a workaround as the actual behaviour is yet to be understood.
There seems to be a bug or an uninteded behaviour where multiple psplash
binaries get installed (having the same priority for the psplash
symlink).

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/recipes-core/psplash/psplash_%.bbappend | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oniro-core/recipes-core/psplash/psplash_%.bbappend b/meta-oniro-core/recipes-core/psplash/psplash_%.bbappend
index 25c70dde..26b4d88f 100644
--- a/meta-oniro-core/recipes-core/psplash/psplash_%.bbappend
+++ b/meta-oniro-core/recipes-core/psplash/psplash_%.bbappend
@@ -4,6 +4,7 @@
 
 FILESEXTRAPATHS_prepend := "${ONIRO_COREBASE}/assets:"
 SPLASH_IMAGES_append = " file://psplash-oniro-img.png;outsuffix=oniro"
+ALTERNATIVE_PRIORITY_psplash-oniro[psplash] = "200"
 
 EXTRA_OECONF += "--enable-img-fullscreen --disable-startup-msg --disable-progress-bar"
 
-- 
GitLab