Skip to content

Commit

Permalink
improve caching of mtda isar layer
Browse files Browse the repository at this point in the history
The layerdir variable contains an absolute path that is immediately
expanded and points into the build host. This breaks sstate caching for
tasks that reference this variable when building from a different path
(like in the gitlab-ci). To fix this, we simply set the vardepvalue to a
fixed value. As this variable just points to the current layer, there
are no logical external changes expected and by that, this "pinning" is
fine.

Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer committed Jul 21, 2023
1 parent a808b58 commit 99ecfef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meta-isar/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ BBFILE_PRIORITY_mtda = "10"
LAYERVERSION_mtda = "1"
LAYERSERIES_COMPAT_mtda = "v0.6"
LAYERDIR_mtda = "${LAYERDIR}"
LAYERDIR_mtda[vardepvalue] = "mtda"

THIRD_PARTY_APT_KEYS:append = " https://apt.fury.io/mtda/gpg.key;md5sum=bbdc764e1a3028aa70b6735692367f16"

0 comments on commit 99ecfef

Please sign in to comment.