From: Angelo Compagnucci <angelo@amarulasolutions.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 4/5] package/mender: adding device_type file
Date: Tue, 5 Feb 2019 11:23:47 +0100 [thread overview]
Message-ID: <1549362228-5731-5-git-send-email-angelo@amarulasolutions.com> (raw)
In-Reply-To: <1549362228-5731-1-git-send-email-angelo@amarulasolutions.com>
In order to have the mender package working out of the box, the
/etc/mender/device_type should be present and should contain a
valid device_type value.
This patch provides a default file that can be overridden easily
from an overlay.
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
package/mender/device_type | 1 +
package/mender/mender.mk | 3 +++
2 files changed, 4 insertions(+)
create mode 100644 package/mender/device_type
diff --git a/package/mender/device_type b/package/mender/device_type
new file mode 100644
index 0000000..a097ef2
--- /dev/null
+++ b/package/mender/device_type
@@ -0,0 +1 @@
+device_type=BUILDROOT_DEVICE
diff --git a/package/mender/mender.mk b/package/mender/mender.mk
index 0377270..0d71938 100644
--- a/package/mender/mender.mk
+++ b/package/mender/mender.mk
@@ -53,6 +53,9 @@ define MENDER_INSTALL_CONFIG_FILES
$(INSTALL) -D -m 0755 package/mender/artifact_info \
$(TARGET_DIR)/etc/mender/artifact_info
+ $(INSTALL) -D -m 0755 package/mender/device_type \
+ $(TARGET_DIR)/etc/mender/device_type
+
ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef
--
2.7.4
next prev parent reply other threads:[~2019-02-05 10:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 10:23 [Buildroot] [PATCH v2 0/5] Latest fixings to Mender Angelo Compagnucci
2019-02-05 10:23 ` [Buildroot] [PATCH v2 1/5] package/mender: adding a writable location Angelo Compagnucci
2019-02-05 10:30 ` Adam Duskett
2019-02-05 10:23 ` [Buildroot] [PATCH v2 2/5] package/mender: adding systemv init file Angelo Compagnucci
2019-02-05 10:29 ` Adam Duskett
2019-02-05 10:40 ` Titouan Christophe
2019-02-05 10:23 ` [Buildroot] [PATCH v2 3/5] package/mender: adding artifact_info file Angelo Compagnucci
2019-02-05 10:30 ` Adam Duskett
2019-02-05 10:23 ` Angelo Compagnucci [this message]
2019-02-05 10:29 ` [Buildroot] [PATCH v2 4/5] package/mender: adding device_type file Adam Duskett
2019-02-05 10:23 ` [Buildroot] [PATCH v2 5/5] package/mender: adding a readme file Angelo Compagnucci
2019-02-05 10:28 ` Adam Duskett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1549362228-5731-5-git-send-email-angelo@amarulasolutions.com \
--to=angelo@amarulasolutions.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.