summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2020-05-26 16:04:24 +0000
committerStefan Agner <stefan.agner@toradex.com>2020-05-26 16:09:04 +0000
commit0b5250f509e2508a53495000fcc11e11e13ee3b5 (patch)
tree0092efe03a82fd3dee72776a76ce63484d993430
parent00e92427506cab515d7d261a85311f66fbc8b431 (diff)
downloadmeta-updater-0b5250f509e2508a53495000fcc11e11e13ee3b5.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 ab11da9..bab4ed7 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -174,7 +174,8 @@ IMAGE_CMD_ostreecommit () {
174 --branch=${OSTREE_BRANCHNAME} \ 174 --branch=${OSTREE_BRANCHNAME} \
175 --subject="${OSTREE_COMMIT_SUBJECT}" \ 175 --subject="${OSTREE_COMMIT_SUBJECT}" \
176 --body="${OSTREE_COMMIT_BODY}" \ 176 --body="${OSTREE_COMMIT_BODY}" \
177 --add-metadata-string=version="${OSTREE_COMMIT_VERSION}") 177 --add-metadata-string=version="${OSTREE_COMMIT_VERSION}" \
178 ${EXTRA_OSTREE_COMMIT})
178 179
179 echo $ostree_target_hash > ${WORKDIR}/ostree_manifest 180 echo $ostree_target_hash > ${WORKDIR}/ostree_manifest
180 181