[oe] [oe,RFC,v2] Alternative to busybox, using "proper tools"

Martyn Welch martyn.welch at ge.com
Mon Apr 18 12:31:08 UTC 2011


On 16/04/11 16:13, Ben Gamari wrote:
> 
> Did anything ever happen with this[1] patch? If not, is there another
> convenient way to use the proper tools in leiu of busybox? For larger
> machines it's very nice to have a more civilized environment. Thanks,
> 

I'm afraid I got pulled away from this before I could finish it.

The list of packages in task-proper-tools got updated by Marcin, I still have
a rather old tree containing the rest of it. Here's what I have (sorry my mail
client will have wrapped it a bit):

diff --git a/recipes/busybox/busybox-alt_1.bb b/recipes/busybox/busybox-alt_1.bb
new file mode 100644
index 0000000..811f073
--- /dev/null
+++ b/recipes/busybox/busybox-alt_1.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Full versions of tools provided by busybox"
+
+PACKAGES = "busybox"
+PACKAGE_ARCH = "all"
+
+PROVIDES = "busybox"
+DEFAULT_PREFERENCE = "-1"
+
+RDEPENDS = "task-proper-tools"
+
+SRC_URI = "file://hwclock.sh"
+
+
+do_install () {
+       install -d ${D}${sysconfdir}/init.d/
+       install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/
+}
+
+FILES += "${sysconfdir}/init.d/hwclock.sh"
diff --git a/recipes/busybox/files/hwclock.sh b/recipes/busybox/files/hwclock.sh
index f9c9f9f..0a644fe 100644
--- a/recipes/busybox/files/hwclock.sh
+++ b/recipes/busybox/files/hwclock.sh
@@ -14,7 +14,7 @@

 . /etc/default/rcS

-[ "$UTC" = yes ] && UTC=-u || UTC=-l
+[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime

 case "$1" in
         start)
diff --git a/recipes/tasks/task-proper-tools.bb
b/recipes/tasks/task-proper-tools.bb
index 40baf87..fd5e481 100644
--- a/recipes/tasks/task-proper-tools.bb
+++ b/recipes/tasks/task-proper-tools.bb
@@ -21,6 +21,7 @@ RDEPENDS_${PN} = "\
                grep \
                gzip \
                ifupdown \
+#              inetutils \
                iproute2 \
                iputils-arping \
                iputils-ping6 \
@@ -40,6 +41,7 @@ RDEPENDS_${PN} = "\
                psmisc \
                pump \
                realpath \
+               openrdate \
                sed \
                shadow \
                start-stop-daemon \
@@ -51,6 +53,7 @@ RDEPENDS_${PN} = "\
                time \
                unzip \
                util-linux-ng \
+               unzip \
                vim \
                wget \
         "


-- 
Martyn Welch (Principal Software Engineer) | Registered in England and
GE Intelligent Platforms                   | Wales (3828642) at 100
T +44(0)127322748                          | Barbirolli Square, Manchester,
E martyn.welch at ge.com                      | M2 3AB  VAT:GB 927559189




More information about the Openembedded-devel mailing list