mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-28 20:30:03 +00:00
meta-oe toybox-inittab: allow getty as a packageconfig feature
Signed-off-by: Adam Miartus <adam.miartus@softhows.eu> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
03886017a9
commit
50b650bbef
@ -15,6 +15,13 @@ RCONFLICTS_${PN} = "\
|
|||||||
sysvinit-inittab \
|
sysvinit-inittab \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
# most users may want to have getty enabled by default
|
||||||
|
PACKAGECONFIG ??= "getty"
|
||||||
|
|
||||||
|
PACKAGECONFIG[getty] = "\
|
||||||
|
enable_getty \
|
||||||
|
"
|
||||||
|
|
||||||
do_patch[noexec] = "1"
|
do_patch[noexec] = "1"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
@ -23,11 +30,15 @@ do_configure() {
|
|||||||
cp ${WORKDIR}/${file/file:\/\//} ${S}
|
cp ${WORKDIR}/${file/file:\/\//} ${S}
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab
|
for config in ${PACKAGECONFIG_CONFARGS}; do
|
||||||
for console in "${SERIAL_CONSOLES}"; do
|
if [[ ${config} == "enable_getty" ]]; then
|
||||||
param=$(echo ${console} | sed s/\;/\ /g)
|
echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab
|
||||||
name=$(echo ${param} | cut -d' ' -f2)
|
for console in "${SERIAL_CONSOLES}"; do
|
||||||
echo "$name::respawn:${base_sbindir}/getty ${param}" >> ${S}/inittab
|
param=$(echo ${console} | sed s/\;/\ /g)
|
||||||
|
name=$(echo ${param} | cut -d' ' -f2)
|
||||||
|
echo "$name::respawn:${base_sbindir}/getty ${param}" >> ${S}/inittab
|
||||||
|
done
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user