Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V3 0/3] Dynamic common utilities
@ 2015-09-24 21:10 Alejandro Joya
  2015-09-24 21:10 ` [PATCH V3 1/3] core-image-minimal-initramfs: replace dependency Alejandro Joya
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alejandro Joya @ 2015-09-24 21:10 UTC (permalink / raw)
  To: openembedded-core

It provide a virtual reference for the common utilities.
it replace of the lock to busybox, it will be simple exchange between other
common utilities like gnu core utils or toybox among others.

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 base-util
  https://github.com/Ajoyacr/openembedded-core/tree/base-util

Alejandro Joya (3):
  core-image-minimal-initramfs: replace dependency
  initramfs-framework:add virtual reference
  packagegroup-core-boot:change 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  | 7 +++++--
 3 files changed, 7 insertions(+), 4 deletions(-)

-- 
2.1.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH V3 1/3] core-image-minimal-initramfs: replace dependency
  2015-09-24 21:10 [PATCH V3 0/3] Dynamic common utilities Alejandro Joya
@ 2015-09-24 21:10 ` Alejandro Joya
  2015-09-24 21:10 ` [PATCH 2/3] initramfs-framework:add virtual reference Alejandro Joya
  2015-09-24 21:10 ` [PATCH V3 3/3] packagegroup-core-boot:change to " Alejandro Joya
  2 siblings, 0 replies; 4+ messages in thread
From: Alejandro Joya @ 2015-09-24 21:10 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
---
 meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb
index 1f0fa95..e2936ee 100644
--- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
+++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
@@ -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 = ""
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] initramfs-framework:add virtual reference
  2015-09-24 21:10 [PATCH V3 0/3] Dynamic common utilities Alejandro Joya
  2015-09-24 21:10 ` [PATCH V3 1/3] core-image-minimal-initramfs: replace dependency Alejandro Joya
@ 2015-09-24 21:10 ` Alejandro Joya
  2015-09-24 21:10 ` [PATCH V3 3/3] packagegroup-core-boot:change to " Alejandro Joya
  2 siblings, 0 replies; 4+ messages in thread
From: Alejandro Joya @ 2015-09-24 21:10 UTC (permalink / raw)
  To: openembedded-core

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 base-utils.

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index 6c37b9a..0704cb1 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -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"
 
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V3 3/3] packagegroup-core-boot:change to virtual reference
  2015-09-24 21:10 [PATCH V3 0/3] Dynamic common utilities Alejandro Joya
  2015-09-24 21:10 ` [PATCH V3 1/3] core-image-minimal-initramfs: replace dependency Alejandro Joya
  2015-09-24 21:10 ` [PATCH 2/3] initramfs-framework:add virtual reference Alejandro Joya
@ 2015-09-24 21:10 ` Alejandro Joya
  2 siblings, 0 replies; 4+ messages in thread
From: Alejandro Joya @ 2015-09-24 21:10 UTC (permalink / raw)
  To: openembedded-core

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 base-utils.

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
index 09f5373..938b112 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
@@ -11,6 +11,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup
 
+PREFERRED_PROVIDER_virtual/base-utils ?= "busybox"
 #
 # Set by the machine configuration with packages essential for device bootup
 #
@@ -20,11 +21,13 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
 # Distro can override the following VIRTUAL-RUNTIME providers:
 VIRTUAL-RUNTIME_dev_manager ?= "udev"
 VIRTUAL-RUNTIME_login_manager ?= "busybox"
+VIRTUAL-RUNTIME_base-utils ?= "busybox"
+VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock" 
 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_base-utils-hwclock}', '', d)} \
                     modutils-initscripts \
                     init-ifupdown \
                     ${VIRTUAL-RUNTIME_initscripts} \
@@ -33,7 +36,7 @@ SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwc
 RDEPENDS_${PN} = "\
     base-files \
     base-passwd \
-    busybox \
+    ${VIRTUAL-RUNTIME_base-utils} \
     ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \
     ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     netbase \
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-24 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 21:10 [PATCH V3 0/3] Dynamic common utilities Alejandro Joya
2015-09-24 21:10 ` [PATCH V3 1/3] core-image-minimal-initramfs: replace dependency Alejandro Joya
2015-09-24 21:10 ` [PATCH 2/3] initramfs-framework:add virtual reference Alejandro Joya
2015-09-24 21:10 ` [PATCH V3 3/3] packagegroup-core-boot:change to " Alejandro Joya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox