public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH] improve caching of kernel overlays
Date: Tue,  2 Aug 2022 09:21:48 +0200	[thread overview]
Message-ID: <20220802072148.1145167-1-felix.moessbauer@siemens.com> (raw)

The kernel build supports KERNEL_OVERLAYS to overlay the official kernel
sources with custom ones.
These overlays are referenced using absolute paths, which leads to
absolute include directories on the compiler cmdline.

As the sbuilder injects some randomness into the build path,
this breaks ccache caching.
To fix this, we set the CCACHE_BASEDIR to the CURDIR
for the kernel build.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/recipes-kernel/linux/files/debian/rules.tmpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/linux/files/debian/rules.tmpl b/meta/recipes-kernel/linux/files/debian/rules.tmpl
index 8063c495..70a78547 100755
--- a/meta/recipes-kernel/linux/files/debian/rules.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/rules.tmpl
@@ -15,6 +15,7 @@ isar_env=$(strip \
 	export O='${O}' && \
 	export S='${S}' && \
 	export CURDIR='$(CURDIR)' \
+	export CCACHE_BASEDIR='$(CURDIR)' \
 )
 
 %:
-- 
2.30.2


             reply	other threads:[~2022-08-02  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02  7:21 Felix Moessbauer [this message]
2022-08-02  8:47 ` Jan Kiszka

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=20220802072148.1145167-1-felix.moessbauer@siemens.com \
    --to=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /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