cccs: add libubootenv as RDEPENDS of daemon

Some parameters of the CCCS configuration file need to be substituted
at run-time during a postinst script. Such script takes actions depending
on the value of U-Boot env variables.
The libubootenv recipe itself also has a postinst script that modifies
the U-Boot env configuration file (on NAND-based platforms).
If there are no dependencies between these two recipes, poky will decide
the order in which the postinst scripts are named (and thus executed)
during the first boot.
By creating the rdepends to libubootenv, we guarantee that its postinst
script is run before the cccs one, which depends on the environment being
accessible.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9282
This commit is contained in:
Hector Palacios 2024-10-02 18:02:20 +02:00
parent 52287bf6be
commit 720d627bd3
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ RDEPENDS:${PN}-daemon = " \
${PN} \ ${PN} \
${PN}-cert \ ${PN}-cert \
initscripts-functions \ initscripts-functions \
libubootenv \
" "
# 'cccsd-gs-demo-init' script uses '/etc/init.d/functions' # 'cccsd-gs-demo-init' script uses '/etc/init.d/functions'