base-files: add sysctl.conf
* Reduce kernel console loglevel for all platforms. * Protect DMA zone for MX5 platforms (for gstreamer/vpu) Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
daee2f556d
commit
a4c6504f5c
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Console log-level
|
||||||
|
kernel.printk = 4 4 1 7
|
||||||
|
|
||||||
|
|
@ -5,7 +5,10 @@ PR_append = "+${DISTRO}"
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
SRC_URI += "file://os-release"
|
SRC_URI += " \
|
||||||
|
file://os-release \
|
||||||
|
file://sysctl.conf \
|
||||||
|
"
|
||||||
|
|
||||||
TIMESTAMP = "${@time.strftime('%Y%m%d%H%M')}"
|
TIMESTAMP = "${@time.strftime('%Y%m%d%H%M')}"
|
||||||
LAYERS_REV = "${@"\nLayers revisions:\n%s\n" % '\n'.join(get_layers_branch_rev(d))}"
|
LAYERS_REV = "${@"\nLayers revisions:\n%s\n" % '\n'.join(get_layers_branch_rev(d))}"
|
||||||
|
|
@ -26,4 +29,12 @@ do_install_append() {
|
||||||
cat >> ${D}${sysconfdir}/os-release <<-EOF
|
cat >> ${D}${sysconfdir}/os-release <<-EOF
|
||||||
${LAYERS_REV}
|
${LAYERS_REV}
|
||||||
EOF
|
EOF
|
||||||
|
install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_append_mx5() {
|
||||||
|
cat >> ${D}${sysconfdir}/sysctl.conf <<-EOF
|
||||||
|
# Protect the DMA zone and avoid memory allocation error
|
||||||
|
vm.lowmem_reserve_ratio = 1 1
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue