summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2020-05-26 16:04:24 +0000
committerLaurent Bonnans <laurent.bonnans@here.com>2020-06-02 15:28:09 +0200
commit23405eb78a48de0305606211d013518b4a7de4ec (patch)
tree8e5f33eaf4473e82e2775338235b8d8a5165f324
parent83d2763382dba885b797dc1031d8137fc973a79c (diff)
downloadmeta-updater-23405eb78a48de0305606211d013518b4a7de4ec.tar.gz
image_types_ostree: allow to add layer specific OSTree commit arguments
The OSTree commit command allows to add metadata to the commit. This might be customized in a distro layer for distribution specific needs. Allow to pass extra arguments using EXTRA_OSTREE_COMMIT variable (using a variable named similar to EXTRA_OEMAKE used to pass extra make arguments). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--classes/image_types_ostree.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 3e67043..0bc40f8 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -175,7 +175,8 @@ IMAGE_CMD_ostreecommit () {
175 --branch=${OSTREE_BRANCHNAME} \ 175 --branch=${OSTREE_BRANCHNAME} \
176 --subject="${OSTREE_COMMIT_SUBJECT}" \ 176 --subject="${OSTREE_COMMIT_SUBJECT}" \
177 --body="${OSTREE_COMMIT_BODY}" \ 177 --body="${OSTREE_COMMIT_BODY}" \
178 --add-metadata-string=version="${OSTREE_COMMIT_VERSION}") 178 --add-metadata-string=version="${OSTREE_COMMIT_VERSION}" \
179 ${EXTRA_OSTREE_COMMIT})
179 180
180 echo $ostree_target_hash > ${WORKDIR}/ostree_manifest 181 echo $ostree_target_hash > ${WORKDIR}/ostree_manifest
181 182