console-image: Add ntp

Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
Thomas Klaehn 2018-03-14 09:27:22 +01:00
parent 7a88af7d0c
commit 657e18387f
4 changed files with 25 additions and 3 deletions

View File

@ -10,6 +10,7 @@ BBLAYERS ?= " \
${TOPDIR}/../layers/poky/meta-poky \
${TOPDIR}/../layers/poky/meta-yocto-bsp \
${TOPDIR}/../layers/meta-openembedded/meta-oe \
${TOPDIR}/../layers/meta-openembedded/meta-networking \
${TOPDIR}/../layers/meta-openembedded/meta-python \
${TOPDIR}/../layers/meta-bbb \
"

View File

@ -26,7 +26,6 @@ KERNEL_EXTRA_INSTALL = " \
WIFI_SUPPORT = " \
iw \
linux-firmware-rtl8188 \
linux-firmware-rtl8192cu \
wireless-tools \
wpa-supplicant \
@ -63,6 +62,7 @@ EXTRA_TOOLS_INSTALL = " \
wget \
curl \
zip \
ntp \
"
MQTT = " \

View File

@ -0,0 +1,19 @@
# This is the most basic ntp configuration file
# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
driftfile /var/lib/ntp/drift
# This should be a server that is close (in IP terms)
# to the machine. Add other servers as required.
# Unless you un-comment the line below ntpd will sync
# only against the local system clock.
#
# server time.server.example.com
server 192.168.178.1
#
# Using local hardware clock as fallback
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
server 127.127.1.0
fudge 127.127.1.0 stratum 14
# Defining a default security setting
restrict default

View File

@ -0,0 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"