Hello,
I am seeing this error in my build:
Configuring aCollected errors:
* check_data_file_clashes: Package linux-firmware-bcm43430 wants to
install file /linaro/mbl/workspace-arm/build-mbl/tmp-mbl-glibc/work/imx7s
_warp-oe-linux-gnueabi/mbl-console-image-test/1.0-r0/root
fs/lib/firmware/brcm/brcmfmac43430-sdio.bin
But that file is already provided by package * firmware-imx
* check_data_file_clashes: Package linux-firmware-bcm43430 wants to
install file /linaro/mbl/workspace-arm/build-mbl/tmp-mbl-glibc/work/imx7s
_warp-oe-linux-gnueabi/mbl-console-image-test/1.0-r0/root
fs/lib/firmware/brcm/brcmfmac43430-sdio.txt
But that file is already provided by package * firmware-imx
In my build, I'm including meta-raspberrypi and meta-freescale-3rdparty in
my manifest. These two meta layers include the following two files into the
rootfs in various ways:
/lib/firmware/brcm/brcmfmac43430-sdio.txt
/lib/firmware/brcm/brcmfmac43430-sdio.bin
For example, in the following files define a way of adding the firmware
into the rootfs (there will be more ways they get into the build, saying as
one is a .inc file):
meta-freescale-3rdparty/recipes-bsp/broadcom-nvram-config/
broadcom-nvram-config.inc
meta-raspberrypi/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
openembedded-core/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
My meta-layer is included after meta-freescale* and meta-raspberrypi, but
before openembedded-core/meta in my BBLAYERS setup.
However, I want to provide a newer version of these two files in my build.
So we created this recipe in our meta layer:
file: recipes-bsp/firmware-imx/firmware-imx_%.bbappend
------------------------------------------------------------
--------------------------
SRCREV_linuxfirmware = "a61ac5cf8374edbfe692d12f805a1b194f7fead2"
SRCREV_recalboxbuildroot = "f648e4b54eb5e4be593746d6cc51375b22a7efbd"
SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linu
x-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git1;name=linuxfirmware
<http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git;…>
\
git://github.com/recalbox/recalbox-buildroot.git;protocol=
https;branch=${SRCBRANCH};destsuffix=${S}/git2;name=recalboxbuildroot
<http://github.com/recalbox/recalbox-buildroot.git;protocol=https;branch=$%7…>
"
LIC_FILES_CHKSUM += "file://git1/LICENCE.broadcom_
bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
file://git2/COPYING;md5=e4edbc78b8892db416b6a07e0d97309a
"
do_install_append() {
install -d ${D}${base_libdir}/firmware
install -d ${D}${base_libdir}/firmware/brcm
cp -rfv git1/brcm/brcmfmac43430-sdio.bin ${D}${base_libdir}/firmware/br
cm
cp -rfv git2/board/warp7/rootfs_overlay/lib/firmware/brcm/brcmfmac43430-sdio.txt
${D}${base_libdir}/firmware/brcm
}
FILES_${PN} += "${base_libdir}/firmware/brcm/brcmfmac43430*"
COMPATIBLE_MACHINE = "(imx7s-warp)"
------------------------------------------------------------
--------------------------
It builds fine in a "normal" configuration. However, in a "test" build,
where "dev-pkgs" is added to IMAGE_FEATURES, I get the error as above.
So how do I work around this issue? Am I doing the wrong thing by providing
a bbappend to overlay these files?
Any advice appreciated.
Regards,
Ryan.
Hi All,
I am new to the OpenEmbedded framework and kindly do let me know if this is not the right forum for such query.
I am using the Dragonboard410c with the Linaro OpenEmbedded Release (Steps to build the sources is: https://github.com/96boards/oe-rpb-manifest)
I want to do a clean build and incremental build of only the kernel sources.
I checked articles for the same and found the below commands:
bitbake -c cleansstate virtual/kernel
bitbake -c clean virtual/kernel
But the above commands are giving error like below:
******* Error Start *******
ERROR: Nothing PROVIDES 'linux-linaro-aarch64'
ERROR: linux-linaro-aarch64 was skipped: We shouldn't have multilib variants for the kernel
ERROR: linux-linaro-aarch64 was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-linaro-qcomlt, not linux-linaro-aarch64
******* Error End *******
I also tried the below:
bitbake -c cleansstate linux-linaro-qcomlt
bitbake -c cleansstate linux-linaro-aarch64
But that also does not work.
So can you please suggest from where can I know, how to build the kernel without triggering the whole build.
Thanks & Regards,
Sunny
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************
It can be slightly tricky to build a copy of python-wand that will also
function. A problem is that without additional logic (MAGICK_HOME), the
python code will not look outside of system paths for a copy of the
imagemagick library. However, even with this path added to the search
list, the code will still try a 'naked' load of the library it wants.
This can result in a visible failure if you have a new enough
imagemagic-6 installed (such as 6.9.7) as the date string checking logic
will fail. Work around these problems by setting MAGICK_HOME globally
to the correct location and patch the api code to look for the form of
imagemagick that we build first, rather than last, so that we are going
to first search for what we know we built.
Signed-off-by: Tom Rini <trini(a)konsulko.com>
---
This patch should be applied to at least master, pyro and rocko.
Arguably this should also be applied further back as without MAGICK_HOME
it will never be looking in our sysroot.
.../0001-wand-api.py-Change-search-order.patch | 32 ++++++++++++++++++++++
.../recipes-devtools/python/python-wand_0.4.4.bb | 7 ++++-
2 files changed, 38 insertions(+), 1 deletion(-)
create mode 100644 meta-optee/recipes-devtools/python/python-wand/0001-wand-api.py-Change-search-order.patch
diff --git a/meta-optee/recipes-devtools/python/python-wand/0001-wand-api.py-Change-search-order.patch b/meta-optee/recipes-devtools/python/python-wand/0001-wand-api.py-Change-search-order.patch
new file mode 100644
index 000000000000..ac2c0b0622c0
--- /dev/null
+++ b/meta-optee/recipes-devtools/python/python-wand/0001-wand-api.py-Change-search-order.patch
@@ -0,0 +1,32 @@
+From 7691ebcf38c59332eb819f909250a22ba5e8e50b Mon Sep 17 00:00:00 2001
+From: Tom Rini <trini(a)konsulko.com>
+Date: Tue, 24 Oct 2017 12:01:51 -0400
+Subject: [PATCH 1/1] wand/api.py: Change search order
+
+In addition to specifying MAGICK_HOME to ensure that we will even look
+within our desired paths, we need to also check for the type of library
+that we know we have. Otherwise we may find a different form of the
+library in one of the system paths before we try ours.
+
+Upstream-Status: Inappropriate [configuration]
+Signed-off-by: Tom Rini <trini(a)konsulko.com>
+---
+ wand/api.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wand/api.py b/wand/api.py
+index 19cf6d2..dde9c5e 100644
+--- a/wand/api.py
++++ b/wand/api.py
+@@ -55,7 +55,7 @@ def library_paths():
+ """
+ libwand = None
+ libmagick = None
+- versions = '', '-6', '-Q16', '-Q8', '-6.Q16'
++ versions = '-6.Q16', '-6', '-Q16', '-Q8', ''
+ options = '', 'HDRI', 'HDRI-2'
+ system = platform.system()
+ magick_home = os.environ.get('MAGICK_HOME')
+--
+2.11.0
+
diff --git a/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb b/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
index 9679b9c9f658..605bc59e2707 100644
--- a/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
+++ b/meta-optee/recipes-devtools/python/python-wand_0.4.4.bb
@@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=170eafd687d4a2b950819cd5e067e6d5"
SRCNAME = "wand"
SRCREV = "c731c620c3c96c409a194dafab396ffbb97d6702"
-SRC_URI = "git://github.com/dahlia/wand.git"
+SRC_URI = "git://github.com/dahlia/wand.git \
+ file://0001-wand-api.py-Change-search-order.patch"
S = "${WORKDIR}/git"
inherit setuptools
@@ -33,6 +34,10 @@ inherit setuptools
DEPENDS += " imagemagick-native"
+# Tell python-wand where to look for our imagemagick and it must be
+# one level up from where 'lib' resides.
+export MAGICK_HOME="${STAGING_LIBDIR_NATIVE}/.."
+
BBCLASSEXTEND = "native"
FILES_${PN} += "${datadir}"
--
2.7.4