"Duplicate inclusion" messages whenever I run bitbake

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Duplicate inclusion" messages whenever I run bitbake

5,739 Views
timur_tabi
Contributor I

Whenever I run bitbake, I get these warning messages.  How do I fix this?

$ bitbake -c cleansstate virtual/kernel

WARNING: Duplicate inclusion for /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-internal/conf/distro/imagedepends.conf in /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-internal/conf/layer.conf

WARNING: Duplicate inclusion for /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-internal/conf/distro/url-sha-references.conf in /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-internal/conf/layer.conf

WARNING: Duplicate inclusion for /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-virtualization/conf/distro/include/virt_security_flags.inc in /home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-virtualization/conf/layer.conf

Loading cache: 100% |###########################################| ETA:  00:00:00

Loaded 3251 entries from dependency cache.

WARNING: No bb files matched BBFILE_PATTERN_openembedded-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-oe/'

WARNING: No bb files matched BBFILE_PATTERN_multimedia-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-multimedia/'

WARNING: No bb files matched BBFILE_PATTERN_networking-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-networking/'

WARNING: No bb files matched BBFILE_PATTERN_perl-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-perl/'

WARNING: No bb files matched BBFILE_PATTERN_meta-python '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-python/'

WARNING: No bb files matched BBFILE_PATTERN_ruby-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-ruby/'

WARNING: No bb files matched BBFILE_PATTERN_filesystems-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-filesystems/'

WARNING: No bb files matched BBFILE_PATTERN_webserver '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-webserver/'

WARNING: No bb files matched BBFILE_PATTERN_toolchain-layer '^/home/timur/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/toolchain-layer/'

NOTE: Resolving any missing task queue dependencies

Labels (1)
0 Kudos
5 Replies

4,268 Views
mdeacon
Contributor I

The duplicate inclusion warnings are caused by sourcing fsl-setup-env on an existing build. A side effect of this is that layer.conf and bblayers.conf get duplicate lines appended. You can simply remove the duplicate lines and the warnings will go away.

0 Kudos

4,268 Views
adeel
Contributor III

Hi,

It means your .conf files are including some other conf/inc files mutiple times. Like in your case layer.conf is including imagedepends.conf, url-sha-references.conf and virt_security_flags.inc files multiple times.

0 Kudos

4,268 Views
timur_tabi
Contributor I

How do I fix it?  I didn't edit layer.conf.  I just did a normal SDK installation following the directions.  Here's my layer.conf:

# We have a packages directory, add to BBFILES

BBPATH .= ":${LAYERDIR}"

BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"

BBFILES += "${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILES += "${LAYERDIR}/classes/*.bb"

BBFILE_COLLECTIONS += "fsl-internal"

BBFILE_PATTERN_fsl-internal = "^${LAYERDIR}/"

BBFILE_PRIORITY_fsl-internal = "5"

LICENSE_PATH += "${LAYERDIR}/licenses"

# Let us add layer-specific bbappends which are only applied when that

# layer is included in our configuration

BBFILES += "${@' '.join('${LAYERDIR}/dynamic-layers/%s/recipes*/*/*.bbappend' % layer \

              for layer in BBFILE_COLLECTIONS.split())}"

BBFILES += "${@' '.join('${LAYERDIR}/dynamic-layers/%s/recipes*/*/*.bb' % layer \

              for layer in BBFILE_COLLECTIONS.split())}"

include conf/distro/imagedepends.conf

include conf/distro/url-sha-references.conf

and here's my imagedepends.conf:

# pkgs to be installed for specific board

EXTRA_IMAGEDEPENDS_append_p1020rdb = " vsc7385-firmware"

EXTRA_IMAGEDEPENDS_append_p1021rdb = " vsc7385-firmware"

EXTRA_IMAGEDEPENDS_append_p1022ds = " edink"

EXTRA_IMAGEDEPENDS_append_p2020rdb = " vsc7385-firmware"

EXTRA_IMAGEDEPENDS_append_t2080rdb = " cs4315-firmware"

EXTRA_IMAGEDEPENDS_append_t2080rdb-64b = " cs4315-firmware"

EXTRA_IMAGEDEPENDS_append_t4240rdb = " cs4315-firmware"

EXTRA_IMAGEDEPENDS_append_t4240rdb-64b = " cs4315-firmware"

I don't see any duplicates anywhere.

0 Kudos

4,268 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Timur Tabi,

The problem should exist in your procedure to create the build project, please refer to my attached local.conf in build_p1022ds/conf/, I think it should be different with yours.

Please remove the folder "build_p1022ds", go to the folder <install folder>/QorIQ-SDK-V1.9-20151210-yocto, and execute the command "source ./fsl-setup-env -m p1022ds"(please note that you need to finishing reading the EULA information and accept it) , then run bitbake command.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

4,268 Views
adeel
Contributor III

Do a grep for "imagedepends.conf" in all the *.bb and *.bbappend files.

0 Kudos