From bc090d5bf8d094cb474ede25e770b5506ff7b699 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Mon, 4 Nov 2024 01:02:32 +0900 Subject: Enable systemd-timesyncd in case of using systemd-networkd 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 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30505 Reviewed-by: Jan-Simon Moeller 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 | 2 +- meta-agl-core/recipes-core/systemd/systemd_aglcore.inc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meta-agl-core/conf/distro/poky-agl.conf b/meta-agl-core/conf/distro/poky-agl.conf index 1ce721f59..0810fe076 100644 --- a/meta-agl-core/conf/distro/poky-agl.conf +++ b/meta-agl-core/conf/distro/poky-agl.conf @@ -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" diff --git a/meta-agl-core/recipes-core/systemd/systemd_aglcore.inc b/meta-agl-core/recipes-core/systemd/systemd_aglcore.inc index 9681329be..ec64cedca 100644 --- a/meta-agl-core/recipes-core/systemd/systemd_aglcore.inc +++ b/meta-agl-core/recipes-core/systemd/systemd_aglcore.inc @@ -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" -- cgit 1.2.3-korg