diff --git a/recipes-core/busybox/busybox-systemd/syslog-startup.conf b/recipes-core/busybox/busybox-systemd/syslog-startup.conf new file mode 100644 index 0000000..b434291 --- /dev/null +++ b/recipes-core/busybox/busybox-systemd/syslog-startup.conf @@ -0,0 +1,10 @@ +# sysmocom default configuration for systemd +DESTINATION="buffer" # log destinations (buffer file remote) +MARKINT=20 # intervall between --mark-- entries +LOGFILE=/var/log/messages # where to log (file) +REMOTE=loghost:514 # where to log (syslog remote) +REDUCE=no # reduce-size logging +#ROTATESIZE=0 # rotate log if grown beyond X [kByte] (incompatible with busybox) +#ROTATEGENS=3 # keep X generations of rotated logs (incompatible with busybox) +BUFFERSIZE=64 # size of circular buffer [kByte] +FOREGROUND=no # run in foreground (don't use!) diff --git a/recipes-core/busybox/busybox_sysmocom_systemd.inc b/recipes-core/busybox/busybox_sysmocom_systemd.inc new file mode 100644 index 0000000..03460c1 --- /dev/null +++ b/recipes-core/busybox/busybox_sysmocom_systemd.inc @@ -0,0 +1,4 @@ +# Make busybox work nicely with systemd +SYSMOCOM_D := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-systemd:${SYSMOCOM_D}/${PN}:" +PRINC := "${@int(PRINC) + 2}" diff --git a/yocto-master/busybox_1.20.2.bbappend b/yocto-master/busybox_1.20.2.bbappend index 2821536..3135d22 100644 --- a/yocto-master/busybox_1.20.2.bbappend +++ b/yocto-master/busybox_1.20.2.bbappend @@ -1 +1,2 @@ require recipes-core/busybox/${PN}_sysmocom.inc +require recipes-core/busybox/${PN}_sysmocom_systemd.inc