[isar-cip-core][PATCH 1/1] layer.conf: fix sstate cacheability issue


Felix Moessbauer <felix.moessbauer@...>
 

The LAYERDIR_cip-core contains an absolute path to the layer
at the current location on the fs.
This breaks sstate caching in case the layer is checked out at a
different location on the next build (which is common in CI).

By setting the vardepvalue to a fixed string, this issue is solved.

Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
conf/layer.conf | 2 ++
1 file changed, 2 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index cc0543a..891a0ca 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -21,3 +21,5 @@ BBFILE_PRIORITY_cip-core = "6"
LAYERSERIES_COMPAT_cip-core = "next"

LAYERDIR_cip-core = "${LAYERDIR}"
+LAYERDIR_cip-core[vardepvalue] = "isar-cip-core"
+
--
2.30.2


Quirin Gylstorff
 

On 10/1/22 06:47, Felix Moessbauer wrote:
The LAYERDIR_cip-core contains an absolute path to the layer
at the current location on the fs.
This breaks sstate caching in case the layer is checked out at a
different location on the next build (which is common in CI).
By setting the vardepvalue to a fixed string, this issue is solved.
Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
conf/layer.conf | 2 ++
1 file changed, 2 insertions(+)
diff --git a/conf/layer.conf b/conf/layer.conf
index cc0543a..891a0ca 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -21,3 +21,5 @@ BBFILE_PRIORITY_cip-core = "6"
LAYERSERIES_COMPAT_cip-core = "next"
LAYERDIR_cip-core = "${LAYERDIR}"
+LAYERDIR_cip-core[vardepvalue] = "isar-cip-core"
+
ACK

Quirin


Jan Kiszka
 

On 07.10.22 10:05, Gylstorff Quirin wrote:


On 10/1/22 06:47, Felix Moessbauer wrote:
The LAYERDIR_cip-core contains an absolute path to the layer
at the current location on the fs.
This breaks sstate caching in case the layer is checked out at a
different location on the next build (which is common in CI).

By setting the vardepvalue to a fixed string, this issue is solved.

Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
  conf/layer.conf | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index cc0543a..891a0ca 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -21,3 +21,5 @@ BBFILE_PRIORITY_cip-core = "6"
  LAYERSERIES_COMPAT_cip-core = "next"
    LAYERDIR_cip-core = "${LAYERDIR}"
+LAYERDIR_cip-core[vardepvalue] = "isar-cip-core"
+
ACK

Quirin
Thanks, applied - fixing up the whitespace error above.

Jan

--
Siemens AG, Technology
Competence Center Embedded Linux