mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-10-23 07:42:19 +02:00
sysvinit-inittab: Replace WORKDIR with UNPACKDIR in do_install [YOCIMX-8250]
Yocto 5.1 new changes make it can not install SRC_URI reference file from WORKDIR. - Replace WORKDIR with UNPACKDIR. - Refine do_install:append:gpu_2d. Signed-off-by: Jun Zhu <junzhu@nxp.com>
This commit is contained in:
parent
bf45aa2d4d
commit
8fa7c96a93
|
@ -8,49 +8,16 @@ SYSVINIT-GPU = " file://rc_mxc.S file://rc_gpu.S"
|
|||
SRC_URI:append:imxgpu2d = " ${SYSVINIT-GPU}"
|
||||
|
||||
do_install:append:imxgpu2d() {
|
||||
|
||||
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
|
||||
install -m 0755 ${UNPACKDIR}/rc_mxc.S ${D}${sysconfdir}/init.d
|
||||
|
||||
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
|
||||
install -m 0755 ${UNPACKDIR}/rc_gpu.S ${D}${sysconfdir}/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
|
||||
}
|
||||
|
||||
FILES:${PN}:append:imxgpu2d = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
|
||||
|
|
Loading…
Reference in New Issue
Block a user