Skip to content

Integrate libchronyctl.so as chrony time source#61

Draft
Copilot wants to merge 8 commits into
developfrom
copilot/integrate-libchronyctl-to-systimemgr
Draft

Integrate libchronyctl.so as chrony time source#61
Copilot wants to merge 8 commits into
developfrom
copilot/integrate-libchronyctl-to-systimemgr

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 23, 2026

Adds chrony as a configurable time source via libchronyctl.so library integration.

Changes

New Time Source

  • systimerfactory/chronytimesrc.h - ChronyTimeSrc class implementing ITimeSrc interface
  • Factory integration in timerfactory.cpp for type="chrony"
  • Currently uses clock_gettime() placeholder; actual libchronyctl API calls require library documentation

Build System

  • Added --enable-chrony configure flag (both top-level and systimerfactory)
  • Conditional compilation via CHRONY_ENABLED macro
  • Links -lchronyctl when enabled

Configuration

# In systemtimemgr config file
timesrc chrony ""

Build

./configure --enable-chrony
make

Implementation Note

Follows existing time source patterns (NTP, DTT, DRM) with conditional compilation. Placeholder implementation allows build integration now; replace clock_gettime() with libchronyctl API when available.

Note: Only systemtimemgr repository modified. No meta-rdk changes included in this PR.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • chrony.tuxfamily.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 7 commits February 23, 2026 17:33
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Co-authored-by: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com>
Copilot AI changed the title [WIP] Integrate libchronyctl.so into systimemgr Integrate libchronyctl.so as chrony time source Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants