From 2eb227d26c2947a76f6deffe187e82125d7337c1 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 9 Dec 2021 12:54:59 +0100
Subject: [PATCH] writables.bbclass: Fix syntax overrides

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/classes/writables.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta-oniro-core/classes/writables.bbclass b/meta-oniro-core/classes/writables.bbclass
index 0c766a6d..585abb71 100644
--- a/meta-oniro-core/classes/writables.bbclass
+++ b/meta-oniro-core/classes/writables.bbclass
@@ -41,7 +41,7 @@ SYSTEM_STATE_MOUNT_UNIT ??= "run-mount-sysdata.mount"
 # known location as described above. The respective system partition mount
 # units are part of the oniro-mounts package. This provides the
 # SYSTEM_STATE_MOUNT_UNIT systemd mount unit.
-RDEPENDS_${PN} += "oniro-mounts"
+RDEPENDS:${PN} += "oniro-mounts"
 
 # This is the root filesystem hierarchy used as part of the bind mount units to
 # provide read-write locations.
@@ -130,10 +130,10 @@ python() {
 
     systemd_system_unitdir = d.getVar('systemd_system_unitdir')
     for writable in get_writable_data(d):
-        d.appendVar('FILES_' + d.getVar('PN'), ' ' + writable['where'])
-        d.appendVar('FILES_' + d.getVar('PN'), ' ' + \
+        d.appendVar('FILES:' + d.getVar('PN'), ' ' + writable['where'])
+        d.appendVar('FILES:' + d.getVar('PN'), ' ' + \
             os.path.join(systemd_system_unitdir, mountUnitName(writable['where'])))
-        d.appendVar('SYSTEMD_SERVICE_' + d.getVar('PN'), ' ' + \
+        d.appendVar('SYSTEMD_SERVICE:' + d.getVar('PN'), ' ' + \
             mountUnitName(writable['where']))
 }
 
-- 
GitLab