summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/busybox/busybox-inittab_1.27.2.bb32
-rw-r--r--meta/recipes-core/busybox/busybox.inc12
2 files changed, 34 insertions, 10 deletions
diff --git a/meta/recipes-core/busybox/busybox-inittab_1.27.2.bb b/meta/recipes-core/busybox/busybox-inittab_1.27.2.bb
new file mode 100644
index 0000000000..a83620e859
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-inittab_1.27.2.bb
@@ -0,0 +1,32 @@
1SUMMARY = "inittab configuration for BusyBox"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
4
5SRC_URI = "file://inittab"
6
7S = "${WORKDIR}"
8
9INHIBIT_DEFAULT_DEPS = "1"
10
11do_compile() {
12 :
13}
14
15do_install() {
16 install -d ${D}${sysconfdir}
17 install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
18 tmp="${SERIAL_CONSOLES}"
19 for i in $tmp
20 do
21 j=`echo ${i} | sed s/\;/\ /g`
22 id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
23 echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
24 done
25}
26
27# SERIAL_CONSOLES is generally defined by the MACHINE .conf.
28# Set PACKAGE_ARCH appropriately.
29PACKAGE_ARCH = "${MACHINE_ARCH}"
30
31FILES_${PN} = "${sysconfdir}/inittab"
32CONFFILES_${PN} = "${sysconfdir}/inittab"
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 157aea3968..ac6d7ca262 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -48,6 +48,8 @@ CONFFILES_${PN}-mdev = "${sysconfdir}/mdev.conf"
48 48
49RRECOMMENDS_${PN} = "${PN}-syslog ${PN}-udhcpc" 49RRECOMMENDS_${PN} = "${PN}-syslog ${PN}-udhcpc"
50 50
51RDEPENDS_${PN} = "${@["", "busybox-inittab"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]}"
52
51inherit cml1 systemd update-rc.d ptest 53inherit cml1 systemd update-rc.d ptest
52 54
53# internal helper 55# internal helper
@@ -310,16 +312,6 @@ do_install () {
310 install -D -m 0777 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS 312 install -D -m 0777 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS
311 install -D -m 0777 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK 313 install -D -m 0777 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK
312 install -D -m 0755 ${WORKDIR}/runlevel ${D}${base_sbindir}/runlevel 314 install -D -m 0755 ${WORKDIR}/runlevel ${D}${base_sbindir}/runlevel
313 if grep "CONFIG_FEATURE_USE_INITTAB=y" ${B}/.config; then
314 install -D -m 0777 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
315 tmp="${SERIAL_CONSOLES}"
316 for i in $tmp
317 do
318 j=`echo ${i} | sed s/\;/\ /g`
319 id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
320 echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
321 done
322 fi
323 fi 315 fi
324 316
325 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 317 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then