docker image for rpi3_64
This commit is contained in:
19
recipes-core/busybox/busybox_%.bbappend
Normal file
19
recipes-core/busybox/busybox_%.bbappend
Normal file
@@ -0,0 +1,19 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://S20load_modules.sh \
|
||||
file://fragments.cfg \
|
||||
file://ntp.conf \
|
||||
file://ntpd \
|
||||
"
|
||||
|
||||
do_install_append () {
|
||||
install -d ${D}${sysconfdir}/rcS.d/
|
||||
install -m 0644 ${WORKDIR}/ntp.conf ${D}${sysconfdir}
|
||||
install -m 0755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/S20load_modules.sh ${D}${sysconfdir}/rcS.d/
|
||||
|
||||
cd ${D}${sysconfdir}/rcS.d/
|
||||
ln -s ../init.d/ntpd S48ntpd.sh
|
||||
}
|
||||
|
26
recipes-core/busybox/files/S20load_modules.sh
Normal file
26
recipes-core/busybox/files/S20load_modules.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
LOAD_DIR="/etc/modules-load.d"
|
||||
MODULES="$(ls $LOAD_DIR)"
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
for MOD in $MODULES;
|
||||
do
|
||||
while read module args;
|
||||
do
|
||||
# Ignore comments and blank lines
|
||||
case "$module" in
|
||||
""|"#"*) continue;;
|
||||
esac
|
||||
|
||||
modprobe ${module} ${args}
|
||||
done < $LOAD_DIR/$MOD
|
||||
done
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${0} {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
5
recipes-core/busybox/files/fragments.cfg
Normal file
5
recipes-core/busybox/files/fragments.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
CONFIG_NTPD=y
|
||||
CONFIG_FEATURE_NTPD_SERVER=y
|
||||
CONFIG_FEATURE_NTPD_CONF=y
|
||||
CONFIG_FEATURE_NTP_AUTH=y
|
||||
|
5
recipes-core/busybox/files/ntp.conf
Normal file
5
recipes-core/busybox/files/ntp.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
server 0.europe.pool.ntp.org
|
||||
server 1.europe.pool.ntp.org
|
||||
server 2.europe.pool.ntp.org
|
||||
server 3.europe.pool.ntp.org
|
||||
|
12
recipes-core/busybox/files/ntpd
Normal file
12
recipes-core/busybox/files/ntpd
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
ntpd -q
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${0} {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@@ -4,7 +4,7 @@ LICENSE = "MIT"
|
||||
|
||||
require tiny-image-base.inc
|
||||
|
||||
IMAGE_INSTALL_append = " docker"
|
||||
IMAGE_INSTALL_append = " initscripts init-ifupdown docker-ce"
|
||||
|
||||
export IMAGE_BASENAME = "tiny-image"
|
||||
export IMAGE_BASENAME = "docker-image"
|
||||
|
||||
|
@@ -31,6 +31,7 @@ IMAGE_INSTALL += " \
|
||||
"
|
||||
|
||||
IMAGE_INSTALL_append_beaglebone-yocto = " linux-firmware-rtl8192cu"
|
||||
#IMAGE_INSTALL_append_raspberrypi3_64 += " linux-firmware-bcm43430"
|
||||
IMAGE_INSTALL_append_bananapi-m3 += " linux-firmware-bcm43430"
|
||||
|
||||
set_local_timezone() {
|
||||
|
@@ -1,2 +1,8 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
do_install_append () {
|
||||
mkdir -p ${D}${sysconfdir}/rcS.d/
|
||||
cd ${D}${sysconfdir}/rcS.d/
|
||||
ln -s ../init.d/networking S40networking.sh
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user