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:27:43 +0200
commit49234059ba1af24619d77e20eb0fcf238455bacf (patch)
treef0937bfdf4f2412d2c6297666637d5b7bbb1903d
parent79ca75e8415d1fe65ae5af124d99f7747a8bc9d9 (diff)
downloadmeta-updater-49234059ba1af24619d77e20eb0fcf238455bacf.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