mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2026-01-27 11:32:16 +01:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
|
|
|
|
SRC_URI += "file://0001-units-systemd-udevd-Set-PrivateMounts-to-no.patch \
|
|
file://0020-logind.conf-Set-HandlePowerKey-to-ignore.patch \
|
|
file://69-unmanage.network"
|
|
|
|
PACKAGECONFIG:append = " sysvinit"
|
|
|
|
PACKAGECONFIG[unmanaged-network] = ""
|
|
|
|
do_install:append () {
|
|
|
|
# Disable the assignment of the fixed network interface name
|
|
install -d ${D}${sysconfdir}/systemd/network
|
|
ln -s /dev/null ${D}${sysconfdir}/systemd/network/99-default.link
|
|
|
|
# Configure the network as unmanaged
|
|
if [ "${@bb.utils.filter('PACKAGECONFIG', 'unmanaged-network', d)}" ]; then
|
|
install -Dm 0644 ${UNPACKDIR}/69-unmanage.network ${D}${sysconfdir}/systemd/network/
|
|
fi
|
|
|
|
# Add special touchscreen rules
|
|
if [ -e ${D}${sysconfdir}/udev/rules.d/touchscreen.rules ]; then
|
|
cat <<EOF >>${D}${sysconfdir}/udev/rules.d/touchscreen.rules
|
|
# i.MX specific touchscreen rules
|
|
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
|
|
EOF
|
|
fi
|
|
}
|