From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: #yocto sstate cache problem with #raspberrypi #linux build To: yocto@lists.yoctoproject.org From: gvkalra@gmail.com X-Originating-Location: Delhi, National Capital Territory of Delhi, IN (49.204.97.221) X-Originating-Platform: Linux Chrome 83 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sat, 13 Jun 2020 03:51:20 -0700 Message-ID: Content-Type: multipart/alternative; boundary="UVP6DdQXKVnFa4xrVsnP" --UVP6DdQXKVnFa4xrVsnP Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I apply a few small patches in linux-raspberrypi to use a custom logo depe= nding on an environment variable MY_VENDOR_NAME: >=20 > FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}:" >=20 > SRC_URI +=3D "\ > file://0001-fbdev-fbmem-add-config-option-to-center-the-bootup-l.pat= ch > \ > file://0002-fbdev-fbmem-display-single-copy-of-logo.patch \ > file://0003-video-logo-add-custom-logo.patch \ > file://${@d.getVar('MY_VENDOR_NAME')}.ppm \ > file://custom.cfg \ > " >=20 > do_kernel_checkout_append() { > cp ${WORKDIR}/${MY_VENDOR_NAME}".ppm" > ${S}/drivers/video/logo/logo_custom_clut224.ppm > } I have added MY_VENDOR_NAME to=C2=A0BB_ENV_EXTRAWHITE, and based on the va= lue of the environment variable, I copy the required logo file (.ppm) to the checked-out kernel source tree= (inside do_kernel_checkout_append). In addition, I build an out-of-tree kernel module (same for all vendors), = and it is added to the image through IMAGE_INSTALL. The kernel module doesn't depend on the MY_VENDOR_NAME variable anywhere. This works well for me only if I use a different=C2=A0SSTATE_DIR for each = MY_VENDOR_NAME. If I use the same SSTATE_DIR for all the vendors, the kernel module reports "disagrees about version of symbol module_layout= " error, and doesn't get loaded. Most of my distro is the same for all the vendors and has just minor modif= ications based on=C2=A0MY_VENDOR_NAME variable. Is there a way to use the same SSTATE_DIR? Thanks --UVP6DdQXKVnFa4xrVsnP Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,

I apply a few small patches in linux-raspberrypi to use a cu= stom logo depending on an environment variable MY_VENDOR_NAME:

FILESEXTRAPATHS_prepend :=3D "${THISDIR}/${PN}:"<=
/span>

SRC_URI +=3D "\
    file://0001-fbdev-f=
bmem-add-config-option-to-center-the-bootup-l.patch \
    file://0002-fbdev-f=
bmem-display-single-copy-of-logo.patch \
    file://0003-video-l=
ogo-add-custom-logo.patch \
    file://${@d.getVar=
('MY_VENDOR_NAME')}.ppm \
    file://custom.cfg =
\
    "

do_kernel_checkout_app=
end() {
    cp ${WORKDIR}/${MY=
_VENDOR_NAME}".ppm" ${S}/drivers/video/logo/logo_custom_clut224.ppm
}
I have added MY_VENDOR_NAME to BB_ENV_EXTRAWHITE, and based on the va= lue of the environment variable,
I copy the required logo file (.ppm) = to the checked-out kernel source tree (inside do_kernel_checkout_append).
In addition, I build an out-of-tree kernel module (same for all v= endors), and it is added to the image through IMAGE_INSTALL.
The kerne= l module doesn't depend on the MY_VENDOR_NAME variable anywhere.

This works well for me only if I use a different SSTATE_DIR for each = MY_VENDOR_NAME.

If I use the same SSTATE_DIR for all the vendors= ,
the kernel module reports "disagrees about version of symbol module_= layout" error, and doesn't get loaded.

Most of my distro is the = same for all the vendors and has just minor modifications based on MY_= VENDOR_NAME variable.
Is there a way to use the same SSTATE_DIR?
=
Thanks --UVP6DdQXKVnFa4xrVsnP--