We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abe440 commit 4e2aa1bCopy full SHA for 4e2aa1b
recipes-samples/images/lmp-devel-arduino-image.bb
@@ -60,3 +60,12 @@ CORE_IMAGE_BASE_INSTALL += " \
60
u-boot-fw-utils \
61
${OPENCV} \
62
"
63
+
64
+# Custom task to write git SHA to /etc/os-release
65
+write_git_sha() {
66
+ META_LAYER_DIR="${BSPDIR}/layers/meta-partner-arduino"
67
+ GIT_SHA=$(cd ${META_LAYER_DIR} && git rev-parse HEAD)
68
+ echo "META_LAYER_GIT_SHA=${GIT_SHA}" >> ${IMAGE_ROOTFS}/etc/os-release
69
+}
70
71
+ROOTFS_POSTPROCESS_COMMAND += "write_git_sha; "
0 commit comments