From: gvkalra@gmail.com
To: yocto@lists.yoctoproject.org
Subject: #yocto sstate cache problem with #raspberrypi #linux build
Date: Sat, 13 Jun 2020 03:51:20 -0700 [thread overview]
Message-ID: <ndMu.1592045480989192593.OKc1@lists.yoctoproject.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]
Hi,
I apply a few small patches in linux-raspberrypi to use a custom logo depending on an environment variable MY_VENDOR_NAME:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> SRC_URI += "\
> file://0001-fbdev-fbmem-add-config-option-to-center-the-bootup-l.patch
> \
> 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 \
> "
>
> 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 BB_ENV_EXTRAWHITE, and based on the value 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 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
[-- Attachment #2: Type: text/html, Size: 2299 bytes --]
reply other threads:[~2020-06-13 10:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ndMu.1592045480989192593.OKc1@lists.yoctoproject.org \
--to=gvkalra@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox