Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbake always reparses when using mutlilib with any fsl machine from this layer #1647

Open
kraj opened this issue Sep 3, 2023 · 1 comment

Comments

@kraj
Copy link
Contributor

kraj commented Sep 3, 2023

I am seeing a peculiar issue which was seen in FSL based SOMs layers e.g. meta-variscite which is actually reproducible with just machines from meta-freescale and poky.

Here is my bblayers.conf

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /mnt/b/yoe/master/sources/poky/meta \
  /mnt/b/yoe/master/sources/poky/meta-poky \
  /mnt/b/yoe/master/sources/meta-freescale \
  "

and in local.conf append

MACHINE = "imx8mn-ddr4-evk"
# multilib
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"

then run

bitbake core-image-minimal -p

First time parsing is understandable but it keeps reparsing everytime the above command is run
and there are no changes at all in the metadata.

If I set MACHINE = "qemuarm64"

then the problem goes away.

@kraj
Copy link
Contributor Author

kraj commented Sep 7, 2023

Following change to comment preferrred providers fixes the problem

diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 3ddd498f..e2aa104d 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -540,11 +540,11 @@ PREFERRED_PROVIDER_virtual/libgl    ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"

-PREFERRED_PROVIDER_virtual/egl:imxgpu        ?= "imx-gpu-viv"
-PREFERRED_PROVIDER_virtual/libgl:imxgpu3d    ?= "imx-gpu-viv"
-PREFERRED_PROVIDER_virtual/libgles1:imxgpu3d ?= "imx-gpu-viv"
-PREFERRED_PROVIDER_virtual/libgles2:imxgpu3d ?= "imx-gpu-viv"
-PREFERRED_PROVIDER_virtual/libgles3:imxgpu3d ?= "imx-gpu-viv"
+#PREFERRED_PROVIDER_virtual/egl:imxgpu        ?= "imx-gpu-viv"
+#PREFERRED_PROVIDER_virtual/libgl:imxgpu3d    ?= "imx-gpu-viv"
+#PREFERRED_PROVIDER_virtual/libgles1:imxgpu3d ?= "imx-gpu-viv"
+#PREFERRED_PROVIDER_virtual/libgles2:imxgpu3d ?= "imx-gpu-viv"
+#PREFERRED_PROVIDER_virtual/libgles3:imxgpu3d ?= "imx-gpu-viv"
 PREFERRED_PROVIDER_virtual/libg2d            ?= "imx-gpu-g2d"
 PREFERRED_PROVIDER_virtual/libg2d:imxdpu     ?= "imx-dpu-g2d"
 PREFERRED_PROVIDER_virtual/libg2d:mx93-nxp-bsp ?= "imx-pxp-g2d"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant