Skip to contentSkip to conversation

busybox: drop unused mount.busybox and umount.busybox wrappers

PATCH In review Andre McCurdy 2 participants 4 messages Sep 12, 2019 – Sep 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 busybox: drop unused mount.busybox and umount.busybox wrappers

---
 meta/recipes-core/busybox/busybox_1.31.0.bb    | 2 --
 meta/recipes-core/busybox/files/mount.busybox  | 3 ---
 meta/recipes-core/busybox/files/umount.busybox | 3 ---
 3 files changed, 8 deletions(-)
 delete mode 100755 meta/recipes-core/busybox/files/mount.busybox
 delete mode 100755 meta/recipes-core/busybox/files/umount.busybox
meta/recipes-core/busybox/busybox_1.31.0.bb +0 -2
index c1da372629..fa63965674 100644
@@ -9,7 +9,6 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://default.script \
            file://simple.script \
            file://hwclock.sh \
-           file://mount.busybox \
            file://syslog \
            file://syslog-startup.conf \
            file://syslog.conf \
@@ -17,7 +16,6 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://mdev \
            file://mdev.conf \
            file://mdev-mount.sh \
-           file://umount.busybox \
            file://defconfig \
            file://busybox-syslog.service.in \
            file://busybox-klogd.service.in \
meta/recipes-core/busybox/files/mount.busybox deleted +0 -3
deleted file mode 100755
index fef945b7b2..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec /bin/busybox mount $@
meta/recipes-core/busybox/files/umount.busybox deleted +0 -3
deleted file mode 100755
index f3731626e6..0000000000
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec /bin/busybox umount $@
Signature · 1 line
2.23.0
#1 lore raw

PATCH 2/3 busybox: drop inittab from SRC_URI ( now moved to busybox-inittab )

The reference to inittab should have been removed from busybox SRC_URI when the file was moved into the busybox-inittab recipe:

http://git.openembedded.org/openembedded-core/commit/?id=afb09abd2f0f7555ba156260a87fd3867f591310

---
 meta/recipes-core/busybox/busybox_1.31.0.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/busybox/busybox_1.31.0.bb +0 -1
index fa63965674..34b1f2cc91 100644
@@ -36,7 +36,6 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \
            file://syslog.cfg \
            file://unicode.cfg \
-           file://inittab \
            file://rcS \
            file://rcK \
            file://makefile-libbb-race.patch \
Signature · 1 line
2.23.0
#2 lore raw

PATCH 3/3 busybox-inittab: minor formatting tweaks

In reply to Andre McCurdy

Add an empty line to inittab before the line(s) which start getty.

Also cleanup indent in recipe do_install().

---
 .../busybox/busybox-inittab_1.31.0.bb         | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
meta/recipes-core/busybox/busybox-inittab_1.31.0.bb +10 -9
index c347daf501..61fb8cbad1 100644
@@ -13,15 +13,16 @@ do_compile() {
 }
 
 do_install() {
-    install -d ${D}${sysconfdir}
-    install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
-    tmp="${SERIAL_CONSOLES}"
-    for i in $tmp
-    do
-            j=`echo ${i} | sed s/\;/\ /g`
-            id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
-            echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
-    done
+	install -d ${D}${sysconfdir}
+	install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
+	tmp="${SERIAL_CONSOLES}"
+	[ -n "$tmp" ] && echo >> ${D}${sysconfdir}/inittab
+	for i in $tmp
+	do
+		j=`echo ${i} | sed s/\;/\ /g`
+		id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
+		echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
+	done
 }
 
 # SERIAL_CONSOLES is generally defined by the MACHINE .conf.
Signature · 1 line
2.23.0
Reviewed-by on v1 3/3
#3 lore raw

Re: [PATCH 3/3] busybox-inittab: minor formatting tweaks

Quoted 5 lines · Andre McCurdy

Add an empty line to inittab before the line(s) which start getty.

Also cleanup indent in recipe do_install().

Quoted 42 lines
---
 .../busybox/busybox-inittab_1.31.0.bb         | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
meta/recipes-core/busybox/busybox-inittab_1.31.0.bb +10 -9
index c347daf501..61fb8cbad1 100644
@@ -13,15 +13,16 @@ do_compile() {
 }
 
 do_install() {
-    install -d ${D}${sysconfdir}
-    install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
-    tmp="${SERIAL_CONSOLES}"
-    for i in $tmp
-    do
-            j=`echo ${i} | sed s/\;/\ /g`
-            id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
-            echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
-    done
+	install -d ${D}${sysconfdir}
+	install -D -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
+	tmp="${SERIAL_CONSOLES}"
+	[ -n "$tmp" ] && echo >> ${D}${sysconfdir}/inittab
+	for i in $tmp
+	do
+		j=`echo ${i} | sed s/\;/\ /g`
+		id=`echo ${i} | sed -e 's/^.*;//' -e 's/;.*//'`
+		echo "$id::respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
+	done
 }
 
 # SERIAL_CONSOLES is generally defined by the MACHINE .conf.
Signature · 7 lines
2.23.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core