aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-client/swupd-client_git.bb
diff options
context:
space:
mode:
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>2016-08-29 11:09:37 +0300
committerJoshua Lock <joshua.g.lock@intel.com>2016-08-30 14:32:24 +0100
commit04ef03378bda386130e571f94a043919c13d2af8 (patch)
tree9dc00ff530913b4e658893a586e9f0eb8d3b0c48 /recipes-core/swupd-client/swupd-client_git.bb
parent4a970264a0cc6d284f510a0958cf577721e2d082 (diff)
downloadmeta-swupd-joshuagl/next.tar.gz
meta-swupd-joshuagl/next.tar.bz2
meta-swupd-joshuagl/next.zip
swupd-client_git.bb: Make pinned pubkey configurablejoshuagl/next
SWUPD server may move to a new location where a different pubkey needs to be used and the hardcoded one won't work. This makes pinned pubkey configurable. Changes in v2: add explicit 'else' clause to the last statement of do_install_append() to avoid returning exit code 1. Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Diffstat (limited to 'recipes-core/swupd-client/swupd-client_git.bb')
-rw-r--r--recipes-core/swupd-client/swupd-client_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-core/swupd-client/swupd-client_git.bb b/recipes-core/swupd-client/swupd-client_git.bb
index 1815db0..8df89a1 100644
--- a/recipes-core/swupd-client/swupd-client_git.bb
+++ b/recipes-core/swupd-client/swupd-client_git.bb
@@ -10,6 +10,7 @@ SRC_URI = "\
git://github.com/clearlinux/swupd-client.git;protocol=https \
file://Change-systemctl-path-to-OE-systemctl-path.patch \
file://0001-Add-configure-option-to-re-enable-updating-of-config.patch \
+ file://Make-pinned-pubkey-configurable.patch \
"
SRCREV = "f4000c5b22be47ec1af2f8748fd71a36148b5dc4"
@@ -35,6 +36,7 @@ PACKAGECONFIG[stateless] = ",--disable-stateless"
SWUPD_VERSION_URL ??= "example.com"
SWUPD_CONTENT_URL ??= "example.com"
SWUPD_FORMAT ??= "3"
+SWUPD_PINNED_PUBKEY ??= ""
do_install_append () {
# TODO: This should be a less os-specific directory and not hard-code datadir
install -d ${D}$/usr/share/clear/bundles
@@ -44,6 +46,7 @@ do_install_append () {
echo "${SWUPD_VERSION_URL}" >> ${D}/usr/share/defaults/swupd/versionurl
echo "${SWUPD_CONTENT_URL}" >> ${D}/usr/share/defaults/swupd/contenturl
echo "${SWUPD_FORMAT}" >> ${D}/usr/share/defaults/swupd/format
+ test -n "${SWUPD_PINNED_PUBKEY}" && echo "${SWUPD_PINNED_PUBKEY}" > ${D}/usr/share/defaults/swupd/pinnedpubkey || true
}
FILES_${PN} += "\