flexible common utils
cover flexible common utils
this patch it will try to provide a virtual reference for the common utils. instead of looking to hardcoded busybox, it wil be simple exchange between other common utils like gnu core utils or toybox among others.
In order to enable its required to fill at the distro conf or local.conf
VIRTUAL-RUNTIME_login_manager ?= "busybox" PREFERRED_PROVIDER_virtual/anybox ?= "busybox" PREFERRED_RPROVIDER_virtual/anybox ?= "busybox" VIRTUAL-RUNTIME_anybox ?= "busybox" VIRTUAL-RUNTIME_anybox-hwclock ?= "busybox-hwclock"
The following changes since commit f0189829498e30231d826c9f55aad73e622d076e:
qemu: Update to upstream patches (2015-09-14 11:22:02 +0100)
are available in the git repository at:
git://github.com/Ajoyacr/openembedded-core anybox
https://github.com/Ajoyacr/openembedded-core/tree/anybox
Alejandro Joya (3):
core-mage-minimal-initramfs: overwrite hardcoded dependency to virtual
reference
initramfs-framework: overwrite hardcoded dependency to virtual
reference
packagegroup-core-boot: overwrite hardcoded dependency to virtual
reference
meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +- meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 +- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.1.0
PATCH 1/3 core-mage-minimal-initramfs: overwrite hardcoded dependency to virtual reference
This recipe have a hardcoded dependency to busybox, in order to be able to have a flexible selection, instead of the hardcoded dependency,now is point to virtual reference anybox.
--- meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/images/core-image-minimal-initramfs.bb +1 -1
@@ -3,7 +3,7 @@ DESCRIPTION = "Small image capable of booting a device. The kernel includes \ the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ first 'init' program more efficiently." -PACKAGE_INSTALL = "initramfs-live-boot initramfs-live-install initramfs-live-install-efi busybox udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" +PACKAGE_INSTALL = "initramfs-live-boot initramfs-live-install initramfs-live-install-efi virtual/anybox udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = ""
Signature · 1 line
2.1.0
PATCH 2/3 initramfs-framework: overwrite hardcoded dependency to virtual reference
This recipe have a hardcoded dependency to busybox, in order to be able to have a flexible selection, instead of the hardcoded dependency,now is point to virtual reference anybox.
--- meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb +1 -1
@@ -1,7 +1,7 @@ SUMMARY = "Modular initramfs system" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -RDEPENDS_${PN} += "busybox" +RDEPENDS_${PN} += "virtual/anybox" PR = "r2"
Signature · 1 line
2.1.0
PATCH 3/3 packagegroup-core-boot: overwrite hardcoded dependency to virtual reference
In reply to Alejandro JoyaThis recipe have a hardcoded dependency to busybox, in order to be able to have a flexible selection, instead of the hardcoded dependency,now is point to virtual reference anybox.
--- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +3 -3
@@ -19,12 +19,12 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" # Distro can override the following VIRTUAL-RUNTIME providers: VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_login_manager ?= "busybox" +VIRTUAL-RUNTIME_login_manager ?= "${VIRTUAL-RUNTIME_anybox}" VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps" -SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ +SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', '${VIRTUAL-RUNTIME_anybox-hwclock}', '', d)} \ modutils-initscripts \ init-ifupdown \ ${VIRTUAL-RUNTIME_initscripts} \
@@ -33,7 +33,7 @@ SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwc RDEPENDS_${PN} = "\ base-files \ base-passwd \ - busybox \ + ${VIRTUAL-RUNTIME_anybox} \ ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ netbase \
Signature · 1 line
2.1.0