From patchwork Mon Apr 18 12:31:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,v2] Alternative to busybox, using "proper tools" Date: Mon, 18 Apr 2011 12:31:08 -0000 From: Martyn Welch X-Patchwork-Id: 2493 Message-Id: <4DAC2F0C.1030001@ge.com> To: openembedded-devel@lists.openembedded.org 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 \ "