summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-04-30 14:24:51 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-05-03 10:55:46 +0200
commitaf5e0c48c7311bd53267539ef544deb4d647eda0 (patch)
tree08456de15abd73cce87f71fff6a9baaff9155e2f
parent3f4856c1aabdc04935020f51fa18dd510f84a69c (diff)
downloadmeta-updater-af5e0c48c7311bd53267539ef544deb4d647eda0.tar.gz
Create aktualizr-log-debug recipe as an example (and debugging aid).
-rw-r--r--recipes-sota/config/aktualizr-log-debug.bb23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-sota/config/aktualizr-log-debug.bb b/recipes-sota/config/aktualizr-log-debug.bb
new file mode 100644
index 0000000..512599f
--- /dev/null
+++ b/recipes-sota/config/aktualizr-log-debug.bb
@@ -0,0 +1,23 @@
1SUMMARY = "Set debug logging in Aktualizr"
2DESCRIPTION = "Configures aktualizr to log at a debugging level"
3HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
4SECTION = "base"
5LICENSE = "MPL-2.0"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3"
7
8DEPENDS = "aktualizr "
9SRC_URI = " \
10 file://LICENSE \
11 "
12
13do_install_append () {
14 install -m 0700 -d ${D}${libdir}/sota/conf.d
15 echo "[logger]\nloglevel = 0\n" > ${D}${libdir}/sota/conf.d/log-debug.toml
16}
17
18FILES_${PN} = " \
19 ${libdir}/sota/conf.d/log-debug.toml \
20 "
21
22# vim:set ts=4 sw=4 sts=4 expandtab:
23