Enable systemd-timesyncd in case of using systemd-networkd 05/30505/2
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 3 Nov 2024 16:02:32 +0000 (01:02 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 19 Nov 2024 13:32:27 +0000 (13:32 +0000)
At SPEC-737, systemd-timesyncd was disabled every case.  It causes
NTP capability lost in case of using systemd-networkd.

This patch enable conditionally enable/disable for systemd-timesyncd.

Bug-AGL: SPEC-5274

Change-Id: I2fb4841c341f1b0a90a4868627102704aafd0f6a
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30505
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account

meta-agl-core/conf/distro/poky-agl.conf
meta-agl-core/recipes-core/systemd/systemd_aglcore.inc

index 1ce721f..0810fe0 100644 (file)
@@ -61,7 +61,7 @@ VIRTUAL-RUNTIME_initscripts = ""
 VIRTUAL-RUNTIME_base-utils-syslog = ""
 
 # network manager to use (possible values: systemd, connman)
-VIRTUAL-RUNTIME_net_manager = "connman"
+VIRTUAL-RUNTIME_net_manager ?= "connman"
 
 
 QEMU_TARGETS ?= "arm aarch64 i386 x86_64 riscv64"
index 9681329..ec64ced 100644 (file)
@@ -12,8 +12,9 @@ PACKAGECONFIG:append = " \
    iptc \
 "
 
-# SPEC-737: connmand also has a NTP client which races with systemd-timesyncd
-PACKAGECONFIG:remove = "timesyncd"
+PACKAGECONFIG:remove = " \
+   ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','','timesyncd',d)} \
+"
 
 # Enable systemd-coredump when agl-devel is set on
 PACKAGECONFIG:append:agl-devel = " coredump"