console-image: Add ntp
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
parent
7a88af7d0c
commit
657e18387f
@ -10,6 +10,7 @@ BBLAYERS ?= " \
|
|||||||
${TOPDIR}/../layers/poky/meta-poky \
|
${TOPDIR}/../layers/poky/meta-poky \
|
||||||
${TOPDIR}/../layers/poky/meta-yocto-bsp \
|
${TOPDIR}/../layers/poky/meta-yocto-bsp \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
||||||
|
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||||
${TOPDIR}/../layers/meta-bbb \
|
${TOPDIR}/../layers/meta-bbb \
|
||||||
"
|
"
|
||||||
|
@ -8,7 +8,7 @@ IMAGE_FEATURES += "package-management"
|
|||||||
|
|
||||||
# Encrypt the password with: echo "<password>" | openssl passwd -1 -stdin
|
# Encrypt the password with: echo "<password>" | openssl passwd -1 -stdin
|
||||||
EXTRA_USERS_PARAMS = " \
|
EXTRA_USERS_PARAMS = " \
|
||||||
usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \
|
usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \
|
||||||
useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \
|
useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -26,7 +26,6 @@ KERNEL_EXTRA_INSTALL = " \
|
|||||||
|
|
||||||
WIFI_SUPPORT = " \
|
WIFI_SUPPORT = " \
|
||||||
iw \
|
iw \
|
||||||
linux-firmware-rtl8188 \
|
|
||||||
linux-firmware-rtl8192cu \
|
linux-firmware-rtl8192cu \
|
||||||
wireless-tools \
|
wireless-tools \
|
||||||
wpa-supplicant \
|
wpa-supplicant \
|
||||||
@ -63,6 +62,7 @@ EXTRA_TOOLS_INSTALL = " \
|
|||||||
wget \
|
wget \
|
||||||
curl \
|
curl \
|
||||||
zip \
|
zip \
|
||||||
|
ntp \
|
||||||
"
|
"
|
||||||
|
|
||||||
MQTT = " \
|
MQTT = " \
|
||||||
@ -83,7 +83,7 @@ IMAGE_INSTALL += " \
|
|||||||
${WIFI_SUPPORT} \
|
${WIFI_SUPPORT} \
|
||||||
${MQTT} \
|
${MQTT} \
|
||||||
${PYTHON_LIBS} \
|
${PYTHON_LIBS} \
|
||||||
vl53l0x-api \
|
vl53l0x-api \
|
||||||
"
|
"
|
||||||
|
|
||||||
set_local_timezone() {
|
set_local_timezone() {
|
||||||
|
19
recipes-support/ntp/files/ntp.conf
Normal file
19
recipes-support/ntp/files/ntp.conf
Normal 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
|
||||||
|
|
2
recipes-support/ntp/ntp_%.bbappend
Normal file
2
recipes-support/ntp/ntp_%.bbappend
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user