public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] imager: fix caching issue by excluding BITBAKEDIR
@ 2023-10-25  6:08 Felix Moessbauer
  2023-11-01  7:12 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Moessbauer @ 2023-10-25  6:08 UTC (permalink / raw)
  To: isar-users; +Cc: adriaan.schmidt, Felix Moessbauer

The BITBAKEDIR variable contains an absolute path. This is problematic
when mounting it into the schroot, as this makes the hash of the
function depend on the absolute path. As the bitbake directory anyways
directly depends on the ISAR layer, we can safely exclude it.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes/imagetypes_wic.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/imagetypes_wic.bbclass b/meta/classes/imagetypes_wic.bbclass
index 9a0bc2b7..6b50959f 100644
--- a/meta/classes/imagetypes_wic.bbclass
+++ b/meta/classes/imagetypes_wic.bbclass
@@ -147,6 +147,7 @@ IMAGE_CMD:wic() {
 }
 
 SCHROOT_MOUNTS += "${BBLAYERS} ${STAGING_DIR} ${SCRIPTSDIR} ${BITBAKEDIR}"
+SCHROOT_MOUNTS[vardepsexclude] += "BITBAKEDIR"
 
 generate_wic_image[vardepsexclude] += "WKS_FULL_PATH BITBAKEDIR TOPDIR"
 generate_wic_image() {
-- 
2.39.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] imager: fix caching issue by excluding BITBAKEDIR
  2023-10-25  6:08 [PATCH 1/1] imager: fix caching issue by excluding BITBAKEDIR Felix Moessbauer
@ 2023-11-01  7:12 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-11-01  7:12 UTC (permalink / raw)
  To: Felix Moessbauer, isar-users; +Cc: adriaan.schmidt

On Wed, 2023-10-25 at 14:08 +0800, 'Felix Moessbauer' via isar-users
wrote:
> The BITBAKEDIR variable contains an absolute path. This is
> problematic
> when mounting it into the schroot, as this makes the hash of the
> function depend on the absolute path. As the bitbake directory
> anyways
> directly depends on the ISAR layer, we can safely exclude it.
> 
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>  meta/classes/imagetypes_wic.bbclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/classes/imagetypes_wic.bbclass
> b/meta/classes/imagetypes_wic.bbclass
> index 9a0bc2b7..6b50959f 100644
> --- a/meta/classes/imagetypes_wic.bbclass
> +++ b/meta/classes/imagetypes_wic.bbclass
> @@ -147,6 +147,7 @@ IMAGE_CMD:wic() {
>  }
>  
>  SCHROOT_MOUNTS += "${BBLAYERS} ${STAGING_DIR} ${SCRIPTSDIR}
> ${BITBAKEDIR}"
> +SCHROOT_MOUNTS[vardepsexclude] += "BITBAKEDIR"
>  
>  generate_wic_image[vardepsexclude] += "WKS_FULL_PATH BITBAKEDIR
> TOPDIR"
>  generate_wic_image() {
> -- 
> 2.39.2
> 

Applied to next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-01  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-25  6:08 [PATCH 1/1] imager: fix caching issue by excluding BITBAKEDIR Felix Moessbauer
2023-11-01  7:12 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox