* [PATCH] improve caching of kernel overlays
@ 2022-08-02 7:21 Felix Moessbauer
2022-08-02 8:47 ` Jan Kiszka
0 siblings, 1 reply; 2+ messages in thread
From: Felix Moessbauer @ 2022-08-02 7:21 UTC (permalink / raw)
To: isar-users; +Cc: jan.kiszka, Felix Moessbauer
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] improve caching of kernel overlays
2022-08-02 7:21 [PATCH] improve caching of kernel overlays Felix Moessbauer
@ 2022-08-02 8:47 ` Jan Kiszka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2022-08-02 8:47 UTC (permalink / raw)
To: Felix Moessbauer, isar-users
On 02.08.22 09:21, Felix Moessbauer wrote:
> The kernel build supports KERNEL_OVERLAYS to overlay the official kernel
> sources with custom ones.
KERNEL_OVERLAYS is not an official kernel feature, it's an NVIDIA
downstream anti-feature, and it is scheduled to be removed. We should
not account for that mess in Isar unless it has positive side-effect on
other things.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-02 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 7:21 [PATCH] improve caching of kernel overlays Felix Moessbauer
2022-08-02 8:47 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox