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

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Mon Mar 22 16:33:57 UTC 2010


Dnia poniedziałek, 22 marca 2010 o 17:08:20 Martyn Welch napisał(a):

> This patch provides a mechanism to replace busybox by defining a busybox
> package which actually just requires a set of other packages.
> 
>     To get it to be used rather than the standard busybox, define:
> 
>     PREFERRED_PROVIDER_busybox = "busybox-alt"
> ---
> 
>  Marcin: Something like this you mean?

Yes, few notes:
 
> diff --git a/recipes/busybox/busybox-alt_1.bb
> b/recipes/busybox/busybox-alt_1.bb new file mode 100644

busybox-alt.bb is fine too - PV will be 1.0 then

> +++ b/recipes/busybox/busybox-alt_1.bb

> +ALLOW_EMPTY = "1"
> +PACKAGES = "busybox"
> +PACKAGE_ARCH = "all"
> +
> +PROVIDES = "busybox"
> +DEFAULT_PREFERENCE = "1"

"-1" is more proper - we do not want people to get busybox-alt instead of 
busybox by mistake.

RDEPENDS = "task-proper-tools"

One line looks better. DEPENDS are not needed.

> +++ b/recipes/tasks/task-proper-tools.bb
> @@ -4,33 +4,107 @@ PR = "r11"

Bump PR.

>  RDEPENDS_${PN} = "\
> +		bash \
> +		bc \
> +		bind-utils \

> +		binutils \

Not needed - 'binutils-symlinks' depends on it.

> +		bzip2 \
> +		console-tools \

> +		dhcp-client \

I added 'pump' - but thats minor.

> +		e2fsprogs-fsck \

In .dev this is in util-linux-ng now.

> +		e2fsprogs-libs \

What for this is?

> +		ifupdown-ubuntu \

Can we rename it to 'ifupdown'?

> +		iputils-ping \
> +		iputils-ping6 \
> +		iputils-arping \


> +		minicom \

Maybe 'picocom' would be nice too.

> +		mktemp \

> +		ncurses \

I added "ncurses-tools" - gives few utils more.

> +		openrdate \
> +		realpath \


> +		start-stop-daemon \

Nice - I added 'dpkg' instead but it was overkill.

> +		syslog-ng \
> +		sysvinit \
> +		tftp-hpa \
> +		time \

I added 'shadow' to the list.


> +DEPENDS_${PN} = "\

DEPENDS are not needed.

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list