All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-yocto][PATCH 1/2] beaglebone-yocto: prefer u-boot
@ 2022-01-10 16:56 Vivien Didelot
  2022-01-10 16:56 ` [meta-yocto][PATCH 2/2] beaglebone-yocto: move kernel and dtb to packagegroup-core-boot Vivien Didelot
  0 siblings, 1 reply; 3+ messages in thread
From: Vivien Didelot @ 2022-01-10 16:56 UTC (permalink / raw)
  To: poky; +Cc: Vivien Didelot

If BBLAYERS contains a layer providing a package for
virtual/bootloader, building for the beaglebone-yocto machine will
fail. Setting u-boot as the preferred provider for virtual/bootloader
ensures u-boot is choosen and the build succeeds.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
index b3d960a..fa3beb7 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
@@ -30,6 +30,8 @@ KERNEL_IMAGETYPE = "zImage"
 KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
 KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
 
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
+
 SPL_BINARY = "MLO"
 UBOOT_SUFFIX = "img"
 UBOOT_MACHINE = "am335x_evm_defconfig"
-- 
2.34.1


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

* [meta-yocto][PATCH 2/2] beaglebone-yocto: move kernel and dtb to packagegroup-core-boot
  2022-01-10 16:56 [meta-yocto][PATCH 1/2] beaglebone-yocto: prefer u-boot Vivien Didelot
@ 2022-01-10 16:56 ` Vivien Didelot
  2022-01-19 12:04   ` Vivien Didelot
  0 siblings, 1 reply; 3+ messages in thread
From: Vivien Didelot @ 2022-01-10 16:56 UTC (permalink / raw)
  To: poky; +Cc: Vivien Didelot

Appending IMAGE_INSTALL with the kernel and device tree is a bad idea
because it will bring these packages to every images, like a container
image or sysroot image to pivot to, where the kernel artifacts are
not wanted.

Instead use the MACHINE_ESSENTIAL_EXTRA_RDEPENDS which results
in having the kernel artifacts where they should be, part of
packagegroup-core-boot.

Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
index fa3beb7..fdfe08b 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
@@ -17,7 +17,7 @@ include conf/machine/include/arm/armv7a/tune-cortexa8.inc
 IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 EXTRA_IMAGECMD:jffs2 = "-lnp "
 WKS_FILE ?= "beaglebone-yocto.wks"
-IMAGE_INSTALL:append = " kernel-devicetree kernel-image-zimage"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
-- 
2.34.1


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

* Re: [meta-yocto][PATCH 2/2] beaglebone-yocto: move kernel and dtb to packagegroup-core-boot
  2022-01-10 16:56 ` [meta-yocto][PATCH 2/2] beaglebone-yocto: move kernel and dtb to packagegroup-core-boot Vivien Didelot
@ 2022-01-19 12:04   ` Vivien Didelot
  0 siblings, 0 replies; 3+ messages in thread
From: Vivien Didelot @ 2022-01-19 12:04 UTC (permalink / raw)
  To: poky

Hi all,

On Mon, 10 Jan 2022 11:56:40 -0500 Vivien Didelot <vivien.didelot@gmail.com> wrote:
> Appending IMAGE_INSTALL with the kernel and device tree is a bad idea
> because it will bring these packages to every images, like a container
> image or sysroot image to pivot to, where the kernel artifacts are
> not wanted.
> 
> Instead use the MACHINE_ESSENTIAL_EXTRA_RDEPENDS which results
> in having the kernel artifacts where they should be, part of
> packagegroup-core-boot.
> 
> Signed-off-by: Vivien Didelot <vdidelot@pbsc.com>

Do you guys get a chance to review this series?


Thanks,

	Vivien

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

end of thread, other threads:[~2022-01-19 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-10 16:56 [meta-yocto][PATCH 1/2] beaglebone-yocto: prefer u-boot Vivien Didelot
2022-01-10 16:56 ` [meta-yocto][PATCH 2/2] beaglebone-yocto: move kernel and dtb to packagegroup-core-boot Vivien Didelot
2022-01-19 12:04   ` Vivien Didelot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.