Skip to contentSkip to conversation

How to create machine/customer specific ntp.conf files

DISCUSSION Philip Balister 2 participants 2 messages Jul 2, 2015

lore
Share & tools
lore
#0 lore raw

I'm going round and round thinking about creating custom ntp.conf files.

The existing recipe includes an ntp.conf file. My question is what is the best way to replace the on from the recipe with a machine specific config.

There are a couple of config issues:

1) hardware may want to sync with an on board gps
2) A vendor may want to use their own ntp servers.

Obviously, these need to apply only to specific machines and not all builds from the same set of layers.

Any ideas how to do this without making the entire ntp package machine specific?

Should we split the conf file into a separate recipe, sort of like gpsd?

Philip

#1 lore raw
Quoted 11 lines · Philip Balister

I'm going round and round thinking about creating custom ntp.conf files.

The existing recipe includes an ntp.conf file. My question is what is the best way to replace the on from the recipe with a machine specific config.

There are a couple of config issues:

1) hardware may want to sync with an on board gps
2) A vendor may want to use their own ntp servers.

Quoted 8 lines

Obviously, these need to apply only to specific machines and not all builds from the same set of layers.

Any ideas how to do this without making the entire ntp package machine specific?

Should we split the conf file into a separate recipe, sort of like gpsd?

Afaik that’d be the best way to handle it, iirc that’s how connman and the like handle it too. Also remember to add it
to SIGGEN_EXCLUDERECIPES_ABISAFE in meta/conf/layer.conf if you go that route, so stuff depending on it doesn’t get unnecessarily rebuilt when it changes.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics