aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Angelo Compagnucci <angelo@amarulasolutions.com>2019-02-05 11:49:57 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-02-05 14:08:47 +0100
commit99ed53cc2b52e68d322f2154a3c9b9af335c0c6b (patch)
tree7486753978721b7f4999c207f535db4340c0f9a1
parentf88947c2fe2d49b651b42b550a775b9b35e71c32 (diff)
downloadbuildroot-99ed53cc2b52e68d322f2154a3c9b9af335c0c6b.tar.gz
buildroot-99ed53cc2b52e68d322f2154a3c9b9af335c0c6b.tar.bz2
package/mender: adding artifact_info file
In order to have the mender package working out of the box, the /etc/mender/artifact_info should be present and should contain a valid artifact_name value. This patch provides a default file that can be overridden easily from an overlay. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mender/artifact_info1
-rw-r--r--package/mender/mender.mk3
2 files changed, 4 insertions, 0 deletions
diff --git a/package/mender/artifact_info b/package/mender/artifact_info
new file mode 100644
index 0000000000..1c84b088d0
--- /dev/null
+++ b/package/mender/artifact_info
@@ -0,0 +1 @@
+artifact_name=BUILDROOT_ARTIFACT
diff --git a/package/mender/mender.mk b/package/mender/mender.mk
index dc4a73b0f3..0377270a43 100644
--- a/package/mender/mender.mk
+++ b/package/mender/mender.mk
@@ -50,6 +50,9 @@ define MENDER_INSTALL_CONFIG_FILES
$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-$(f)
)
+ $(INSTALL) -D -m 0755 package/mender/artifact_info \
+ $(TARGET_DIR)/etc/mender/artifact_info
+
ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef