sysvinit-inittab_2.88dsf.bbappend
2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Freescale imx extra configuration
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
RDEPENDS_${PN} += " bash "
SYSVINIT-GPU = " file://rc_mxc.S file://rc_gpu.S"
SRC_URI_append_mx6q = " ${SYSVINIT-GPU}"
SRC_URI_append_mx6dl = " ${SYSVINIT-GPU}"
SRC_URI_append_mx6sx = " ${SYSVINIT-GPU}"
SRC_URI_append_mx6sl = " ${SYSVINIT-GPU}"
IS_MX6UL = "0"
IS_MX6UL_mx6ul = "1"
do_install_append_mx6() {
if [ "${IS_MX6UL}" = "0" ]; then
install -d ${D}${sysconfdir}
# Install rc_mxc.S to /etc/init.d
install -d ${D}${sysconfdir} ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/rc_mxc.S ${D}${sysconfdir}/init.d
install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
echo "mxc::respawn:/etc/init.d/rc_mxc.S" >> ${D}${sysconfdir}/inittab
tmp="${SERIAL_CONSOLES}"
for i in $tmp
do
j=`echo ${i} | sed s/\;/\ /g`
label=`echo ${i} | sed -e 's/^.*;tty//'`
# comment these lines off
echo "#$label:12345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
done
if [ "${USE_VT}" = "1" ]; then
cat <<EOF >>${D}${sysconfdir}/inittab
# ${base_sbindir}/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
EOF
for n in ${SYSVINIT_ENABLED_GETTYS}
do
echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
done
echo "" >> ${D}${sysconfdir}/inittab
fi
# Install rc_gpu.S to /etc/init.d
echo "gpu::sysinit:/etc/init.d/rc_gpu.S" >> ${D}${sysconfdir}/inittab
install -m 0755 ${WORKDIR}/rc_gpu.S ${D}${sysconfdir}/init.d
fi
}
FILES_${PN}_append_mx6q = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
FILES_${PN}_append_mx6dl = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
FILES_${PN}_append_mx6sx = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
FILES_${PN}_append_mx6sl = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"