[OE-core] [PATCH 3/4] packagegroup-core-base-utils: Introduce new base-utils packagegroup
Mark Hatle
mark.hatle at windriver.com
Mon Mar 4 16:44:00 UTC 2019
On 3/1/19 4:26 PM, Tom Rini wrote:
> This packagegroup is intended to provide all of the functionality found
> in other VIRTUAL-RUNTIME_base-utils providers through full packages
> rather than an all-on-one package. Document how to make use of this
> in local.conf.sample.extended. Introduce VIRTUAL-RUNTIME-vim and
> default this to vim-tiny to allow for a differently features vim to be
> used instead.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> meta/conf/local.conf.sample.extended | 8 ++++
> .../packagegroups/packagegroup-core-base-utils.bb | 49 ++++++++++++++++++++++
> 2 files changed, 57 insertions(+)
> create mode 100644 meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
>
> diff --git a/meta/conf/local.conf.sample.extended b/meta/conf/local.conf.sample.extended
> index 8062e4c5721b..d00221893ad9 100644
> --- a/meta/conf/local.conf.sample.extended
> +++ b/meta/conf/local.conf.sample.extended
> @@ -384,3 +384,11 @@
> #VIRTUAL-RUNTIME_login_manager = "shadow-base"
> #VIRTUAL-RUNTIME_init_manager = "systemd"
> #VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> +
> +#
> +# Use a full set of packages instead of busybox for base utils
> +#
> +#PREFERRED_PROVIDER_base-utils = "packagegroup-core-base-utils"
> +#VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
> +#VIRTUAL-RUNTIME_base-utils-hwclock = "util-linux-hwclock"
> +#VIRTUAL-RUNTIME_base-utils-syslog = "syslog"
> diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb b/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
> new file mode 100644
> index 000000000000..061dade0bc03
> --- /dev/null
> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
> @@ -0,0 +1,49 @@
> +#
> +# Copyright (C) 2019 Konsulko Group
> +#
> +
> +SUMMARY = "Full-featured set of base utils"
> +DESCRIPTION = "Package group bringing in packages needed to provide much of the base utils type functionality found in busybox"
> +
> +inherit packagegroup
> +
> +VIRTUAL-RUNTIME_vim ?= "vim-tiny"
> +
> +RDEPENDS_${PN} = "\
> + base-passwd \
> + bash \
> + bind-utils \
> + bzip2 \
> + coreutils \
> + cpio \
> + dhcp-client \
> + diffutils \
> + e2fsprogs \
> + ed \
> + file \
> + findutils \
> + gawk \
> + grep \
> + gzip \
> + inetutils \
> + iproute2 \
> + kmod \
> + less \
> + lzip \
> + ncurses-tools \
> + net-tools \
> + parted \
> + patch \
> + procps \
> + psmisc \
> + sed \
> + shadow-base \
> + tar \
> + time \
> + unzip \
> + util-linux \
> + ${VIRTUAL-RUNTIME_vim} \
> + wget \
> + which \
> + xz \
> + "
>
Sorry missed this earlier. On note, we have a similar recipe in our local layer.
I figured you may want to look at it to determine if anything might be missing.
https://github.com/WindRiver-OpenSourceLabs/wrlinux/blob/master-wr/recipes-base/packagegroups/packagegroup-busybox-replacement.bb
The parts I see missing (when comparing them) are:
bc
debianutils-run-parts
dhcp-server (likely not needed)
dpkg-start-stop
ifupdown
kbd
In some configurations we also add "fbset, netcat, and usleep" as well... but I
think the reasonable approach is to match the default busybox configuration to
whatever is in this list.
--Mark
More information about the Openembedded-core
mailing list