summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb21
1 files changed, 16 insertions, 5 deletions
diff --git a/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb b/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb
index 5e5a10b896..8d7ff61e86 100644
--- a/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb
+++ b/meta-oe/recipes-core/toybox/toybox-inittab_0.8.2.bb
@@ -15,6 +15,13 @@ RCONFLICTS_${PN} = "\
15 sysvinit-inittab \ 15 sysvinit-inittab \
16" 16"
17 17
18# most users may want to have getty enabled by default
19PACKAGECONFIG ??= "getty"
20
21PACKAGECONFIG[getty] = "\
22 enable_getty \
23"
24
18do_patch[noexec] = "1" 25do_patch[noexec] = "1"
19 26
20do_configure() { 27do_configure() {
@@ -23,11 +30,15 @@ do_configure() {
23 cp ${WORKDIR}/${file/file:\/\//} ${S} 30 cp ${WORKDIR}/${file/file:\/\//} ${S}
24 done 31 done
25 32
26 echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab 33 for config in ${PACKAGECONFIG_CONFARGS}; do
27 for console in "${SERIAL_CONSOLES}"; do 34 if [[ ${config} == "enable_getty" ]]; then
28 param=$(echo ${console} | sed s/\;/\ /g) 35 echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab
29 name=$(echo ${param} | cut -d' ' -f2) 36 for console in "${SERIAL_CONSOLES}"; do
30 echo "$name::respawn:${base_sbindir}/getty ${param}" >> ${S}/inittab 37 param=$(echo ${console} | sed s/\;/\ /g)
38 name=$(echo ${param} | cut -d' ' -f2)
39 echo "$name::respawn:${base_sbindir}/getty ${param}" >> ${S}/inittab
40 done
41 fi
31 done 42 done
32} 43}
33 44