All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends
@ 2018-07-16 12:31 Max Krummenacher
  2018-07-16 12:31 ` [PATCH 2/2] imx-gpu-viv: libgl-imx-dev: remove conflicting rdepends Max Krummenacher
  2018-07-19 20:46 ` [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Fabio Berton
  0 siblings, 2 replies; 4+ messages in thread
From: Max Krummenacher @ 2018-07-16 12:31 UTC (permalink / raw)
  To: stefan.agner, meta-freescale; +Cc: Max Krummenacher

With virtual/bootloader in WKS_FILE_DEPENDS the recipe-sysroot(-native) gets
populated by whatever virtual/bootloader and its DEPENDS put in the
recipe-sysroot.

For U-Boot recipes which work around the fdt.h et. al. include mess by using
the older dtc-145-native this results in a error during do_image_wic on first
build. A second run of bitbake succeeds, but has some releated warning in
the log.do_image_wks logfile.

| Exception: FileExistsError: [Errno 17] File exists: '...tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h' -> '.../tmp/work/apalis_imx6-fslc-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/include/libfdt.h'
| ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: extend_recipe_sysroot
| $ find tmp/sysroots-components/ -name libfdt.h
| tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h
| tmp/sysroots-components/x86_64/dtc-native/usr/include/libfdt.h

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 conf/machine/include/imx-base.inc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index bd2a2aa3..24058c45 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -285,8 +285,6 @@ IMAGE_BOOT_FILES ?= " \
 
 ### wic default support
 WKS_FILE_DEPENDS ?= " \
-    virtual/bootloader \
-    \
     e2fsprogs-native \
     bmap-tools-native \
 "
-- 
2.13.6



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

* [PATCH 2/2] imx-gpu-viv: libgl-imx-dev: remove conflicting rdepends
  2018-07-16 12:31 [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Max Krummenacher
@ 2018-07-16 12:31 ` Max Krummenacher
  2018-07-19 20:46 ` [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Fabio Berton
  1 sibling, 0 replies; 4+ messages in thread
From: Max Krummenacher @ 2018-07-16 12:31 UTC (permalink / raw)
  To: stefan.agner, meta-freescale; +Cc: Max Krummenacher

The recipe explicitly sets a conflict between the two packages libgl-imx
and libgl-mesa with some python magic, so one shouldn't RDEPEND on the other.

e.g. when building the SDK most -dev packages are missing and one gets:
| Problem: package libgl-imx-dev-1:6.2.4.p1.2+aarch32-r0.armv7at2hf_neon_mx6qdl requires libgl-mesa-dev, but none of the providers can be installed
|  - package libgl-mesa-dev-2:18.1.3-r0.armv7at2hf_neon_mx6qdl conflicts with libgl-dev provided by libgl-imx-dev-1:6.2.4.p1.2+aarch32-r0.armv7at2hf_neon_mx6qdl
|  - conflicting requests

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
 recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 0dfc0763..705c6cc2 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -289,8 +289,6 @@ FILES_libopenvx-imx-dev = "${includedir}/VX ${libdir}/libopenVX${SOLIBSDEV}"
 
 FILES_libgl-imx = "${libdir}/libGL${REALSOLIBS}"
 FILES_libgl-imx-dev = "${libdir}/libGL${SOLIBSDEV} ${includedir}/GL"
-# Includes GL headers from mesa
-RDEPENDS_libgl-imx-dev += "libgl-mesa-dev"
 
 # libEGL needs to open libGLESv1.so
 INSANE_SKIP_libgles-imx += "dev-so"
-- 
2.13.6



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

* Re: [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends
  2018-07-16 12:31 [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Max Krummenacher
  2018-07-16 12:31 ` [PATCH 2/2] imx-gpu-viv: libgl-imx-dev: remove conflicting rdepends Max Krummenacher
@ 2018-07-19 20:46 ` Fabio Berton
  2018-07-20 17:27   ` Max Krummenacher
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Berton @ 2018-07-19 20:46 UTC (permalink / raw)
  To: Max Krummenacher
  Cc: meta-freescale Mailing List, Max Krummenacher, stefan.agner

Hi Max!

The virtual/bootloader it's in WKS_FILE_DEPENDS because the default
WKS_FILE is imx-uboot-bootpart.wks, this wks uses u-boot.imx file to
create final image.

I saw this "File exists ibfdt.h" error and I'll try to figure out
other solution, because e.g. imx6ullevk need to use dtc-145 and need
to has virtual/bootloader.

For machines the use sdimage-bootpart.wks and dtc-145, like
apalis-imx6, we can add WKS_FILE_DEPENDS = "" in machine config file.

Thanks!

Fabio Berton

On Mon, Jul 16, 2018 at 9:31 AM, Max Krummenacher <max.oss.09@gmail.com> wrote:
> With virtual/bootloader in WKS_FILE_DEPENDS the recipe-sysroot(-native) gets
> populated by whatever virtual/bootloader and its DEPENDS put in the
> recipe-sysroot.
>
> For U-Boot recipes which work around the fdt.h et. al. include mess by using
> the older dtc-145-native this results in a error during do_image_wic on first
> build. A second run of bitbake succeeds, but has some releated warning in
> the log.do_image_wks logfile.
>
> | Exception: FileExistsError: [Errno 17] File exists: '...tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h' -> '.../tmp/work/apalis_imx6-fslc-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/include/libfdt.h'
> | ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: extend_recipe_sysroot
> | $ find tmp/sysroots-components/ -name libfdt.h
> | tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h
> | tmp/sysroots-components/x86_64/dtc-native/usr/include/libfdt.h
>
> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
> ---
>  conf/machine/include/imx-base.inc | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
> index bd2a2aa3..24058c45 100644
> --- a/conf/machine/include/imx-base.inc
> +++ b/conf/machine/include/imx-base.inc
> @@ -285,8 +285,6 @@ IMAGE_BOOT_FILES ?= " \
>
>  ### wic default support
>  WKS_FILE_DEPENDS ?= " \
> -    virtual/bootloader \
> -    \
>      e2fsprogs-native \
>      bmap-tools-native \
>  "
> --
> 2.13.6
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


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

* Re: [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends
  2018-07-19 20:46 ` [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Fabio Berton
@ 2018-07-20 17:27   ` Max Krummenacher
  0 siblings, 0 replies; 4+ messages in thread
From: Max Krummenacher @ 2018-07-20 17:27 UTC (permalink / raw)
  To: Fabio Berton; +Cc: meta-freescale Mailing List, Max Krummenacher, stefan.agner

Hi Fabio

Am Donnerstag, den 19.07.2018, 17:46 -0300 schrieb Fabio Berton:
> Hi Max!
> 
> The virtual/bootloader it's in WKS_FILE_DEPENDS because the default
> WKS_FILE is imx-uboot-bootpart.wks, this wks uses u-boot.imx file to
> create final image.

My bad. I thought that in my use case U-Boot is also installed and
that it got build and deployed through some other magical dependency
and I failed to check its existence after removing virtual/bootloader.

> 
> I saw this "File exists ibfdt.h" error and I'll try to figure out
> other solution, because e.g. imx6ullevk need to use dtc-145 and need
> to has virtual/bootloader.
> 
> For machines the use sdimage-bootpart.wks and dtc-145, like
> apalis-imx6, we can add WKS_FILE_DEPENDS = "" in machine config file.

Eventually for one image type or another these machines also like
to have U-Boot built and deployed, so that would only be a shortterm
solution.

I looked a bit into this and found two possible ways out:

- change the dtc-145 recipe so that only a renamed dtc binary gets
installed, none of the libraries, none of the headers. Thus in the
image_wic tasks there is no clash between files.
Then the U-Boot Makefile must be patched to use the renamed dtc
binary.

- Drop the dtc-145 recipe and build the dtc as part of the U-Boot
build. That way the dtc 1.4.5. is contained in the U-Boot work area
and never gets deployed. Seems a bit hackish to me though.

I could prepare a proper patch for one or the other.

What you think?

Regards
Max

> 
> Thanks!
> 
> Fabio Berton
> 
> On Mon, Jul 16, 2018 at 9:31 AM, Max Krummenacher <max.oss.09@gmail.com> wrote:
> > With virtual/bootloader in WKS_FILE_DEPENDS the recipe-sysroot(-native) gets
> > populated by whatever virtual/bootloader and its DEPENDS put in the
> > recipe-sysroot.
> > 
> > For U-Boot recipes which work around the fdt.h et. al. include mess by using
> > the older dtc-145-native this results in a error during do_image_wic on first
> > build. A second run of bitbake succeeds, but has some releated warning in
> > the log.do_image_wks logfile.
> > 
> > > Exception: FileExistsError: [Errno 17] File exists: '...tmp/sysroots-components/x86_64/dtc-
> > > 145-native/usr/include/libfdt.h' -> '.../tmp/work/apalis_imx6-fslc-linux-gnueabi/core-image-
> > > minimal/1.0-r0/recipe-sysroot-native/usr/include/libfdt.h'
> > > ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: extend_recipe_sysroot
> > > $ find tmp/sysroots-components/ -name libfdt.h
> > > tmp/sysroots-components/x86_64/dtc-145-native/usr/include/libfdt.h
> > > tmp/sysroots-components/x86_64/dtc-native/usr/include/libfdt.h
> > 
> > Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
> > ---
> >  conf/machine/include/imx-base.inc | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
> > index bd2a2aa3..24058c45 100644
> > --- a/conf/machine/include/imx-base.inc
> > +++ b/conf/machine/include/imx-base.inc
> > @@ -285,8 +285,6 @@ IMAGE_BOOT_FILES ?= " \
> > 
> >  ### wic default support
> >  WKS_FILE_DEPENDS ?= " \
> > -    virtual/bootloader \
> > -    \
> >      e2fsprogs-native \
> >      bmap-tools-native \
> >  "
> > --
> > 2.13.6
> > 
> > --
> > _______________________________________________
> > meta-freescale mailing list
> > meta-freescale@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-freescale


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

end of thread, other threads:[~2018-07-20 17:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 12:31 [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Max Krummenacher
2018-07-16 12:31 ` [PATCH 2/2] imx-gpu-viv: libgl-imx-dev: remove conflicting rdepends Max Krummenacher
2018-07-19 20:46 ` [PATCH 1/2] imx-base.inc: remove bootloader from image_wks depends Fabio Berton
2018-07-20 17:27   ` Max Krummenacher

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.